1 | #! /bin/sh
|
---|
2 | # Guess values for system-dependent variables and create Makefiles.
|
---|
3 | # Generated by GNU Autoconf 2.59 for rdesktop 1.5.0.
|
---|
4 | #
|
---|
5 | # Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
6 | # This configure script is free software; the Free Software Foundation
|
---|
7 | # gives unlimited permission to copy, distribute and modify it.
|
---|
8 | ## --------------------- ##
|
---|
9 | ## M4sh Initialization. ##
|
---|
10 | ## --------------------- ##
|
---|
11 |
|
---|
12 | # Be Bourne compatible
|
---|
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
14 | emulate sh
|
---|
15 | NULLCMD=:
|
---|
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
17 | # is contrary to our usage. Disable this feature.
|
---|
18 | alias -g '${1+"$@"}'='"$@"'
|
---|
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
20 | set -o posix
|
---|
21 | fi
|
---|
22 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
23 |
|
---|
24 | # Support unset when possible.
|
---|
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
26 | as_unset=unset
|
---|
27 | else
|
---|
28 | as_unset=false
|
---|
29 | fi
|
---|
30 |
|
---|
31 |
|
---|
32 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
33 | $as_unset ENV MAIL MAILPATH
|
---|
34 | PS1='$ '
|
---|
35 | PS2='> '
|
---|
36 | PS4='+ '
|
---|
37 |
|
---|
38 | # NLS nuisances.
|
---|
39 | for as_var in \
|
---|
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
42 | LC_TELEPHONE LC_TIME
|
---|
43 | do
|
---|
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
45 | eval $as_var=C; export $as_var
|
---|
46 | else
|
---|
47 | $as_unset $as_var
|
---|
48 | fi
|
---|
49 | done
|
---|
50 |
|
---|
51 | # Required to use basename.
|
---|
52 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
53 | as_expr=expr
|
---|
54 | else
|
---|
55 | as_expr=false
|
---|
56 | fi
|
---|
57 |
|
---|
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
59 | as_basename=basename
|
---|
60 | else
|
---|
61 | as_basename=false
|
---|
62 | fi
|
---|
63 |
|
---|
64 |
|
---|
65 | # Name of the executable.
|
---|
66 | as_me=`$as_basename "$0" ||
|
---|
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
68 | X"$0" : 'X\(//\)$' \| \
|
---|
69 | X"$0" : 'X\(/\)$' \| \
|
---|
70 | . : '\(.\)' 2>/dev/null ||
|
---|
71 | echo X/"$0" |
|
---|
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
73 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
74 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
75 | s/.*/./; q'`
|
---|
76 |
|
---|
77 |
|
---|
78 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
79 | # Avoid depending upon Character Ranges.
|
---|
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
83 | as_cr_digits='0123456789'
|
---|
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
85 |
|
---|
86 | # The user is always right.
|
---|
87 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
88 | echo "#! /bin/sh" >conf$$.sh
|
---|
89 | echo "exit 0" >>conf$$.sh
|
---|
90 | chmod +x conf$$.sh
|
---|
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
92 | PATH_SEPARATOR=';'
|
---|
93 | else
|
---|
94 | PATH_SEPARATOR=:
|
---|
95 | fi
|
---|
96 | rm -f conf$$.sh
|
---|
97 | fi
|
---|
98 |
|
---|
99 |
|
---|
100 | as_lineno_1=$LINENO
|
---|
101 | as_lineno_2=$LINENO
|
---|
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
103 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
104 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
105 | # Find who we are. Look in the path if we contain no path at all
|
---|
106 | # relative or not.
|
---|
107 | case $0 in
|
---|
108 | *[\\/]* ) as_myself=$0 ;;
|
---|
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
110 | for as_dir in $PATH
|
---|
111 | do
|
---|
112 | IFS=$as_save_IFS
|
---|
113 | test -z "$as_dir" && as_dir=.
|
---|
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
115 | done
|
---|
116 |
|
---|
117 | ;;
|
---|
118 | esac
|
---|
119 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
120 | # in which case we are not to be found in the path.
|
---|
121 | if test "x$as_myself" = x; then
|
---|
122 | as_myself=$0
|
---|
123 | fi
|
---|
124 | if test ! -f "$as_myself"; then
|
---|
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
|
---|
126 | { (exit 1); exit 1; }; }
|
---|
127 | fi
|
---|
128 | case $CONFIG_SHELL in
|
---|
129 | '')
|
---|
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
132 | do
|
---|
133 | IFS=$as_save_IFS
|
---|
134 | test -z "$as_dir" && as_dir=.
|
---|
135 | for as_base in sh bash ksh sh5; do
|
---|
136 | case $as_dir in
|
---|
137 | /*)
|
---|
138 | if ("$as_dir/$as_base" -c '
|
---|
139 | as_lineno_1=$LINENO
|
---|
140 | as_lineno_2=$LINENO
|
---|
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
142 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
146 | CONFIG_SHELL=$as_dir/$as_base
|
---|
147 | export CONFIG_SHELL
|
---|
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
149 | fi;;
|
---|
150 | esac
|
---|
151 | done
|
---|
152 | done
|
---|
153 | ;;
|
---|
154 | esac
|
---|
155 |
|
---|
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
157 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
158 | # line-number line before each line; the second 'sed' does the real
|
---|
159 | # work. The second script uses 'N' to pair each line-number line
|
---|
160 | # with the numbered line, and appends trailing '-' during
|
---|
161 | # substitution so that $LINENO is not a special case at line end.
|
---|
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
164 | sed '=' <$as_myself |
|
---|
165 | sed '
|
---|
166 | N
|
---|
167 | s,$,-,
|
---|
168 | : loop
|
---|
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
170 | t loop
|
---|
171 | s,-$,,
|
---|
172 | s,^['$as_cr_digits']*\n,,
|
---|
173 | ' >$as_me.lineno &&
|
---|
174 | chmod +x $as_me.lineno ||
|
---|
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
|
---|
176 | { (exit 1); exit 1; }; }
|
---|
177 |
|
---|
178 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
179 | # (the dirname of $[0] is not the place where we might find the
|
---|
180 | # original and so on. Autoconf is especially sensible to this).
|
---|
181 | . ./$as_me.lineno
|
---|
182 | # Exit status is that of the last command.
|
---|
183 | exit
|
---|
184 | }
|
---|
185 |
|
---|
186 |
|
---|
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
188 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
189 | ' ECHO_T=' ' ;;
|
---|
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
192 | esac
|
---|
193 |
|
---|
194 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
195 | as_expr=expr
|
---|
196 | else
|
---|
197 | as_expr=false
|
---|
198 | fi
|
---|
199 |
|
---|
200 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
201 | echo >conf$$.file
|
---|
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
203 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
205 | if test -f conf$$.exe; then
|
---|
206 | # Don't use ln at all; we don't have any links
|
---|
207 | as_ln_s='cp -p'
|
---|
208 | else
|
---|
209 | as_ln_s='ln -s'
|
---|
210 | fi
|
---|
211 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
212 | as_ln_s=ln
|
---|
213 | else
|
---|
214 | as_ln_s='cp -p'
|
---|
215 | fi
|
---|
216 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
217 |
|
---|
218 | if mkdir -p . 2>/dev/null; then
|
---|
219 | as_mkdir_p=:
|
---|
220 | else
|
---|
221 | test -d ./-p && rmdir ./-p
|
---|
222 | as_mkdir_p=false
|
---|
223 | fi
|
---|
224 |
|
---|
225 | as_executable_p="test -f"
|
---|
226 |
|
---|
227 | # Sed expression to map a string onto a valid CPP name.
|
---|
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
229 |
|
---|
230 | # Sed expression to map a string onto a valid variable name.
|
---|
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
232 |
|
---|
233 |
|
---|
234 | # IFS
|
---|
235 | # We need space, tab and new line, in precisely that order.
|
---|
236 | as_nl='
|
---|
237 | '
|
---|
238 | IFS=" $as_nl"
|
---|
239 |
|
---|
240 | # CDPATH.
|
---|
241 | $as_unset CDPATH
|
---|
242 |
|
---|
243 |
|
---|
244 | # Name of the host.
|
---|
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
|
---|
246 | # so uname gets run too.
|
---|
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
248 |
|
---|
249 | exec 6>&1
|
---|
250 |
|
---|
251 | #
|
---|
252 | # Initializations.
|
---|
253 | #
|
---|
254 | ac_default_prefix=/usr/local
|
---|
255 | ac_config_libobj_dir=.
|
---|
256 | cross_compiling=no
|
---|
257 | subdirs=
|
---|
258 | MFLAGS=
|
---|
259 | MAKEFLAGS=
|
---|
260 | SHELL=${CONFIG_SHELL-/bin/sh}
|
---|
261 |
|
---|
262 | # Maximum number of lines to put in a shell here document.
|
---|
263 | # This variable seems obsolete. It should probably be removed, and
|
---|
264 | # only ac_max_sed_lines should be used.
|
---|
265 | : ${ac_max_here_lines=38}
|
---|
266 |
|
---|
267 | # Identity of this package.
|
---|
268 | PACKAGE_NAME='rdesktop'
|
---|
269 | PACKAGE_TARNAME='rdesktop'
|
---|
270 | PACKAGE_VERSION='1.5.0'
|
---|
271 | PACKAGE_STRING='rdesktop 1.5.0'
|
---|
272 | PACKAGE_BUGREPORT=''
|
---|
273 |
|
---|
274 | ac_unique_file="rdesktop.c"
|
---|
275 | # Factoring default headers for most tests.
|
---|
276 | ac_includes_default="\
|
---|
277 | #include <stdio.h>
|
---|
278 | #if HAVE_SYS_TYPES_H
|
---|
279 | # include <sys/types.h>
|
---|
280 | #endif
|
---|
281 | #if HAVE_SYS_STAT_H
|
---|
282 | # include <sys/stat.h>
|
---|
283 | #endif
|
---|
284 | #if STDC_HEADERS
|
---|
285 | # include <stdlib.h>
|
---|
286 | # include <stddef.h>
|
---|
287 | #else
|
---|
288 | # if HAVE_STDLIB_H
|
---|
289 | # include <stdlib.h>
|
---|
290 | # endif
|
---|
291 | #endif
|
---|
292 | #if HAVE_STRING_H
|
---|
293 | # if !STDC_HEADERS && HAVE_MEMORY_H
|
---|
294 | # include <memory.h>
|
---|
295 | # endif
|
---|
296 | # include <string.h>
|
---|
297 | #endif
|
---|
298 | #if HAVE_STRINGS_H
|
---|
299 | # include <strings.h>
|
---|
300 | #endif
|
---|
301 | #if HAVE_INTTYPES_H
|
---|
302 | # include <inttypes.h>
|
---|
303 | #else
|
---|
304 | # if HAVE_STDINT_H
|
---|
305 | # include <stdint.h>
|
---|
306 | # endif
|
---|
307 | #endif
|
---|
308 | #if HAVE_UNISTD_H
|
---|
309 | # include <unistd.h>
|
---|
310 | #endif"
|
---|
311 |
|
---|
312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS STRIP ac_ct_STRIP ssldir VNCINC LDVNC VNCLINK RDP2VNCTARGET SOUNDOBJ LIBOBJS LIBICONV build build_cpu build_vendor build_os host host_cpu host_vendor host_os LTLIBOBJS'
|
---|
313 | ac_subst_files=''
|
---|
314 |
|
---|
315 | # Initialize some variables set by options.
|
---|
316 | ac_init_help=
|
---|
317 | ac_init_version=false
|
---|
318 | # The variables have the same names as the options, with
|
---|
319 | # dashes changed to underlines.
|
---|
320 | cache_file=/dev/null
|
---|
321 | exec_prefix=NONE
|
---|
322 | no_create=
|
---|
323 | no_recursion=
|
---|
324 | prefix=NONE
|
---|
325 | program_prefix=NONE
|
---|
326 | program_suffix=NONE
|
---|
327 | program_transform_name=s,x,x,
|
---|
328 | silent=
|
---|
329 | site=
|
---|
330 | srcdir=
|
---|
331 | verbose=
|
---|
332 | x_includes=NONE
|
---|
333 | x_libraries=NONE
|
---|
334 |
|
---|
335 | # Installation directory options.
|
---|
336 | # These are left unexpanded so users can "make install exec_prefix=/foo"
|
---|
337 | # and all the variables that are supposed to be based on exec_prefix
|
---|
338 | # by default will actually change.
|
---|
339 | # Use braces instead of parens because sh, perl, etc. also accept them.
|
---|
340 | bindir='${exec_prefix}/bin'
|
---|
341 | sbindir='${exec_prefix}/sbin'
|
---|
342 | libexecdir='${exec_prefix}/libexec'
|
---|
343 | datadir='${prefix}/share'
|
---|
344 | sysconfdir='${prefix}/etc'
|
---|
345 | sharedstatedir='${prefix}/com'
|
---|
346 | localstatedir='${prefix}/var'
|
---|
347 | libdir='${exec_prefix}/lib'
|
---|
348 | includedir='${prefix}/include'
|
---|
349 | oldincludedir='/usr/include'
|
---|
350 | infodir='${prefix}/info'
|
---|
351 | mandir='${prefix}/man'
|
---|
352 |
|
---|
353 | ac_prev=
|
---|
354 | for ac_option
|
---|
355 | do
|
---|
356 | # If the previous option needs an argument, assign it.
|
---|
357 | if test -n "$ac_prev"; then
|
---|
358 | eval "$ac_prev=\$ac_option"
|
---|
359 | ac_prev=
|
---|
360 | continue
|
---|
361 | fi
|
---|
362 |
|
---|
363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
|
---|
364 |
|
---|
365 | # Accept the important Cygnus configure options, so we can diagnose typos.
|
---|
366 |
|
---|
367 | case $ac_option in
|
---|
368 |
|
---|
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi)
|
---|
370 | ac_prev=bindir ;;
|
---|
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
|
---|
372 | bindir=$ac_optarg ;;
|
---|
373 |
|
---|
374 | -build | --build | --buil | --bui | --bu)
|
---|
375 | ac_prev=build_alias ;;
|
---|
376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*)
|
---|
377 | build_alias=$ac_optarg ;;
|
---|
378 |
|
---|
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \
|
---|
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
|
---|
381 | ac_prev=cache_file ;;
|
---|
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
|
---|
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
|
---|
384 | cache_file=$ac_optarg ;;
|
---|
385 |
|
---|
386 | --config-cache | -C)
|
---|
387 | cache_file=config.cache ;;
|
---|
388 |
|
---|
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
|
---|
390 | ac_prev=datadir ;;
|
---|
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
|
---|
392 | | --da=*)
|
---|
393 | datadir=$ac_optarg ;;
|
---|
394 |
|
---|
395 | -disable-* | --disable-*)
|
---|
396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
|
---|
397 | # Reject names that are not valid shell variable names.
|
---|
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
400 | { (exit 1); exit 1; }; }
|
---|
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
402 | eval "enable_$ac_feature=no" ;;
|
---|
403 |
|
---|
404 | -enable-* | --enable-*)
|
---|
405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
|
---|
406 | # Reject names that are not valid shell variable names.
|
---|
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2
|
---|
409 | { (exit 1); exit 1; }; }
|
---|
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'`
|
---|
411 | case $ac_option in
|
---|
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
413 | *) ac_optarg=yes ;;
|
---|
414 | esac
|
---|
415 | eval "enable_$ac_feature='$ac_optarg'" ;;
|
---|
416 |
|
---|
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
|
---|
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
|
---|
419 | | --exec | --exe | --ex)
|
---|
420 | ac_prev=exec_prefix ;;
|
---|
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
|
---|
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
|
---|
423 | | --exec=* | --exe=* | --ex=*)
|
---|
424 | exec_prefix=$ac_optarg ;;
|
---|
425 |
|
---|
426 | -gas | --gas | --ga | --g)
|
---|
427 | # Obsolete; use --with-gas.
|
---|
428 | with_gas=yes ;;
|
---|
429 |
|
---|
430 | -help | --help | --hel | --he | -h)
|
---|
431 | ac_init_help=long ;;
|
---|
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
|
---|
433 | ac_init_help=recursive ;;
|
---|
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
|
---|
435 | ac_init_help=short ;;
|
---|
436 |
|
---|
437 | -host | --host | --hos | --ho)
|
---|
438 | ac_prev=host_alias ;;
|
---|
439 | -host=* | --host=* | --hos=* | --ho=*)
|
---|
440 | host_alias=$ac_optarg ;;
|
---|
441 |
|
---|
442 | -includedir | --includedir | --includedi | --included | --include \
|
---|
443 | | --includ | --inclu | --incl | --inc)
|
---|
444 | ac_prev=includedir ;;
|
---|
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
|
---|
446 | | --includ=* | --inclu=* | --incl=* | --inc=*)
|
---|
447 | includedir=$ac_optarg ;;
|
---|
448 |
|
---|
449 | -infodir | --infodir | --infodi | --infod | --info | --inf)
|
---|
450 | ac_prev=infodir ;;
|
---|
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
|
---|
452 | infodir=$ac_optarg ;;
|
---|
453 |
|
---|
454 | -libdir | --libdir | --libdi | --libd)
|
---|
455 | ac_prev=libdir ;;
|
---|
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*)
|
---|
457 | libdir=$ac_optarg ;;
|
---|
458 |
|
---|
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
|
---|
460 | | --libexe | --libex | --libe)
|
---|
461 | ac_prev=libexecdir ;;
|
---|
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
|
---|
463 | | --libexe=* | --libex=* | --libe=*)
|
---|
464 | libexecdir=$ac_optarg ;;
|
---|
465 |
|
---|
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \
|
---|
467 | | --localstate | --localstat | --localsta | --localst \
|
---|
468 | | --locals | --local | --loca | --loc | --lo)
|
---|
469 | ac_prev=localstatedir ;;
|
---|
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
|
---|
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \
|
---|
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
|
---|
473 | localstatedir=$ac_optarg ;;
|
---|
474 |
|
---|
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
|
---|
476 | ac_prev=mandir ;;
|
---|
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
|
---|
478 | mandir=$ac_optarg ;;
|
---|
479 |
|
---|
480 | -nfp | --nfp | --nf)
|
---|
481 | # Obsolete; use --without-fp.
|
---|
482 | with_fp=no ;;
|
---|
483 |
|
---|
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \
|
---|
485 | | --no-cr | --no-c | -n)
|
---|
486 | no_create=yes ;;
|
---|
487 |
|
---|
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \
|
---|
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
|
---|
490 | no_recursion=yes ;;
|
---|
491 |
|
---|
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
|
---|
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
|
---|
494 | | --oldin | --oldi | --old | --ol | --o)
|
---|
495 | ac_prev=oldincludedir ;;
|
---|
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
|
---|
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
|
---|
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
|
---|
499 | oldincludedir=$ac_optarg ;;
|
---|
500 |
|
---|
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
|
---|
502 | ac_prev=prefix ;;
|
---|
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
|
---|
504 | prefix=$ac_optarg ;;
|
---|
505 |
|
---|
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \
|
---|
507 | | --program-pre | --program-pr | --program-p)
|
---|
508 | ac_prev=program_prefix ;;
|
---|
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \
|
---|
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
|
---|
511 | program_prefix=$ac_optarg ;;
|
---|
512 |
|
---|
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \
|
---|
514 | | --program-suf | --program-su | --program-s)
|
---|
515 | ac_prev=program_suffix ;;
|
---|
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \
|
---|
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
|
---|
518 | program_suffix=$ac_optarg ;;
|
---|
519 |
|
---|
520 | -program-transform-name | --program-transform-name \
|
---|
521 | | --program-transform-nam | --program-transform-na \
|
---|
522 | | --program-transform-n | --program-transform- \
|
---|
523 | | --program-transform | --program-transfor \
|
---|
524 | | --program-transfo | --program-transf \
|
---|
525 | | --program-trans | --program-tran \
|
---|
526 | | --progr-tra | --program-tr | --program-t)
|
---|
527 | ac_prev=program_transform_name ;;
|
---|
528 | -program-transform-name=* | --program-transform-name=* \
|
---|
529 | | --program-transform-nam=* | --program-transform-na=* \
|
---|
530 | | --program-transform-n=* | --program-transform-=* \
|
---|
531 | | --program-transform=* | --program-transfor=* \
|
---|
532 | | --program-transfo=* | --program-transf=* \
|
---|
533 | | --program-trans=* | --program-tran=* \
|
---|
534 | | --progr-tra=* | --program-tr=* | --program-t=*)
|
---|
535 | program_transform_name=$ac_optarg ;;
|
---|
536 |
|
---|
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
538 | | -silent | --silent | --silen | --sile | --sil)
|
---|
539 | silent=yes ;;
|
---|
540 |
|
---|
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
|
---|
542 | ac_prev=sbindir ;;
|
---|
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
|
---|
544 | | --sbi=* | --sb=*)
|
---|
545 | sbindir=$ac_optarg ;;
|
---|
546 |
|
---|
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \
|
---|
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
|
---|
549 | | --sharedst | --shareds | --shared | --share | --shar \
|
---|
550 | | --sha | --sh)
|
---|
551 | ac_prev=sharedstatedir ;;
|
---|
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
|
---|
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
|
---|
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
|
---|
555 | | --sha=* | --sh=*)
|
---|
556 | sharedstatedir=$ac_optarg ;;
|
---|
557 |
|
---|
558 | -site | --site | --sit)
|
---|
559 | ac_prev=site ;;
|
---|
560 | -site=* | --site=* | --sit=*)
|
---|
561 | site=$ac_optarg ;;
|
---|
562 |
|
---|
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
|
---|
564 | ac_prev=srcdir ;;
|
---|
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
|
---|
566 | srcdir=$ac_optarg ;;
|
---|
567 |
|
---|
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
|
---|
569 | | --syscon | --sysco | --sysc | --sys | --sy)
|
---|
570 | ac_prev=sysconfdir ;;
|
---|
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
|
---|
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
|
---|
573 | sysconfdir=$ac_optarg ;;
|
---|
574 |
|
---|
575 | -target | --target | --targe | --targ | --tar | --ta | --t)
|
---|
576 | ac_prev=target_alias ;;
|
---|
577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
|
---|
578 | target_alias=$ac_optarg ;;
|
---|
579 |
|
---|
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb)
|
---|
581 | verbose=yes ;;
|
---|
582 |
|
---|
583 | -version | --version | --versio | --versi | --vers | -V)
|
---|
584 | ac_init_version=: ;;
|
---|
585 |
|
---|
586 | -with-* | --with-*)
|
---|
587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
|
---|
588 | # Reject names that are not valid shell variable names.
|
---|
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
591 | { (exit 1); exit 1; }; }
|
---|
592 | ac_package=`echo $ac_package| sed 's/-/_/g'`
|
---|
593 | case $ac_option in
|
---|
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
|
---|
595 | *) ac_optarg=yes ;;
|
---|
596 | esac
|
---|
597 | eval "with_$ac_package='$ac_optarg'" ;;
|
---|
598 |
|
---|
599 | -without-* | --without-*)
|
---|
600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
|
---|
601 | # Reject names that are not valid shell variable names.
|
---|
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
|
---|
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2
|
---|
604 | { (exit 1); exit 1; }; }
|
---|
605 | ac_package=`echo $ac_package | sed 's/-/_/g'`
|
---|
606 | eval "with_$ac_package=no" ;;
|
---|
607 |
|
---|
608 | --x)
|
---|
609 | # Obsolete; use --with-x.
|
---|
610 | with_x=yes ;;
|
---|
611 |
|
---|
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
|
---|
613 | | --x-incl | --x-inc | --x-in | --x-i)
|
---|
614 | ac_prev=x_includes ;;
|
---|
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
|
---|
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
|
---|
617 | x_includes=$ac_optarg ;;
|
---|
618 |
|
---|
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \
|
---|
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
|
---|
621 | ac_prev=x_libraries ;;
|
---|
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
|
---|
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
|
---|
624 | x_libraries=$ac_optarg ;;
|
---|
625 |
|
---|
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option
|
---|
627 | Try \`$0 --help' for more information." >&2
|
---|
628 | { (exit 1); exit 1; }; }
|
---|
629 | ;;
|
---|
630 |
|
---|
631 | *=*)
|
---|
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
|
---|
633 | # Reject names that are not valid shell variable names.
|
---|
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
|
---|
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
|
---|
636 | { (exit 1); exit 1; }; }
|
---|
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
|
---|
638 | eval "$ac_envvar='$ac_optarg'"
|
---|
639 | export $ac_envvar ;;
|
---|
640 |
|
---|
641 | *)
|
---|
642 | # FIXME: should be removed in autoconf 3.0.
|
---|
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2
|
---|
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
|
---|
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2
|
---|
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
|
---|
647 | ;;
|
---|
648 |
|
---|
649 | esac
|
---|
650 | done
|
---|
651 |
|
---|
652 | if test -n "$ac_prev"; then
|
---|
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'`
|
---|
654 | { echo "$as_me: error: missing argument to $ac_option" >&2
|
---|
655 | { (exit 1); exit 1; }; }
|
---|
656 | fi
|
---|
657 |
|
---|
658 | # Be sure to have absolute paths.
|
---|
659 | for ac_var in exec_prefix prefix
|
---|
660 | do
|
---|
661 | eval ac_val=$`echo $ac_var`
|
---|
662 | case $ac_val in
|
---|
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
|
---|
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
665 | { (exit 1); exit 1; }; };;
|
---|
666 | esac
|
---|
667 | done
|
---|
668 |
|
---|
669 | # Be sure to have absolute paths.
|
---|
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
|
---|
671 | localstatedir libdir includedir oldincludedir infodir mandir
|
---|
672 | do
|
---|
673 | eval ac_val=$`echo $ac_var`
|
---|
674 | case $ac_val in
|
---|
675 | [\\/$]* | ?:[\\/]* ) ;;
|
---|
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
|
---|
677 | { (exit 1); exit 1; }; };;
|
---|
678 | esac
|
---|
679 | done
|
---|
680 |
|
---|
681 | # There might be people who depend on the old broken behavior: `$host'
|
---|
682 | # used to hold the argument of --host etc.
|
---|
683 | # FIXME: To remove some day.
|
---|
684 | build=$build_alias
|
---|
685 | host=$host_alias
|
---|
686 | target=$target_alias
|
---|
687 |
|
---|
688 | # FIXME: To remove some day.
|
---|
689 | if test "x$host_alias" != x; then
|
---|
690 | if test "x$build_alias" = x; then
|
---|
691 | cross_compiling=maybe
|
---|
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
|
---|
693 | If a cross compiler is detected then cross compile mode will be used." >&2
|
---|
694 | elif test "x$build_alias" != "x$host_alias"; then
|
---|
695 | cross_compiling=yes
|
---|
696 | fi
|
---|
697 | fi
|
---|
698 |
|
---|
699 | ac_tool_prefix=
|
---|
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias-
|
---|
701 |
|
---|
702 | test "$silent" = yes && exec 6>/dev/null
|
---|
703 |
|
---|
704 |
|
---|
705 | # Find the source files, if location was not specified.
|
---|
706 | if test -z "$srcdir"; then
|
---|
707 | ac_srcdir_defaulted=yes
|
---|
708 | # Try the directory containing this script, then its parent.
|
---|
709 | ac_confdir=`(dirname "$0") 2>/dev/null ||
|
---|
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
711 | X"$0" : 'X\(//\)[^/]' \| \
|
---|
712 | X"$0" : 'X\(//\)$' \| \
|
---|
713 | X"$0" : 'X\(/\)' \| \
|
---|
714 | . : '\(.\)' 2>/dev/null ||
|
---|
715 | echo X"$0" |
|
---|
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
718 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
719 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
720 | s/.*/./; q'`
|
---|
721 | srcdir=$ac_confdir
|
---|
722 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
723 | srcdir=..
|
---|
724 | fi
|
---|
725 | else
|
---|
726 | ac_srcdir_defaulted=no
|
---|
727 | fi
|
---|
728 | if test ! -r $srcdir/$ac_unique_file; then
|
---|
729 | if test "$ac_srcdir_defaulted" = yes; then
|
---|
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
|
---|
731 | { (exit 1); exit 1; }; }
|
---|
732 | else
|
---|
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
|
---|
734 | { (exit 1); exit 1; }; }
|
---|
735 | fi
|
---|
736 | fi
|
---|
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
|
---|
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
|
---|
739 | { (exit 1); exit 1; }; }
|
---|
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
|
---|
741 | ac_env_build_alias_set=${build_alias+set}
|
---|
742 | ac_env_build_alias_value=$build_alias
|
---|
743 | ac_cv_env_build_alias_set=${build_alias+set}
|
---|
744 | ac_cv_env_build_alias_value=$build_alias
|
---|
745 | ac_env_host_alias_set=${host_alias+set}
|
---|
746 | ac_env_host_alias_value=$host_alias
|
---|
747 | ac_cv_env_host_alias_set=${host_alias+set}
|
---|
748 | ac_cv_env_host_alias_value=$host_alias
|
---|
749 | ac_env_target_alias_set=${target_alias+set}
|
---|
750 | ac_env_target_alias_value=$target_alias
|
---|
751 | ac_cv_env_target_alias_set=${target_alias+set}
|
---|
752 | ac_cv_env_target_alias_value=$target_alias
|
---|
753 | ac_env_CC_set=${CC+set}
|
---|
754 | ac_env_CC_value=$CC
|
---|
755 | ac_cv_env_CC_set=${CC+set}
|
---|
756 | ac_cv_env_CC_value=$CC
|
---|
757 | ac_env_CFLAGS_set=${CFLAGS+set}
|
---|
758 | ac_env_CFLAGS_value=$CFLAGS
|
---|
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set}
|
---|
760 | ac_cv_env_CFLAGS_value=$CFLAGS
|
---|
761 | ac_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
762 | ac_env_LDFLAGS_value=$LDFLAGS
|
---|
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
|
---|
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS
|
---|
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
766 | ac_env_CPPFLAGS_value=$CPPFLAGS
|
---|
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
|
---|
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS
|
---|
769 | ac_env_CPP_set=${CPP+set}
|
---|
770 | ac_env_CPP_value=$CPP
|
---|
771 | ac_cv_env_CPP_set=${CPP+set}
|
---|
772 | ac_cv_env_CPP_value=$CPP
|
---|
773 |
|
---|
774 | #
|
---|
775 | # Report the --help message.
|
---|
776 | #
|
---|
777 | if test "$ac_init_help" = "long"; then
|
---|
778 | # Omit some internal or obsolete options to make the list less imposing.
|
---|
779 | # This message is too long to be a string in the A/UX 3.1 sh.
|
---|
780 | cat <<_ACEOF
|
---|
781 | \`configure' configures rdesktop 1.5.0 to adapt to many kinds of systems.
|
---|
782 |
|
---|
783 | Usage: $0 [OPTION]... [VAR=VALUE]...
|
---|
784 |
|
---|
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as
|
---|
786 | VAR=VALUE. See below for descriptions of some of the useful variables.
|
---|
787 |
|
---|
788 | Defaults for the options are specified in brackets.
|
---|
789 |
|
---|
790 | Configuration:
|
---|
791 | -h, --help display this help and exit
|
---|
792 | --help=short display options specific to this package
|
---|
793 | --help=recursive display the short help of all the included packages
|
---|
794 | -V, --version display version information and exit
|
---|
795 | -q, --quiet, --silent do not print \`checking...' messages
|
---|
796 | --cache-file=FILE cache test results in FILE [disabled]
|
---|
797 | -C, --config-cache alias for \`--cache-file=config.cache'
|
---|
798 | -n, --no-create do not create output files
|
---|
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..']
|
---|
800 |
|
---|
801 | _ACEOF
|
---|
802 |
|
---|
803 | cat <<_ACEOF
|
---|
804 | Installation directories:
|
---|
805 | --prefix=PREFIX install architecture-independent files in PREFIX
|
---|
806 | [$ac_default_prefix]
|
---|
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
|
---|
808 | [PREFIX]
|
---|
809 |
|
---|
810 | By default, \`make install' will install all the files in
|
---|
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
|
---|
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix',
|
---|
813 | for instance \`--prefix=\$HOME'.
|
---|
814 |
|
---|
815 | For better control, use the options below.
|
---|
816 |
|
---|
817 | Fine tuning of the installation directories:
|
---|
818 | --bindir=DIR user executables [EPREFIX/bin]
|
---|
819 | --sbindir=DIR system admin executables [EPREFIX/sbin]
|
---|
820 | --libexecdir=DIR program executables [EPREFIX/libexec]
|
---|
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share]
|
---|
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
|
---|
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
|
---|
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var]
|
---|
825 | --libdir=DIR object code libraries [EPREFIX/lib]
|
---|
826 | --includedir=DIR C header files [PREFIX/include]
|
---|
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include]
|
---|
828 | --infodir=DIR info documentation [PREFIX/info]
|
---|
829 | --mandir=DIR man documentation [PREFIX/man]
|
---|
830 | _ACEOF
|
---|
831 |
|
---|
832 | cat <<\_ACEOF
|
---|
833 |
|
---|
834 | X features:
|
---|
835 | --x-includes=DIR X include files are in DIR
|
---|
836 | --x-libraries=DIR X library files are in DIR
|
---|
837 |
|
---|
838 | System types:
|
---|
839 | --build=BUILD configure for building on BUILD [guessed]
|
---|
840 | --host=HOST cross-compile to build programs to run on HOST [BUILD]
|
---|
841 | _ACEOF
|
---|
842 | fi
|
---|
843 |
|
---|
844 | if test -n "$ac_init_help"; then
|
---|
845 | case $ac_init_help in
|
---|
846 | short | recursive ) echo "Configuration of rdesktop 1.5.0:";;
|
---|
847 | esac
|
---|
848 | cat <<\_ACEOF
|
---|
849 |
|
---|
850 | Optional Features:
|
---|
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
|
---|
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
|
---|
853 | --enable-static-openssl link OpenSSL statically
|
---|
854 | --disable-largefile omit support for large files
|
---|
855 |
|
---|
856 | Optional Packages:
|
---|
857 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
|
---|
858 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
|
---|
859 | --with-x use the X Window System
|
---|
860 | --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
|
---|
861 | --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
|
---|
862 | --with-libvncserver-config=CMD use CMD as libvncserver-config
|
---|
863 | --with-libvncserver make rdp2vnc
|
---|
864 | --with-libao=DIR look for libao at DIR/include, DIR/lib
|
---|
865 | --with-sound select sound system ("oss", "sgi", "sun" or "libao")
|
---|
866 | --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
|
---|
867 | --with-ipv6 enable IPv6-support
|
---|
868 | --with-debug enable protocol debugging output
|
---|
869 | --with-debug-kbd enable debugging of keyboard handling
|
---|
870 | --with-debug-rdp5 enable debugging of RDP5 code
|
---|
871 | --with-debug-clipboard enable debugging of clipboard code
|
---|
872 | --with-debug-channel enable debugging of virtual channel code
|
---|
873 |
|
---|
874 | Some influential environment variables:
|
---|
875 | CC C compiler command
|
---|
876 | CFLAGS C compiler flags
|
---|
877 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
|
---|
878 | nonstandard directory <lib dir>
|
---|
879 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
|
---|
880 | headers in a nonstandard directory <include dir>
|
---|
881 | CPP C preprocessor
|
---|
882 |
|
---|
883 | Use these variables to override the choices made by `configure' or to help
|
---|
884 | it to find libraries and programs with nonstandard names/locations.
|
---|
885 |
|
---|
886 | _ACEOF
|
---|
887 | fi
|
---|
888 |
|
---|
889 | if test "$ac_init_help" = "recursive"; then
|
---|
890 | # If there are subdirs, report their specific --help.
|
---|
891 | ac_popdir=`pwd`
|
---|
892 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
|
---|
893 | test -d $ac_dir || continue
|
---|
894 | ac_builddir=.
|
---|
895 |
|
---|
896 | if test "$ac_dir" != .; then
|
---|
897 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
898 | # A "../" for each directory in $ac_dir_suffix.
|
---|
899 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
900 | else
|
---|
901 | ac_dir_suffix= ac_top_builddir=
|
---|
902 | fi
|
---|
903 |
|
---|
904 | case $srcdir in
|
---|
905 | .) # No --srcdir option. We are building in place.
|
---|
906 | ac_srcdir=.
|
---|
907 | if test -z "$ac_top_builddir"; then
|
---|
908 | ac_top_srcdir=.
|
---|
909 | else
|
---|
910 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
911 | fi ;;
|
---|
912 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
913 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
914 | ac_top_srcdir=$srcdir ;;
|
---|
915 | *) # Relative path.
|
---|
916 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
917 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
918 | esac
|
---|
919 |
|
---|
920 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
921 | # the directories may not exist.
|
---|
922 | case `pwd` in
|
---|
923 | .) ac_abs_builddir="$ac_dir";;
|
---|
924 | *)
|
---|
925 | case "$ac_dir" in
|
---|
926 | .) ac_abs_builddir=`pwd`;;
|
---|
927 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
928 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
929 | esac;;
|
---|
930 | esac
|
---|
931 | case $ac_abs_builddir in
|
---|
932 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
933 | *)
|
---|
934 | case ${ac_top_builddir}. in
|
---|
935 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
936 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
937 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
938 | esac;;
|
---|
939 | esac
|
---|
940 | case $ac_abs_builddir in
|
---|
941 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
942 | *)
|
---|
943 | case $ac_srcdir in
|
---|
944 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
945 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
946 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
947 | esac;;
|
---|
948 | esac
|
---|
949 | case $ac_abs_builddir in
|
---|
950 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
951 | *)
|
---|
952 | case $ac_top_srcdir in
|
---|
953 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
954 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
955 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
956 | esac;;
|
---|
957 | esac
|
---|
958 |
|
---|
959 | cd $ac_dir
|
---|
960 | # Check for guested configure; otherwise get Cygnus style configure.
|
---|
961 | if test -f $ac_srcdir/configure.gnu; then
|
---|
962 | echo
|
---|
963 | $SHELL $ac_srcdir/configure.gnu --help=recursive
|
---|
964 | elif test -f $ac_srcdir/configure; then
|
---|
965 | echo
|
---|
966 | $SHELL $ac_srcdir/configure --help=recursive
|
---|
967 | elif test -f $ac_srcdir/configure.ac ||
|
---|
968 | test -f $ac_srcdir/configure.in; then
|
---|
969 | echo
|
---|
970 | $ac_configure --help
|
---|
971 | else
|
---|
972 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
|
---|
973 | fi
|
---|
974 | cd $ac_popdir
|
---|
975 | done
|
---|
976 | fi
|
---|
977 |
|
---|
978 | test -n "$ac_init_help" && exit 0
|
---|
979 | if $ac_init_version; then
|
---|
980 | cat <<\_ACEOF
|
---|
981 | rdesktop configure 1.5.0
|
---|
982 | generated by GNU Autoconf 2.59
|
---|
983 |
|
---|
984 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
985 | This configure script is free software; the Free Software Foundation
|
---|
986 | gives unlimited permission to copy, distribute and modify it.
|
---|
987 | _ACEOF
|
---|
988 | exit 0
|
---|
989 | fi
|
---|
990 | exec 5>config.log
|
---|
991 | cat >&5 <<_ACEOF
|
---|
992 | This file contains any messages produced by compilers while
|
---|
993 | running configure, to aid debugging if configure makes a mistake.
|
---|
994 |
|
---|
995 | It was created by rdesktop $as_me 1.5.0, which was
|
---|
996 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
997 |
|
---|
998 | $ $0 $@
|
---|
999 |
|
---|
1000 | _ACEOF
|
---|
1001 | {
|
---|
1002 | cat <<_ASUNAME
|
---|
1003 | ## --------- ##
|
---|
1004 | ## Platform. ##
|
---|
1005 | ## --------- ##
|
---|
1006 |
|
---|
1007 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
|
---|
1008 | uname -m = `(uname -m) 2>/dev/null || echo unknown`
|
---|
1009 | uname -r = `(uname -r) 2>/dev/null || echo unknown`
|
---|
1010 | uname -s = `(uname -s) 2>/dev/null || echo unknown`
|
---|
1011 | uname -v = `(uname -v) 2>/dev/null || echo unknown`
|
---|
1012 |
|
---|
1013 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
|
---|
1014 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
|
---|
1015 |
|
---|
1016 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
|
---|
1017 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
|
---|
1018 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
|
---|
1019 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
|
---|
1020 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
|
---|
1021 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
|
---|
1022 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
|
---|
1023 |
|
---|
1024 | _ASUNAME
|
---|
1025 |
|
---|
1026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1027 | for as_dir in $PATH
|
---|
1028 | do
|
---|
1029 | IFS=$as_save_IFS
|
---|
1030 | test -z "$as_dir" && as_dir=.
|
---|
1031 | echo "PATH: $as_dir"
|
---|
1032 | done
|
---|
1033 |
|
---|
1034 | } >&5
|
---|
1035 |
|
---|
1036 | cat >&5 <<_ACEOF
|
---|
1037 |
|
---|
1038 |
|
---|
1039 | ## ----------- ##
|
---|
1040 | ## Core tests. ##
|
---|
1041 | ## ----------- ##
|
---|
1042 |
|
---|
1043 | _ACEOF
|
---|
1044 |
|
---|
1045 |
|
---|
1046 | # Keep a trace of the command line.
|
---|
1047 | # Strip out --no-create and --no-recursion so they do not pile up.
|
---|
1048 | # Strip out --silent because we don't want to record it for future runs.
|
---|
1049 | # Also quote any args containing shell meta-characters.
|
---|
1050 | # Make two passes to allow for proper duplicate-argument suppression.
|
---|
1051 | ac_configure_args=
|
---|
1052 | ac_configure_args0=
|
---|
1053 | ac_configure_args1=
|
---|
1054 | ac_sep=
|
---|
1055 | ac_must_keep_next=false
|
---|
1056 | for ac_pass in 1 2
|
---|
1057 | do
|
---|
1058 | for ac_arg
|
---|
1059 | do
|
---|
1060 | case $ac_arg in
|
---|
1061 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
|
---|
1062 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
1063 | | -silent | --silent | --silen | --sile | --sil)
|
---|
1064 | continue ;;
|
---|
1065 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1066 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1067 | esac
|
---|
1068 | case $ac_pass in
|
---|
1069 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
|
---|
1070 | 2)
|
---|
1071 | ac_configure_args1="$ac_configure_args1 '$ac_arg'"
|
---|
1072 | if test $ac_must_keep_next = true; then
|
---|
1073 | ac_must_keep_next=false # Got value, back to normal.
|
---|
1074 | else
|
---|
1075 | case $ac_arg in
|
---|
1076 | *=* | --config-cache | -C | -disable-* | --disable-* \
|
---|
1077 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
|
---|
1078 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
|
---|
1079 | | -with-* | --with-* | -without-* | --without-* | --x)
|
---|
1080 | case "$ac_configure_args0 " in
|
---|
1081 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
|
---|
1082 | esac
|
---|
1083 | ;;
|
---|
1084 | -* ) ac_must_keep_next=true ;;
|
---|
1085 | esac
|
---|
1086 | fi
|
---|
1087 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
|
---|
1088 | # Get rid of the leading space.
|
---|
1089 | ac_sep=" "
|
---|
1090 | ;;
|
---|
1091 | esac
|
---|
1092 | done
|
---|
1093 | done
|
---|
1094 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
|
---|
1095 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
|
---|
1096 |
|
---|
1097 | # When interrupted or exit'd, cleanup temporary files, and complete
|
---|
1098 | # config.log. We remove comments because anyway the quotes in there
|
---|
1099 | # would cause problems or look ugly.
|
---|
1100 | # WARNING: Be sure not to use single quotes in there, as some shells,
|
---|
1101 | # such as our DU 5.0 friend, will then `close' the trap.
|
---|
1102 | trap 'exit_status=$?
|
---|
1103 | # Save into config.log some information that might help in debugging.
|
---|
1104 | {
|
---|
1105 | echo
|
---|
1106 |
|
---|
1107 | cat <<\_ASBOX
|
---|
1108 | ## ---------------- ##
|
---|
1109 | ## Cache variables. ##
|
---|
1110 | ## ---------------- ##
|
---|
1111 | _ASBOX
|
---|
1112 | echo
|
---|
1113 | # The following way of writing the cache mishandles newlines in values,
|
---|
1114 | {
|
---|
1115 | (set) 2>&1 |
|
---|
1116 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
|
---|
1117 | *ac_space=\ *)
|
---|
1118 | sed -n \
|
---|
1119 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
|
---|
1120 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
|
---|
1121 | ;;
|
---|
1122 | *)
|
---|
1123 | sed -n \
|
---|
1124 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
1125 | ;;
|
---|
1126 | esac;
|
---|
1127 | }
|
---|
1128 | echo
|
---|
1129 |
|
---|
1130 | cat <<\_ASBOX
|
---|
1131 | ## ----------------- ##
|
---|
1132 | ## Output variables. ##
|
---|
1133 | ## ----------------- ##
|
---|
1134 | _ASBOX
|
---|
1135 | echo
|
---|
1136 | for ac_var in $ac_subst_vars
|
---|
1137 | do
|
---|
1138 | eval ac_val=$`echo $ac_var`
|
---|
1139 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1140 | done | sort
|
---|
1141 | echo
|
---|
1142 |
|
---|
1143 | if test -n "$ac_subst_files"; then
|
---|
1144 | cat <<\_ASBOX
|
---|
1145 | ## ------------- ##
|
---|
1146 | ## Output files. ##
|
---|
1147 | ## ------------- ##
|
---|
1148 | _ASBOX
|
---|
1149 | echo
|
---|
1150 | for ac_var in $ac_subst_files
|
---|
1151 | do
|
---|
1152 | eval ac_val=$`echo $ac_var`
|
---|
1153 | echo "$ac_var='"'"'$ac_val'"'"'"
|
---|
1154 | done | sort
|
---|
1155 | echo
|
---|
1156 | fi
|
---|
1157 |
|
---|
1158 | if test -s confdefs.h; then
|
---|
1159 | cat <<\_ASBOX
|
---|
1160 | ## ----------- ##
|
---|
1161 | ## confdefs.h. ##
|
---|
1162 | ## ----------- ##
|
---|
1163 | _ASBOX
|
---|
1164 | echo
|
---|
1165 | sed "/^$/d" confdefs.h | sort
|
---|
1166 | echo
|
---|
1167 | fi
|
---|
1168 | test "$ac_signal" != 0 &&
|
---|
1169 | echo "$as_me: caught signal $ac_signal"
|
---|
1170 | echo "$as_me: exit $exit_status"
|
---|
1171 | } >&5
|
---|
1172 | rm -f core *.core &&
|
---|
1173 | rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
|
---|
1174 | exit $exit_status
|
---|
1175 | ' 0
|
---|
1176 | for ac_signal in 1 2 13 15; do
|
---|
1177 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
|
---|
1178 | done
|
---|
1179 | ac_signal=0
|
---|
1180 |
|
---|
1181 | # confdefs.h avoids OS command line length limits that DEFS can exceed.
|
---|
1182 | rm -rf conftest* confdefs.h
|
---|
1183 | # AIX cpp loses on an empty file, so make sure it contains at least a newline.
|
---|
1184 | echo >confdefs.h
|
---|
1185 |
|
---|
1186 | # Predefined preprocessor variables.
|
---|
1187 |
|
---|
1188 | cat >>confdefs.h <<_ACEOF
|
---|
1189 | #define PACKAGE_NAME "$PACKAGE_NAME"
|
---|
1190 | _ACEOF
|
---|
1191 |
|
---|
1192 |
|
---|
1193 | cat >>confdefs.h <<_ACEOF
|
---|
1194 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
|
---|
1195 | _ACEOF
|
---|
1196 |
|
---|
1197 |
|
---|
1198 | cat >>confdefs.h <<_ACEOF
|
---|
1199 | #define PACKAGE_VERSION "$PACKAGE_VERSION"
|
---|
1200 | _ACEOF
|
---|
1201 |
|
---|
1202 |
|
---|
1203 | cat >>confdefs.h <<_ACEOF
|
---|
1204 | #define PACKAGE_STRING "$PACKAGE_STRING"
|
---|
1205 | _ACEOF
|
---|
1206 |
|
---|
1207 |
|
---|
1208 | cat >>confdefs.h <<_ACEOF
|
---|
1209 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
|
---|
1210 | _ACEOF
|
---|
1211 |
|
---|
1212 |
|
---|
1213 | # Let the site file select an alternate cache file if it wants to.
|
---|
1214 | # Prefer explicitly selected file to automatically selected ones.
|
---|
1215 | if test -z "$CONFIG_SITE"; then
|
---|
1216 | if test "x$prefix" != xNONE; then
|
---|
1217 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
|
---|
1218 | else
|
---|
1219 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
|
---|
1220 | fi
|
---|
1221 | fi
|
---|
1222 | for ac_site_file in $CONFIG_SITE; do
|
---|
1223 | if test -r "$ac_site_file"; then
|
---|
1224 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
|
---|
1225 | echo "$as_me: loading site script $ac_site_file" >&6;}
|
---|
1226 | sed 's/^/| /' "$ac_site_file" >&5
|
---|
1227 | . "$ac_site_file"
|
---|
1228 | fi
|
---|
1229 | done
|
---|
1230 |
|
---|
1231 | if test -r "$cache_file"; then
|
---|
1232 | # Some versions of bash will fail to source /dev/null (special
|
---|
1233 | # files actually), so we avoid doing that.
|
---|
1234 | if test -f "$cache_file"; then
|
---|
1235 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5
|
---|
1236 | echo "$as_me: loading cache $cache_file" >&6;}
|
---|
1237 | case $cache_file in
|
---|
1238 | [\\/]* | ?:[\\/]* ) . $cache_file;;
|
---|
1239 | *) . ./$cache_file;;
|
---|
1240 | esac
|
---|
1241 | fi
|
---|
1242 | else
|
---|
1243 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5
|
---|
1244 | echo "$as_me: creating cache $cache_file" >&6;}
|
---|
1245 | >$cache_file
|
---|
1246 | fi
|
---|
1247 |
|
---|
1248 | # Check that the precious variables saved in the cache have kept the same
|
---|
1249 | # value.
|
---|
1250 | ac_cache_corrupted=false
|
---|
1251 | for ac_var in `(set) 2>&1 |
|
---|
1252 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
|
---|
1253 | eval ac_old_set=\$ac_cv_env_${ac_var}_set
|
---|
1254 | eval ac_new_set=\$ac_env_${ac_var}_set
|
---|
1255 | eval ac_old_val="\$ac_cv_env_${ac_var}_value"
|
---|
1256 | eval ac_new_val="\$ac_env_${ac_var}_value"
|
---|
1257 | case $ac_old_set,$ac_new_set in
|
---|
1258 | set,)
|
---|
1259 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
|
---|
1260 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
|
---|
1261 | ac_cache_corrupted=: ;;
|
---|
1262 | ,set)
|
---|
1263 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
|
---|
1264 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
|
---|
1265 | ac_cache_corrupted=: ;;
|
---|
1266 | ,);;
|
---|
1267 | *)
|
---|
1268 | if test "x$ac_old_val" != "x$ac_new_val"; then
|
---|
1269 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
|
---|
1270 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
|
---|
1271 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
|
---|
1272 | echo "$as_me: former value: $ac_old_val" >&2;}
|
---|
1273 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
|
---|
1274 | echo "$as_me: current value: $ac_new_val" >&2;}
|
---|
1275 | ac_cache_corrupted=:
|
---|
1276 | fi;;
|
---|
1277 | esac
|
---|
1278 | # Pass precious variables to config.status.
|
---|
1279 | if test "$ac_new_set" = set; then
|
---|
1280 | case $ac_new_val in
|
---|
1281 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
|
---|
1282 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
|
---|
1283 | *) ac_arg=$ac_var=$ac_new_val ;;
|
---|
1284 | esac
|
---|
1285 | case " $ac_configure_args " in
|
---|
1286 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
|
---|
1287 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
|
---|
1288 | esac
|
---|
1289 | fi
|
---|
1290 | done
|
---|
1291 | if $ac_cache_corrupted; then
|
---|
1292 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
|
---|
1293 | echo "$as_me: error: changes in the environment can compromise the build" >&2;}
|
---|
1294 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
|
---|
1295 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
|
---|
1296 | { (exit 1); exit 1; }; }
|
---|
1297 | fi
|
---|
1298 |
|
---|
1299 | ac_ext=c
|
---|
1300 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1304 |
|
---|
1305 |
|
---|
1306 |
|
---|
1307 |
|
---|
1308 |
|
---|
1309 |
|
---|
1310 |
|
---|
1311 |
|
---|
1312 |
|
---|
1313 |
|
---|
1314 |
|
---|
1315 |
|
---|
1316 |
|
---|
1317 |
|
---|
1318 |
|
---|
1319 |
|
---|
1320 |
|
---|
1321 |
|
---|
1322 |
|
---|
1323 |
|
---|
1324 |
|
---|
1325 |
|
---|
1326 |
|
---|
1327 |
|
---|
1328 |
|
---|
1329 |
|
---|
1330 |
|
---|
1331 |
|
---|
1332 |
|
---|
1333 |
|
---|
1334 | ac_ext=c
|
---|
1335 | ac_cpp='$CPP $CPPFLAGS'
|
---|
1336 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
1337 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
1338 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
1339 | if test -n "$ac_tool_prefix"; then
|
---|
1340 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
|
---|
1341 | set dummy ${ac_tool_prefix}gcc; ac_word=$2
|
---|
1342 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1343 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1344 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1345 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1346 | else
|
---|
1347 | if test -n "$CC"; then
|
---|
1348 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1349 | else
|
---|
1350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1351 | for as_dir in $PATH
|
---|
1352 | do
|
---|
1353 | IFS=$as_save_IFS
|
---|
1354 | test -z "$as_dir" && as_dir=.
|
---|
1355 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1356 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1357 | ac_cv_prog_CC="${ac_tool_prefix}gcc"
|
---|
1358 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1359 | break 2
|
---|
1360 | fi
|
---|
1361 | done
|
---|
1362 | done
|
---|
1363 |
|
---|
1364 | fi
|
---|
1365 | fi
|
---|
1366 | CC=$ac_cv_prog_CC
|
---|
1367 | if test -n "$CC"; then
|
---|
1368 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1369 | echo "${ECHO_T}$CC" >&6
|
---|
1370 | else
|
---|
1371 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1372 | echo "${ECHO_T}no" >&6
|
---|
1373 | fi
|
---|
1374 |
|
---|
1375 | fi
|
---|
1376 | if test -z "$ac_cv_prog_CC"; then
|
---|
1377 | ac_ct_CC=$CC
|
---|
1378 | # Extract the first word of "gcc", so it can be a program name with args.
|
---|
1379 | set dummy gcc; ac_word=$2
|
---|
1380 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1381 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1382 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1383 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1384 | else
|
---|
1385 | if test -n "$ac_ct_CC"; then
|
---|
1386 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1387 | else
|
---|
1388 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1389 | for as_dir in $PATH
|
---|
1390 | do
|
---|
1391 | IFS=$as_save_IFS
|
---|
1392 | test -z "$as_dir" && as_dir=.
|
---|
1393 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1394 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1395 | ac_cv_prog_ac_ct_CC="gcc"
|
---|
1396 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1397 | break 2
|
---|
1398 | fi
|
---|
1399 | done
|
---|
1400 | done
|
---|
1401 |
|
---|
1402 | fi
|
---|
1403 | fi
|
---|
1404 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1405 | if test -n "$ac_ct_CC"; then
|
---|
1406 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1407 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1408 | else
|
---|
1409 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1410 | echo "${ECHO_T}no" >&6
|
---|
1411 | fi
|
---|
1412 |
|
---|
1413 | CC=$ac_ct_CC
|
---|
1414 | else
|
---|
1415 | CC="$ac_cv_prog_CC"
|
---|
1416 | fi
|
---|
1417 |
|
---|
1418 | if test -z "$CC"; then
|
---|
1419 | if test -n "$ac_tool_prefix"; then
|
---|
1420 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
|
---|
1421 | set dummy ${ac_tool_prefix}cc; ac_word=$2
|
---|
1422 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1423 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1424 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1425 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1426 | else
|
---|
1427 | if test -n "$CC"; then
|
---|
1428 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1429 | else
|
---|
1430 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1431 | for as_dir in $PATH
|
---|
1432 | do
|
---|
1433 | IFS=$as_save_IFS
|
---|
1434 | test -z "$as_dir" && as_dir=.
|
---|
1435 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1436 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1437 | ac_cv_prog_CC="${ac_tool_prefix}cc"
|
---|
1438 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1439 | break 2
|
---|
1440 | fi
|
---|
1441 | done
|
---|
1442 | done
|
---|
1443 |
|
---|
1444 | fi
|
---|
1445 | fi
|
---|
1446 | CC=$ac_cv_prog_CC
|
---|
1447 | if test -n "$CC"; then
|
---|
1448 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1449 | echo "${ECHO_T}$CC" >&6
|
---|
1450 | else
|
---|
1451 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1452 | echo "${ECHO_T}no" >&6
|
---|
1453 | fi
|
---|
1454 |
|
---|
1455 | fi
|
---|
1456 | if test -z "$ac_cv_prog_CC"; then
|
---|
1457 | ac_ct_CC=$CC
|
---|
1458 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1459 | set dummy cc; ac_word=$2
|
---|
1460 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1461 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1462 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1463 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1464 | else
|
---|
1465 | if test -n "$ac_ct_CC"; then
|
---|
1466 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1467 | else
|
---|
1468 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1469 | for as_dir in $PATH
|
---|
1470 | do
|
---|
1471 | IFS=$as_save_IFS
|
---|
1472 | test -z "$as_dir" && as_dir=.
|
---|
1473 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1474 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1475 | ac_cv_prog_ac_ct_CC="cc"
|
---|
1476 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1477 | break 2
|
---|
1478 | fi
|
---|
1479 | done
|
---|
1480 | done
|
---|
1481 |
|
---|
1482 | fi
|
---|
1483 | fi
|
---|
1484 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1485 | if test -n "$ac_ct_CC"; then
|
---|
1486 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1487 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1488 | else
|
---|
1489 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1490 | echo "${ECHO_T}no" >&6
|
---|
1491 | fi
|
---|
1492 |
|
---|
1493 | CC=$ac_ct_CC
|
---|
1494 | else
|
---|
1495 | CC="$ac_cv_prog_CC"
|
---|
1496 | fi
|
---|
1497 |
|
---|
1498 | fi
|
---|
1499 | if test -z "$CC"; then
|
---|
1500 | # Extract the first word of "cc", so it can be a program name with args.
|
---|
1501 | set dummy cc; ac_word=$2
|
---|
1502 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1503 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1504 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1505 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1506 | else
|
---|
1507 | if test -n "$CC"; then
|
---|
1508 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1509 | else
|
---|
1510 | ac_prog_rejected=no
|
---|
1511 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1512 | for as_dir in $PATH
|
---|
1513 | do
|
---|
1514 | IFS=$as_save_IFS
|
---|
1515 | test -z "$as_dir" && as_dir=.
|
---|
1516 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1517 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1518 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
|
---|
1519 | ac_prog_rejected=yes
|
---|
1520 | continue
|
---|
1521 | fi
|
---|
1522 | ac_cv_prog_CC="cc"
|
---|
1523 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1524 | break 2
|
---|
1525 | fi
|
---|
1526 | done
|
---|
1527 | done
|
---|
1528 |
|
---|
1529 | if test $ac_prog_rejected = yes; then
|
---|
1530 | # We found a bogon in the path, so make sure we never use it.
|
---|
1531 | set dummy $ac_cv_prog_CC
|
---|
1532 | shift
|
---|
1533 | if test $# != 0; then
|
---|
1534 | # We chose a different compiler from the bogus one.
|
---|
1535 | # However, it has the same basename, so the bogon will be chosen
|
---|
1536 | # first if we set CC to just the basename; use the full file name.
|
---|
1537 | shift
|
---|
1538 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
|
---|
1539 | fi
|
---|
1540 | fi
|
---|
1541 | fi
|
---|
1542 | fi
|
---|
1543 | CC=$ac_cv_prog_CC
|
---|
1544 | if test -n "$CC"; then
|
---|
1545 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1546 | echo "${ECHO_T}$CC" >&6
|
---|
1547 | else
|
---|
1548 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1549 | echo "${ECHO_T}no" >&6
|
---|
1550 | fi
|
---|
1551 |
|
---|
1552 | fi
|
---|
1553 | if test -z "$CC"; then
|
---|
1554 | if test -n "$ac_tool_prefix"; then
|
---|
1555 | for ac_prog in cl
|
---|
1556 | do
|
---|
1557 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
|
---|
1558 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2
|
---|
1559 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1561 | if test "${ac_cv_prog_CC+set}" = set; then
|
---|
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1563 | else
|
---|
1564 | if test -n "$CC"; then
|
---|
1565 | ac_cv_prog_CC="$CC" # Let the user override the test.
|
---|
1566 | else
|
---|
1567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1568 | for as_dir in $PATH
|
---|
1569 | do
|
---|
1570 | IFS=$as_save_IFS
|
---|
1571 | test -z "$as_dir" && as_dir=.
|
---|
1572 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1574 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
|
---|
1575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1576 | break 2
|
---|
1577 | fi
|
---|
1578 | done
|
---|
1579 | done
|
---|
1580 |
|
---|
1581 | fi
|
---|
1582 | fi
|
---|
1583 | CC=$ac_cv_prog_CC
|
---|
1584 | if test -n "$CC"; then
|
---|
1585 | echo "$as_me:$LINENO: result: $CC" >&5
|
---|
1586 | echo "${ECHO_T}$CC" >&6
|
---|
1587 | else
|
---|
1588 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1589 | echo "${ECHO_T}no" >&6
|
---|
1590 | fi
|
---|
1591 |
|
---|
1592 | test -n "$CC" && break
|
---|
1593 | done
|
---|
1594 | fi
|
---|
1595 | if test -z "$CC"; then
|
---|
1596 | ac_ct_CC=$CC
|
---|
1597 | for ac_prog in cl
|
---|
1598 | do
|
---|
1599 | # Extract the first word of "$ac_prog", so it can be a program name with args.
|
---|
1600 | set dummy $ac_prog; ac_word=$2
|
---|
1601 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
1602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
1603 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
|
---|
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1605 | else
|
---|
1606 | if test -n "$ac_ct_CC"; then
|
---|
1607 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
|
---|
1608 | else
|
---|
1609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
1610 | for as_dir in $PATH
|
---|
1611 | do
|
---|
1612 | IFS=$as_save_IFS
|
---|
1613 | test -z "$as_dir" && as_dir=.
|
---|
1614 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
1615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
1616 | ac_cv_prog_ac_ct_CC="$ac_prog"
|
---|
1617 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
1618 | break 2
|
---|
1619 | fi
|
---|
1620 | done
|
---|
1621 | done
|
---|
1622 |
|
---|
1623 | fi
|
---|
1624 | fi
|
---|
1625 | ac_ct_CC=$ac_cv_prog_ac_ct_CC
|
---|
1626 | if test -n "$ac_ct_CC"; then
|
---|
1627 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
|
---|
1628 | echo "${ECHO_T}$ac_ct_CC" >&6
|
---|
1629 | else
|
---|
1630 | echo "$as_me:$LINENO: result: no" >&5
|
---|
1631 | echo "${ECHO_T}no" >&6
|
---|
1632 | fi
|
---|
1633 |
|
---|
1634 | test -n "$ac_ct_CC" && break
|
---|
1635 | done
|
---|
1636 |
|
---|
1637 | CC=$ac_ct_CC
|
---|
1638 | fi
|
---|
1639 |
|
---|
1640 | fi
|
---|
1641 |
|
---|
1642 |
|
---|
1643 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
|
---|
1644 | See \`config.log' for more details." >&5
|
---|
1645 | echo "$as_me: error: no acceptable C compiler found in \$PATH
|
---|
1646 | See \`config.log' for more details." >&2;}
|
---|
1647 | { (exit 1); exit 1; }; }
|
---|
1648 |
|
---|
1649 | # Provide some information about the compiler.
|
---|
1650 | echo "$as_me:$LINENO:" \
|
---|
1651 | "checking for C compiler version" >&5
|
---|
1652 | ac_compiler=`set X $ac_compile; echo $2`
|
---|
1653 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
|
---|
1654 | (eval $ac_compiler --version </dev/null >&5) 2>&5
|
---|
1655 | ac_status=$?
|
---|
1656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1657 | (exit $ac_status); }
|
---|
1658 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
|
---|
1659 | (eval $ac_compiler -v </dev/null >&5) 2>&5
|
---|
1660 | ac_status=$?
|
---|
1661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1662 | (exit $ac_status); }
|
---|
1663 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
|
---|
1664 | (eval $ac_compiler -V </dev/null >&5) 2>&5
|
---|
1665 | ac_status=$?
|
---|
1666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1667 | (exit $ac_status); }
|
---|
1668 |
|
---|
1669 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1670 | /* confdefs.h. */
|
---|
1671 | _ACEOF
|
---|
1672 | cat confdefs.h >>conftest.$ac_ext
|
---|
1673 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1674 | /* end confdefs.h. */
|
---|
1675 |
|
---|
1676 | int
|
---|
1677 | main ()
|
---|
1678 | {
|
---|
1679 |
|
---|
1680 | ;
|
---|
1681 | return 0;
|
---|
1682 | }
|
---|
1683 | _ACEOF
|
---|
1684 | ac_clean_files_save=$ac_clean_files
|
---|
1685 | ac_clean_files="$ac_clean_files a.out a.exe b.out"
|
---|
1686 | # Try to create an executable without -o first, disregard a.out.
|
---|
1687 | # It will help us diagnose broken compilers, and finding out an intuition
|
---|
1688 | # of exeext.
|
---|
1689 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
|
---|
1690 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
|
---|
1691 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
|
---|
1692 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
|
---|
1693 | (eval $ac_link_default) 2>&5
|
---|
1694 | ac_status=$?
|
---|
1695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1696 | (exit $ac_status); }; then
|
---|
1697 | # Find the output, starting from the most likely. This scheme is
|
---|
1698 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last
|
---|
1699 | # resort.
|
---|
1700 |
|
---|
1701 | # Be careful to initialize this variable, since it used to be cached.
|
---|
1702 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
|
---|
1703 | ac_cv_exeext=
|
---|
1704 | # b.out is created by i960 compilers.
|
---|
1705 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
|
---|
1706 | do
|
---|
1707 | test -f "$ac_file" || continue
|
---|
1708 | case $ac_file in
|
---|
1709 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
|
---|
1710 | ;;
|
---|
1711 | conftest.$ac_ext )
|
---|
1712 | # This is the source file.
|
---|
1713 | ;;
|
---|
1714 | [ab].out )
|
---|
1715 | # We found the default executable, but exeext='' is most
|
---|
1716 | # certainly right.
|
---|
1717 | break;;
|
---|
1718 | *.* )
|
---|
1719 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1720 | # FIXME: I believe we export ac_cv_exeext for Libtool,
|
---|
1721 | # but it would be cool to find out if it's true. Does anybody
|
---|
1722 | # maintain Libtool? --akim.
|
---|
1723 | export ac_cv_exeext
|
---|
1724 | break;;
|
---|
1725 | * )
|
---|
1726 | break;;
|
---|
1727 | esac
|
---|
1728 | done
|
---|
1729 | else
|
---|
1730 | echo "$as_me: failed program was:" >&5
|
---|
1731 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1732 |
|
---|
1733 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables
|
---|
1734 | See \`config.log' for more details." >&5
|
---|
1735 | echo "$as_me: error: C compiler cannot create executables
|
---|
1736 | See \`config.log' for more details." >&2;}
|
---|
1737 | { (exit 77); exit 77; }; }
|
---|
1738 | fi
|
---|
1739 |
|
---|
1740 | ac_exeext=$ac_cv_exeext
|
---|
1741 | echo "$as_me:$LINENO: result: $ac_file" >&5
|
---|
1742 | echo "${ECHO_T}$ac_file" >&6
|
---|
1743 |
|
---|
1744 | # Check the compiler produces executables we can run. If not, either
|
---|
1745 | # the compiler is broken, or we cross compile.
|
---|
1746 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5
|
---|
1747 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
|
---|
1748 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
|
---|
1749 | # If not cross compiling, check that we can run a simple program.
|
---|
1750 | if test "$cross_compiling" != yes; then
|
---|
1751 | if { ac_try='./$ac_file'
|
---|
1752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1753 | (eval $ac_try) 2>&5
|
---|
1754 | ac_status=$?
|
---|
1755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1756 | (exit $ac_status); }; }; then
|
---|
1757 | cross_compiling=no
|
---|
1758 | else
|
---|
1759 | if test "$cross_compiling" = maybe; then
|
---|
1760 | cross_compiling=yes
|
---|
1761 | else
|
---|
1762 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
|
---|
1763 | If you meant to cross compile, use \`--host'.
|
---|
1764 | See \`config.log' for more details." >&5
|
---|
1765 | echo "$as_me: error: cannot run C compiled programs.
|
---|
1766 | If you meant to cross compile, use \`--host'.
|
---|
1767 | See \`config.log' for more details." >&2;}
|
---|
1768 | { (exit 1); exit 1; }; }
|
---|
1769 | fi
|
---|
1770 | fi
|
---|
1771 | fi
|
---|
1772 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
1773 | echo "${ECHO_T}yes" >&6
|
---|
1774 |
|
---|
1775 | rm -f a.out a.exe conftest$ac_cv_exeext b.out
|
---|
1776 | ac_clean_files=$ac_clean_files_save
|
---|
1777 | # Check the compiler produces executables we can run. If not, either
|
---|
1778 | # the compiler is broken, or we cross compile.
|
---|
1779 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
|
---|
1780 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
|
---|
1781 | echo "$as_me:$LINENO: result: $cross_compiling" >&5
|
---|
1782 | echo "${ECHO_T}$cross_compiling" >&6
|
---|
1783 |
|
---|
1784 | echo "$as_me:$LINENO: checking for suffix of executables" >&5
|
---|
1785 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
|
---|
1786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
1787 | (eval $ac_link) 2>&5
|
---|
1788 | ac_status=$?
|
---|
1789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1790 | (exit $ac_status); }; then
|
---|
1791 | # If both `conftest.exe' and `conftest' are `present' (well, observable)
|
---|
1792 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
|
---|
1793 | # work properly (i.e., refer to `conftest.exe'), while it won't with
|
---|
1794 | # `rm'.
|
---|
1795 | for ac_file in conftest.exe conftest conftest.*; do
|
---|
1796 | test -f "$ac_file" || continue
|
---|
1797 | case $ac_file in
|
---|
1798 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
|
---|
1799 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
|
---|
1800 | export ac_cv_exeext
|
---|
1801 | break;;
|
---|
1802 | * ) break;;
|
---|
1803 | esac
|
---|
1804 | done
|
---|
1805 | else
|
---|
1806 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
|
---|
1807 | See \`config.log' for more details." >&5
|
---|
1808 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
|
---|
1809 | See \`config.log' for more details." >&2;}
|
---|
1810 | { (exit 1); exit 1; }; }
|
---|
1811 | fi
|
---|
1812 |
|
---|
1813 | rm -f conftest$ac_cv_exeext
|
---|
1814 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
|
---|
1815 | echo "${ECHO_T}$ac_cv_exeext" >&6
|
---|
1816 |
|
---|
1817 | rm -f conftest.$ac_ext
|
---|
1818 | EXEEXT=$ac_cv_exeext
|
---|
1819 | ac_exeext=$EXEEXT
|
---|
1820 | echo "$as_me:$LINENO: checking for suffix of object files" >&5
|
---|
1821 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
|
---|
1822 | if test "${ac_cv_objext+set}" = set; then
|
---|
1823 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1824 | else
|
---|
1825 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1826 | /* confdefs.h. */
|
---|
1827 | _ACEOF
|
---|
1828 | cat confdefs.h >>conftest.$ac_ext
|
---|
1829 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1830 | /* end confdefs.h. */
|
---|
1831 |
|
---|
1832 | int
|
---|
1833 | main ()
|
---|
1834 | {
|
---|
1835 |
|
---|
1836 | ;
|
---|
1837 | return 0;
|
---|
1838 | }
|
---|
1839 | _ACEOF
|
---|
1840 | rm -f conftest.o conftest.obj
|
---|
1841 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1842 | (eval $ac_compile) 2>&5
|
---|
1843 | ac_status=$?
|
---|
1844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1845 | (exit $ac_status); }; then
|
---|
1846 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
|
---|
1847 | case $ac_file in
|
---|
1848 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
|
---|
1849 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
|
---|
1850 | break;;
|
---|
1851 | esac
|
---|
1852 | done
|
---|
1853 | else
|
---|
1854 | echo "$as_me: failed program was:" >&5
|
---|
1855 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1856 |
|
---|
1857 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
|
---|
1858 | See \`config.log' for more details." >&5
|
---|
1859 | echo "$as_me: error: cannot compute suffix of object files: cannot compile
|
---|
1860 | See \`config.log' for more details." >&2;}
|
---|
1861 | { (exit 1); exit 1; }; }
|
---|
1862 | fi
|
---|
1863 |
|
---|
1864 | rm -f conftest.$ac_cv_objext conftest.$ac_ext
|
---|
1865 | fi
|
---|
1866 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
|
---|
1867 | echo "${ECHO_T}$ac_cv_objext" >&6
|
---|
1868 | OBJEXT=$ac_cv_objext
|
---|
1869 | ac_objext=$OBJEXT
|
---|
1870 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
|
---|
1871 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
|
---|
1872 | if test "${ac_cv_c_compiler_gnu+set}" = set; then
|
---|
1873 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1874 | else
|
---|
1875 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1876 | /* confdefs.h. */
|
---|
1877 | _ACEOF
|
---|
1878 | cat confdefs.h >>conftest.$ac_ext
|
---|
1879 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1880 | /* end confdefs.h. */
|
---|
1881 |
|
---|
1882 | int
|
---|
1883 | main ()
|
---|
1884 | {
|
---|
1885 | #ifndef __GNUC__
|
---|
1886 | choke me
|
---|
1887 | #endif
|
---|
1888 |
|
---|
1889 | ;
|
---|
1890 | return 0;
|
---|
1891 | }
|
---|
1892 | _ACEOF
|
---|
1893 | rm -f conftest.$ac_objext
|
---|
1894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1895 | (eval $ac_compile) 2>conftest.er1
|
---|
1896 | ac_status=$?
|
---|
1897 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1898 | rm -f conftest.er1
|
---|
1899 | cat conftest.err >&5
|
---|
1900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1901 | (exit $ac_status); } &&
|
---|
1902 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1903 | || test ! -s conftest.err'
|
---|
1904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1905 | (eval $ac_try) 2>&5
|
---|
1906 | ac_status=$?
|
---|
1907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1908 | (exit $ac_status); }; } &&
|
---|
1909 | { ac_try='test -s conftest.$ac_objext'
|
---|
1910 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1911 | (eval $ac_try) 2>&5
|
---|
1912 | ac_status=$?
|
---|
1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1914 | (exit $ac_status); }; }; then
|
---|
1915 | ac_compiler_gnu=yes
|
---|
1916 | else
|
---|
1917 | echo "$as_me: failed program was:" >&5
|
---|
1918 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1919 |
|
---|
1920 | ac_compiler_gnu=no
|
---|
1921 | fi
|
---|
1922 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1923 | ac_cv_c_compiler_gnu=$ac_compiler_gnu
|
---|
1924 |
|
---|
1925 | fi
|
---|
1926 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
|
---|
1927 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
|
---|
1928 | GCC=`test $ac_compiler_gnu = yes && echo yes`
|
---|
1929 | ac_test_CFLAGS=${CFLAGS+set}
|
---|
1930 | ac_save_CFLAGS=$CFLAGS
|
---|
1931 | CFLAGS="-g"
|
---|
1932 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
|
---|
1933 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
|
---|
1934 | if test "${ac_cv_prog_cc_g+set}" = set; then
|
---|
1935 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
1936 | else
|
---|
1937 | cat >conftest.$ac_ext <<_ACEOF
|
---|
1938 | /* confdefs.h. */
|
---|
1939 | _ACEOF
|
---|
1940 | cat confdefs.h >>conftest.$ac_ext
|
---|
1941 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
1942 | /* end confdefs.h. */
|
---|
1943 |
|
---|
1944 | int
|
---|
1945 | main ()
|
---|
1946 | {
|
---|
1947 |
|
---|
1948 | ;
|
---|
1949 | return 0;
|
---|
1950 | }
|
---|
1951 | _ACEOF
|
---|
1952 | rm -f conftest.$ac_objext
|
---|
1953 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
1954 | (eval $ac_compile) 2>conftest.er1
|
---|
1955 | ac_status=$?
|
---|
1956 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
1957 | rm -f conftest.er1
|
---|
1958 | cat conftest.err >&5
|
---|
1959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1960 | (exit $ac_status); } &&
|
---|
1961 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
1962 | || test ! -s conftest.err'
|
---|
1963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1964 | (eval $ac_try) 2>&5
|
---|
1965 | ac_status=$?
|
---|
1966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1967 | (exit $ac_status); }; } &&
|
---|
1968 | { ac_try='test -s conftest.$ac_objext'
|
---|
1969 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
1970 | (eval $ac_try) 2>&5
|
---|
1971 | ac_status=$?
|
---|
1972 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
1973 | (exit $ac_status); }; }; then
|
---|
1974 | ac_cv_prog_cc_g=yes
|
---|
1975 | else
|
---|
1976 | echo "$as_me: failed program was:" >&5
|
---|
1977 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
1978 |
|
---|
1979 | ac_cv_prog_cc_g=no
|
---|
1980 | fi
|
---|
1981 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
1982 | fi
|
---|
1983 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
|
---|
1984 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
|
---|
1985 | if test "$ac_test_CFLAGS" = set; then
|
---|
1986 | CFLAGS=$ac_save_CFLAGS
|
---|
1987 | elif test $ac_cv_prog_cc_g = yes; then
|
---|
1988 | if test "$GCC" = yes; then
|
---|
1989 | CFLAGS="-g -O2"
|
---|
1990 | else
|
---|
1991 | CFLAGS="-g"
|
---|
1992 | fi
|
---|
1993 | else
|
---|
1994 | if test "$GCC" = yes; then
|
---|
1995 | CFLAGS="-O2"
|
---|
1996 | else
|
---|
1997 | CFLAGS=
|
---|
1998 | fi
|
---|
1999 | fi
|
---|
2000 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
|
---|
2001 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
|
---|
2002 | if test "${ac_cv_prog_cc_stdc+set}" = set; then
|
---|
2003 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2004 | else
|
---|
2005 | ac_cv_prog_cc_stdc=no
|
---|
2006 | ac_save_CC=$CC
|
---|
2007 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2008 | /* confdefs.h. */
|
---|
2009 | _ACEOF
|
---|
2010 | cat confdefs.h >>conftest.$ac_ext
|
---|
2011 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2012 | /* end confdefs.h. */
|
---|
2013 | #include <stdarg.h>
|
---|
2014 | #include <stdio.h>
|
---|
2015 | #include <sys/types.h>
|
---|
2016 | #include <sys/stat.h>
|
---|
2017 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
|
---|
2018 | struct buf { int x; };
|
---|
2019 | FILE * (*rcsopen) (struct buf *, struct stat *, int);
|
---|
2020 | static char *e (p, i)
|
---|
2021 | char **p;
|
---|
2022 | int i;
|
---|
2023 | {
|
---|
2024 | return p[i];
|
---|
2025 | }
|
---|
2026 | static char *f (char * (*g) (char **, int), char **p, ...)
|
---|
2027 | {
|
---|
2028 | char *s;
|
---|
2029 | va_list v;
|
---|
2030 | va_start (v,p);
|
---|
2031 | s = g (p, va_arg (v,int));
|
---|
2032 | va_end (v);
|
---|
2033 | return s;
|
---|
2034 | }
|
---|
2035 |
|
---|
2036 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
|
---|
2037 | function prototypes and stuff, but not '\xHH' hex character constants.
|
---|
2038 | These don't provoke an error unfortunately, instead are silently treated
|
---|
2039 | as 'x'. The following induces an error, until -std1 is added to get
|
---|
2040 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
|
---|
2041 | array size at least. It's necessary to write '\x00'==0 to get something
|
---|
2042 | that's true only with -std1. */
|
---|
2043 | int osf4_cc_array ['\x00' == 0 ? 1 : -1];
|
---|
2044 |
|
---|
2045 | int test (int i, double x);
|
---|
2046 | struct s1 {int (*f) (int a);};
|
---|
2047 | struct s2 {int (*f) (double a);};
|
---|
2048 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
|
---|
2049 | int argc;
|
---|
2050 | char **argv;
|
---|
2051 | int
|
---|
2052 | main ()
|
---|
2053 | {
|
---|
2054 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
|
---|
2055 | ;
|
---|
2056 | return 0;
|
---|
2057 | }
|
---|
2058 | _ACEOF
|
---|
2059 | # Don't try gcc -ansi; that turns off useful extensions and
|
---|
2060 | # breaks some systems' header files.
|
---|
2061 | # AIX -qlanglvl=ansi
|
---|
2062 | # Ultrix and OSF/1 -std1
|
---|
2063 | # HP-UX 10.20 and later -Ae
|
---|
2064 | # HP-UX older versions -Aa -D_HPUX_SOURCE
|
---|
2065 | # SVR4 -Xc -D__EXTENSIONS__
|
---|
2066 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
|
---|
2067 | do
|
---|
2068 | CC="$ac_save_CC $ac_arg"
|
---|
2069 | rm -f conftest.$ac_objext
|
---|
2070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2071 | (eval $ac_compile) 2>conftest.er1
|
---|
2072 | ac_status=$?
|
---|
2073 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2074 | rm -f conftest.er1
|
---|
2075 | cat conftest.err >&5
|
---|
2076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2077 | (exit $ac_status); } &&
|
---|
2078 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2079 | || test ! -s conftest.err'
|
---|
2080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2081 | (eval $ac_try) 2>&5
|
---|
2082 | ac_status=$?
|
---|
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2084 | (exit $ac_status); }; } &&
|
---|
2085 | { ac_try='test -s conftest.$ac_objext'
|
---|
2086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2087 | (eval $ac_try) 2>&5
|
---|
2088 | ac_status=$?
|
---|
2089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2090 | (exit $ac_status); }; }; then
|
---|
2091 | ac_cv_prog_cc_stdc=$ac_arg
|
---|
2092 | break
|
---|
2093 | else
|
---|
2094 | echo "$as_me: failed program was:" >&5
|
---|
2095 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2096 |
|
---|
2097 | fi
|
---|
2098 | rm -f conftest.err conftest.$ac_objext
|
---|
2099 | done
|
---|
2100 | rm -f conftest.$ac_ext conftest.$ac_objext
|
---|
2101 | CC=$ac_save_CC
|
---|
2102 |
|
---|
2103 | fi
|
---|
2104 |
|
---|
2105 | case "x$ac_cv_prog_cc_stdc" in
|
---|
2106 | x|xno)
|
---|
2107 | echo "$as_me:$LINENO: result: none needed" >&5
|
---|
2108 | echo "${ECHO_T}none needed" >&6 ;;
|
---|
2109 | *)
|
---|
2110 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
|
---|
2111 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
|
---|
2112 | CC="$CC $ac_cv_prog_cc_stdc" ;;
|
---|
2113 | esac
|
---|
2114 |
|
---|
2115 | # Some people use a C++ compiler to compile C. Since we use `exit',
|
---|
2116 | # in C++ we need to declare it. In case someone uses the same compiler
|
---|
2117 | # for both compiling C and C++ we need to have the C++ compiler decide
|
---|
2118 | # the declaration of exit, since it's the most demanding environment.
|
---|
2119 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2120 | #ifndef __cplusplus
|
---|
2121 | choke me
|
---|
2122 | #endif
|
---|
2123 | _ACEOF
|
---|
2124 | rm -f conftest.$ac_objext
|
---|
2125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2126 | (eval $ac_compile) 2>conftest.er1
|
---|
2127 | ac_status=$?
|
---|
2128 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2129 | rm -f conftest.er1
|
---|
2130 | cat conftest.err >&5
|
---|
2131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2132 | (exit $ac_status); } &&
|
---|
2133 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2134 | || test ! -s conftest.err'
|
---|
2135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2136 | (eval $ac_try) 2>&5
|
---|
2137 | ac_status=$?
|
---|
2138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2139 | (exit $ac_status); }; } &&
|
---|
2140 | { ac_try='test -s conftest.$ac_objext'
|
---|
2141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2142 | (eval $ac_try) 2>&5
|
---|
2143 | ac_status=$?
|
---|
2144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2145 | (exit $ac_status); }; }; then
|
---|
2146 | for ac_declaration in \
|
---|
2147 | '' \
|
---|
2148 | 'extern "C" void std::exit (int) throw (); using std::exit;' \
|
---|
2149 | 'extern "C" void std::exit (int); using std::exit;' \
|
---|
2150 | 'extern "C" void exit (int) throw ();' \
|
---|
2151 | 'extern "C" void exit (int);' \
|
---|
2152 | 'void exit (int);'
|
---|
2153 | do
|
---|
2154 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2155 | /* confdefs.h. */
|
---|
2156 | _ACEOF
|
---|
2157 | cat confdefs.h >>conftest.$ac_ext
|
---|
2158 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2159 | /* end confdefs.h. */
|
---|
2160 | $ac_declaration
|
---|
2161 | #include <stdlib.h>
|
---|
2162 | int
|
---|
2163 | main ()
|
---|
2164 | {
|
---|
2165 | exit (42);
|
---|
2166 | ;
|
---|
2167 | return 0;
|
---|
2168 | }
|
---|
2169 | _ACEOF
|
---|
2170 | rm -f conftest.$ac_objext
|
---|
2171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2172 | (eval $ac_compile) 2>conftest.er1
|
---|
2173 | ac_status=$?
|
---|
2174 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2175 | rm -f conftest.er1
|
---|
2176 | cat conftest.err >&5
|
---|
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2178 | (exit $ac_status); } &&
|
---|
2179 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2180 | || test ! -s conftest.err'
|
---|
2181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2182 | (eval $ac_try) 2>&5
|
---|
2183 | ac_status=$?
|
---|
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2185 | (exit $ac_status); }; } &&
|
---|
2186 | { ac_try='test -s conftest.$ac_objext'
|
---|
2187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2188 | (eval $ac_try) 2>&5
|
---|
2189 | ac_status=$?
|
---|
2190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2191 | (exit $ac_status); }; }; then
|
---|
2192 | :
|
---|
2193 | else
|
---|
2194 | echo "$as_me: failed program was:" >&5
|
---|
2195 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2196 |
|
---|
2197 | continue
|
---|
2198 | fi
|
---|
2199 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2200 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2201 | /* confdefs.h. */
|
---|
2202 | _ACEOF
|
---|
2203 | cat confdefs.h >>conftest.$ac_ext
|
---|
2204 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2205 | /* end confdefs.h. */
|
---|
2206 | $ac_declaration
|
---|
2207 | int
|
---|
2208 | main ()
|
---|
2209 | {
|
---|
2210 | exit (42);
|
---|
2211 | ;
|
---|
2212 | return 0;
|
---|
2213 | }
|
---|
2214 | _ACEOF
|
---|
2215 | rm -f conftest.$ac_objext
|
---|
2216 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2217 | (eval $ac_compile) 2>conftest.er1
|
---|
2218 | ac_status=$?
|
---|
2219 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2220 | rm -f conftest.er1
|
---|
2221 | cat conftest.err >&5
|
---|
2222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2223 | (exit $ac_status); } &&
|
---|
2224 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2225 | || test ! -s conftest.err'
|
---|
2226 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2227 | (eval $ac_try) 2>&5
|
---|
2228 | ac_status=$?
|
---|
2229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2230 | (exit $ac_status); }; } &&
|
---|
2231 | { ac_try='test -s conftest.$ac_objext'
|
---|
2232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2233 | (eval $ac_try) 2>&5
|
---|
2234 | ac_status=$?
|
---|
2235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2236 | (exit $ac_status); }; }; then
|
---|
2237 | break
|
---|
2238 | else
|
---|
2239 | echo "$as_me: failed program was:" >&5
|
---|
2240 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2241 |
|
---|
2242 | fi
|
---|
2243 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2244 | done
|
---|
2245 | rm -f conftest*
|
---|
2246 | if test -n "$ac_declaration"; then
|
---|
2247 | echo '#ifdef __cplusplus' >>confdefs.h
|
---|
2248 | echo $ac_declaration >>confdefs.h
|
---|
2249 | echo '#endif' >>confdefs.h
|
---|
2250 | fi
|
---|
2251 |
|
---|
2252 | else
|
---|
2253 | echo "$as_me: failed program was:" >&5
|
---|
2254 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2255 |
|
---|
2256 | fi
|
---|
2257 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2258 | ac_ext=c
|
---|
2259 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2260 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2261 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2262 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2263 |
|
---|
2264 | if test "$GCC" = yes; then
|
---|
2265 | CFLAGS="$CFLAGS -Wall"
|
---|
2266 | fi
|
---|
2267 |
|
---|
2268 | ac_aux_dir=
|
---|
2269 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
|
---|
2270 | if test -f $ac_dir/install-sh; then
|
---|
2271 | ac_aux_dir=$ac_dir
|
---|
2272 | ac_install_sh="$ac_aux_dir/install-sh -c"
|
---|
2273 | break
|
---|
2274 | elif test -f $ac_dir/install.sh; then
|
---|
2275 | ac_aux_dir=$ac_dir
|
---|
2276 | ac_install_sh="$ac_aux_dir/install.sh -c"
|
---|
2277 | break
|
---|
2278 | elif test -f $ac_dir/shtool; then
|
---|
2279 | ac_aux_dir=$ac_dir
|
---|
2280 | ac_install_sh="$ac_aux_dir/shtool install -c"
|
---|
2281 | break
|
---|
2282 | fi
|
---|
2283 | done
|
---|
2284 | if test -z "$ac_aux_dir"; then
|
---|
2285 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
|
---|
2286 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
|
---|
2287 | { (exit 1); exit 1; }; }
|
---|
2288 | fi
|
---|
2289 | ac_config_guess="$SHELL $ac_aux_dir/config.guess"
|
---|
2290 | ac_config_sub="$SHELL $ac_aux_dir/config.sub"
|
---|
2291 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
|
---|
2292 |
|
---|
2293 | # Find a good install program. We prefer a C program (faster),
|
---|
2294 | # so one script is as good as another. But avoid the broken or
|
---|
2295 | # incompatible versions:
|
---|
2296 | # SysV /etc/install, /usr/sbin/install
|
---|
2297 | # SunOS /usr/etc/install
|
---|
2298 | # IRIX /sbin/install
|
---|
2299 | # AIX /bin/install
|
---|
2300 | # AmigaOS /C/install, which installs bootblocks on floppy discs
|
---|
2301 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
|
---|
2302 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args
|
---|
2303 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
|
---|
2304 | # OS/2's system install, which has a completely different semantic
|
---|
2305 | # ./install, which can be erroneously created by make from ./install.sh.
|
---|
2306 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
|
---|
2307 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
|
---|
2308 | if test -z "$INSTALL"; then
|
---|
2309 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2310 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2311 | else
|
---|
2312 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
2313 | for as_dir in $PATH
|
---|
2314 | do
|
---|
2315 | IFS=$as_save_IFS
|
---|
2316 | test -z "$as_dir" && as_dir=.
|
---|
2317 | # Account for people who put trailing slashes in PATH elements.
|
---|
2318 | case $as_dir/ in
|
---|
2319 | ./ | .// | /cC/* | \
|
---|
2320 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
|
---|
2321 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
|
---|
2322 | /usr/ucb/* ) ;;
|
---|
2323 | *)
|
---|
2324 | # OSF1 and SCO ODT 3.0 have their own names for install.
|
---|
2325 | # Don't use installbsd from OSF since it installs stuff as root
|
---|
2326 | # by default.
|
---|
2327 | for ac_prog in ginstall scoinst install; do
|
---|
2328 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
2329 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
|
---|
2330 | if test $ac_prog = install &&
|
---|
2331 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2332 | # AIX install. It has an incompatible calling convention.
|
---|
2333 | :
|
---|
2334 | elif test $ac_prog = install &&
|
---|
2335 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
|
---|
2336 | # program-specific install script used by HP pwplus--don't use.
|
---|
2337 | :
|
---|
2338 | else
|
---|
2339 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
|
---|
2340 | break 3
|
---|
2341 | fi
|
---|
2342 | fi
|
---|
2343 | done
|
---|
2344 | done
|
---|
2345 | ;;
|
---|
2346 | esac
|
---|
2347 | done
|
---|
2348 |
|
---|
2349 |
|
---|
2350 | fi
|
---|
2351 | if test "${ac_cv_path_install+set}" = set; then
|
---|
2352 | INSTALL=$ac_cv_path_install
|
---|
2353 | else
|
---|
2354 | # As a last resort, use the slow shell script. We don't cache a
|
---|
2355 | # path for INSTALL within a source directory, because that will
|
---|
2356 | # break other packages using the cache if that directory is
|
---|
2357 | # removed, or if the path is relative.
|
---|
2358 | INSTALL=$ac_install_sh
|
---|
2359 | fi
|
---|
2360 | fi
|
---|
2361 | echo "$as_me:$LINENO: result: $INSTALL" >&5
|
---|
2362 | echo "${ECHO_T}$INSTALL" >&6
|
---|
2363 |
|
---|
2364 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
|
---|
2365 | # It thinks the first close brace ends the variable substitution.
|
---|
2366 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
|
---|
2367 |
|
---|
2368 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
|
---|
2369 |
|
---|
2370 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
|
---|
2371 |
|
---|
2372 | ac_ext=c
|
---|
2373 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2374 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2375 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2376 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2377 |
|
---|
2378 |
|
---|
2379 | ac_ext=c
|
---|
2380 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2381 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2382 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2383 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2384 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
|
---|
2385 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
|
---|
2386 | # On Suns, sometimes $CPP names a directory.
|
---|
2387 | if test -n "$CPP" && test -d "$CPP"; then
|
---|
2388 | CPP=
|
---|
2389 | fi
|
---|
2390 | if test -z "$CPP"; then
|
---|
2391 | if test "${ac_cv_prog_CPP+set}" = set; then
|
---|
2392 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2393 | else
|
---|
2394 | # Double quotes because CPP needs to be expanded
|
---|
2395 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
|
---|
2396 | do
|
---|
2397 | ac_preproc_ok=false
|
---|
2398 | for ac_c_preproc_warn_flag in '' yes
|
---|
2399 | do
|
---|
2400 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2401 | # with a fresh cross-compiler works.
|
---|
2402 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2403 | # <limits.h> exists even on freestanding compilers.
|
---|
2404 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2405 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2406 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2407 | /* confdefs.h. */
|
---|
2408 | _ACEOF
|
---|
2409 | cat confdefs.h >>conftest.$ac_ext
|
---|
2410 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2411 | /* end confdefs.h. */
|
---|
2412 | #ifdef __STDC__
|
---|
2413 | # include <limits.h>
|
---|
2414 | #else
|
---|
2415 | # include <assert.h>
|
---|
2416 | #endif
|
---|
2417 | Syntax error
|
---|
2418 | _ACEOF
|
---|
2419 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2420 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2421 | ac_status=$?
|
---|
2422 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2423 | rm -f conftest.er1
|
---|
2424 | cat conftest.err >&5
|
---|
2425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2426 | (exit $ac_status); } >/dev/null; then
|
---|
2427 | if test -s conftest.err; then
|
---|
2428 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2429 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2430 | else
|
---|
2431 | ac_cpp_err=
|
---|
2432 | fi
|
---|
2433 | else
|
---|
2434 | ac_cpp_err=yes
|
---|
2435 | fi
|
---|
2436 | if test -z "$ac_cpp_err"; then
|
---|
2437 | :
|
---|
2438 | else
|
---|
2439 | echo "$as_me: failed program was:" >&5
|
---|
2440 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2441 |
|
---|
2442 | # Broken: fails on valid input.
|
---|
2443 | continue
|
---|
2444 | fi
|
---|
2445 | rm -f conftest.err conftest.$ac_ext
|
---|
2446 |
|
---|
2447 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2448 | # can be detected and how.
|
---|
2449 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2450 | /* confdefs.h. */
|
---|
2451 | _ACEOF
|
---|
2452 | cat confdefs.h >>conftest.$ac_ext
|
---|
2453 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2454 | /* end confdefs.h. */
|
---|
2455 | #include <ac_nonexistent.h>
|
---|
2456 | _ACEOF
|
---|
2457 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2458 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2459 | ac_status=$?
|
---|
2460 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2461 | rm -f conftest.er1
|
---|
2462 | cat conftest.err >&5
|
---|
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2464 | (exit $ac_status); } >/dev/null; then
|
---|
2465 | if test -s conftest.err; then
|
---|
2466 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2467 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2468 | else
|
---|
2469 | ac_cpp_err=
|
---|
2470 | fi
|
---|
2471 | else
|
---|
2472 | ac_cpp_err=yes
|
---|
2473 | fi
|
---|
2474 | if test -z "$ac_cpp_err"; then
|
---|
2475 | # Broken: success on invalid input.
|
---|
2476 | continue
|
---|
2477 | else
|
---|
2478 | echo "$as_me: failed program was:" >&5
|
---|
2479 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2480 |
|
---|
2481 | # Passes both tests.
|
---|
2482 | ac_preproc_ok=:
|
---|
2483 | break
|
---|
2484 | fi
|
---|
2485 | rm -f conftest.err conftest.$ac_ext
|
---|
2486 |
|
---|
2487 | done
|
---|
2488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2489 | rm -f conftest.err conftest.$ac_ext
|
---|
2490 | if $ac_preproc_ok; then
|
---|
2491 | break
|
---|
2492 | fi
|
---|
2493 |
|
---|
2494 | done
|
---|
2495 | ac_cv_prog_CPP=$CPP
|
---|
2496 |
|
---|
2497 | fi
|
---|
2498 | CPP=$ac_cv_prog_CPP
|
---|
2499 | else
|
---|
2500 | ac_cv_prog_CPP=$CPP
|
---|
2501 | fi
|
---|
2502 | echo "$as_me:$LINENO: result: $CPP" >&5
|
---|
2503 | echo "${ECHO_T}$CPP" >&6
|
---|
2504 | ac_preproc_ok=false
|
---|
2505 | for ac_c_preproc_warn_flag in '' yes
|
---|
2506 | do
|
---|
2507 | # Use a header file that comes with gcc, so configuring glibc
|
---|
2508 | # with a fresh cross-compiler works.
|
---|
2509 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
2510 | # <limits.h> exists even on freestanding compilers.
|
---|
2511 | # On the NeXT, cc -E runs the code through the compiler's parser,
|
---|
2512 | # not just through cpp. "Syntax error" is here to catch this case.
|
---|
2513 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2514 | /* confdefs.h. */
|
---|
2515 | _ACEOF
|
---|
2516 | cat confdefs.h >>conftest.$ac_ext
|
---|
2517 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2518 | /* end confdefs.h. */
|
---|
2519 | #ifdef __STDC__
|
---|
2520 | # include <limits.h>
|
---|
2521 | #else
|
---|
2522 | # include <assert.h>
|
---|
2523 | #endif
|
---|
2524 | Syntax error
|
---|
2525 | _ACEOF
|
---|
2526 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2527 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2528 | ac_status=$?
|
---|
2529 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2530 | rm -f conftest.er1
|
---|
2531 | cat conftest.err >&5
|
---|
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2533 | (exit $ac_status); } >/dev/null; then
|
---|
2534 | if test -s conftest.err; then
|
---|
2535 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2536 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2537 | else
|
---|
2538 | ac_cpp_err=
|
---|
2539 | fi
|
---|
2540 | else
|
---|
2541 | ac_cpp_err=yes
|
---|
2542 | fi
|
---|
2543 | if test -z "$ac_cpp_err"; then
|
---|
2544 | :
|
---|
2545 | else
|
---|
2546 | echo "$as_me: failed program was:" >&5
|
---|
2547 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2548 |
|
---|
2549 | # Broken: fails on valid input.
|
---|
2550 | continue
|
---|
2551 | fi
|
---|
2552 | rm -f conftest.err conftest.$ac_ext
|
---|
2553 |
|
---|
2554 | # OK, works on sane cases. Now check whether non-existent headers
|
---|
2555 | # can be detected and how.
|
---|
2556 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2557 | /* confdefs.h. */
|
---|
2558 | _ACEOF
|
---|
2559 | cat confdefs.h >>conftest.$ac_ext
|
---|
2560 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2561 | /* end confdefs.h. */
|
---|
2562 | #include <ac_nonexistent.h>
|
---|
2563 | _ACEOF
|
---|
2564 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
2565 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
2566 | ac_status=$?
|
---|
2567 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2568 | rm -f conftest.er1
|
---|
2569 | cat conftest.err >&5
|
---|
2570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2571 | (exit $ac_status); } >/dev/null; then
|
---|
2572 | if test -s conftest.err; then
|
---|
2573 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
2574 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
2575 | else
|
---|
2576 | ac_cpp_err=
|
---|
2577 | fi
|
---|
2578 | else
|
---|
2579 | ac_cpp_err=yes
|
---|
2580 | fi
|
---|
2581 | if test -z "$ac_cpp_err"; then
|
---|
2582 | # Broken: success on invalid input.
|
---|
2583 | continue
|
---|
2584 | else
|
---|
2585 | echo "$as_me: failed program was:" >&5
|
---|
2586 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2587 |
|
---|
2588 | # Passes both tests.
|
---|
2589 | ac_preproc_ok=:
|
---|
2590 | break
|
---|
2591 | fi
|
---|
2592 | rm -f conftest.err conftest.$ac_ext
|
---|
2593 |
|
---|
2594 | done
|
---|
2595 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
|
---|
2596 | rm -f conftest.err conftest.$ac_ext
|
---|
2597 | if $ac_preproc_ok; then
|
---|
2598 | :
|
---|
2599 | else
|
---|
2600 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2601 | See \`config.log' for more details." >&5
|
---|
2602 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
|
---|
2603 | See \`config.log' for more details." >&2;}
|
---|
2604 | { (exit 1); exit 1; }; }
|
---|
2605 | fi
|
---|
2606 |
|
---|
2607 | ac_ext=c
|
---|
2608 | ac_cpp='$CPP $CPPFLAGS'
|
---|
2609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
|
---|
2610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
|
---|
2611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu
|
---|
2612 |
|
---|
2613 |
|
---|
2614 | echo "$as_me:$LINENO: checking for egrep" >&5
|
---|
2615 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6
|
---|
2616 | if test "${ac_cv_prog_egrep+set}" = set; then
|
---|
2617 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2618 | else
|
---|
2619 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1
|
---|
2620 | then ac_cv_prog_egrep='grep -E'
|
---|
2621 | else ac_cv_prog_egrep='egrep'
|
---|
2622 | fi
|
---|
2623 | fi
|
---|
2624 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
|
---|
2625 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6
|
---|
2626 | EGREP=$ac_cv_prog_egrep
|
---|
2627 |
|
---|
2628 |
|
---|
2629 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5
|
---|
2630 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
|
---|
2631 | if test "${ac_cv_header_stdc+set}" = set; then
|
---|
2632 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2633 | else
|
---|
2634 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2635 | /* confdefs.h. */
|
---|
2636 | _ACEOF
|
---|
2637 | cat confdefs.h >>conftest.$ac_ext
|
---|
2638 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2639 | /* end confdefs.h. */
|
---|
2640 | #include <stdlib.h>
|
---|
2641 | #include <stdarg.h>
|
---|
2642 | #include <string.h>
|
---|
2643 | #include <float.h>
|
---|
2644 |
|
---|
2645 | int
|
---|
2646 | main ()
|
---|
2647 | {
|
---|
2648 |
|
---|
2649 | ;
|
---|
2650 | return 0;
|
---|
2651 | }
|
---|
2652 | _ACEOF
|
---|
2653 | rm -f conftest.$ac_objext
|
---|
2654 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2655 | (eval $ac_compile) 2>conftest.er1
|
---|
2656 | ac_status=$?
|
---|
2657 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2658 | rm -f conftest.er1
|
---|
2659 | cat conftest.err >&5
|
---|
2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2661 | (exit $ac_status); } &&
|
---|
2662 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2663 | || test ! -s conftest.err'
|
---|
2664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2665 | (eval $ac_try) 2>&5
|
---|
2666 | ac_status=$?
|
---|
2667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2668 | (exit $ac_status); }; } &&
|
---|
2669 | { ac_try='test -s conftest.$ac_objext'
|
---|
2670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2671 | (eval $ac_try) 2>&5
|
---|
2672 | ac_status=$?
|
---|
2673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2674 | (exit $ac_status); }; }; then
|
---|
2675 | ac_cv_header_stdc=yes
|
---|
2676 | else
|
---|
2677 | echo "$as_me: failed program was:" >&5
|
---|
2678 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2679 |
|
---|
2680 | ac_cv_header_stdc=no
|
---|
2681 | fi
|
---|
2682 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2683 |
|
---|
2684 | if test $ac_cv_header_stdc = yes; then
|
---|
2685 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
|
---|
2686 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2687 | /* confdefs.h. */
|
---|
2688 | _ACEOF
|
---|
2689 | cat confdefs.h >>conftest.$ac_ext
|
---|
2690 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2691 | /* end confdefs.h. */
|
---|
2692 | #include <string.h>
|
---|
2693 |
|
---|
2694 | _ACEOF
|
---|
2695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2696 | $EGREP "memchr" >/dev/null 2>&1; then
|
---|
2697 | :
|
---|
2698 | else
|
---|
2699 | ac_cv_header_stdc=no
|
---|
2700 | fi
|
---|
2701 | rm -f conftest*
|
---|
2702 |
|
---|
2703 | fi
|
---|
2704 |
|
---|
2705 | if test $ac_cv_header_stdc = yes; then
|
---|
2706 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
|
---|
2707 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2708 | /* confdefs.h. */
|
---|
2709 | _ACEOF
|
---|
2710 | cat confdefs.h >>conftest.$ac_ext
|
---|
2711 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2712 | /* end confdefs.h. */
|
---|
2713 | #include <stdlib.h>
|
---|
2714 |
|
---|
2715 | _ACEOF
|
---|
2716 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
2717 | $EGREP "free" >/dev/null 2>&1; then
|
---|
2718 | :
|
---|
2719 | else
|
---|
2720 | ac_cv_header_stdc=no
|
---|
2721 | fi
|
---|
2722 | rm -f conftest*
|
---|
2723 |
|
---|
2724 | fi
|
---|
2725 |
|
---|
2726 | if test $ac_cv_header_stdc = yes; then
|
---|
2727 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
|
---|
2728 | if test "$cross_compiling" = yes; then
|
---|
2729 | :
|
---|
2730 | else
|
---|
2731 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2732 | /* confdefs.h. */
|
---|
2733 | _ACEOF
|
---|
2734 | cat confdefs.h >>conftest.$ac_ext
|
---|
2735 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2736 | /* end confdefs.h. */
|
---|
2737 | #include <ctype.h>
|
---|
2738 | #if ((' ' & 0x0FF) == 0x020)
|
---|
2739 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
|
---|
2740 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
|
---|
2741 | #else
|
---|
2742 | # define ISLOWER(c) \
|
---|
2743 | (('a' <= (c) && (c) <= 'i') \
|
---|
2744 | || ('j' <= (c) && (c) <= 'r') \
|
---|
2745 | || ('s' <= (c) && (c) <= 'z'))
|
---|
2746 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
|
---|
2747 | #endif
|
---|
2748 |
|
---|
2749 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
|
---|
2750 | int
|
---|
2751 | main ()
|
---|
2752 | {
|
---|
2753 | int i;
|
---|
2754 | for (i = 0; i < 256; i++)
|
---|
2755 | if (XOR (islower (i), ISLOWER (i))
|
---|
2756 | || toupper (i) != TOUPPER (i))
|
---|
2757 | exit(2);
|
---|
2758 | exit (0);
|
---|
2759 | }
|
---|
2760 | _ACEOF
|
---|
2761 | rm -f conftest$ac_exeext
|
---|
2762 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2763 | (eval $ac_link) 2>&5
|
---|
2764 | ac_status=$?
|
---|
2765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2766 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
2767 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2768 | (eval $ac_try) 2>&5
|
---|
2769 | ac_status=$?
|
---|
2770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2771 | (exit $ac_status); }; }; then
|
---|
2772 | :
|
---|
2773 | else
|
---|
2774 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
2775 | echo "$as_me: failed program was:" >&5
|
---|
2776 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2777 |
|
---|
2778 | ( exit $ac_status )
|
---|
2779 | ac_cv_header_stdc=no
|
---|
2780 | fi
|
---|
2781 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
2782 | fi
|
---|
2783 | fi
|
---|
2784 | fi
|
---|
2785 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
|
---|
2786 | echo "${ECHO_T}$ac_cv_header_stdc" >&6
|
---|
2787 | if test $ac_cv_header_stdc = yes; then
|
---|
2788 |
|
---|
2789 | cat >>confdefs.h <<\_ACEOF
|
---|
2790 | #define STDC_HEADERS 1
|
---|
2791 | _ACEOF
|
---|
2792 |
|
---|
2793 | fi
|
---|
2794 |
|
---|
2795 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
|
---|
2796 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
|
---|
2797 | if test "${ac_cv_c_bigendian+set}" = set; then
|
---|
2798 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
2799 | else
|
---|
2800 | # See if sys/param.h defines the BYTE_ORDER macro.
|
---|
2801 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2802 | /* confdefs.h. */
|
---|
2803 | _ACEOF
|
---|
2804 | cat confdefs.h >>conftest.$ac_ext
|
---|
2805 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2806 | /* end confdefs.h. */
|
---|
2807 | #include <sys/types.h>
|
---|
2808 | #include <sys/param.h>
|
---|
2809 |
|
---|
2810 | int
|
---|
2811 | main ()
|
---|
2812 | {
|
---|
2813 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
|
---|
2814 | bogus endian macros
|
---|
2815 | #endif
|
---|
2816 |
|
---|
2817 | ;
|
---|
2818 | return 0;
|
---|
2819 | }
|
---|
2820 | _ACEOF
|
---|
2821 | rm -f conftest.$ac_objext
|
---|
2822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2823 | (eval $ac_compile) 2>conftest.er1
|
---|
2824 | ac_status=$?
|
---|
2825 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2826 | rm -f conftest.er1
|
---|
2827 | cat conftest.err >&5
|
---|
2828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2829 | (exit $ac_status); } &&
|
---|
2830 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2831 | || test ! -s conftest.err'
|
---|
2832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2833 | (eval $ac_try) 2>&5
|
---|
2834 | ac_status=$?
|
---|
2835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2836 | (exit $ac_status); }; } &&
|
---|
2837 | { ac_try='test -s conftest.$ac_objext'
|
---|
2838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2839 | (eval $ac_try) 2>&5
|
---|
2840 | ac_status=$?
|
---|
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2842 | (exit $ac_status); }; }; then
|
---|
2843 | # It does; now see whether it defined to BIG_ENDIAN or not.
|
---|
2844 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2845 | /* confdefs.h. */
|
---|
2846 | _ACEOF
|
---|
2847 | cat confdefs.h >>conftest.$ac_ext
|
---|
2848 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2849 | /* end confdefs.h. */
|
---|
2850 | #include <sys/types.h>
|
---|
2851 | #include <sys/param.h>
|
---|
2852 |
|
---|
2853 | int
|
---|
2854 | main ()
|
---|
2855 | {
|
---|
2856 | #if BYTE_ORDER != BIG_ENDIAN
|
---|
2857 | not big endian
|
---|
2858 | #endif
|
---|
2859 |
|
---|
2860 | ;
|
---|
2861 | return 0;
|
---|
2862 | }
|
---|
2863 | _ACEOF
|
---|
2864 | rm -f conftest.$ac_objext
|
---|
2865 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2866 | (eval $ac_compile) 2>conftest.er1
|
---|
2867 | ac_status=$?
|
---|
2868 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2869 | rm -f conftest.er1
|
---|
2870 | cat conftest.err >&5
|
---|
2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2872 | (exit $ac_status); } &&
|
---|
2873 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2874 | || test ! -s conftest.err'
|
---|
2875 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2876 | (eval $ac_try) 2>&5
|
---|
2877 | ac_status=$?
|
---|
2878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2879 | (exit $ac_status); }; } &&
|
---|
2880 | { ac_try='test -s conftest.$ac_objext'
|
---|
2881 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2882 | (eval $ac_try) 2>&5
|
---|
2883 | ac_status=$?
|
---|
2884 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2885 | (exit $ac_status); }; }; then
|
---|
2886 | ac_cv_c_bigendian=yes
|
---|
2887 | else
|
---|
2888 | echo "$as_me: failed program was:" >&5
|
---|
2889 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2890 |
|
---|
2891 | ac_cv_c_bigendian=no
|
---|
2892 | fi
|
---|
2893 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2894 | else
|
---|
2895 | echo "$as_me: failed program was:" >&5
|
---|
2896 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2897 |
|
---|
2898 | # It does not; compile a test program.
|
---|
2899 | if test "$cross_compiling" = yes; then
|
---|
2900 | # try to guess the endianness by grepping values into an object file
|
---|
2901 | ac_cv_c_bigendian=unknown
|
---|
2902 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2903 | /* confdefs.h. */
|
---|
2904 | _ACEOF
|
---|
2905 | cat confdefs.h >>conftest.$ac_ext
|
---|
2906 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2907 | /* end confdefs.h. */
|
---|
2908 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
|
---|
2909 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
|
---|
2910 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
|
---|
2911 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
|
---|
2912 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
|
---|
2913 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
|
---|
2914 | int
|
---|
2915 | main ()
|
---|
2916 | {
|
---|
2917 | _ascii (); _ebcdic ();
|
---|
2918 | ;
|
---|
2919 | return 0;
|
---|
2920 | }
|
---|
2921 | _ACEOF
|
---|
2922 | rm -f conftest.$ac_objext
|
---|
2923 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
2924 | (eval $ac_compile) 2>conftest.er1
|
---|
2925 | ac_status=$?
|
---|
2926 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
2927 | rm -f conftest.er1
|
---|
2928 | cat conftest.err >&5
|
---|
2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2930 | (exit $ac_status); } &&
|
---|
2931 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
2932 | || test ! -s conftest.err'
|
---|
2933 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2934 | (eval $ac_try) 2>&5
|
---|
2935 | ac_status=$?
|
---|
2936 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2937 | (exit $ac_status); }; } &&
|
---|
2938 | { ac_try='test -s conftest.$ac_objext'
|
---|
2939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2940 | (eval $ac_try) 2>&5
|
---|
2941 | ac_status=$?
|
---|
2942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2943 | (exit $ac_status); }; }; then
|
---|
2944 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
|
---|
2945 | ac_cv_c_bigendian=yes
|
---|
2946 | fi
|
---|
2947 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
|
---|
2948 | if test "$ac_cv_c_bigendian" = unknown; then
|
---|
2949 | ac_cv_c_bigendian=no
|
---|
2950 | else
|
---|
2951 | # finding both strings is unlikely to happen, but who knows?
|
---|
2952 | ac_cv_c_bigendian=unknown
|
---|
2953 | fi
|
---|
2954 | fi
|
---|
2955 | else
|
---|
2956 | echo "$as_me: failed program was:" >&5
|
---|
2957 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2958 |
|
---|
2959 | fi
|
---|
2960 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
2961 | else
|
---|
2962 | cat >conftest.$ac_ext <<_ACEOF
|
---|
2963 | /* confdefs.h. */
|
---|
2964 | _ACEOF
|
---|
2965 | cat confdefs.h >>conftest.$ac_ext
|
---|
2966 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
2967 | /* end confdefs.h. */
|
---|
2968 | int
|
---|
2969 | main ()
|
---|
2970 | {
|
---|
2971 | /* Are we little or big endian? From Harbison&Steele. */
|
---|
2972 | union
|
---|
2973 | {
|
---|
2974 | long l;
|
---|
2975 | char c[sizeof (long)];
|
---|
2976 | } u;
|
---|
2977 | u.l = 1;
|
---|
2978 | exit (u.c[sizeof (long) - 1] == 1);
|
---|
2979 | }
|
---|
2980 | _ACEOF
|
---|
2981 | rm -f conftest$ac_exeext
|
---|
2982 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
2983 | (eval $ac_link) 2>&5
|
---|
2984 | ac_status=$?
|
---|
2985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2986 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
2987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
2988 | (eval $ac_try) 2>&5
|
---|
2989 | ac_status=$?
|
---|
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
2991 | (exit $ac_status); }; }; then
|
---|
2992 | ac_cv_c_bigendian=no
|
---|
2993 | else
|
---|
2994 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
2995 | echo "$as_me: failed program was:" >&5
|
---|
2996 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
2997 |
|
---|
2998 | ( exit $ac_status )
|
---|
2999 | ac_cv_c_bigendian=yes
|
---|
3000 | fi
|
---|
3001 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
3002 | fi
|
---|
3003 | fi
|
---|
3004 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
3005 | fi
|
---|
3006 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
|
---|
3007 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6
|
---|
3008 | case $ac_cv_c_bigendian in
|
---|
3009 | yes)
|
---|
3010 | cat >>confdefs.h <<\_ACEOF
|
---|
3011 | #define B_ENDIAN 1
|
---|
3012 | _ACEOF
|
---|
3013 | ;;
|
---|
3014 | no)
|
---|
3015 | cat >>confdefs.h <<\_ACEOF
|
---|
3016 | #define L_ENDIAN 1
|
---|
3017 | _ACEOF
|
---|
3018 | ;;
|
---|
3019 | *)
|
---|
3020 | { { echo "$as_me:$LINENO: error: unknown endianness
|
---|
3021 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5
|
---|
3022 | echo "$as_me: error: unknown endianness
|
---|
3023 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
|
---|
3024 | { (exit 1); exit 1; }; } ;;
|
---|
3025 | esac
|
---|
3026 |
|
---|
3027 | echo "$as_me:$LINENO: checking for X" >&5
|
---|
3028 | echo $ECHO_N "checking for X... $ECHO_C" >&6
|
---|
3029 |
|
---|
3030 |
|
---|
3031 | # Check whether --with-x or --without-x was given.
|
---|
3032 | if test "${with_x+set}" = set; then
|
---|
3033 | withval="$with_x"
|
---|
3034 |
|
---|
3035 | fi;
|
---|
3036 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
|
---|
3037 | if test "x$with_x" = xno; then
|
---|
3038 | # The user explicitly disabled X.
|
---|
3039 | have_x=disabled
|
---|
3040 | else
|
---|
3041 | if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
|
---|
3042 | # Both variables are already set.
|
---|
3043 | have_x=yes
|
---|
3044 | else
|
---|
3045 | if test "${ac_cv_have_x+set}" = set; then
|
---|
3046 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3047 | else
|
---|
3048 | # One or both of the vars are not set, and there is no cached value.
|
---|
3049 | ac_x_includes=no ac_x_libraries=no
|
---|
3050 | rm -fr conftest.dir
|
---|
3051 | if mkdir conftest.dir; then
|
---|
3052 | cd conftest.dir
|
---|
3053 | # Make sure to not put "make" in the Imakefile rules, since we grep it out.
|
---|
3054 | cat >Imakefile <<'_ACEOF'
|
---|
3055 | acfindx:
|
---|
3056 | @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
|
---|
3057 | _ACEOF
|
---|
3058 | if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
|
---|
3059 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
|
---|
3060 | eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
|
---|
3061 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
|
---|
3062 | for ac_extension in a so sl; do
|
---|
3063 | if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
|
---|
3064 | test -f $ac_im_libdir/libX11.$ac_extension; then
|
---|
3065 | ac_im_usrlibdir=$ac_im_libdir; break
|
---|
3066 | fi
|
---|
3067 | done
|
---|
3068 | # Screen out bogus values from the imake configuration. They are
|
---|
3069 | # bogus both because they are the default anyway, and because
|
---|
3070 | # using them would break gcc on systems where it needs fixed includes.
|
---|
3071 | case $ac_im_incroot in
|
---|
3072 | /usr/include) ;;
|
---|
3073 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
|
---|
3074 | esac
|
---|
3075 | case $ac_im_usrlibdir in
|
---|
3076 | /usr/lib | /lib) ;;
|
---|
3077 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
|
---|
3078 | esac
|
---|
3079 | fi
|
---|
3080 | cd ..
|
---|
3081 | rm -fr conftest.dir
|
---|
3082 | fi
|
---|
3083 |
|
---|
3084 | # Standard set of common directories for X headers.
|
---|
3085 | # Check X11 before X11Rn because it is often a symlink to the current release.
|
---|
3086 | ac_x_header_dirs='
|
---|
3087 | /usr/X11/include
|
---|
3088 | /usr/X11R6/include
|
---|
3089 | /usr/X11R5/include
|
---|
3090 | /usr/X11R4/include
|
---|
3091 |
|
---|
3092 | /usr/include/X11
|
---|
3093 | /usr/include/X11R6
|
---|
3094 | /usr/include/X11R5
|
---|
3095 | /usr/include/X11R4
|
---|
3096 |
|
---|
3097 | /usr/local/X11/include
|
---|
3098 | /usr/local/X11R6/include
|
---|
3099 | /usr/local/X11R5/include
|
---|
3100 | /usr/local/X11R4/include
|
---|
3101 |
|
---|
3102 | /usr/local/include/X11
|
---|
3103 | /usr/local/include/X11R6
|
---|
3104 | /usr/local/include/X11R5
|
---|
3105 | /usr/local/include/X11R4
|
---|
3106 |
|
---|
3107 | /usr/X386/include
|
---|
3108 | /usr/x386/include
|
---|
3109 | /usr/XFree86/include/X11
|
---|
3110 |
|
---|
3111 | /usr/include
|
---|
3112 | /usr/local/include
|
---|
3113 | /usr/unsupported/include
|
---|
3114 | /usr/athena/include
|
---|
3115 | /usr/local/x11r5/include
|
---|
3116 | /usr/lpp/Xamples/include
|
---|
3117 |
|
---|
3118 | /usr/openwin/include
|
---|
3119 | /usr/openwin/share/include'
|
---|
3120 |
|
---|
3121 | if test "$ac_x_includes" = no; then
|
---|
3122 | # Guess where to find include files, by looking for Intrinsic.h.
|
---|
3123 | # First, try using that file with no special directory specified.
|
---|
3124 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3125 | /* confdefs.h. */
|
---|
3126 | _ACEOF
|
---|
3127 | cat confdefs.h >>conftest.$ac_ext
|
---|
3128 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3129 | /* end confdefs.h. */
|
---|
3130 | #include <X11/Intrinsic.h>
|
---|
3131 | _ACEOF
|
---|
3132 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
3133 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
3134 | ac_status=$?
|
---|
3135 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3136 | rm -f conftest.er1
|
---|
3137 | cat conftest.err >&5
|
---|
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3139 | (exit $ac_status); } >/dev/null; then
|
---|
3140 | if test -s conftest.err; then
|
---|
3141 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
3142 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
3143 | else
|
---|
3144 | ac_cpp_err=
|
---|
3145 | fi
|
---|
3146 | else
|
---|
3147 | ac_cpp_err=yes
|
---|
3148 | fi
|
---|
3149 | if test -z "$ac_cpp_err"; then
|
---|
3150 | # We can compile using X headers with no special include directory.
|
---|
3151 | ac_x_includes=
|
---|
3152 | else
|
---|
3153 | echo "$as_me: failed program was:" >&5
|
---|
3154 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3155 |
|
---|
3156 | for ac_dir in $ac_x_header_dirs; do
|
---|
3157 | if test -r "$ac_dir/X11/Intrinsic.h"; then
|
---|
3158 | ac_x_includes=$ac_dir
|
---|
3159 | break
|
---|
3160 | fi
|
---|
3161 | done
|
---|
3162 | fi
|
---|
3163 | rm -f conftest.err conftest.$ac_ext
|
---|
3164 | fi # $ac_x_includes = no
|
---|
3165 |
|
---|
3166 | if test "$ac_x_libraries" = no; then
|
---|
3167 | # Check for the libraries.
|
---|
3168 | # See if we find them without any special options.
|
---|
3169 | # Don't add to $LIBS permanently.
|
---|
3170 | ac_save_LIBS=$LIBS
|
---|
3171 | LIBS="-lXt $LIBS"
|
---|
3172 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3173 | /* confdefs.h. */
|
---|
3174 | _ACEOF
|
---|
3175 | cat confdefs.h >>conftest.$ac_ext
|
---|
3176 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3177 | /* end confdefs.h. */
|
---|
3178 | #include <X11/Intrinsic.h>
|
---|
3179 | int
|
---|
3180 | main ()
|
---|
3181 | {
|
---|
3182 | XtMalloc (0)
|
---|
3183 | ;
|
---|
3184 | return 0;
|
---|
3185 | }
|
---|
3186 | _ACEOF
|
---|
3187 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3189 | (eval $ac_link) 2>conftest.er1
|
---|
3190 | ac_status=$?
|
---|
3191 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3192 | rm -f conftest.er1
|
---|
3193 | cat conftest.err >&5
|
---|
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3195 | (exit $ac_status); } &&
|
---|
3196 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3197 | || test ! -s conftest.err'
|
---|
3198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3199 | (eval $ac_try) 2>&5
|
---|
3200 | ac_status=$?
|
---|
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3202 | (exit $ac_status); }; } &&
|
---|
3203 | { ac_try='test -s conftest$ac_exeext'
|
---|
3204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3205 | (eval $ac_try) 2>&5
|
---|
3206 | ac_status=$?
|
---|
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3208 | (exit $ac_status); }; }; then
|
---|
3209 | LIBS=$ac_save_LIBS
|
---|
3210 | # We can link X programs with no special library path.
|
---|
3211 | ac_x_libraries=
|
---|
3212 | else
|
---|
3213 | echo "$as_me: failed program was:" >&5
|
---|
3214 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3215 |
|
---|
3216 | LIBS=$ac_save_LIBS
|
---|
3217 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
|
---|
3218 | do
|
---|
3219 | # Don't even attempt the hair of trying to link an X program!
|
---|
3220 | for ac_extension in a so sl; do
|
---|
3221 | if test -r $ac_dir/libXt.$ac_extension; then
|
---|
3222 | ac_x_libraries=$ac_dir
|
---|
3223 | break 2
|
---|
3224 | fi
|
---|
3225 | done
|
---|
3226 | done
|
---|
3227 | fi
|
---|
3228 | rm -f conftest.err conftest.$ac_objext \
|
---|
3229 | conftest$ac_exeext conftest.$ac_ext
|
---|
3230 | fi # $ac_x_libraries = no
|
---|
3231 |
|
---|
3232 | if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
|
---|
3233 | # Didn't find X anywhere. Cache the known absence of X.
|
---|
3234 | ac_cv_have_x="have_x=no"
|
---|
3235 | else
|
---|
3236 | # Record where we found X for the cache.
|
---|
3237 | ac_cv_have_x="have_x=yes \
|
---|
3238 | ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
|
---|
3239 | fi
|
---|
3240 | fi
|
---|
3241 |
|
---|
3242 | fi
|
---|
3243 | eval "$ac_cv_have_x"
|
---|
3244 | fi # $with_x != no
|
---|
3245 |
|
---|
3246 | if test "$have_x" != yes; then
|
---|
3247 | echo "$as_me:$LINENO: result: $have_x" >&5
|
---|
3248 | echo "${ECHO_T}$have_x" >&6
|
---|
3249 | no_x=yes
|
---|
3250 | else
|
---|
3251 | # If each of the values was on the command line, it overrides each guess.
|
---|
3252 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes
|
---|
3253 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
|
---|
3254 | # Update the cache value to reflect the command line values.
|
---|
3255 | ac_cv_have_x="have_x=yes \
|
---|
3256 | ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
|
---|
3257 | echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
|
---|
3258 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
|
---|
3259 | fi
|
---|
3260 |
|
---|
3261 | if test "$no_x" = yes; then
|
---|
3262 | # Not all programs may use this symbol, but it does not hurt to define it.
|
---|
3263 |
|
---|
3264 | cat >>confdefs.h <<\_ACEOF
|
---|
3265 | #define X_DISPLAY_MISSING 1
|
---|
3266 | _ACEOF
|
---|
3267 |
|
---|
3268 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
|
---|
3269 | else
|
---|
3270 | if test -n "$x_includes"; then
|
---|
3271 | X_CFLAGS="$X_CFLAGS -I$x_includes"
|
---|
3272 | fi
|
---|
3273 |
|
---|
3274 | # It would also be nice to do this for all -L options, not just this one.
|
---|
3275 | if test -n "$x_libraries"; then
|
---|
3276 | X_LIBS="$X_LIBS -L$x_libraries"
|
---|
3277 | # For Solaris; some versions of Sun CC require a space after -R and
|
---|
3278 | # others require no space. Words are not sufficient . . . .
|
---|
3279 | case `(uname -sr) 2>/dev/null` in
|
---|
3280 | "SunOS 5"*)
|
---|
3281 | echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
|
---|
3282 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
|
---|
3283 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
|
---|
3284 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3285 | /* confdefs.h. */
|
---|
3286 | _ACEOF
|
---|
3287 | cat confdefs.h >>conftest.$ac_ext
|
---|
3288 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3289 | /* end confdefs.h. */
|
---|
3290 |
|
---|
3291 | int
|
---|
3292 | main ()
|
---|
3293 | {
|
---|
3294 |
|
---|
3295 | ;
|
---|
3296 | return 0;
|
---|
3297 | }
|
---|
3298 | _ACEOF
|
---|
3299 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3300 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3301 | (eval $ac_link) 2>conftest.er1
|
---|
3302 | ac_status=$?
|
---|
3303 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3304 | rm -f conftest.er1
|
---|
3305 | cat conftest.err >&5
|
---|
3306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3307 | (exit $ac_status); } &&
|
---|
3308 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3309 | || test ! -s conftest.err'
|
---|
3310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3311 | (eval $ac_try) 2>&5
|
---|
3312 | ac_status=$?
|
---|
3313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3314 | (exit $ac_status); }; } &&
|
---|
3315 | { ac_try='test -s conftest$ac_exeext'
|
---|
3316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3317 | (eval $ac_try) 2>&5
|
---|
3318 | ac_status=$?
|
---|
3319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3320 | (exit $ac_status); }; }; then
|
---|
3321 | ac_R_nospace=yes
|
---|
3322 | else
|
---|
3323 | echo "$as_me: failed program was:" >&5
|
---|
3324 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3325 |
|
---|
3326 | ac_R_nospace=no
|
---|
3327 | fi
|
---|
3328 | rm -f conftest.err conftest.$ac_objext \
|
---|
3329 | conftest$ac_exeext conftest.$ac_ext
|
---|
3330 | if test $ac_R_nospace = yes; then
|
---|
3331 | echo "$as_me:$LINENO: result: no" >&5
|
---|
3332 | echo "${ECHO_T}no" >&6
|
---|
3333 | X_LIBS="$X_LIBS -R$x_libraries"
|
---|
3334 | else
|
---|
3335 | LIBS="$ac_xsave_LIBS -R $x_libraries"
|
---|
3336 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3337 | /* confdefs.h. */
|
---|
3338 | _ACEOF
|
---|
3339 | cat confdefs.h >>conftest.$ac_ext
|
---|
3340 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3341 | /* end confdefs.h. */
|
---|
3342 |
|
---|
3343 | int
|
---|
3344 | main ()
|
---|
3345 | {
|
---|
3346 |
|
---|
3347 | ;
|
---|
3348 | return 0;
|
---|
3349 | }
|
---|
3350 | _ACEOF
|
---|
3351 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3352 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3353 | (eval $ac_link) 2>conftest.er1
|
---|
3354 | ac_status=$?
|
---|
3355 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3356 | rm -f conftest.er1
|
---|
3357 | cat conftest.err >&5
|
---|
3358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3359 | (exit $ac_status); } &&
|
---|
3360 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3361 | || test ! -s conftest.err'
|
---|
3362 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3363 | (eval $ac_try) 2>&5
|
---|
3364 | ac_status=$?
|
---|
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3366 | (exit $ac_status); }; } &&
|
---|
3367 | { ac_try='test -s conftest$ac_exeext'
|
---|
3368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3369 | (eval $ac_try) 2>&5
|
---|
3370 | ac_status=$?
|
---|
3371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3372 | (exit $ac_status); }; }; then
|
---|
3373 | ac_R_space=yes
|
---|
3374 | else
|
---|
3375 | echo "$as_me: failed program was:" >&5
|
---|
3376 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3377 |
|
---|
3378 | ac_R_space=no
|
---|
3379 | fi
|
---|
3380 | rm -f conftest.err conftest.$ac_objext \
|
---|
3381 | conftest$ac_exeext conftest.$ac_ext
|
---|
3382 | if test $ac_R_space = yes; then
|
---|
3383 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
3384 | echo "${ECHO_T}yes" >&6
|
---|
3385 | X_LIBS="$X_LIBS -R $x_libraries"
|
---|
3386 | else
|
---|
3387 | echo "$as_me:$LINENO: result: neither works" >&5
|
---|
3388 | echo "${ECHO_T}neither works" >&6
|
---|
3389 | fi
|
---|
3390 | fi
|
---|
3391 | LIBS=$ac_xsave_LIBS
|
---|
3392 | esac
|
---|
3393 | fi
|
---|
3394 |
|
---|
3395 | # Check for system-dependent libraries X programs must link with.
|
---|
3396 | # Do this before checking for the system-independent R6 libraries
|
---|
3397 | # (-lICE), since we may need -lsocket or whatever for X linking.
|
---|
3398 |
|
---|
3399 | if test "$ISC" = yes; then
|
---|
3400 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
|
---|
3401 | else
|
---|
3402 | # Martyn Johnson says this is needed for Ultrix, if the X
|
---|
3403 | # libraries were built with DECnet support. And Karl Berry says
|
---|
3404 | # the Alpha needs dnet_stub (dnet does not exist).
|
---|
3405 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
|
---|
3406 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3407 | /* confdefs.h. */
|
---|
3408 | _ACEOF
|
---|
3409 | cat confdefs.h >>conftest.$ac_ext
|
---|
3410 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3411 | /* end confdefs.h. */
|
---|
3412 |
|
---|
3413 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3414 | #ifdef __cplusplus
|
---|
3415 | extern "C"
|
---|
3416 | #endif
|
---|
3417 | /* We use char because int might match the return type of a gcc2
|
---|
3418 | builtin and then its argument prototype would still apply. */
|
---|
3419 | char XOpenDisplay ();
|
---|
3420 | int
|
---|
3421 | main ()
|
---|
3422 | {
|
---|
3423 | XOpenDisplay ();
|
---|
3424 | ;
|
---|
3425 | return 0;
|
---|
3426 | }
|
---|
3427 | _ACEOF
|
---|
3428 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3429 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3430 | (eval $ac_link) 2>conftest.er1
|
---|
3431 | ac_status=$?
|
---|
3432 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3433 | rm -f conftest.er1
|
---|
3434 | cat conftest.err >&5
|
---|
3435 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3436 | (exit $ac_status); } &&
|
---|
3437 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3438 | || test ! -s conftest.err'
|
---|
3439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3440 | (eval $ac_try) 2>&5
|
---|
3441 | ac_status=$?
|
---|
3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3443 | (exit $ac_status); }; } &&
|
---|
3444 | { ac_try='test -s conftest$ac_exeext'
|
---|
3445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3446 | (eval $ac_try) 2>&5
|
---|
3447 | ac_status=$?
|
---|
3448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3449 | (exit $ac_status); }; }; then
|
---|
3450 | :
|
---|
3451 | else
|
---|
3452 | echo "$as_me: failed program was:" >&5
|
---|
3453 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3454 |
|
---|
3455 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
|
---|
3456 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
|
---|
3457 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
|
---|
3458 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3459 | else
|
---|
3460 | ac_check_lib_save_LIBS=$LIBS
|
---|
3461 | LIBS="-ldnet $LIBS"
|
---|
3462 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3463 | /* confdefs.h. */
|
---|
3464 | _ACEOF
|
---|
3465 | cat confdefs.h >>conftest.$ac_ext
|
---|
3466 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3467 | /* end confdefs.h. */
|
---|
3468 |
|
---|
3469 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3470 | #ifdef __cplusplus
|
---|
3471 | extern "C"
|
---|
3472 | #endif
|
---|
3473 | /* We use char because int might match the return type of a gcc2
|
---|
3474 | builtin and then its argument prototype would still apply. */
|
---|
3475 | char dnet_ntoa ();
|
---|
3476 | int
|
---|
3477 | main ()
|
---|
3478 | {
|
---|
3479 | dnet_ntoa ();
|
---|
3480 | ;
|
---|
3481 | return 0;
|
---|
3482 | }
|
---|
3483 | _ACEOF
|
---|
3484 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3485 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3486 | (eval $ac_link) 2>conftest.er1
|
---|
3487 | ac_status=$?
|
---|
3488 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3489 | rm -f conftest.er1
|
---|
3490 | cat conftest.err >&5
|
---|
3491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3492 | (exit $ac_status); } &&
|
---|
3493 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3494 | || test ! -s conftest.err'
|
---|
3495 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3496 | (eval $ac_try) 2>&5
|
---|
3497 | ac_status=$?
|
---|
3498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3499 | (exit $ac_status); }; } &&
|
---|
3500 | { ac_try='test -s conftest$ac_exeext'
|
---|
3501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3502 | (eval $ac_try) 2>&5
|
---|
3503 | ac_status=$?
|
---|
3504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3505 | (exit $ac_status); }; }; then
|
---|
3506 | ac_cv_lib_dnet_dnet_ntoa=yes
|
---|
3507 | else
|
---|
3508 | echo "$as_me: failed program was:" >&5
|
---|
3509 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3510 |
|
---|
3511 | ac_cv_lib_dnet_dnet_ntoa=no
|
---|
3512 | fi
|
---|
3513 | rm -f conftest.err conftest.$ac_objext \
|
---|
3514 | conftest$ac_exeext conftest.$ac_ext
|
---|
3515 | LIBS=$ac_check_lib_save_LIBS
|
---|
3516 | fi
|
---|
3517 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
|
---|
3518 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
|
---|
3519 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
|
---|
3520 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
|
---|
3521 | fi
|
---|
3522 |
|
---|
3523 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then
|
---|
3524 | echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
|
---|
3525 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
|
---|
3526 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
|
---|
3527 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3528 | else
|
---|
3529 | ac_check_lib_save_LIBS=$LIBS
|
---|
3530 | LIBS="-ldnet_stub $LIBS"
|
---|
3531 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3532 | /* confdefs.h. */
|
---|
3533 | _ACEOF
|
---|
3534 | cat confdefs.h >>conftest.$ac_ext
|
---|
3535 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3536 | /* end confdefs.h. */
|
---|
3537 |
|
---|
3538 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3539 | #ifdef __cplusplus
|
---|
3540 | extern "C"
|
---|
3541 | #endif
|
---|
3542 | /* We use char because int might match the return type of a gcc2
|
---|
3543 | builtin and then its argument prototype would still apply. */
|
---|
3544 | char dnet_ntoa ();
|
---|
3545 | int
|
---|
3546 | main ()
|
---|
3547 | {
|
---|
3548 | dnet_ntoa ();
|
---|
3549 | ;
|
---|
3550 | return 0;
|
---|
3551 | }
|
---|
3552 | _ACEOF
|
---|
3553 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3554 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3555 | (eval $ac_link) 2>conftest.er1
|
---|
3556 | ac_status=$?
|
---|
3557 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3558 | rm -f conftest.er1
|
---|
3559 | cat conftest.err >&5
|
---|
3560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3561 | (exit $ac_status); } &&
|
---|
3562 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3563 | || test ! -s conftest.err'
|
---|
3564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3565 | (eval $ac_try) 2>&5
|
---|
3566 | ac_status=$?
|
---|
3567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3568 | (exit $ac_status); }; } &&
|
---|
3569 | { ac_try='test -s conftest$ac_exeext'
|
---|
3570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3571 | (eval $ac_try) 2>&5
|
---|
3572 | ac_status=$?
|
---|
3573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3574 | (exit $ac_status); }; }; then
|
---|
3575 | ac_cv_lib_dnet_stub_dnet_ntoa=yes
|
---|
3576 | else
|
---|
3577 | echo "$as_me: failed program was:" >&5
|
---|
3578 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3579 |
|
---|
3580 | ac_cv_lib_dnet_stub_dnet_ntoa=no
|
---|
3581 | fi
|
---|
3582 | rm -f conftest.err conftest.$ac_objext \
|
---|
3583 | conftest$ac_exeext conftest.$ac_ext
|
---|
3584 | LIBS=$ac_check_lib_save_LIBS
|
---|
3585 | fi
|
---|
3586 | echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
|
---|
3587 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
|
---|
3588 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
|
---|
3589 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
|
---|
3590 | fi
|
---|
3591 |
|
---|
3592 | fi
|
---|
3593 | fi
|
---|
3594 | rm -f conftest.err conftest.$ac_objext \
|
---|
3595 | conftest$ac_exeext conftest.$ac_ext
|
---|
3596 | LIBS="$ac_xsave_LIBS"
|
---|
3597 |
|
---|
3598 | # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
|
---|
3599 | # to get the SysV transport functions.
|
---|
3600 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
|
---|
3601 | # needs -lnsl.
|
---|
3602 | # The nsl library prevents programs from opening the X display
|
---|
3603 | # on Irix 5.2, according to T.E. Dickey.
|
---|
3604 | # The functions gethostbyname, getservbyname, and inet_addr are
|
---|
3605 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
|
---|
3606 | echo "$as_me:$LINENO: checking for gethostbyname" >&5
|
---|
3607 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
|
---|
3608 | if test "${ac_cv_func_gethostbyname+set}" = set; then
|
---|
3609 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3610 | else
|
---|
3611 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3612 | /* confdefs.h. */
|
---|
3613 | _ACEOF
|
---|
3614 | cat confdefs.h >>conftest.$ac_ext
|
---|
3615 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3616 | /* end confdefs.h. */
|
---|
3617 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
|
---|
3618 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
3619 | #define gethostbyname innocuous_gethostbyname
|
---|
3620 |
|
---|
3621 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3622 | which can conflict with char gethostbyname (); below.
|
---|
3623 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3624 | <limits.h> exists even on freestanding compilers. */
|
---|
3625 |
|
---|
3626 | #ifdef __STDC__
|
---|
3627 | # include <limits.h>
|
---|
3628 | #else
|
---|
3629 | # include <assert.h>
|
---|
3630 | #endif
|
---|
3631 |
|
---|
3632 | #undef gethostbyname
|
---|
3633 |
|
---|
3634 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3635 | #ifdef __cplusplus
|
---|
3636 | extern "C"
|
---|
3637 | {
|
---|
3638 | #endif
|
---|
3639 | /* We use char because int might match the return type of a gcc2
|
---|
3640 | builtin and then its argument prototype would still apply. */
|
---|
3641 | char gethostbyname ();
|
---|
3642 | /* The GNU C library defines this for functions which it implements
|
---|
3643 | to always fail with ENOSYS. Some functions are actually named
|
---|
3644 | something starting with __ and the normal name is an alias. */
|
---|
3645 | #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
|
---|
3646 | choke me
|
---|
3647 | #else
|
---|
3648 | char (*f) () = gethostbyname;
|
---|
3649 | #endif
|
---|
3650 | #ifdef __cplusplus
|
---|
3651 | }
|
---|
3652 | #endif
|
---|
3653 |
|
---|
3654 | int
|
---|
3655 | main ()
|
---|
3656 | {
|
---|
3657 | return f != gethostbyname;
|
---|
3658 | ;
|
---|
3659 | return 0;
|
---|
3660 | }
|
---|
3661 | _ACEOF
|
---|
3662 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3663 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3664 | (eval $ac_link) 2>conftest.er1
|
---|
3665 | ac_status=$?
|
---|
3666 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3667 | rm -f conftest.er1
|
---|
3668 | cat conftest.err >&5
|
---|
3669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3670 | (exit $ac_status); } &&
|
---|
3671 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3672 | || test ! -s conftest.err'
|
---|
3673 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3674 | (eval $ac_try) 2>&5
|
---|
3675 | ac_status=$?
|
---|
3676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3677 | (exit $ac_status); }; } &&
|
---|
3678 | { ac_try='test -s conftest$ac_exeext'
|
---|
3679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3680 | (eval $ac_try) 2>&5
|
---|
3681 | ac_status=$?
|
---|
3682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3683 | (exit $ac_status); }; }; then
|
---|
3684 | ac_cv_func_gethostbyname=yes
|
---|
3685 | else
|
---|
3686 | echo "$as_me: failed program was:" >&5
|
---|
3687 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3688 |
|
---|
3689 | ac_cv_func_gethostbyname=no
|
---|
3690 | fi
|
---|
3691 | rm -f conftest.err conftest.$ac_objext \
|
---|
3692 | conftest$ac_exeext conftest.$ac_ext
|
---|
3693 | fi
|
---|
3694 | echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
|
---|
3695 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
|
---|
3696 |
|
---|
3697 | if test $ac_cv_func_gethostbyname = no; then
|
---|
3698 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
|
---|
3699 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
|
---|
3700 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
|
---|
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3702 | else
|
---|
3703 | ac_check_lib_save_LIBS=$LIBS
|
---|
3704 | LIBS="-lnsl $LIBS"
|
---|
3705 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3706 | /* confdefs.h. */
|
---|
3707 | _ACEOF
|
---|
3708 | cat confdefs.h >>conftest.$ac_ext
|
---|
3709 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3710 | /* end confdefs.h. */
|
---|
3711 |
|
---|
3712 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3713 | #ifdef __cplusplus
|
---|
3714 | extern "C"
|
---|
3715 | #endif
|
---|
3716 | /* We use char because int might match the return type of a gcc2
|
---|
3717 | builtin and then its argument prototype would still apply. */
|
---|
3718 | char gethostbyname ();
|
---|
3719 | int
|
---|
3720 | main ()
|
---|
3721 | {
|
---|
3722 | gethostbyname ();
|
---|
3723 | ;
|
---|
3724 | return 0;
|
---|
3725 | }
|
---|
3726 | _ACEOF
|
---|
3727 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3728 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3729 | (eval $ac_link) 2>conftest.er1
|
---|
3730 | ac_status=$?
|
---|
3731 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3732 | rm -f conftest.er1
|
---|
3733 | cat conftest.err >&5
|
---|
3734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3735 | (exit $ac_status); } &&
|
---|
3736 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3737 | || test ! -s conftest.err'
|
---|
3738 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3739 | (eval $ac_try) 2>&5
|
---|
3740 | ac_status=$?
|
---|
3741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3742 | (exit $ac_status); }; } &&
|
---|
3743 | { ac_try='test -s conftest$ac_exeext'
|
---|
3744 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3745 | (eval $ac_try) 2>&5
|
---|
3746 | ac_status=$?
|
---|
3747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3748 | (exit $ac_status); }; }; then
|
---|
3749 | ac_cv_lib_nsl_gethostbyname=yes
|
---|
3750 | else
|
---|
3751 | echo "$as_me: failed program was:" >&5
|
---|
3752 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3753 |
|
---|
3754 | ac_cv_lib_nsl_gethostbyname=no
|
---|
3755 | fi
|
---|
3756 | rm -f conftest.err conftest.$ac_objext \
|
---|
3757 | conftest$ac_exeext conftest.$ac_ext
|
---|
3758 | LIBS=$ac_check_lib_save_LIBS
|
---|
3759 | fi
|
---|
3760 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
|
---|
3761 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
|
---|
3762 | if test $ac_cv_lib_nsl_gethostbyname = yes; then
|
---|
3763 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
|
---|
3764 | fi
|
---|
3765 |
|
---|
3766 | if test $ac_cv_lib_nsl_gethostbyname = no; then
|
---|
3767 | echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
|
---|
3768 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
|
---|
3769 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
|
---|
3770 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3771 | else
|
---|
3772 | ac_check_lib_save_LIBS=$LIBS
|
---|
3773 | LIBS="-lbsd $LIBS"
|
---|
3774 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3775 | /* confdefs.h. */
|
---|
3776 | _ACEOF
|
---|
3777 | cat confdefs.h >>conftest.$ac_ext
|
---|
3778 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3779 | /* end confdefs.h. */
|
---|
3780 |
|
---|
3781 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3782 | #ifdef __cplusplus
|
---|
3783 | extern "C"
|
---|
3784 | #endif
|
---|
3785 | /* We use char because int might match the return type of a gcc2
|
---|
3786 | builtin and then its argument prototype would still apply. */
|
---|
3787 | char gethostbyname ();
|
---|
3788 | int
|
---|
3789 | main ()
|
---|
3790 | {
|
---|
3791 | gethostbyname ();
|
---|
3792 | ;
|
---|
3793 | return 0;
|
---|
3794 | }
|
---|
3795 | _ACEOF
|
---|
3796 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3797 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3798 | (eval $ac_link) 2>conftest.er1
|
---|
3799 | ac_status=$?
|
---|
3800 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3801 | rm -f conftest.er1
|
---|
3802 | cat conftest.err >&5
|
---|
3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3804 | (exit $ac_status); } &&
|
---|
3805 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3806 | || test ! -s conftest.err'
|
---|
3807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3808 | (eval $ac_try) 2>&5
|
---|
3809 | ac_status=$?
|
---|
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3811 | (exit $ac_status); }; } &&
|
---|
3812 | { ac_try='test -s conftest$ac_exeext'
|
---|
3813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3814 | (eval $ac_try) 2>&5
|
---|
3815 | ac_status=$?
|
---|
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3817 | (exit $ac_status); }; }; then
|
---|
3818 | ac_cv_lib_bsd_gethostbyname=yes
|
---|
3819 | else
|
---|
3820 | echo "$as_me: failed program was:" >&5
|
---|
3821 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3822 |
|
---|
3823 | ac_cv_lib_bsd_gethostbyname=no
|
---|
3824 | fi
|
---|
3825 | rm -f conftest.err conftest.$ac_objext \
|
---|
3826 | conftest$ac_exeext conftest.$ac_ext
|
---|
3827 | LIBS=$ac_check_lib_save_LIBS
|
---|
3828 | fi
|
---|
3829 | echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
|
---|
3830 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
|
---|
3831 | if test $ac_cv_lib_bsd_gethostbyname = yes; then
|
---|
3832 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
|
---|
3833 | fi
|
---|
3834 |
|
---|
3835 | fi
|
---|
3836 | fi
|
---|
3837 |
|
---|
3838 | # [email protected] says without -lsocket,
|
---|
3839 | # socket/setsockopt and other routines are undefined under SCO ODT
|
---|
3840 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
|
---|
3841 | # on later versions), says Simon Leinen: it contains gethostby*
|
---|
3842 | # variants that don't use the name server (or something). -lsocket
|
---|
3843 | # must be given before -lnsl if both are needed. We assume that
|
---|
3844 | # if connect needs -lnsl, so does gethostbyname.
|
---|
3845 | echo "$as_me:$LINENO: checking for connect" >&5
|
---|
3846 | echo $ECHO_N "checking for connect... $ECHO_C" >&6
|
---|
3847 | if test "${ac_cv_func_connect+set}" = set; then
|
---|
3848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3849 | else
|
---|
3850 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3851 | /* confdefs.h. */
|
---|
3852 | _ACEOF
|
---|
3853 | cat confdefs.h >>conftest.$ac_ext
|
---|
3854 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3855 | /* end confdefs.h. */
|
---|
3856 | /* Define connect to an innocuous variant, in case <limits.h> declares connect.
|
---|
3857 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
3858 | #define connect innocuous_connect
|
---|
3859 |
|
---|
3860 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
3861 | which can conflict with char connect (); below.
|
---|
3862 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
3863 | <limits.h> exists even on freestanding compilers. */
|
---|
3864 |
|
---|
3865 | #ifdef __STDC__
|
---|
3866 | # include <limits.h>
|
---|
3867 | #else
|
---|
3868 | # include <assert.h>
|
---|
3869 | #endif
|
---|
3870 |
|
---|
3871 | #undef connect
|
---|
3872 |
|
---|
3873 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3874 | #ifdef __cplusplus
|
---|
3875 | extern "C"
|
---|
3876 | {
|
---|
3877 | #endif
|
---|
3878 | /* We use char because int might match the return type of a gcc2
|
---|
3879 | builtin and then its argument prototype would still apply. */
|
---|
3880 | char connect ();
|
---|
3881 | /* The GNU C library defines this for functions which it implements
|
---|
3882 | to always fail with ENOSYS. Some functions are actually named
|
---|
3883 | something starting with __ and the normal name is an alias. */
|
---|
3884 | #if defined (__stub_connect) || defined (__stub___connect)
|
---|
3885 | choke me
|
---|
3886 | #else
|
---|
3887 | char (*f) () = connect;
|
---|
3888 | #endif
|
---|
3889 | #ifdef __cplusplus
|
---|
3890 | }
|
---|
3891 | #endif
|
---|
3892 |
|
---|
3893 | int
|
---|
3894 | main ()
|
---|
3895 | {
|
---|
3896 | return f != connect;
|
---|
3897 | ;
|
---|
3898 | return 0;
|
---|
3899 | }
|
---|
3900 | _ACEOF
|
---|
3901 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3902 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3903 | (eval $ac_link) 2>conftest.er1
|
---|
3904 | ac_status=$?
|
---|
3905 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3906 | rm -f conftest.er1
|
---|
3907 | cat conftest.err >&5
|
---|
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3909 | (exit $ac_status); } &&
|
---|
3910 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3911 | || test ! -s conftest.err'
|
---|
3912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3913 | (eval $ac_try) 2>&5
|
---|
3914 | ac_status=$?
|
---|
3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3916 | (exit $ac_status); }; } &&
|
---|
3917 | { ac_try='test -s conftest$ac_exeext'
|
---|
3918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3919 | (eval $ac_try) 2>&5
|
---|
3920 | ac_status=$?
|
---|
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3922 | (exit $ac_status); }; }; then
|
---|
3923 | ac_cv_func_connect=yes
|
---|
3924 | else
|
---|
3925 | echo "$as_me: failed program was:" >&5
|
---|
3926 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3927 |
|
---|
3928 | ac_cv_func_connect=no
|
---|
3929 | fi
|
---|
3930 | rm -f conftest.err conftest.$ac_objext \
|
---|
3931 | conftest$ac_exeext conftest.$ac_ext
|
---|
3932 | fi
|
---|
3933 | echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
|
---|
3934 | echo "${ECHO_T}$ac_cv_func_connect" >&6
|
---|
3935 |
|
---|
3936 | if test $ac_cv_func_connect = no; then
|
---|
3937 | echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
|
---|
3938 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
|
---|
3939 | if test "${ac_cv_lib_socket_connect+set}" = set; then
|
---|
3940 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
3941 | else
|
---|
3942 | ac_check_lib_save_LIBS=$LIBS
|
---|
3943 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
|
---|
3944 | cat >conftest.$ac_ext <<_ACEOF
|
---|
3945 | /* confdefs.h. */
|
---|
3946 | _ACEOF
|
---|
3947 | cat confdefs.h >>conftest.$ac_ext
|
---|
3948 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
3949 | /* end confdefs.h. */
|
---|
3950 |
|
---|
3951 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
3952 | #ifdef __cplusplus
|
---|
3953 | extern "C"
|
---|
3954 | #endif
|
---|
3955 | /* We use char because int might match the return type of a gcc2
|
---|
3956 | builtin and then its argument prototype would still apply. */
|
---|
3957 | char connect ();
|
---|
3958 | int
|
---|
3959 | main ()
|
---|
3960 | {
|
---|
3961 | connect ();
|
---|
3962 | ;
|
---|
3963 | return 0;
|
---|
3964 | }
|
---|
3965 | _ACEOF
|
---|
3966 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
3967 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
3968 | (eval $ac_link) 2>conftest.er1
|
---|
3969 | ac_status=$?
|
---|
3970 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
3971 | rm -f conftest.er1
|
---|
3972 | cat conftest.err >&5
|
---|
3973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3974 | (exit $ac_status); } &&
|
---|
3975 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
3976 | || test ! -s conftest.err'
|
---|
3977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3978 | (eval $ac_try) 2>&5
|
---|
3979 | ac_status=$?
|
---|
3980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3981 | (exit $ac_status); }; } &&
|
---|
3982 | { ac_try='test -s conftest$ac_exeext'
|
---|
3983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
3984 | (eval $ac_try) 2>&5
|
---|
3985 | ac_status=$?
|
---|
3986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
3987 | (exit $ac_status); }; }; then
|
---|
3988 | ac_cv_lib_socket_connect=yes
|
---|
3989 | else
|
---|
3990 | echo "$as_me: failed program was:" >&5
|
---|
3991 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
3992 |
|
---|
3993 | ac_cv_lib_socket_connect=no
|
---|
3994 | fi
|
---|
3995 | rm -f conftest.err conftest.$ac_objext \
|
---|
3996 | conftest$ac_exeext conftest.$ac_ext
|
---|
3997 | LIBS=$ac_check_lib_save_LIBS
|
---|
3998 | fi
|
---|
3999 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
|
---|
4000 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
|
---|
4001 | if test $ac_cv_lib_socket_connect = yes; then
|
---|
4002 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
|
---|
4003 | fi
|
---|
4004 |
|
---|
4005 | fi
|
---|
4006 |
|
---|
4007 | # Guillermo Gomez says -lposix is necessary on A/UX.
|
---|
4008 | echo "$as_me:$LINENO: checking for remove" >&5
|
---|
4009 | echo $ECHO_N "checking for remove... $ECHO_C" >&6
|
---|
4010 | if test "${ac_cv_func_remove+set}" = set; then
|
---|
4011 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4012 | else
|
---|
4013 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4014 | /* confdefs.h. */
|
---|
4015 | _ACEOF
|
---|
4016 | cat confdefs.h >>conftest.$ac_ext
|
---|
4017 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4018 | /* end confdefs.h. */
|
---|
4019 | /* Define remove to an innocuous variant, in case <limits.h> declares remove.
|
---|
4020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4021 | #define remove innocuous_remove
|
---|
4022 |
|
---|
4023 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4024 | which can conflict with char remove (); below.
|
---|
4025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4026 | <limits.h> exists even on freestanding compilers. */
|
---|
4027 |
|
---|
4028 | #ifdef __STDC__
|
---|
4029 | # include <limits.h>
|
---|
4030 | #else
|
---|
4031 | # include <assert.h>
|
---|
4032 | #endif
|
---|
4033 |
|
---|
4034 | #undef remove
|
---|
4035 |
|
---|
4036 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4037 | #ifdef __cplusplus
|
---|
4038 | extern "C"
|
---|
4039 | {
|
---|
4040 | #endif
|
---|
4041 | /* We use char because int might match the return type of a gcc2
|
---|
4042 | builtin and then its argument prototype would still apply. */
|
---|
4043 | char remove ();
|
---|
4044 | /* The GNU C library defines this for functions which it implements
|
---|
4045 | to always fail with ENOSYS. Some functions are actually named
|
---|
4046 | something starting with __ and the normal name is an alias. */
|
---|
4047 | #if defined (__stub_remove) || defined (__stub___remove)
|
---|
4048 | choke me
|
---|
4049 | #else
|
---|
4050 | char (*f) () = remove;
|
---|
4051 | #endif
|
---|
4052 | #ifdef __cplusplus
|
---|
4053 | }
|
---|
4054 | #endif
|
---|
4055 |
|
---|
4056 | int
|
---|
4057 | main ()
|
---|
4058 | {
|
---|
4059 | return f != remove;
|
---|
4060 | ;
|
---|
4061 | return 0;
|
---|
4062 | }
|
---|
4063 | _ACEOF
|
---|
4064 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4066 | (eval $ac_link) 2>conftest.er1
|
---|
4067 | ac_status=$?
|
---|
4068 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4069 | rm -f conftest.er1
|
---|
4070 | cat conftest.err >&5
|
---|
4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4072 | (exit $ac_status); } &&
|
---|
4073 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4074 | || test ! -s conftest.err'
|
---|
4075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4076 | (eval $ac_try) 2>&5
|
---|
4077 | ac_status=$?
|
---|
4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4079 | (exit $ac_status); }; } &&
|
---|
4080 | { ac_try='test -s conftest$ac_exeext'
|
---|
4081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4082 | (eval $ac_try) 2>&5
|
---|
4083 | ac_status=$?
|
---|
4084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4085 | (exit $ac_status); }; }; then
|
---|
4086 | ac_cv_func_remove=yes
|
---|
4087 | else
|
---|
4088 | echo "$as_me: failed program was:" >&5
|
---|
4089 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4090 |
|
---|
4091 | ac_cv_func_remove=no
|
---|
4092 | fi
|
---|
4093 | rm -f conftest.err conftest.$ac_objext \
|
---|
4094 | conftest$ac_exeext conftest.$ac_ext
|
---|
4095 | fi
|
---|
4096 | echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
|
---|
4097 | echo "${ECHO_T}$ac_cv_func_remove" >&6
|
---|
4098 |
|
---|
4099 | if test $ac_cv_func_remove = no; then
|
---|
4100 | echo "$as_me:$LINENO: checking for remove in -lposix" >&5
|
---|
4101 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
|
---|
4102 | if test "${ac_cv_lib_posix_remove+set}" = set; then
|
---|
4103 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4104 | else
|
---|
4105 | ac_check_lib_save_LIBS=$LIBS
|
---|
4106 | LIBS="-lposix $LIBS"
|
---|
4107 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4108 | /* confdefs.h. */
|
---|
4109 | _ACEOF
|
---|
4110 | cat confdefs.h >>conftest.$ac_ext
|
---|
4111 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4112 | /* end confdefs.h. */
|
---|
4113 |
|
---|
4114 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4115 | #ifdef __cplusplus
|
---|
4116 | extern "C"
|
---|
4117 | #endif
|
---|
4118 | /* We use char because int might match the return type of a gcc2
|
---|
4119 | builtin and then its argument prototype would still apply. */
|
---|
4120 | char remove ();
|
---|
4121 | int
|
---|
4122 | main ()
|
---|
4123 | {
|
---|
4124 | remove ();
|
---|
4125 | ;
|
---|
4126 | return 0;
|
---|
4127 | }
|
---|
4128 | _ACEOF
|
---|
4129 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4130 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4131 | (eval $ac_link) 2>conftest.er1
|
---|
4132 | ac_status=$?
|
---|
4133 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4134 | rm -f conftest.er1
|
---|
4135 | cat conftest.err >&5
|
---|
4136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4137 | (exit $ac_status); } &&
|
---|
4138 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4139 | || test ! -s conftest.err'
|
---|
4140 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4141 | (eval $ac_try) 2>&5
|
---|
4142 | ac_status=$?
|
---|
4143 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4144 | (exit $ac_status); }; } &&
|
---|
4145 | { ac_try='test -s conftest$ac_exeext'
|
---|
4146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4147 | (eval $ac_try) 2>&5
|
---|
4148 | ac_status=$?
|
---|
4149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4150 | (exit $ac_status); }; }; then
|
---|
4151 | ac_cv_lib_posix_remove=yes
|
---|
4152 | else
|
---|
4153 | echo "$as_me: failed program was:" >&5
|
---|
4154 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4155 |
|
---|
4156 | ac_cv_lib_posix_remove=no
|
---|
4157 | fi
|
---|
4158 | rm -f conftest.err conftest.$ac_objext \
|
---|
4159 | conftest$ac_exeext conftest.$ac_ext
|
---|
4160 | LIBS=$ac_check_lib_save_LIBS
|
---|
4161 | fi
|
---|
4162 | echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
|
---|
4163 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
|
---|
4164 | if test $ac_cv_lib_posix_remove = yes; then
|
---|
4165 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
|
---|
4166 | fi
|
---|
4167 |
|
---|
4168 | fi
|
---|
4169 |
|
---|
4170 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
|
---|
4171 | echo "$as_me:$LINENO: checking for shmat" >&5
|
---|
4172 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6
|
---|
4173 | if test "${ac_cv_func_shmat+set}" = set; then
|
---|
4174 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4175 | else
|
---|
4176 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4177 | /* confdefs.h. */
|
---|
4178 | _ACEOF
|
---|
4179 | cat confdefs.h >>conftest.$ac_ext
|
---|
4180 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4181 | /* end confdefs.h. */
|
---|
4182 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
|
---|
4183 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
4184 | #define shmat innocuous_shmat
|
---|
4185 |
|
---|
4186 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
4187 | which can conflict with char shmat (); below.
|
---|
4188 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
4189 | <limits.h> exists even on freestanding compilers. */
|
---|
4190 |
|
---|
4191 | #ifdef __STDC__
|
---|
4192 | # include <limits.h>
|
---|
4193 | #else
|
---|
4194 | # include <assert.h>
|
---|
4195 | #endif
|
---|
4196 |
|
---|
4197 | #undef shmat
|
---|
4198 |
|
---|
4199 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4200 | #ifdef __cplusplus
|
---|
4201 | extern "C"
|
---|
4202 | {
|
---|
4203 | #endif
|
---|
4204 | /* We use char because int might match the return type of a gcc2
|
---|
4205 | builtin and then its argument prototype would still apply. */
|
---|
4206 | char shmat ();
|
---|
4207 | /* The GNU C library defines this for functions which it implements
|
---|
4208 | to always fail with ENOSYS. Some functions are actually named
|
---|
4209 | something starting with __ and the normal name is an alias. */
|
---|
4210 | #if defined (__stub_shmat) || defined (__stub___shmat)
|
---|
4211 | choke me
|
---|
4212 | #else
|
---|
4213 | char (*f) () = shmat;
|
---|
4214 | #endif
|
---|
4215 | #ifdef __cplusplus
|
---|
4216 | }
|
---|
4217 | #endif
|
---|
4218 |
|
---|
4219 | int
|
---|
4220 | main ()
|
---|
4221 | {
|
---|
4222 | return f != shmat;
|
---|
4223 | ;
|
---|
4224 | return 0;
|
---|
4225 | }
|
---|
4226 | _ACEOF
|
---|
4227 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4228 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4229 | (eval $ac_link) 2>conftest.er1
|
---|
4230 | ac_status=$?
|
---|
4231 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4232 | rm -f conftest.er1
|
---|
4233 | cat conftest.err >&5
|
---|
4234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4235 | (exit $ac_status); } &&
|
---|
4236 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4237 | || test ! -s conftest.err'
|
---|
4238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4239 | (eval $ac_try) 2>&5
|
---|
4240 | ac_status=$?
|
---|
4241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4242 | (exit $ac_status); }; } &&
|
---|
4243 | { ac_try='test -s conftest$ac_exeext'
|
---|
4244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4245 | (eval $ac_try) 2>&5
|
---|
4246 | ac_status=$?
|
---|
4247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4248 | (exit $ac_status); }; }; then
|
---|
4249 | ac_cv_func_shmat=yes
|
---|
4250 | else
|
---|
4251 | echo "$as_me: failed program was:" >&5
|
---|
4252 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4253 |
|
---|
4254 | ac_cv_func_shmat=no
|
---|
4255 | fi
|
---|
4256 | rm -f conftest.err conftest.$ac_objext \
|
---|
4257 | conftest$ac_exeext conftest.$ac_ext
|
---|
4258 | fi
|
---|
4259 | echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
|
---|
4260 | echo "${ECHO_T}$ac_cv_func_shmat" >&6
|
---|
4261 |
|
---|
4262 | if test $ac_cv_func_shmat = no; then
|
---|
4263 | echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
|
---|
4264 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
|
---|
4265 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then
|
---|
4266 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4267 | else
|
---|
4268 | ac_check_lib_save_LIBS=$LIBS
|
---|
4269 | LIBS="-lipc $LIBS"
|
---|
4270 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4271 | /* confdefs.h. */
|
---|
4272 | _ACEOF
|
---|
4273 | cat confdefs.h >>conftest.$ac_ext
|
---|
4274 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4275 | /* end confdefs.h. */
|
---|
4276 |
|
---|
4277 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4278 | #ifdef __cplusplus
|
---|
4279 | extern "C"
|
---|
4280 | #endif
|
---|
4281 | /* We use char because int might match the return type of a gcc2
|
---|
4282 | builtin and then its argument prototype would still apply. */
|
---|
4283 | char shmat ();
|
---|
4284 | int
|
---|
4285 | main ()
|
---|
4286 | {
|
---|
4287 | shmat ();
|
---|
4288 | ;
|
---|
4289 | return 0;
|
---|
4290 | }
|
---|
4291 | _ACEOF
|
---|
4292 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4294 | (eval $ac_link) 2>conftest.er1
|
---|
4295 | ac_status=$?
|
---|
4296 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4297 | rm -f conftest.er1
|
---|
4298 | cat conftest.err >&5
|
---|
4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4300 | (exit $ac_status); } &&
|
---|
4301 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4302 | || test ! -s conftest.err'
|
---|
4303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4304 | (eval $ac_try) 2>&5
|
---|
4305 | ac_status=$?
|
---|
4306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4307 | (exit $ac_status); }; } &&
|
---|
4308 | { ac_try='test -s conftest$ac_exeext'
|
---|
4309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4310 | (eval $ac_try) 2>&5
|
---|
4311 | ac_status=$?
|
---|
4312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4313 | (exit $ac_status); }; }; then
|
---|
4314 | ac_cv_lib_ipc_shmat=yes
|
---|
4315 | else
|
---|
4316 | echo "$as_me: failed program was:" >&5
|
---|
4317 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4318 |
|
---|
4319 | ac_cv_lib_ipc_shmat=no
|
---|
4320 | fi
|
---|
4321 | rm -f conftest.err conftest.$ac_objext \
|
---|
4322 | conftest$ac_exeext conftest.$ac_ext
|
---|
4323 | LIBS=$ac_check_lib_save_LIBS
|
---|
4324 | fi
|
---|
4325 | echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
|
---|
4326 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
|
---|
4327 | if test $ac_cv_lib_ipc_shmat = yes; then
|
---|
4328 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
|
---|
4329 | fi
|
---|
4330 |
|
---|
4331 | fi
|
---|
4332 | fi
|
---|
4333 |
|
---|
4334 | # Check for libraries that X11R6 Xt/Xaw programs need.
|
---|
4335 | ac_save_LDFLAGS=$LDFLAGS
|
---|
4336 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
|
---|
4337 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
|
---|
4338 | # check for ICE first), but we must link in the order -lSM -lICE or
|
---|
4339 | # we get undefined symbols. So assume we have SM if we have ICE.
|
---|
4340 | # These have to be linked with before -lX11, unlike the other
|
---|
4341 | # libraries we check for below, so use a different variable.
|
---|
4342 | # John Interrante, Karl Berry
|
---|
4343 | echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
|
---|
4344 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
|
---|
4345 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
|
---|
4346 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4347 | else
|
---|
4348 | ac_check_lib_save_LIBS=$LIBS
|
---|
4349 | LIBS="-lICE $X_EXTRA_LIBS $LIBS"
|
---|
4350 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4351 | /* confdefs.h. */
|
---|
4352 | _ACEOF
|
---|
4353 | cat confdefs.h >>conftest.$ac_ext
|
---|
4354 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4355 | /* end confdefs.h. */
|
---|
4356 |
|
---|
4357 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4358 | #ifdef __cplusplus
|
---|
4359 | extern "C"
|
---|
4360 | #endif
|
---|
4361 | /* We use char because int might match the return type of a gcc2
|
---|
4362 | builtin and then its argument prototype would still apply. */
|
---|
4363 | char IceConnectionNumber ();
|
---|
4364 | int
|
---|
4365 | main ()
|
---|
4366 | {
|
---|
4367 | IceConnectionNumber ();
|
---|
4368 | ;
|
---|
4369 | return 0;
|
---|
4370 | }
|
---|
4371 | _ACEOF
|
---|
4372 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4373 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4374 | (eval $ac_link) 2>conftest.er1
|
---|
4375 | ac_status=$?
|
---|
4376 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4377 | rm -f conftest.er1
|
---|
4378 | cat conftest.err >&5
|
---|
4379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4380 | (exit $ac_status); } &&
|
---|
4381 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4382 | || test ! -s conftest.err'
|
---|
4383 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4384 | (eval $ac_try) 2>&5
|
---|
4385 | ac_status=$?
|
---|
4386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4387 | (exit $ac_status); }; } &&
|
---|
4388 | { ac_try='test -s conftest$ac_exeext'
|
---|
4389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4390 | (eval $ac_try) 2>&5
|
---|
4391 | ac_status=$?
|
---|
4392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4393 | (exit $ac_status); }; }; then
|
---|
4394 | ac_cv_lib_ICE_IceConnectionNumber=yes
|
---|
4395 | else
|
---|
4396 | echo "$as_me: failed program was:" >&5
|
---|
4397 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4398 |
|
---|
4399 | ac_cv_lib_ICE_IceConnectionNumber=no
|
---|
4400 | fi
|
---|
4401 | rm -f conftest.err conftest.$ac_objext \
|
---|
4402 | conftest$ac_exeext conftest.$ac_ext
|
---|
4403 | LIBS=$ac_check_lib_save_LIBS
|
---|
4404 | fi
|
---|
4405 | echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
|
---|
4406 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
|
---|
4407 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
|
---|
4408 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
|
---|
4409 | fi
|
---|
4410 |
|
---|
4411 | LDFLAGS=$ac_save_LDFLAGS
|
---|
4412 |
|
---|
4413 | fi
|
---|
4414 |
|
---|
4415 |
|
---|
4416 | echo "$as_me:$LINENO: checking for library containing socket" >&5
|
---|
4417 | echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
|
---|
4418 | if test "${ac_cv_search_socket+set}" = set; then
|
---|
4419 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4420 | else
|
---|
4421 | ac_func_search_save_LIBS=$LIBS
|
---|
4422 | ac_cv_search_socket=no
|
---|
4423 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4424 | /* confdefs.h. */
|
---|
4425 | _ACEOF
|
---|
4426 | cat confdefs.h >>conftest.$ac_ext
|
---|
4427 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4428 | /* end confdefs.h. */
|
---|
4429 |
|
---|
4430 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4431 | #ifdef __cplusplus
|
---|
4432 | extern "C"
|
---|
4433 | #endif
|
---|
4434 | /* We use char because int might match the return type of a gcc2
|
---|
4435 | builtin and then its argument prototype would still apply. */
|
---|
4436 | char socket ();
|
---|
4437 | int
|
---|
4438 | main ()
|
---|
4439 | {
|
---|
4440 | socket ();
|
---|
4441 | ;
|
---|
4442 | return 0;
|
---|
4443 | }
|
---|
4444 | _ACEOF
|
---|
4445 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4446 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4447 | (eval $ac_link) 2>conftest.er1
|
---|
4448 | ac_status=$?
|
---|
4449 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4450 | rm -f conftest.er1
|
---|
4451 | cat conftest.err >&5
|
---|
4452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4453 | (exit $ac_status); } &&
|
---|
4454 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4455 | || test ! -s conftest.err'
|
---|
4456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4457 | (eval $ac_try) 2>&5
|
---|
4458 | ac_status=$?
|
---|
4459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4460 | (exit $ac_status); }; } &&
|
---|
4461 | { ac_try='test -s conftest$ac_exeext'
|
---|
4462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4463 | (eval $ac_try) 2>&5
|
---|
4464 | ac_status=$?
|
---|
4465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4466 | (exit $ac_status); }; }; then
|
---|
4467 | ac_cv_search_socket="none required"
|
---|
4468 | else
|
---|
4469 | echo "$as_me: failed program was:" >&5
|
---|
4470 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4471 |
|
---|
4472 | fi
|
---|
4473 | rm -f conftest.err conftest.$ac_objext \
|
---|
4474 | conftest$ac_exeext conftest.$ac_ext
|
---|
4475 | if test "$ac_cv_search_socket" = no; then
|
---|
4476 | for ac_lib in socket; do
|
---|
4477 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4478 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4479 | /* confdefs.h. */
|
---|
4480 | _ACEOF
|
---|
4481 | cat confdefs.h >>conftest.$ac_ext
|
---|
4482 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4483 | /* end confdefs.h. */
|
---|
4484 |
|
---|
4485 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4486 | #ifdef __cplusplus
|
---|
4487 | extern "C"
|
---|
4488 | #endif
|
---|
4489 | /* We use char because int might match the return type of a gcc2
|
---|
4490 | builtin and then its argument prototype would still apply. */
|
---|
4491 | char socket ();
|
---|
4492 | int
|
---|
4493 | main ()
|
---|
4494 | {
|
---|
4495 | socket ();
|
---|
4496 | ;
|
---|
4497 | return 0;
|
---|
4498 | }
|
---|
4499 | _ACEOF
|
---|
4500 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4501 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4502 | (eval $ac_link) 2>conftest.er1
|
---|
4503 | ac_status=$?
|
---|
4504 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4505 | rm -f conftest.er1
|
---|
4506 | cat conftest.err >&5
|
---|
4507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4508 | (exit $ac_status); } &&
|
---|
4509 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4510 | || test ! -s conftest.err'
|
---|
4511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4512 | (eval $ac_try) 2>&5
|
---|
4513 | ac_status=$?
|
---|
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4515 | (exit $ac_status); }; } &&
|
---|
4516 | { ac_try='test -s conftest$ac_exeext'
|
---|
4517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4518 | (eval $ac_try) 2>&5
|
---|
4519 | ac_status=$?
|
---|
4520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4521 | (exit $ac_status); }; }; then
|
---|
4522 | ac_cv_search_socket="-l$ac_lib"
|
---|
4523 | break
|
---|
4524 | else
|
---|
4525 | echo "$as_me: failed program was:" >&5
|
---|
4526 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4527 |
|
---|
4528 | fi
|
---|
4529 | rm -f conftest.err conftest.$ac_objext \
|
---|
4530 | conftest$ac_exeext conftest.$ac_ext
|
---|
4531 | done
|
---|
4532 | fi
|
---|
4533 | LIBS=$ac_func_search_save_LIBS
|
---|
4534 | fi
|
---|
4535 | echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
|
---|
4536 | echo "${ECHO_T}$ac_cv_search_socket" >&6
|
---|
4537 | if test "$ac_cv_search_socket" != no; then
|
---|
4538 | test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
|
---|
4539 |
|
---|
4540 | fi
|
---|
4541 |
|
---|
4542 | echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
|
---|
4543 | echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
|
---|
4544 | if test "${ac_cv_search_inet_aton+set}" = set; then
|
---|
4545 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4546 | else
|
---|
4547 | ac_func_search_save_LIBS=$LIBS
|
---|
4548 | ac_cv_search_inet_aton=no
|
---|
4549 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4550 | /* confdefs.h. */
|
---|
4551 | _ACEOF
|
---|
4552 | cat confdefs.h >>conftest.$ac_ext
|
---|
4553 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4554 | /* end confdefs.h. */
|
---|
4555 |
|
---|
4556 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4557 | #ifdef __cplusplus
|
---|
4558 | extern "C"
|
---|
4559 | #endif
|
---|
4560 | /* We use char because int might match the return type of a gcc2
|
---|
4561 | builtin and then its argument prototype would still apply. */
|
---|
4562 | char inet_aton ();
|
---|
4563 | int
|
---|
4564 | main ()
|
---|
4565 | {
|
---|
4566 | inet_aton ();
|
---|
4567 | ;
|
---|
4568 | return 0;
|
---|
4569 | }
|
---|
4570 | _ACEOF
|
---|
4571 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4573 | (eval $ac_link) 2>conftest.er1
|
---|
4574 | ac_status=$?
|
---|
4575 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4576 | rm -f conftest.er1
|
---|
4577 | cat conftest.err >&5
|
---|
4578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4579 | (exit $ac_status); } &&
|
---|
4580 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4581 | || test ! -s conftest.err'
|
---|
4582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4583 | (eval $ac_try) 2>&5
|
---|
4584 | ac_status=$?
|
---|
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4586 | (exit $ac_status); }; } &&
|
---|
4587 | { ac_try='test -s conftest$ac_exeext'
|
---|
4588 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4589 | (eval $ac_try) 2>&5
|
---|
4590 | ac_status=$?
|
---|
4591 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4592 | (exit $ac_status); }; }; then
|
---|
4593 | ac_cv_search_inet_aton="none required"
|
---|
4594 | else
|
---|
4595 | echo "$as_me: failed program was:" >&5
|
---|
4596 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4597 |
|
---|
4598 | fi
|
---|
4599 | rm -f conftest.err conftest.$ac_objext \
|
---|
4600 | conftest$ac_exeext conftest.$ac_ext
|
---|
4601 | if test "$ac_cv_search_inet_aton" = no; then
|
---|
4602 | for ac_lib in resolv; do
|
---|
4603 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
4604 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4605 | /* confdefs.h. */
|
---|
4606 | _ACEOF
|
---|
4607 | cat confdefs.h >>conftest.$ac_ext
|
---|
4608 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4609 | /* end confdefs.h. */
|
---|
4610 |
|
---|
4611 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
4612 | #ifdef __cplusplus
|
---|
4613 | extern "C"
|
---|
4614 | #endif
|
---|
4615 | /* We use char because int might match the return type of a gcc2
|
---|
4616 | builtin and then its argument prototype would still apply. */
|
---|
4617 | char inet_aton ();
|
---|
4618 | int
|
---|
4619 | main ()
|
---|
4620 | {
|
---|
4621 | inet_aton ();
|
---|
4622 | ;
|
---|
4623 | return 0;
|
---|
4624 | }
|
---|
4625 | _ACEOF
|
---|
4626 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
4627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
4628 | (eval $ac_link) 2>conftest.er1
|
---|
4629 | ac_status=$?
|
---|
4630 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4631 | rm -f conftest.er1
|
---|
4632 | cat conftest.err >&5
|
---|
4633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4634 | (exit $ac_status); } &&
|
---|
4635 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4636 | || test ! -s conftest.err'
|
---|
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4638 | (eval $ac_try) 2>&5
|
---|
4639 | ac_status=$?
|
---|
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4641 | (exit $ac_status); }; } &&
|
---|
4642 | { ac_try='test -s conftest$ac_exeext'
|
---|
4643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4644 | (eval $ac_try) 2>&5
|
---|
4645 | ac_status=$?
|
---|
4646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4647 | (exit $ac_status); }; }; then
|
---|
4648 | ac_cv_search_inet_aton="-l$ac_lib"
|
---|
4649 | break
|
---|
4650 | else
|
---|
4651 | echo "$as_me: failed program was:" >&5
|
---|
4652 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4653 |
|
---|
4654 | fi
|
---|
4655 | rm -f conftest.err conftest.$ac_objext \
|
---|
4656 | conftest$ac_exeext conftest.$ac_ext
|
---|
4657 | done
|
---|
4658 | fi
|
---|
4659 | LIBS=$ac_func_search_save_LIBS
|
---|
4660 | fi
|
---|
4661 | echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
|
---|
4662 | echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
|
---|
4663 | if test "$ac_cv_search_inet_aton" != no; then
|
---|
4664 | test "$ac_cv_search_inet_aton" = "none required" || LIBS="$ac_cv_search_inet_aton $LIBS"
|
---|
4665 |
|
---|
4666 | fi
|
---|
4667 |
|
---|
4668 |
|
---|
4669 | # On IRIX 5.3, sys/types and inttypes.h are conflicting.
|
---|
4670 |
|
---|
4671 |
|
---|
4672 |
|
---|
4673 |
|
---|
4674 |
|
---|
4675 |
|
---|
4676 |
|
---|
4677 |
|
---|
4678 |
|
---|
4679 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
---|
4680 | inttypes.h stdint.h unistd.h
|
---|
4681 | do
|
---|
4682 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
4683 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
4684 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
4685 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
4686 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4687 | else
|
---|
4688 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4689 | /* confdefs.h. */
|
---|
4690 | _ACEOF
|
---|
4691 | cat confdefs.h >>conftest.$ac_ext
|
---|
4692 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4693 | /* end confdefs.h. */
|
---|
4694 | $ac_includes_default
|
---|
4695 |
|
---|
4696 | #include <$ac_header>
|
---|
4697 | _ACEOF
|
---|
4698 | rm -f conftest.$ac_objext
|
---|
4699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4700 | (eval $ac_compile) 2>conftest.er1
|
---|
4701 | ac_status=$?
|
---|
4702 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4703 | rm -f conftest.er1
|
---|
4704 | cat conftest.err >&5
|
---|
4705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4706 | (exit $ac_status); } &&
|
---|
4707 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4708 | || test ! -s conftest.err'
|
---|
4709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4710 | (eval $ac_try) 2>&5
|
---|
4711 | ac_status=$?
|
---|
4712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4713 | (exit $ac_status); }; } &&
|
---|
4714 | { ac_try='test -s conftest.$ac_objext'
|
---|
4715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4716 | (eval $ac_try) 2>&5
|
---|
4717 | ac_status=$?
|
---|
4718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4719 | (exit $ac_status); }; }; then
|
---|
4720 | eval "$as_ac_Header=yes"
|
---|
4721 | else
|
---|
4722 | echo "$as_me: failed program was:" >&5
|
---|
4723 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4724 |
|
---|
4725 | eval "$as_ac_Header=no"
|
---|
4726 | fi
|
---|
4727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4728 | fi
|
---|
4729 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
4730 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
4731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
4732 | cat >>confdefs.h <<_ACEOF
|
---|
4733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
4734 | _ACEOF
|
---|
4735 |
|
---|
4736 | fi
|
---|
4737 |
|
---|
4738 | done
|
---|
4739 |
|
---|
4740 |
|
---|
4741 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
4742 | echo "$as_me:$LINENO: checking for sys/select.h" >&5
|
---|
4743 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
|
---|
4744 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
4745 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4746 | fi
|
---|
4747 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
|
---|
4748 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
|
---|
4749 | else
|
---|
4750 | # Is the header compilable?
|
---|
4751 | echo "$as_me:$LINENO: checking sys/select.h usability" >&5
|
---|
4752 | echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
|
---|
4753 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4754 | /* confdefs.h. */
|
---|
4755 | _ACEOF
|
---|
4756 | cat confdefs.h >>conftest.$ac_ext
|
---|
4757 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4758 | /* end confdefs.h. */
|
---|
4759 | $ac_includes_default
|
---|
4760 | #include <sys/select.h>
|
---|
4761 | _ACEOF
|
---|
4762 | rm -f conftest.$ac_objext
|
---|
4763 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4764 | (eval $ac_compile) 2>conftest.er1
|
---|
4765 | ac_status=$?
|
---|
4766 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4767 | rm -f conftest.er1
|
---|
4768 | cat conftest.err >&5
|
---|
4769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4770 | (exit $ac_status); } &&
|
---|
4771 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4772 | || test ! -s conftest.err'
|
---|
4773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4774 | (eval $ac_try) 2>&5
|
---|
4775 | ac_status=$?
|
---|
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4777 | (exit $ac_status); }; } &&
|
---|
4778 | { ac_try='test -s conftest.$ac_objext'
|
---|
4779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4780 | (eval $ac_try) 2>&5
|
---|
4781 | ac_status=$?
|
---|
4782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4783 | (exit $ac_status); }; }; then
|
---|
4784 | ac_header_compiler=yes
|
---|
4785 | else
|
---|
4786 | echo "$as_me: failed program was:" >&5
|
---|
4787 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4788 |
|
---|
4789 | ac_header_compiler=no
|
---|
4790 | fi
|
---|
4791 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4792 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4793 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
4794 |
|
---|
4795 | # Is the header present?
|
---|
4796 | echo "$as_me:$LINENO: checking sys/select.h presence" >&5
|
---|
4797 | echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
|
---|
4798 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4799 | /* confdefs.h. */
|
---|
4800 | _ACEOF
|
---|
4801 | cat confdefs.h >>conftest.$ac_ext
|
---|
4802 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4803 | /* end confdefs.h. */
|
---|
4804 | #include <sys/select.h>
|
---|
4805 | _ACEOF
|
---|
4806 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4807 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4808 | ac_status=$?
|
---|
4809 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4810 | rm -f conftest.er1
|
---|
4811 | cat conftest.err >&5
|
---|
4812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4813 | (exit $ac_status); } >/dev/null; then
|
---|
4814 | if test -s conftest.err; then
|
---|
4815 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4816 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4817 | else
|
---|
4818 | ac_cpp_err=
|
---|
4819 | fi
|
---|
4820 | else
|
---|
4821 | ac_cpp_err=yes
|
---|
4822 | fi
|
---|
4823 | if test -z "$ac_cpp_err"; then
|
---|
4824 | ac_header_preproc=yes
|
---|
4825 | else
|
---|
4826 | echo "$as_me: failed program was:" >&5
|
---|
4827 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4828 |
|
---|
4829 | ac_header_preproc=no
|
---|
4830 | fi
|
---|
4831 | rm -f conftest.err conftest.$ac_ext
|
---|
4832 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4833 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4834 |
|
---|
4835 | # So? What about this header?
|
---|
4836 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4837 | yes:no: )
|
---|
4838 | { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4839 | echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4840 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
|
---|
4841 | echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
|
---|
4842 | ac_header_preproc=yes
|
---|
4843 | ;;
|
---|
4844 | no:yes:* )
|
---|
4845 | { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
|
---|
4846 | echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
|
---|
4847 | { echo "$as_me:$LINENO: WARNING: sys/select.h: check for missing prerequisite headers?" >&5
|
---|
4848 | echo "$as_me: WARNING: sys/select.h: check for missing prerequisite headers?" >&2;}
|
---|
4849 | { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
|
---|
4850 | echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
|
---|
4851 | { echo "$as_me:$LINENO: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4852 | echo "$as_me: WARNING: sys/select.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4853 | { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
|
---|
4854 | echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
|
---|
4855 | { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
|
---|
4856 | echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
|
---|
4857 | (
|
---|
4858 | cat <<\_ASBOX
|
---|
4859 | ## ----------------------------------- ##
|
---|
4860 | ## Report this to the rdesktop lists. ##
|
---|
4861 | ## ----------------------------------- ##
|
---|
4862 | _ASBOX
|
---|
4863 | ) |
|
---|
4864 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
4865 | ;;
|
---|
4866 | esac
|
---|
4867 | echo "$as_me:$LINENO: checking for sys/select.h" >&5
|
---|
4868 | echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
|
---|
4869 | if test "${ac_cv_header_sys_select_h+set}" = set; then
|
---|
4870 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4871 | else
|
---|
4872 | ac_cv_header_sys_select_h=$ac_header_preproc
|
---|
4873 | fi
|
---|
4874 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
|
---|
4875 | echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
|
---|
4876 |
|
---|
4877 | fi
|
---|
4878 | if test $ac_cv_header_sys_select_h = yes; then
|
---|
4879 | cat >>confdefs.h <<\_ACEOF
|
---|
4880 | #define HAVE_SYS_SELECT_H 1
|
---|
4881 | _ACEOF
|
---|
4882 |
|
---|
4883 | fi
|
---|
4884 |
|
---|
4885 |
|
---|
4886 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
4887 | echo "$as_me:$LINENO: checking for sys/modem.h" >&5
|
---|
4888 | echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6
|
---|
4889 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
4890 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
4891 | fi
|
---|
4892 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
|
---|
4893 | echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6
|
---|
4894 | else
|
---|
4895 | # Is the header compilable?
|
---|
4896 | echo "$as_me:$LINENO: checking sys/modem.h usability" >&5
|
---|
4897 | echo $ECHO_N "checking sys/modem.h usability... $ECHO_C" >&6
|
---|
4898 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4899 | /* confdefs.h. */
|
---|
4900 | _ACEOF
|
---|
4901 | cat confdefs.h >>conftest.$ac_ext
|
---|
4902 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4903 | /* end confdefs.h. */
|
---|
4904 | $ac_includes_default
|
---|
4905 | #include <sys/modem.h>
|
---|
4906 | _ACEOF
|
---|
4907 | rm -f conftest.$ac_objext
|
---|
4908 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
4909 | (eval $ac_compile) 2>conftest.er1
|
---|
4910 | ac_status=$?
|
---|
4911 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4912 | rm -f conftest.er1
|
---|
4913 | cat conftest.err >&5
|
---|
4914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4915 | (exit $ac_status); } &&
|
---|
4916 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
4917 | || test ! -s conftest.err'
|
---|
4918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4919 | (eval $ac_try) 2>&5
|
---|
4920 | ac_status=$?
|
---|
4921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4922 | (exit $ac_status); }; } &&
|
---|
4923 | { ac_try='test -s conftest.$ac_objext'
|
---|
4924 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
4925 | (eval $ac_try) 2>&5
|
---|
4926 | ac_status=$?
|
---|
4927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4928 | (exit $ac_status); }; }; then
|
---|
4929 | ac_header_compiler=yes
|
---|
4930 | else
|
---|
4931 | echo "$as_me: failed program was:" >&5
|
---|
4932 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4933 |
|
---|
4934 | ac_header_compiler=no
|
---|
4935 | fi
|
---|
4936 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
4937 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
4938 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
4939 |
|
---|
4940 | # Is the header present?
|
---|
4941 | echo "$as_me:$LINENO: checking sys/modem.h presence" >&5
|
---|
4942 | echo $ECHO_N "checking sys/modem.h presence... $ECHO_C" >&6
|
---|
4943 | cat >conftest.$ac_ext <<_ACEOF
|
---|
4944 | /* confdefs.h. */
|
---|
4945 | _ACEOF
|
---|
4946 | cat confdefs.h >>conftest.$ac_ext
|
---|
4947 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
4948 | /* end confdefs.h. */
|
---|
4949 | #include <sys/modem.h>
|
---|
4950 | _ACEOF
|
---|
4951 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
4952 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
4953 | ac_status=$?
|
---|
4954 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
4955 | rm -f conftest.er1
|
---|
4956 | cat conftest.err >&5
|
---|
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
4958 | (exit $ac_status); } >/dev/null; then
|
---|
4959 | if test -s conftest.err; then
|
---|
4960 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
4961 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
4962 | else
|
---|
4963 | ac_cpp_err=
|
---|
4964 | fi
|
---|
4965 | else
|
---|
4966 | ac_cpp_err=yes
|
---|
4967 | fi
|
---|
4968 | if test -z "$ac_cpp_err"; then
|
---|
4969 | ac_header_preproc=yes
|
---|
4970 | else
|
---|
4971 | echo "$as_me: failed program was:" >&5
|
---|
4972 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
4973 |
|
---|
4974 | ac_header_preproc=no
|
---|
4975 | fi
|
---|
4976 | rm -f conftest.err conftest.$ac_ext
|
---|
4977 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
4978 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
4979 |
|
---|
4980 | # So? What about this header?
|
---|
4981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
4982 | yes:no: )
|
---|
4983 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
4984 | echo "$as_me: WARNING: sys/modem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
4985 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the compiler's result" >&5
|
---|
4986 | echo "$as_me: WARNING: sys/modem.h: proceeding with the compiler's result" >&2;}
|
---|
4987 | ac_header_preproc=yes
|
---|
4988 | ;;
|
---|
4989 | no:yes:* )
|
---|
4990 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: present but cannot be compiled" >&5
|
---|
4991 | echo "$as_me: WARNING: sys/modem.h: present but cannot be compiled" >&2;}
|
---|
4992 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: check for missing prerequisite headers?" >&5
|
---|
4993 | echo "$as_me: WARNING: sys/modem.h: check for missing prerequisite headers?" >&2;}
|
---|
4994 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: see the Autoconf documentation" >&5
|
---|
4995 | echo "$as_me: WARNING: sys/modem.h: see the Autoconf documentation" >&2;}
|
---|
4996 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
4997 | echo "$as_me: WARNING: sys/modem.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
4998 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&5
|
---|
4999 | echo "$as_me: WARNING: sys/modem.h: proceeding with the preprocessor's result" >&2;}
|
---|
5000 | { echo "$as_me:$LINENO: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&5
|
---|
5001 | echo "$as_me: WARNING: sys/modem.h: in the future, the compiler will take precedence" >&2;}
|
---|
5002 | (
|
---|
5003 | cat <<\_ASBOX
|
---|
5004 | ## ----------------------------------- ##
|
---|
5005 | ## Report this to the rdesktop lists. ##
|
---|
5006 | ## ----------------------------------- ##
|
---|
5007 | _ASBOX
|
---|
5008 | ) |
|
---|
5009 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5010 | ;;
|
---|
5011 | esac
|
---|
5012 | echo "$as_me:$LINENO: checking for sys/modem.h" >&5
|
---|
5013 | echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6
|
---|
5014 | if test "${ac_cv_header_sys_modem_h+set}" = set; then
|
---|
5015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5016 | else
|
---|
5017 | ac_cv_header_sys_modem_h=$ac_header_preproc
|
---|
5018 | fi
|
---|
5019 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
|
---|
5020 | echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6
|
---|
5021 |
|
---|
5022 | fi
|
---|
5023 | if test $ac_cv_header_sys_modem_h = yes; then
|
---|
5024 | cat >>confdefs.h <<\_ACEOF
|
---|
5025 | #define HAVE_SYS_MODEM_H 1
|
---|
5026 | _ACEOF
|
---|
5027 |
|
---|
5028 | fi
|
---|
5029 |
|
---|
5030 |
|
---|
5031 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5032 | echo "$as_me:$LINENO: checking for sys/filio.h" >&5
|
---|
5033 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
|
---|
5034 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5035 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5036 | fi
|
---|
5037 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
|
---|
5038 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
|
---|
5039 | else
|
---|
5040 | # Is the header compilable?
|
---|
5041 | echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
|
---|
5042 | echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6
|
---|
5043 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5044 | /* confdefs.h. */
|
---|
5045 | _ACEOF
|
---|
5046 | cat confdefs.h >>conftest.$ac_ext
|
---|
5047 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5048 | /* end confdefs.h. */
|
---|
5049 | $ac_includes_default
|
---|
5050 | #include <sys/filio.h>
|
---|
5051 | _ACEOF
|
---|
5052 | rm -f conftest.$ac_objext
|
---|
5053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5054 | (eval $ac_compile) 2>conftest.er1
|
---|
5055 | ac_status=$?
|
---|
5056 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5057 | rm -f conftest.er1
|
---|
5058 | cat conftest.err >&5
|
---|
5059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5060 | (exit $ac_status); } &&
|
---|
5061 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5062 | || test ! -s conftest.err'
|
---|
5063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5064 | (eval $ac_try) 2>&5
|
---|
5065 | ac_status=$?
|
---|
5066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5067 | (exit $ac_status); }; } &&
|
---|
5068 | { ac_try='test -s conftest.$ac_objext'
|
---|
5069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5070 | (eval $ac_try) 2>&5
|
---|
5071 | ac_status=$?
|
---|
5072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5073 | (exit $ac_status); }; }; then
|
---|
5074 | ac_header_compiler=yes
|
---|
5075 | else
|
---|
5076 | echo "$as_me: failed program was:" >&5
|
---|
5077 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5078 |
|
---|
5079 | ac_header_compiler=no
|
---|
5080 | fi
|
---|
5081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5082 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5083 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5084 |
|
---|
5085 | # Is the header present?
|
---|
5086 | echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
|
---|
5087 | echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6
|
---|
5088 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5089 | /* confdefs.h. */
|
---|
5090 | _ACEOF
|
---|
5091 | cat confdefs.h >>conftest.$ac_ext
|
---|
5092 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5093 | /* end confdefs.h. */
|
---|
5094 | #include <sys/filio.h>
|
---|
5095 | _ACEOF
|
---|
5096 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5097 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5098 | ac_status=$?
|
---|
5099 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5100 | rm -f conftest.er1
|
---|
5101 | cat conftest.err >&5
|
---|
5102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5103 | (exit $ac_status); } >/dev/null; then
|
---|
5104 | if test -s conftest.err; then
|
---|
5105 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5106 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5107 | else
|
---|
5108 | ac_cpp_err=
|
---|
5109 | fi
|
---|
5110 | else
|
---|
5111 | ac_cpp_err=yes
|
---|
5112 | fi
|
---|
5113 | if test -z "$ac_cpp_err"; then
|
---|
5114 | ac_header_preproc=yes
|
---|
5115 | else
|
---|
5116 | echo "$as_me: failed program was:" >&5
|
---|
5117 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5118 |
|
---|
5119 | ac_header_preproc=no
|
---|
5120 | fi
|
---|
5121 | rm -f conftest.err conftest.$ac_ext
|
---|
5122 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5123 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5124 |
|
---|
5125 | # So? What about this header?
|
---|
5126 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5127 | yes:no: )
|
---|
5128 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5129 | echo "$as_me: WARNING: sys/filio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5130 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the compiler's result" >&5
|
---|
5131 | echo "$as_me: WARNING: sys/filio.h: proceeding with the compiler's result" >&2;}
|
---|
5132 | ac_header_preproc=yes
|
---|
5133 | ;;
|
---|
5134 | no:yes:* )
|
---|
5135 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: present but cannot be compiled" >&5
|
---|
5136 | echo "$as_me: WARNING: sys/filio.h: present but cannot be compiled" >&2;}
|
---|
5137 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: check for missing prerequisite headers?" >&5
|
---|
5138 | echo "$as_me: WARNING: sys/filio.h: check for missing prerequisite headers?" >&2;}
|
---|
5139 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: see the Autoconf documentation" >&5
|
---|
5140 | echo "$as_me: WARNING: sys/filio.h: see the Autoconf documentation" >&2;}
|
---|
5141 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5142 | echo "$as_me: WARNING: sys/filio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5143 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&5
|
---|
5144 | echo "$as_me: WARNING: sys/filio.h: proceeding with the preprocessor's result" >&2;}
|
---|
5145 | { echo "$as_me:$LINENO: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&5
|
---|
5146 | echo "$as_me: WARNING: sys/filio.h: in the future, the compiler will take precedence" >&2;}
|
---|
5147 | (
|
---|
5148 | cat <<\_ASBOX
|
---|
5149 | ## ----------------------------------- ##
|
---|
5150 | ## Report this to the rdesktop lists. ##
|
---|
5151 | ## ----------------------------------- ##
|
---|
5152 | _ASBOX
|
---|
5153 | ) |
|
---|
5154 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5155 | ;;
|
---|
5156 | esac
|
---|
5157 | echo "$as_me:$LINENO: checking for sys/filio.h" >&5
|
---|
5158 | echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
|
---|
5159 | if test "${ac_cv_header_sys_filio_h+set}" = set; then
|
---|
5160 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5161 | else
|
---|
5162 | ac_cv_header_sys_filio_h=$ac_header_preproc
|
---|
5163 | fi
|
---|
5164 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
|
---|
5165 | echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
|
---|
5166 |
|
---|
5167 | fi
|
---|
5168 | if test $ac_cv_header_sys_filio_h = yes; then
|
---|
5169 | cat >>confdefs.h <<\_ACEOF
|
---|
5170 | #define HAVE_SYS_FILIO_H 1
|
---|
5171 | _ACEOF
|
---|
5172 |
|
---|
5173 | fi
|
---|
5174 |
|
---|
5175 |
|
---|
5176 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5177 | echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
|
---|
5178 | echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6
|
---|
5179 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5180 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5181 | fi
|
---|
5182 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
|
---|
5183 | echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6
|
---|
5184 | else
|
---|
5185 | # Is the header compilable?
|
---|
5186 | echo "$as_me:$LINENO: checking sys/strtio.h usability" >&5
|
---|
5187 | echo $ECHO_N "checking sys/strtio.h usability... $ECHO_C" >&6
|
---|
5188 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5189 | /* confdefs.h. */
|
---|
5190 | _ACEOF
|
---|
5191 | cat confdefs.h >>conftest.$ac_ext
|
---|
5192 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5193 | /* end confdefs.h. */
|
---|
5194 | $ac_includes_default
|
---|
5195 | #include <sys/strtio.h>
|
---|
5196 | _ACEOF
|
---|
5197 | rm -f conftest.$ac_objext
|
---|
5198 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5199 | (eval $ac_compile) 2>conftest.er1
|
---|
5200 | ac_status=$?
|
---|
5201 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5202 | rm -f conftest.er1
|
---|
5203 | cat conftest.err >&5
|
---|
5204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5205 | (exit $ac_status); } &&
|
---|
5206 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5207 | || test ! -s conftest.err'
|
---|
5208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5209 | (eval $ac_try) 2>&5
|
---|
5210 | ac_status=$?
|
---|
5211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5212 | (exit $ac_status); }; } &&
|
---|
5213 | { ac_try='test -s conftest.$ac_objext'
|
---|
5214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5215 | (eval $ac_try) 2>&5
|
---|
5216 | ac_status=$?
|
---|
5217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5218 | (exit $ac_status); }; }; then
|
---|
5219 | ac_header_compiler=yes
|
---|
5220 | else
|
---|
5221 | echo "$as_me: failed program was:" >&5
|
---|
5222 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5223 |
|
---|
5224 | ac_header_compiler=no
|
---|
5225 | fi
|
---|
5226 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5227 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5228 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5229 |
|
---|
5230 | # Is the header present?
|
---|
5231 | echo "$as_me:$LINENO: checking sys/strtio.h presence" >&5
|
---|
5232 | echo $ECHO_N "checking sys/strtio.h presence... $ECHO_C" >&6
|
---|
5233 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5234 | /* confdefs.h. */
|
---|
5235 | _ACEOF
|
---|
5236 | cat confdefs.h >>conftest.$ac_ext
|
---|
5237 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5238 | /* end confdefs.h. */
|
---|
5239 | #include <sys/strtio.h>
|
---|
5240 | _ACEOF
|
---|
5241 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5242 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5243 | ac_status=$?
|
---|
5244 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5245 | rm -f conftest.er1
|
---|
5246 | cat conftest.err >&5
|
---|
5247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5248 | (exit $ac_status); } >/dev/null; then
|
---|
5249 | if test -s conftest.err; then
|
---|
5250 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5251 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5252 | else
|
---|
5253 | ac_cpp_err=
|
---|
5254 | fi
|
---|
5255 | else
|
---|
5256 | ac_cpp_err=yes
|
---|
5257 | fi
|
---|
5258 | if test -z "$ac_cpp_err"; then
|
---|
5259 | ac_header_preproc=yes
|
---|
5260 | else
|
---|
5261 | echo "$as_me: failed program was:" >&5
|
---|
5262 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5263 |
|
---|
5264 | ac_header_preproc=no
|
---|
5265 | fi
|
---|
5266 | rm -f conftest.err conftest.$ac_ext
|
---|
5267 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5268 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5269 |
|
---|
5270 | # So? What about this header?
|
---|
5271 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5272 | yes:no: )
|
---|
5273 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5274 | echo "$as_me: WARNING: sys/strtio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5275 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the compiler's result" >&5
|
---|
5276 | echo "$as_me: WARNING: sys/strtio.h: proceeding with the compiler's result" >&2;}
|
---|
5277 | ac_header_preproc=yes
|
---|
5278 | ;;
|
---|
5279 | no:yes:* )
|
---|
5280 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: present but cannot be compiled" >&5
|
---|
5281 | echo "$as_me: WARNING: sys/strtio.h: present but cannot be compiled" >&2;}
|
---|
5282 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&5
|
---|
5283 | echo "$as_me: WARNING: sys/strtio.h: check for missing prerequisite headers?" >&2;}
|
---|
5284 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: see the Autoconf documentation" >&5
|
---|
5285 | echo "$as_me: WARNING: sys/strtio.h: see the Autoconf documentation" >&2;}
|
---|
5286 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5287 | echo "$as_me: WARNING: sys/strtio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5288 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&5
|
---|
5289 | echo "$as_me: WARNING: sys/strtio.h: proceeding with the preprocessor's result" >&2;}
|
---|
5290 | { echo "$as_me:$LINENO: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&5
|
---|
5291 | echo "$as_me: WARNING: sys/strtio.h: in the future, the compiler will take precedence" >&2;}
|
---|
5292 | (
|
---|
5293 | cat <<\_ASBOX
|
---|
5294 | ## ----------------------------------- ##
|
---|
5295 | ## Report this to the rdesktop lists. ##
|
---|
5296 | ## ----------------------------------- ##
|
---|
5297 | _ASBOX
|
---|
5298 | ) |
|
---|
5299 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5300 | ;;
|
---|
5301 | esac
|
---|
5302 | echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
|
---|
5303 | echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6
|
---|
5304 | if test "${ac_cv_header_sys_strtio_h+set}" = set; then
|
---|
5305 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5306 | else
|
---|
5307 | ac_cv_header_sys_strtio_h=$ac_header_preproc
|
---|
5308 | fi
|
---|
5309 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
|
---|
5310 | echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6
|
---|
5311 |
|
---|
5312 | fi
|
---|
5313 | if test $ac_cv_header_sys_strtio_h = yes; then
|
---|
5314 | cat >>confdefs.h <<\_ACEOF
|
---|
5315 | #define HAVE_SYS_STRTIO_H 1
|
---|
5316 | _ACEOF
|
---|
5317 |
|
---|
5318 | fi
|
---|
5319 |
|
---|
5320 |
|
---|
5321 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5322 | echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
5323 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
|
---|
5324 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5325 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5326 | fi
|
---|
5327 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
5328 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6
|
---|
5329 | else
|
---|
5330 | # Is the header compilable?
|
---|
5331 | echo "$as_me:$LINENO: checking locale.h usability" >&5
|
---|
5332 | echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
|
---|
5333 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5334 | /* confdefs.h. */
|
---|
5335 | _ACEOF
|
---|
5336 | cat confdefs.h >>conftest.$ac_ext
|
---|
5337 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5338 | /* end confdefs.h. */
|
---|
5339 | $ac_includes_default
|
---|
5340 | #include <locale.h>
|
---|
5341 | _ACEOF
|
---|
5342 | rm -f conftest.$ac_objext
|
---|
5343 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5344 | (eval $ac_compile) 2>conftest.er1
|
---|
5345 | ac_status=$?
|
---|
5346 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5347 | rm -f conftest.er1
|
---|
5348 | cat conftest.err >&5
|
---|
5349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5350 | (exit $ac_status); } &&
|
---|
5351 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5352 | || test ! -s conftest.err'
|
---|
5353 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5354 | (eval $ac_try) 2>&5
|
---|
5355 | ac_status=$?
|
---|
5356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5357 | (exit $ac_status); }; } &&
|
---|
5358 | { ac_try='test -s conftest.$ac_objext'
|
---|
5359 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5360 | (eval $ac_try) 2>&5
|
---|
5361 | ac_status=$?
|
---|
5362 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5363 | (exit $ac_status); }; }; then
|
---|
5364 | ac_header_compiler=yes
|
---|
5365 | else
|
---|
5366 | echo "$as_me: failed program was:" >&5
|
---|
5367 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5368 |
|
---|
5369 | ac_header_compiler=no
|
---|
5370 | fi
|
---|
5371 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5372 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5373 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5374 |
|
---|
5375 | # Is the header present?
|
---|
5376 | echo "$as_me:$LINENO: checking locale.h presence" >&5
|
---|
5377 | echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
|
---|
5378 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5379 | /* confdefs.h. */
|
---|
5380 | _ACEOF
|
---|
5381 | cat confdefs.h >>conftest.$ac_ext
|
---|
5382 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5383 | /* end confdefs.h. */
|
---|
5384 | #include <locale.h>
|
---|
5385 | _ACEOF
|
---|
5386 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5387 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5388 | ac_status=$?
|
---|
5389 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5390 | rm -f conftest.er1
|
---|
5391 | cat conftest.err >&5
|
---|
5392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5393 | (exit $ac_status); } >/dev/null; then
|
---|
5394 | if test -s conftest.err; then
|
---|
5395 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5396 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5397 | else
|
---|
5398 | ac_cpp_err=
|
---|
5399 | fi
|
---|
5400 | else
|
---|
5401 | ac_cpp_err=yes
|
---|
5402 | fi
|
---|
5403 | if test -z "$ac_cpp_err"; then
|
---|
5404 | ac_header_preproc=yes
|
---|
5405 | else
|
---|
5406 | echo "$as_me: failed program was:" >&5
|
---|
5407 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5408 |
|
---|
5409 | ac_header_preproc=no
|
---|
5410 | fi
|
---|
5411 | rm -f conftest.err conftest.$ac_ext
|
---|
5412 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5413 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5414 |
|
---|
5415 | # So? What about this header?
|
---|
5416 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5417 | yes:no: )
|
---|
5418 | { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5419 | echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5420 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
|
---|
5421 | echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
|
---|
5422 | ac_header_preproc=yes
|
---|
5423 | ;;
|
---|
5424 | no:yes:* )
|
---|
5425 | { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
|
---|
5426 | echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
|
---|
5427 | { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
|
---|
5428 | echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
|
---|
5429 | { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
|
---|
5430 | echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
|
---|
5431 | { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5432 | echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5433 | { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
|
---|
5434 | echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
|
---|
5435 | { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
|
---|
5436 | echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
|
---|
5437 | (
|
---|
5438 | cat <<\_ASBOX
|
---|
5439 | ## ----------------------------------- ##
|
---|
5440 | ## Report this to the rdesktop lists. ##
|
---|
5441 | ## ----------------------------------- ##
|
---|
5442 | _ASBOX
|
---|
5443 | ) |
|
---|
5444 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5445 | ;;
|
---|
5446 | esac
|
---|
5447 | echo "$as_me:$LINENO: checking for locale.h" >&5
|
---|
5448 | echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
|
---|
5449 | if test "${ac_cv_header_locale_h+set}" = set; then
|
---|
5450 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5451 | else
|
---|
5452 | ac_cv_header_locale_h=$ac_header_preproc
|
---|
5453 | fi
|
---|
5454 | echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
|
---|
5455 | echo "${ECHO_T}$ac_cv_header_locale_h" >&6
|
---|
5456 |
|
---|
5457 | fi
|
---|
5458 | if test $ac_cv_header_locale_h = yes; then
|
---|
5459 | cat >>confdefs.h <<\_ACEOF
|
---|
5460 | #define HAVE_LOCALE_H 1
|
---|
5461 | _ACEOF
|
---|
5462 |
|
---|
5463 | fi
|
---|
5464 |
|
---|
5465 |
|
---|
5466 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
5467 | echo "$as_me:$LINENO: checking for langinfo.h" >&5
|
---|
5468 | echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
|
---|
5469 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
5470 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5471 | fi
|
---|
5472 | echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
|
---|
5473 | echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
|
---|
5474 | else
|
---|
5475 | # Is the header compilable?
|
---|
5476 | echo "$as_me:$LINENO: checking langinfo.h usability" >&5
|
---|
5477 | echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
|
---|
5478 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5479 | /* confdefs.h. */
|
---|
5480 | _ACEOF
|
---|
5481 | cat confdefs.h >>conftest.$ac_ext
|
---|
5482 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5483 | /* end confdefs.h. */
|
---|
5484 | $ac_includes_default
|
---|
5485 | #include <langinfo.h>
|
---|
5486 | _ACEOF
|
---|
5487 | rm -f conftest.$ac_objext
|
---|
5488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5489 | (eval $ac_compile) 2>conftest.er1
|
---|
5490 | ac_status=$?
|
---|
5491 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5492 | rm -f conftest.er1
|
---|
5493 | cat conftest.err >&5
|
---|
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5495 | (exit $ac_status); } &&
|
---|
5496 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5497 | || test ! -s conftest.err'
|
---|
5498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5499 | (eval $ac_try) 2>&5
|
---|
5500 | ac_status=$?
|
---|
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5502 | (exit $ac_status); }; } &&
|
---|
5503 | { ac_try='test -s conftest.$ac_objext'
|
---|
5504 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5505 | (eval $ac_try) 2>&5
|
---|
5506 | ac_status=$?
|
---|
5507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5508 | (exit $ac_status); }; }; then
|
---|
5509 | ac_header_compiler=yes
|
---|
5510 | else
|
---|
5511 | echo "$as_me: failed program was:" >&5
|
---|
5512 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5513 |
|
---|
5514 | ac_header_compiler=no
|
---|
5515 | fi
|
---|
5516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5517 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
5518 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
5519 |
|
---|
5520 | # Is the header present?
|
---|
5521 | echo "$as_me:$LINENO: checking langinfo.h presence" >&5
|
---|
5522 | echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
|
---|
5523 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5524 | /* confdefs.h. */
|
---|
5525 | _ACEOF
|
---|
5526 | cat confdefs.h >>conftest.$ac_ext
|
---|
5527 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5528 | /* end confdefs.h. */
|
---|
5529 | #include <langinfo.h>
|
---|
5530 | _ACEOF
|
---|
5531 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
5532 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
5533 | ac_status=$?
|
---|
5534 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5535 | rm -f conftest.er1
|
---|
5536 | cat conftest.err >&5
|
---|
5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5538 | (exit $ac_status); } >/dev/null; then
|
---|
5539 | if test -s conftest.err; then
|
---|
5540 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
5541 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
5542 | else
|
---|
5543 | ac_cpp_err=
|
---|
5544 | fi
|
---|
5545 | else
|
---|
5546 | ac_cpp_err=yes
|
---|
5547 | fi
|
---|
5548 | if test -z "$ac_cpp_err"; then
|
---|
5549 | ac_header_preproc=yes
|
---|
5550 | else
|
---|
5551 | echo "$as_me: failed program was:" >&5
|
---|
5552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5553 |
|
---|
5554 | ac_header_preproc=no
|
---|
5555 | fi
|
---|
5556 | rm -f conftest.err conftest.$ac_ext
|
---|
5557 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
5558 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
5559 |
|
---|
5560 | # So? What about this header?
|
---|
5561 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
5562 | yes:no: )
|
---|
5563 | { echo "$as_me:$LINENO: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
5564 | echo "$as_me: WARNING: langinfo.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
5565 | { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the compiler's result" >&5
|
---|
5566 | echo "$as_me: WARNING: langinfo.h: proceeding with the compiler's result" >&2;}
|
---|
5567 | ac_header_preproc=yes
|
---|
5568 | ;;
|
---|
5569 | no:yes:* )
|
---|
5570 | { echo "$as_me:$LINENO: WARNING: langinfo.h: present but cannot be compiled" >&5
|
---|
5571 | echo "$as_me: WARNING: langinfo.h: present but cannot be compiled" >&2;}
|
---|
5572 | { echo "$as_me:$LINENO: WARNING: langinfo.h: check for missing prerequisite headers?" >&5
|
---|
5573 | echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
|
---|
5574 | { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
|
---|
5575 | echo "$as_me: WARNING: langinfo.h: see the Autoconf documentation" >&2;}
|
---|
5576 | { echo "$as_me:$LINENO: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
5577 | echo "$as_me: WARNING: langinfo.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
5578 | { echo "$as_me:$LINENO: WARNING: langinfo.h: proceeding with the preprocessor's result" >&5
|
---|
5579 | echo "$as_me: WARNING: langinfo.h: proceeding with the preprocessor's result" >&2;}
|
---|
5580 | { echo "$as_me:$LINENO: WARNING: langinfo.h: in the future, the compiler will take precedence" >&5
|
---|
5581 | echo "$as_me: WARNING: langinfo.h: in the future, the compiler will take precedence" >&2;}
|
---|
5582 | (
|
---|
5583 | cat <<\_ASBOX
|
---|
5584 | ## ----------------------------------- ##
|
---|
5585 | ## Report this to the rdesktop lists. ##
|
---|
5586 | ## ----------------------------------- ##
|
---|
5587 | _ASBOX
|
---|
5588 | ) |
|
---|
5589 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
5590 | ;;
|
---|
5591 | esac
|
---|
5592 | echo "$as_me:$LINENO: checking for langinfo.h" >&5
|
---|
5593 | echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
|
---|
5594 | if test "${ac_cv_header_langinfo_h+set}" = set; then
|
---|
5595 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5596 | else
|
---|
5597 | ac_cv_header_langinfo_h=$ac_header_preproc
|
---|
5598 | fi
|
---|
5599 | echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
|
---|
5600 | echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
|
---|
5601 |
|
---|
5602 | fi
|
---|
5603 | if test $ac_cv_header_langinfo_h = yes; then
|
---|
5604 | cat >>confdefs.h <<\_ACEOF
|
---|
5605 | #define HAVE_LANGINFO_H 1
|
---|
5606 | _ACEOF
|
---|
5607 |
|
---|
5608 | fi
|
---|
5609 |
|
---|
5610 |
|
---|
5611 |
|
---|
5612 | if test -n "$ac_tool_prefix"; then
|
---|
5613 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
|
---|
5614 | set dummy ${ac_tool_prefix}strip; ac_word=$2
|
---|
5615 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
5616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
5617 | if test "${ac_cv_prog_STRIP+set}" = set; then
|
---|
5618 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5619 | else
|
---|
5620 | if test -n "$STRIP"; then
|
---|
5621 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
|
---|
5622 | else
|
---|
5623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5624 | for as_dir in $PATH
|
---|
5625 | do
|
---|
5626 | IFS=$as_save_IFS
|
---|
5627 | test -z "$as_dir" && as_dir=.
|
---|
5628 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5629 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5630 | ac_cv_prog_STRIP="${ac_tool_prefix}strip"
|
---|
5631 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5632 | break 2
|
---|
5633 | fi
|
---|
5634 | done
|
---|
5635 | done
|
---|
5636 |
|
---|
5637 | fi
|
---|
5638 | fi
|
---|
5639 | STRIP=$ac_cv_prog_STRIP
|
---|
5640 | if test -n "$STRIP"; then
|
---|
5641 | echo "$as_me:$LINENO: result: $STRIP" >&5
|
---|
5642 | echo "${ECHO_T}$STRIP" >&6
|
---|
5643 | else
|
---|
5644 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5645 | echo "${ECHO_T}no" >&6
|
---|
5646 | fi
|
---|
5647 |
|
---|
5648 | fi
|
---|
5649 | if test -z "$ac_cv_prog_STRIP"; then
|
---|
5650 | ac_ct_STRIP=$STRIP
|
---|
5651 | # Extract the first word of "strip", so it can be a program name with args.
|
---|
5652 | set dummy strip; ac_word=$2
|
---|
5653 | echo "$as_me:$LINENO: checking for $ac_word" >&5
|
---|
5654 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
|
---|
5655 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
|
---|
5656 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5657 | else
|
---|
5658 | if test -n "$ac_ct_STRIP"; then
|
---|
5659 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
|
---|
5660 | else
|
---|
5661 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
5662 | for as_dir in $PATH
|
---|
5663 | do
|
---|
5664 | IFS=$as_save_IFS
|
---|
5665 | test -z "$as_dir" && as_dir=.
|
---|
5666 | for ac_exec_ext in '' $ac_executable_extensions; do
|
---|
5667 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
|
---|
5668 | ac_cv_prog_ac_ct_STRIP="strip"
|
---|
5669 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
|
---|
5670 | break 2
|
---|
5671 | fi
|
---|
5672 | done
|
---|
5673 | done
|
---|
5674 |
|
---|
5675 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
|
---|
5676 | fi
|
---|
5677 | fi
|
---|
5678 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
|
---|
5679 | if test -n "$ac_ct_STRIP"; then
|
---|
5680 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
|
---|
5681 | echo "${ECHO_T}$ac_ct_STRIP" >&6
|
---|
5682 | else
|
---|
5683 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5684 | echo "${ECHO_T}no" >&6
|
---|
5685 | fi
|
---|
5686 |
|
---|
5687 | STRIP=$ac_ct_STRIP
|
---|
5688 | else
|
---|
5689 | STRIP="$ac_cv_prog_STRIP"
|
---|
5690 | fi
|
---|
5691 |
|
---|
5692 |
|
---|
5693 | rpath=""
|
---|
5694 |
|
---|
5695 | #
|
---|
5696 | # OpenSSL detection borrowed from stunnel
|
---|
5697 | #
|
---|
5698 | checkssldir() { :
|
---|
5699 | if test -f "$1/include/openssl/ssl.h"; then
|
---|
5700 | ssldir="$1"
|
---|
5701 | return 0
|
---|
5702 | fi
|
---|
5703 | return 1
|
---|
5704 | }
|
---|
5705 | echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
|
---|
5706 | echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6
|
---|
5707 |
|
---|
5708 | # Check whether --with-openssl or --without-openssl was given.
|
---|
5709 | if test "${with_openssl+set}" = set; then
|
---|
5710 | withval="$with_openssl"
|
---|
5711 |
|
---|
5712 | checkssldir "$withval"
|
---|
5713 |
|
---|
5714 | else
|
---|
5715 |
|
---|
5716 | for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
|
---|
5717 | for dir in $maindir $maindir/openssl $maindir/ssl; do
|
---|
5718 | checkssldir $dir && break 2
|
---|
5719 | done
|
---|
5720 | done
|
---|
5721 |
|
---|
5722 |
|
---|
5723 | fi;
|
---|
5724 | if test -z "$ssldir"; then
|
---|
5725 | echo "$as_me:$LINENO: result: Not found" >&5
|
---|
5726 | echo "${ECHO_T}Not found" >&6
|
---|
5727 | echo
|
---|
5728 | echo "Couldn't find your OpenSSL library installation dir"
|
---|
5729 | echo "Use --with-openssl option to fix this problem"
|
---|
5730 | echo
|
---|
5731 | exit 1
|
---|
5732 | fi
|
---|
5733 | echo "$as_me:$LINENO: result: $ssldir" >&5
|
---|
5734 | echo "${ECHO_T}$ssldir" >&6
|
---|
5735 |
|
---|
5736 | cat >>confdefs.h <<_ACEOF
|
---|
5737 | #define ssldir "$ssldir"
|
---|
5738 | _ACEOF
|
---|
5739 |
|
---|
5740 |
|
---|
5741 | CFLAGS="$CFLAGS -I$ssldir/include"
|
---|
5742 | # Check whether --enable-static-openssl or --disable-static-openssl was given.
|
---|
5743 | if test "${enable_static_openssl+set}" = set; then
|
---|
5744 | enableval="$enable_static_openssl"
|
---|
5745 |
|
---|
5746 | LIBS="$LIBS $ssldir/lib/libcrypto.a"
|
---|
5747 |
|
---|
5748 | else
|
---|
5749 |
|
---|
5750 | LIBS="$LIBS -L$ssldir/lib -lcrypto"
|
---|
5751 | rpath="$rpath:$ssldir/lib"
|
---|
5752 |
|
---|
5753 | fi;
|
---|
5754 |
|
---|
5755 |
|
---|
5756 | #
|
---|
5757 | # Alignment
|
---|
5758 | #
|
---|
5759 | echo "$as_me:$LINENO: checking if architecture needs alignment" >&5
|
---|
5760 | echo $ECHO_N "checking if architecture needs alignment... $ECHO_C" >&6
|
---|
5761 | if test "$cross_compiling" = yes; then
|
---|
5762 | echo "$as_me:$LINENO: result: assuming yes" >&5
|
---|
5763 | echo "${ECHO_T}assuming yes" >&6
|
---|
5764 | cat >>confdefs.h <<\_ACEOF
|
---|
5765 | #define NEED_ALIGN 1
|
---|
5766 | _ACEOF
|
---|
5767 |
|
---|
5768 | else
|
---|
5769 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5770 | /* confdefs.h. */
|
---|
5771 | _ACEOF
|
---|
5772 | cat confdefs.h >>conftest.$ac_ext
|
---|
5773 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5774 | /* end confdefs.h. */
|
---|
5775 |
|
---|
5776 | #include <stdlib.h>
|
---|
5777 | #include <signal.h>
|
---|
5778 | int main(int argc, char **argv)
|
---|
5779 | {
|
---|
5780 | unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
|
---|
5781 | signal(SIGBUS, exit);
|
---|
5782 | signal(SIGABRT, exit);
|
---|
5783 | signal(SIGSEGV, exit);
|
---|
5784 | if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
|
---|
5785 | return 1;
|
---|
5786 | }
|
---|
5787 | return 0;
|
---|
5788 | }
|
---|
5789 | _ACEOF
|
---|
5790 | rm -f conftest$ac_exeext
|
---|
5791 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
5792 | (eval $ac_link) 2>&5
|
---|
5793 | ac_status=$?
|
---|
5794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5795 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5797 | (eval $ac_try) 2>&5
|
---|
5798 | ac_status=$?
|
---|
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5800 | (exit $ac_status); }; }; then
|
---|
5801 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5802 | echo "${ECHO_T}no" >&6
|
---|
5803 | else
|
---|
5804 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
5805 | echo "$as_me: failed program was:" >&5
|
---|
5806 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5807 |
|
---|
5808 | ( exit $ac_status )
|
---|
5809 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
5810 | echo "${ECHO_T}yes" >&6
|
---|
5811 | cat >>confdefs.h <<\_ACEOF
|
---|
5812 | #define NEED_ALIGN 1
|
---|
5813 | _ACEOF
|
---|
5814 |
|
---|
5815 | fi
|
---|
5816 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
5817 | fi
|
---|
5818 |
|
---|
5819 | #
|
---|
5820 | # linux/compiler.h
|
---|
5821 | #
|
---|
5822 | echo "$as_me:$LINENO: checking if linux/compiler.h is required" >&5
|
---|
5823 | echo $ECHO_N "checking if linux/compiler.h is required... $ECHO_C" >&6
|
---|
5824 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5825 | /* confdefs.h. */
|
---|
5826 | _ACEOF
|
---|
5827 | cat confdefs.h >>conftest.$ac_ext
|
---|
5828 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5829 | /* end confdefs.h. */
|
---|
5830 |
|
---|
5831 | #include <linux/compiler.h>
|
---|
5832 |
|
---|
5833 | int
|
---|
5834 | main ()
|
---|
5835 | {
|
---|
5836 |
|
---|
5837 | ;
|
---|
5838 | return 0;
|
---|
5839 | }
|
---|
5840 | _ACEOF
|
---|
5841 | rm -f conftest.$ac_objext
|
---|
5842 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5843 | (eval $ac_compile) 2>conftest.er1
|
---|
5844 | ac_status=$?
|
---|
5845 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5846 | rm -f conftest.er1
|
---|
5847 | cat conftest.err >&5
|
---|
5848 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5849 | (exit $ac_status); } &&
|
---|
5850 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5851 | || test ! -s conftest.err'
|
---|
5852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5853 | (eval $ac_try) 2>&5
|
---|
5854 | ac_status=$?
|
---|
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5856 | (exit $ac_status); }; } &&
|
---|
5857 | { ac_try='test -s conftest.$ac_objext'
|
---|
5858 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5859 | (eval $ac_try) 2>&5
|
---|
5860 | ac_status=$?
|
---|
5861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5862 | (exit $ac_status); }; }; then
|
---|
5863 | echo "$as_me:$LINENO: result: yes" >&5
|
---|
5864 | echo "${ECHO_T}yes" >&6
|
---|
5865 | else
|
---|
5866 | echo "$as_me: failed program was:" >&5
|
---|
5867 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5868 |
|
---|
5869 | echo "$as_me:$LINENO: result: no" >&5
|
---|
5870 | echo "${ECHO_T}no" >&6
|
---|
5871 | cat >>confdefs.h <<\_ACEOF
|
---|
5872 | #define VBOX_WITHOUT_LINUX_COMPILER_H 1
|
---|
5873 | _ACEOF
|
---|
5874 |
|
---|
5875 | fi
|
---|
5876 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
5877 |
|
---|
5878 |
|
---|
5879 | #
|
---|
5880 | # EGD
|
---|
5881 | #
|
---|
5882 |
|
---|
5883 | # Check whether --with-egd-socket or --without-egd-socket was given.
|
---|
5884 | if test "${with_egd_socket+set}" = set; then
|
---|
5885 | withval="$with_egd_socket"
|
---|
5886 | EGD_SOCKET="$withval"
|
---|
5887 | else
|
---|
5888 | EGD_SOCKET="/var/run/egd-pool"
|
---|
5889 |
|
---|
5890 | fi;
|
---|
5891 | cat >>confdefs.h <<_ACEOF
|
---|
5892 | #define EGD_SOCKET "$EGD_SOCKET"
|
---|
5893 | _ACEOF
|
---|
5894 |
|
---|
5895 |
|
---|
5896 |
|
---|
5897 | #
|
---|
5898 | # rdp2vnc
|
---|
5899 | #
|
---|
5900 | vncserverconfig=libvncserver-config
|
---|
5901 |
|
---|
5902 | # Check whether --with-libvncserver-config or --without-libvncserver-config was given.
|
---|
5903 | if test "${with_libvncserver_config+set}" = set; then
|
---|
5904 | withval="$with_libvncserver_config"
|
---|
5905 | vncserverconfig="$withval"
|
---|
5906 |
|
---|
5907 | fi;
|
---|
5908 |
|
---|
5909 | # Check whether --with-libvncserver or --without-libvncserver was given.
|
---|
5910 | if test "${with_libvncserver+set}" = set; then
|
---|
5911 | withval="$with_libvncserver"
|
---|
5912 |
|
---|
5913 | VNCINC=`$vncserverconfig --cflags`
|
---|
5914 |
|
---|
5915 | LDVNC=`$vncserverconfig --libs`
|
---|
5916 |
|
---|
5917 | VNCLINK=`$vncserverconfig --link`
|
---|
5918 |
|
---|
5919 | RDP2VNCTARGET="rdp2vnc"
|
---|
5920 |
|
---|
5921 |
|
---|
5922 |
|
---|
5923 | fi;
|
---|
5924 |
|
---|
5925 | #
|
---|
5926 | # sound
|
---|
5927 | #
|
---|
5928 |
|
---|
5929 | # Check whether --with-libao or --without-libao was given.
|
---|
5930 | if test "${with_libao+set}" = set; then
|
---|
5931 | withval="$with_libao"
|
---|
5932 |
|
---|
5933 | CFLAGS="$CFLAGS -I$withval/include"
|
---|
5934 | CPPFLAGS="$CPPFLAGS -I$withval/include"
|
---|
5935 | LIBS="$LIBS -L$withval/lib"
|
---|
5936 | rpath="$rpath:$withval/lib"
|
---|
5937 |
|
---|
5938 |
|
---|
5939 | fi;
|
---|
5940 |
|
---|
5941 | sound="yes"
|
---|
5942 |
|
---|
5943 | # Check whether --with-sound or --without-sound was given.
|
---|
5944 | if test "${with_sound+set}" = set; then
|
---|
5945 | withval="$with_sound"
|
---|
5946 |
|
---|
5947 | sound="$withval"
|
---|
5948 |
|
---|
5949 | fi;
|
---|
5950 | if test "$sound" = yes; then
|
---|
5951 | if test "${ac_cv_header_ao_ao_h+set}" = set; then
|
---|
5952 | echo "$as_me:$LINENO: checking for ao/ao.h" >&5
|
---|
5953 | echo $ECHO_N "checking for ao/ao.h... $ECHO_C" >&6
|
---|
5954 | if test "${ac_cv_header_ao_ao_h+set}" = set; then
|
---|
5955 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
5956 | fi
|
---|
5957 | echo "$as_me:$LINENO: result: $ac_cv_header_ao_ao_h" >&5
|
---|
5958 | echo "${ECHO_T}$ac_cv_header_ao_ao_h" >&6
|
---|
5959 | else
|
---|
5960 | # Is the header compilable?
|
---|
5961 | echo "$as_me:$LINENO: checking ao/ao.h usability" >&5
|
---|
5962 | echo $ECHO_N "checking ao/ao.h usability... $ECHO_C" >&6
|
---|
5963 | cat >conftest.$ac_ext <<_ACEOF
|
---|
5964 | /* confdefs.h. */
|
---|
5965 | _ACEOF
|
---|
5966 | cat confdefs.h >>conftest.$ac_ext
|
---|
5967 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
5968 | /* end confdefs.h. */
|
---|
5969 | $ac_includes_default
|
---|
5970 | #include <ao/ao.h>
|
---|
5971 | _ACEOF
|
---|
5972 | rm -f conftest.$ac_objext
|
---|
5973 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
5974 | (eval $ac_compile) 2>conftest.er1
|
---|
5975 | ac_status=$?
|
---|
5976 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
5977 | rm -f conftest.er1
|
---|
5978 | cat conftest.err >&5
|
---|
5979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5980 | (exit $ac_status); } &&
|
---|
5981 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
5982 | || test ! -s conftest.err'
|
---|
5983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5984 | (eval $ac_try) 2>&5
|
---|
5985 | ac_status=$?
|
---|
5986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5987 | (exit $ac_status); }; } &&
|
---|
5988 | { ac_try='test -s conftest.$ac_objext'
|
---|
5989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
5990 | (eval $ac_try) 2>&5
|
---|
5991 | ac_status=$?
|
---|
5992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
5993 | (exit $ac_status); }; }; then
|
---|
5994 | ac_header_compiler=yes
|
---|
5995 | else
|
---|
5996 | echo "$as_me: failed program was:" >&5
|
---|
5997 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
5998 |
|
---|
5999 | ac_header_compiler=no
|
---|
6000 | fi
|
---|
6001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6002 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6003 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
6004 |
|
---|
6005 | # Is the header present?
|
---|
6006 | echo "$as_me:$LINENO: checking ao/ao.h presence" >&5
|
---|
6007 | echo $ECHO_N "checking ao/ao.h presence... $ECHO_C" >&6
|
---|
6008 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6009 | /* confdefs.h. */
|
---|
6010 | _ACEOF
|
---|
6011 | cat confdefs.h >>conftest.$ac_ext
|
---|
6012 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6013 | /* end confdefs.h. */
|
---|
6014 | #include <ao/ao.h>
|
---|
6015 | _ACEOF
|
---|
6016 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6017 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6018 | ac_status=$?
|
---|
6019 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6020 | rm -f conftest.er1
|
---|
6021 | cat conftest.err >&5
|
---|
6022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6023 | (exit $ac_status); } >/dev/null; then
|
---|
6024 | if test -s conftest.err; then
|
---|
6025 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
6026 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
6027 | else
|
---|
6028 | ac_cpp_err=
|
---|
6029 | fi
|
---|
6030 | else
|
---|
6031 | ac_cpp_err=yes
|
---|
6032 | fi
|
---|
6033 | if test -z "$ac_cpp_err"; then
|
---|
6034 | ac_header_preproc=yes
|
---|
6035 | else
|
---|
6036 | echo "$as_me: failed program was:" >&5
|
---|
6037 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6038 |
|
---|
6039 | ac_header_preproc=no
|
---|
6040 | fi
|
---|
6041 | rm -f conftest.err conftest.$ac_ext
|
---|
6042 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6043 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
6044 |
|
---|
6045 | # So? What about this header?
|
---|
6046 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6047 | yes:no: )
|
---|
6048 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6049 | echo "$as_me: WARNING: ao/ao.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6050 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: proceeding with the compiler's result" >&5
|
---|
6051 | echo "$as_me: WARNING: ao/ao.h: proceeding with the compiler's result" >&2;}
|
---|
6052 | ac_header_preproc=yes
|
---|
6053 | ;;
|
---|
6054 | no:yes:* )
|
---|
6055 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: present but cannot be compiled" >&5
|
---|
6056 | echo "$as_me: WARNING: ao/ao.h: present but cannot be compiled" >&2;}
|
---|
6057 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: check for missing prerequisite headers?" >&5
|
---|
6058 | echo "$as_me: WARNING: ao/ao.h: check for missing prerequisite headers?" >&2;}
|
---|
6059 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: see the Autoconf documentation" >&5
|
---|
6060 | echo "$as_me: WARNING: ao/ao.h: see the Autoconf documentation" >&2;}
|
---|
6061 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6062 | echo "$as_me: WARNING: ao/ao.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6063 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: proceeding with the preprocessor's result" >&5
|
---|
6064 | echo "$as_me: WARNING: ao/ao.h: proceeding with the preprocessor's result" >&2;}
|
---|
6065 | { echo "$as_me:$LINENO: WARNING: ao/ao.h: in the future, the compiler will take precedence" >&5
|
---|
6066 | echo "$as_me: WARNING: ao/ao.h: in the future, the compiler will take precedence" >&2;}
|
---|
6067 | (
|
---|
6068 | cat <<\_ASBOX
|
---|
6069 | ## ----------------------------------- ##
|
---|
6070 | ## Report this to the rdesktop lists. ##
|
---|
6071 | ## ----------------------------------- ##
|
---|
6072 | _ASBOX
|
---|
6073 | ) |
|
---|
6074 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
6075 | ;;
|
---|
6076 | esac
|
---|
6077 | echo "$as_me:$LINENO: checking for ao/ao.h" >&5
|
---|
6078 | echo $ECHO_N "checking for ao/ao.h... $ECHO_C" >&6
|
---|
6079 | if test "${ac_cv_header_ao_ao_h+set}" = set; then
|
---|
6080 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6081 | else
|
---|
6082 | ac_cv_header_ao_ao_h=$ac_header_preproc
|
---|
6083 | fi
|
---|
6084 | echo "$as_me:$LINENO: result: $ac_cv_header_ao_ao_h" >&5
|
---|
6085 | echo "${ECHO_T}$ac_cv_header_ao_ao_h" >&6
|
---|
6086 |
|
---|
6087 | fi
|
---|
6088 | if test $ac_cv_header_ao_ao_h = yes; then
|
---|
6089 | sound=libao
|
---|
6090 | fi
|
---|
6091 |
|
---|
6092 |
|
---|
6093 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6094 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
|
---|
6095 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
|
---|
6096 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6098 | fi
|
---|
6099 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
|
---|
6100 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
|
---|
6101 | else
|
---|
6102 | # Is the header compilable?
|
---|
6103 | echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
|
---|
6104 | echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
|
---|
6105 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6106 | /* confdefs.h. */
|
---|
6107 | _ACEOF
|
---|
6108 | cat confdefs.h >>conftest.$ac_ext
|
---|
6109 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6110 | /* end confdefs.h. */
|
---|
6111 | $ac_includes_default
|
---|
6112 | #include <sys/soundcard.h>
|
---|
6113 | _ACEOF
|
---|
6114 | rm -f conftest.$ac_objext
|
---|
6115 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6116 | (eval $ac_compile) 2>conftest.er1
|
---|
6117 | ac_status=$?
|
---|
6118 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6119 | rm -f conftest.er1
|
---|
6120 | cat conftest.err >&5
|
---|
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6122 | (exit $ac_status); } &&
|
---|
6123 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6124 | || test ! -s conftest.err'
|
---|
6125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6126 | (eval $ac_try) 2>&5
|
---|
6127 | ac_status=$?
|
---|
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6129 | (exit $ac_status); }; } &&
|
---|
6130 | { ac_try='test -s conftest.$ac_objext'
|
---|
6131 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6132 | (eval $ac_try) 2>&5
|
---|
6133 | ac_status=$?
|
---|
6134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6135 | (exit $ac_status); }; }; then
|
---|
6136 | ac_header_compiler=yes
|
---|
6137 | else
|
---|
6138 | echo "$as_me: failed program was:" >&5
|
---|
6139 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6140 |
|
---|
6141 | ac_header_compiler=no
|
---|
6142 | fi
|
---|
6143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6144 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6145 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
6146 |
|
---|
6147 | # Is the header present?
|
---|
6148 | echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
|
---|
6149 | echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
|
---|
6150 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6151 | /* confdefs.h. */
|
---|
6152 | _ACEOF
|
---|
6153 | cat confdefs.h >>conftest.$ac_ext
|
---|
6154 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6155 | /* end confdefs.h. */
|
---|
6156 | #include <sys/soundcard.h>
|
---|
6157 | _ACEOF
|
---|
6158 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6159 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6160 | ac_status=$?
|
---|
6161 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6162 | rm -f conftest.er1
|
---|
6163 | cat conftest.err >&5
|
---|
6164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6165 | (exit $ac_status); } >/dev/null; then
|
---|
6166 | if test -s conftest.err; then
|
---|
6167 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
6168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
6169 | else
|
---|
6170 | ac_cpp_err=
|
---|
6171 | fi
|
---|
6172 | else
|
---|
6173 | ac_cpp_err=yes
|
---|
6174 | fi
|
---|
6175 | if test -z "$ac_cpp_err"; then
|
---|
6176 | ac_header_preproc=yes
|
---|
6177 | else
|
---|
6178 | echo "$as_me: failed program was:" >&5
|
---|
6179 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6180 |
|
---|
6181 | ac_header_preproc=no
|
---|
6182 | fi
|
---|
6183 | rm -f conftest.err conftest.$ac_ext
|
---|
6184 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6185 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
6186 |
|
---|
6187 | # So? What about this header?
|
---|
6188 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6189 | yes:no: )
|
---|
6190 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6191 | echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6192 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
|
---|
6193 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
|
---|
6194 | ac_header_preproc=yes
|
---|
6195 | ;;
|
---|
6196 | no:yes:* )
|
---|
6197 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
|
---|
6198 | echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
|
---|
6199 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
|
---|
6200 | echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
|
---|
6201 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
|
---|
6202 | echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
|
---|
6203 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6204 | echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6205 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
|
---|
6206 | echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
|
---|
6207 | { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
|
---|
6208 | echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
|
---|
6209 | (
|
---|
6210 | cat <<\_ASBOX
|
---|
6211 | ## ----------------------------------- ##
|
---|
6212 | ## Report this to the rdesktop lists. ##
|
---|
6213 | ## ----------------------------------- ##
|
---|
6214 | _ASBOX
|
---|
6215 | ) |
|
---|
6216 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
6217 | ;;
|
---|
6218 | esac
|
---|
6219 | echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
|
---|
6220 | echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
|
---|
6221 | if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
|
---|
6222 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6223 | else
|
---|
6224 | ac_cv_header_sys_soundcard_h=$ac_header_preproc
|
---|
6225 | fi
|
---|
6226 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
|
---|
6227 | echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
|
---|
6228 |
|
---|
6229 | fi
|
---|
6230 | if test $ac_cv_header_sys_soundcard_h = yes; then
|
---|
6231 | sound=oss
|
---|
6232 | fi
|
---|
6233 |
|
---|
6234 |
|
---|
6235 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
6236 | echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
|
---|
6237 | echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6
|
---|
6238 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
6239 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6240 | fi
|
---|
6241 | echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
|
---|
6242 | echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6
|
---|
6243 | else
|
---|
6244 | # Is the header compilable?
|
---|
6245 | echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
|
---|
6246 | echo $ECHO_N "checking dmedia/audio.h usability... $ECHO_C" >&6
|
---|
6247 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6248 | /* confdefs.h. */
|
---|
6249 | _ACEOF
|
---|
6250 | cat confdefs.h >>conftest.$ac_ext
|
---|
6251 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6252 | /* end confdefs.h. */
|
---|
6253 | $ac_includes_default
|
---|
6254 | #include <dmedia/audio.h>
|
---|
6255 | _ACEOF
|
---|
6256 | rm -f conftest.$ac_objext
|
---|
6257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6258 | (eval $ac_compile) 2>conftest.er1
|
---|
6259 | ac_status=$?
|
---|
6260 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6261 | rm -f conftest.er1
|
---|
6262 | cat conftest.err >&5
|
---|
6263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6264 | (exit $ac_status); } &&
|
---|
6265 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6266 | || test ! -s conftest.err'
|
---|
6267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6268 | (eval $ac_try) 2>&5
|
---|
6269 | ac_status=$?
|
---|
6270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6271 | (exit $ac_status); }; } &&
|
---|
6272 | { ac_try='test -s conftest.$ac_objext'
|
---|
6273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6274 | (eval $ac_try) 2>&5
|
---|
6275 | ac_status=$?
|
---|
6276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6277 | (exit $ac_status); }; }; then
|
---|
6278 | ac_header_compiler=yes
|
---|
6279 | else
|
---|
6280 | echo "$as_me: failed program was:" >&5
|
---|
6281 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6282 |
|
---|
6283 | ac_header_compiler=no
|
---|
6284 | fi
|
---|
6285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6286 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6287 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
6288 |
|
---|
6289 | # Is the header present?
|
---|
6290 | echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
|
---|
6291 | echo $ECHO_N "checking dmedia/audio.h presence... $ECHO_C" >&6
|
---|
6292 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6293 | /* confdefs.h. */
|
---|
6294 | _ACEOF
|
---|
6295 | cat confdefs.h >>conftest.$ac_ext
|
---|
6296 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6297 | /* end confdefs.h. */
|
---|
6298 | #include <dmedia/audio.h>
|
---|
6299 | _ACEOF
|
---|
6300 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6301 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6302 | ac_status=$?
|
---|
6303 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6304 | rm -f conftest.er1
|
---|
6305 | cat conftest.err >&5
|
---|
6306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6307 | (exit $ac_status); } >/dev/null; then
|
---|
6308 | if test -s conftest.err; then
|
---|
6309 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
6310 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
6311 | else
|
---|
6312 | ac_cpp_err=
|
---|
6313 | fi
|
---|
6314 | else
|
---|
6315 | ac_cpp_err=yes
|
---|
6316 | fi
|
---|
6317 | if test -z "$ac_cpp_err"; then
|
---|
6318 | ac_header_preproc=yes
|
---|
6319 | else
|
---|
6320 | echo "$as_me: failed program was:" >&5
|
---|
6321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6322 |
|
---|
6323 | ac_header_preproc=no
|
---|
6324 | fi
|
---|
6325 | rm -f conftest.err conftest.$ac_ext
|
---|
6326 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6327 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
6328 |
|
---|
6329 | # So? What about this header?
|
---|
6330 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6331 | yes:no: )
|
---|
6332 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6333 | echo "$as_me: WARNING: dmedia/audio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6334 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&5
|
---|
6335 | echo "$as_me: WARNING: dmedia/audio.h: proceeding with the compiler's result" >&2;}
|
---|
6336 | ac_header_preproc=yes
|
---|
6337 | ;;
|
---|
6338 | no:yes:* )
|
---|
6339 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: present but cannot be compiled" >&5
|
---|
6340 | echo "$as_me: WARNING: dmedia/audio.h: present but cannot be compiled" >&2;}
|
---|
6341 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&5
|
---|
6342 | echo "$as_me: WARNING: dmedia/audio.h: check for missing prerequisite headers?" >&2;}
|
---|
6343 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: see the Autoconf documentation" >&5
|
---|
6344 | echo "$as_me: WARNING: dmedia/audio.h: see the Autoconf documentation" >&2;}
|
---|
6345 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6346 | echo "$as_me: WARNING: dmedia/audio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6347 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&5
|
---|
6348 | echo "$as_me: WARNING: dmedia/audio.h: proceeding with the preprocessor's result" >&2;}
|
---|
6349 | { echo "$as_me:$LINENO: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&5
|
---|
6350 | echo "$as_me: WARNING: dmedia/audio.h: in the future, the compiler will take precedence" >&2;}
|
---|
6351 | (
|
---|
6352 | cat <<\_ASBOX
|
---|
6353 | ## ----------------------------------- ##
|
---|
6354 | ## Report this to the rdesktop lists. ##
|
---|
6355 | ## ----------------------------------- ##
|
---|
6356 | _ASBOX
|
---|
6357 | ) |
|
---|
6358 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
6359 | ;;
|
---|
6360 | esac
|
---|
6361 | echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
|
---|
6362 | echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6
|
---|
6363 | if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
|
---|
6364 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6365 | else
|
---|
6366 | ac_cv_header_dmedia_audio_h=$ac_header_preproc
|
---|
6367 | fi
|
---|
6368 | echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
|
---|
6369 | echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6
|
---|
6370 |
|
---|
6371 | fi
|
---|
6372 | if test $ac_cv_header_dmedia_audio_h = yes; then
|
---|
6373 | sound=sgi
|
---|
6374 | fi
|
---|
6375 |
|
---|
6376 |
|
---|
6377 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
6378 | echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
|
---|
6379 | echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6
|
---|
6380 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
6381 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6382 | fi
|
---|
6383 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
|
---|
6384 | echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6
|
---|
6385 | else
|
---|
6386 | # Is the header compilable?
|
---|
6387 | echo "$as_me:$LINENO: checking sys/audioio.h usability" >&5
|
---|
6388 | echo $ECHO_N "checking sys/audioio.h usability... $ECHO_C" >&6
|
---|
6389 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6390 | /* confdefs.h. */
|
---|
6391 | _ACEOF
|
---|
6392 | cat confdefs.h >>conftest.$ac_ext
|
---|
6393 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6394 | /* end confdefs.h. */
|
---|
6395 | $ac_includes_default
|
---|
6396 | #include <sys/audioio.h>
|
---|
6397 | _ACEOF
|
---|
6398 | rm -f conftest.$ac_objext
|
---|
6399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6400 | (eval $ac_compile) 2>conftest.er1
|
---|
6401 | ac_status=$?
|
---|
6402 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6403 | rm -f conftest.er1
|
---|
6404 | cat conftest.err >&5
|
---|
6405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6406 | (exit $ac_status); } &&
|
---|
6407 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6408 | || test ! -s conftest.err'
|
---|
6409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6410 | (eval $ac_try) 2>&5
|
---|
6411 | ac_status=$?
|
---|
6412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6413 | (exit $ac_status); }; } &&
|
---|
6414 | { ac_try='test -s conftest.$ac_objext'
|
---|
6415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6416 | (eval $ac_try) 2>&5
|
---|
6417 | ac_status=$?
|
---|
6418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6419 | (exit $ac_status); }; }; then
|
---|
6420 | ac_header_compiler=yes
|
---|
6421 | else
|
---|
6422 | echo "$as_me: failed program was:" >&5
|
---|
6423 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6424 |
|
---|
6425 | ac_header_compiler=no
|
---|
6426 | fi
|
---|
6427 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6428 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
6429 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
6430 |
|
---|
6431 | # Is the header present?
|
---|
6432 | echo "$as_me:$LINENO: checking sys/audioio.h presence" >&5
|
---|
6433 | echo $ECHO_N "checking sys/audioio.h presence... $ECHO_C" >&6
|
---|
6434 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6435 | /* confdefs.h. */
|
---|
6436 | _ACEOF
|
---|
6437 | cat confdefs.h >>conftest.$ac_ext
|
---|
6438 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6439 | /* end confdefs.h. */
|
---|
6440 | #include <sys/audioio.h>
|
---|
6441 | _ACEOF
|
---|
6442 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
6443 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
6444 | ac_status=$?
|
---|
6445 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6446 | rm -f conftest.er1
|
---|
6447 | cat conftest.err >&5
|
---|
6448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6449 | (exit $ac_status); } >/dev/null; then
|
---|
6450 | if test -s conftest.err; then
|
---|
6451 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
6452 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
6453 | else
|
---|
6454 | ac_cpp_err=
|
---|
6455 | fi
|
---|
6456 | else
|
---|
6457 | ac_cpp_err=yes
|
---|
6458 | fi
|
---|
6459 | if test -z "$ac_cpp_err"; then
|
---|
6460 | ac_header_preproc=yes
|
---|
6461 | else
|
---|
6462 | echo "$as_me: failed program was:" >&5
|
---|
6463 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6464 |
|
---|
6465 | ac_header_preproc=no
|
---|
6466 | fi
|
---|
6467 | rm -f conftest.err conftest.$ac_ext
|
---|
6468 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
6469 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
6470 |
|
---|
6471 | # So? What about this header?
|
---|
6472 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
6473 | yes:no: )
|
---|
6474 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
6475 | echo "$as_me: WARNING: sys/audioio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
6476 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the compiler's result" >&5
|
---|
6477 | echo "$as_me: WARNING: sys/audioio.h: proceeding with the compiler's result" >&2;}
|
---|
6478 | ac_header_preproc=yes
|
---|
6479 | ;;
|
---|
6480 | no:yes:* )
|
---|
6481 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: present but cannot be compiled" >&5
|
---|
6482 | echo "$as_me: WARNING: sys/audioio.h: present but cannot be compiled" >&2;}
|
---|
6483 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&5
|
---|
6484 | echo "$as_me: WARNING: sys/audioio.h: check for missing prerequisite headers?" >&2;}
|
---|
6485 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: see the Autoconf documentation" >&5
|
---|
6486 | echo "$as_me: WARNING: sys/audioio.h: see the Autoconf documentation" >&2;}
|
---|
6487 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
6488 | echo "$as_me: WARNING: sys/audioio.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
6489 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&5
|
---|
6490 | echo "$as_me: WARNING: sys/audioio.h: proceeding with the preprocessor's result" >&2;}
|
---|
6491 | { echo "$as_me:$LINENO: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&5
|
---|
6492 | echo "$as_me: WARNING: sys/audioio.h: in the future, the compiler will take precedence" >&2;}
|
---|
6493 | (
|
---|
6494 | cat <<\_ASBOX
|
---|
6495 | ## ----------------------------------- ##
|
---|
6496 | ## Report this to the rdesktop lists. ##
|
---|
6497 | ## ----------------------------------- ##
|
---|
6498 | _ASBOX
|
---|
6499 | ) |
|
---|
6500 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
6501 | ;;
|
---|
6502 | esac
|
---|
6503 | echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
|
---|
6504 | echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6
|
---|
6505 | if test "${ac_cv_header_sys_audioio_h+set}" = set; then
|
---|
6506 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6507 | else
|
---|
6508 | ac_cv_header_sys_audioio_h=$ac_header_preproc
|
---|
6509 | fi
|
---|
6510 | echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
|
---|
6511 | echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6
|
---|
6512 |
|
---|
6513 | fi
|
---|
6514 | if test $ac_cv_header_sys_audioio_h = yes; then
|
---|
6515 | sound=sun
|
---|
6516 | fi
|
---|
6517 |
|
---|
6518 |
|
---|
6519 | fi
|
---|
6520 | if test "$sound" = no; then
|
---|
6521 | break
|
---|
6522 | elif test "$sound" = oss; then
|
---|
6523 | SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
|
---|
6524 | cat >>confdefs.h <<\_ACEOF
|
---|
6525 | #define WITH_RDPSND 1
|
---|
6526 | _ACEOF
|
---|
6527 |
|
---|
6528 | elif test "$sound" = sgi; then
|
---|
6529 | SOUNDOBJ="rdpsnd.o rdpsnd_sgi.o"
|
---|
6530 | LDFLAGS="$LDFLAGS -laudio"
|
---|
6531 | cat >>confdefs.h <<\_ACEOF
|
---|
6532 | #define WITH_RDPSND 1
|
---|
6533 | _ACEOF
|
---|
6534 |
|
---|
6535 | elif test "$sound" = sun; then
|
---|
6536 | SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
|
---|
6537 | cat >>confdefs.h <<\_ACEOF
|
---|
6538 | #define WITH_RDPSND 1
|
---|
6539 | _ACEOF
|
---|
6540 |
|
---|
6541 | elif test "$sound" = libao; then
|
---|
6542 | SOUNDOBJ="rdpsnd.o rdpsnd_libao.o"
|
---|
6543 | LDFLAGS="$LDFLAGS -lao"
|
---|
6544 | cat >>confdefs.h <<\_ACEOF
|
---|
6545 | #define WITH_RDPSND 1
|
---|
6546 | _ACEOF
|
---|
6547 |
|
---|
6548 | else
|
---|
6549 | { echo "$as_me:$LINENO: WARNING: sound support disabled" >&5
|
---|
6550 | echo "$as_me: WARNING: sound support disabled" >&2;}
|
---|
6551 | { echo "$as_me:$LINENO: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun) and libao" >&5
|
---|
6552 | echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun) and libao" >&2;}
|
---|
6553 | fi
|
---|
6554 |
|
---|
6555 |
|
---|
6556 | #
|
---|
6557 | # dirfd
|
---|
6558 | #
|
---|
6559 |
|
---|
6560 |
|
---|
6561 |
|
---|
6562 |
|
---|
6563 |
|
---|
6564 |
|
---|
6565 |
|
---|
6566 |
|
---|
6567 |
|
---|
6568 |
|
---|
6569 | ac_header_dirent=no
|
---|
6570 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
|
---|
6571 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
|
---|
6572 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
|
---|
6573 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
|
---|
6574 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
6575 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6576 | else
|
---|
6577 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6578 | /* confdefs.h. */
|
---|
6579 | _ACEOF
|
---|
6580 | cat confdefs.h >>conftest.$ac_ext
|
---|
6581 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6582 | /* end confdefs.h. */
|
---|
6583 | #include <sys/types.h>
|
---|
6584 | #include <$ac_hdr>
|
---|
6585 |
|
---|
6586 | int
|
---|
6587 | main ()
|
---|
6588 | {
|
---|
6589 | if ((DIR *) 0)
|
---|
6590 | return 0;
|
---|
6591 | ;
|
---|
6592 | return 0;
|
---|
6593 | }
|
---|
6594 | _ACEOF
|
---|
6595 | rm -f conftest.$ac_objext
|
---|
6596 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
6597 | (eval $ac_compile) 2>conftest.er1
|
---|
6598 | ac_status=$?
|
---|
6599 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6600 | rm -f conftest.er1
|
---|
6601 | cat conftest.err >&5
|
---|
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6603 | (exit $ac_status); } &&
|
---|
6604 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6605 | || test ! -s conftest.err'
|
---|
6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6607 | (eval $ac_try) 2>&5
|
---|
6608 | ac_status=$?
|
---|
6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6610 | (exit $ac_status); }; } &&
|
---|
6611 | { ac_try='test -s conftest.$ac_objext'
|
---|
6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6613 | (eval $ac_try) 2>&5
|
---|
6614 | ac_status=$?
|
---|
6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6616 | (exit $ac_status); }; }; then
|
---|
6617 | eval "$as_ac_Header=yes"
|
---|
6618 | else
|
---|
6619 | echo "$as_me: failed program was:" >&5
|
---|
6620 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6621 |
|
---|
6622 | eval "$as_ac_Header=no"
|
---|
6623 | fi
|
---|
6624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
6625 | fi
|
---|
6626 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
6627 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
6628 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
6629 | cat >>confdefs.h <<_ACEOF
|
---|
6630 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
|
---|
6631 | _ACEOF
|
---|
6632 |
|
---|
6633 | ac_header_dirent=$ac_hdr; break
|
---|
6634 | fi
|
---|
6635 |
|
---|
6636 | done
|
---|
6637 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
|
---|
6638 | if test $ac_header_dirent = dirent.h; then
|
---|
6639 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
6640 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
6641 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
6642 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6643 | else
|
---|
6644 | ac_func_search_save_LIBS=$LIBS
|
---|
6645 | ac_cv_search_opendir=no
|
---|
6646 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6647 | /* confdefs.h. */
|
---|
6648 | _ACEOF
|
---|
6649 | cat confdefs.h >>conftest.$ac_ext
|
---|
6650 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6651 | /* end confdefs.h. */
|
---|
6652 |
|
---|
6653 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6654 | #ifdef __cplusplus
|
---|
6655 | extern "C"
|
---|
6656 | #endif
|
---|
6657 | /* We use char because int might match the return type of a gcc2
|
---|
6658 | builtin and then its argument prototype would still apply. */
|
---|
6659 | char opendir ();
|
---|
6660 | int
|
---|
6661 | main ()
|
---|
6662 | {
|
---|
6663 | opendir ();
|
---|
6664 | ;
|
---|
6665 | return 0;
|
---|
6666 | }
|
---|
6667 | _ACEOF
|
---|
6668 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6669 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6670 | (eval $ac_link) 2>conftest.er1
|
---|
6671 | ac_status=$?
|
---|
6672 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6673 | rm -f conftest.er1
|
---|
6674 | cat conftest.err >&5
|
---|
6675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6676 | (exit $ac_status); } &&
|
---|
6677 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6678 | || test ! -s conftest.err'
|
---|
6679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6680 | (eval $ac_try) 2>&5
|
---|
6681 | ac_status=$?
|
---|
6682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6683 | (exit $ac_status); }; } &&
|
---|
6684 | { ac_try='test -s conftest$ac_exeext'
|
---|
6685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6686 | (eval $ac_try) 2>&5
|
---|
6687 | ac_status=$?
|
---|
6688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6689 | (exit $ac_status); }; }; then
|
---|
6690 | ac_cv_search_opendir="none required"
|
---|
6691 | else
|
---|
6692 | echo "$as_me: failed program was:" >&5
|
---|
6693 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6694 |
|
---|
6695 | fi
|
---|
6696 | rm -f conftest.err conftest.$ac_objext \
|
---|
6697 | conftest$ac_exeext conftest.$ac_ext
|
---|
6698 | if test "$ac_cv_search_opendir" = no; then
|
---|
6699 | for ac_lib in dir; do
|
---|
6700 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6701 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6702 | /* confdefs.h. */
|
---|
6703 | _ACEOF
|
---|
6704 | cat confdefs.h >>conftest.$ac_ext
|
---|
6705 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6706 | /* end confdefs.h. */
|
---|
6707 |
|
---|
6708 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6709 | #ifdef __cplusplus
|
---|
6710 | extern "C"
|
---|
6711 | #endif
|
---|
6712 | /* We use char because int might match the return type of a gcc2
|
---|
6713 | builtin and then its argument prototype would still apply. */
|
---|
6714 | char opendir ();
|
---|
6715 | int
|
---|
6716 | main ()
|
---|
6717 | {
|
---|
6718 | opendir ();
|
---|
6719 | ;
|
---|
6720 | return 0;
|
---|
6721 | }
|
---|
6722 | _ACEOF
|
---|
6723 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6725 | (eval $ac_link) 2>conftest.er1
|
---|
6726 | ac_status=$?
|
---|
6727 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6728 | rm -f conftest.er1
|
---|
6729 | cat conftest.err >&5
|
---|
6730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6731 | (exit $ac_status); } &&
|
---|
6732 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6733 | || test ! -s conftest.err'
|
---|
6734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6735 | (eval $ac_try) 2>&5
|
---|
6736 | ac_status=$?
|
---|
6737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6738 | (exit $ac_status); }; } &&
|
---|
6739 | { ac_try='test -s conftest$ac_exeext'
|
---|
6740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6741 | (eval $ac_try) 2>&5
|
---|
6742 | ac_status=$?
|
---|
6743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6744 | (exit $ac_status); }; }; then
|
---|
6745 | ac_cv_search_opendir="-l$ac_lib"
|
---|
6746 | break
|
---|
6747 | else
|
---|
6748 | echo "$as_me: failed program was:" >&5
|
---|
6749 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6750 |
|
---|
6751 | fi
|
---|
6752 | rm -f conftest.err conftest.$ac_objext \
|
---|
6753 | conftest$ac_exeext conftest.$ac_ext
|
---|
6754 | done
|
---|
6755 | fi
|
---|
6756 | LIBS=$ac_func_search_save_LIBS
|
---|
6757 | fi
|
---|
6758 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
6759 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
6760 | if test "$ac_cv_search_opendir" != no; then
|
---|
6761 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
6762 |
|
---|
6763 | fi
|
---|
6764 |
|
---|
6765 | else
|
---|
6766 | echo "$as_me:$LINENO: checking for library containing opendir" >&5
|
---|
6767 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
|
---|
6768 | if test "${ac_cv_search_opendir+set}" = set; then
|
---|
6769 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6770 | else
|
---|
6771 | ac_func_search_save_LIBS=$LIBS
|
---|
6772 | ac_cv_search_opendir=no
|
---|
6773 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6774 | /* confdefs.h. */
|
---|
6775 | _ACEOF
|
---|
6776 | cat confdefs.h >>conftest.$ac_ext
|
---|
6777 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6778 | /* end confdefs.h. */
|
---|
6779 |
|
---|
6780 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6781 | #ifdef __cplusplus
|
---|
6782 | extern "C"
|
---|
6783 | #endif
|
---|
6784 | /* We use char because int might match the return type of a gcc2
|
---|
6785 | builtin and then its argument prototype would still apply. */
|
---|
6786 | char opendir ();
|
---|
6787 | int
|
---|
6788 | main ()
|
---|
6789 | {
|
---|
6790 | opendir ();
|
---|
6791 | ;
|
---|
6792 | return 0;
|
---|
6793 | }
|
---|
6794 | _ACEOF
|
---|
6795 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6796 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6797 | (eval $ac_link) 2>conftest.er1
|
---|
6798 | ac_status=$?
|
---|
6799 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6800 | rm -f conftest.er1
|
---|
6801 | cat conftest.err >&5
|
---|
6802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6803 | (exit $ac_status); } &&
|
---|
6804 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6805 | || test ! -s conftest.err'
|
---|
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6807 | (eval $ac_try) 2>&5
|
---|
6808 | ac_status=$?
|
---|
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6810 | (exit $ac_status); }; } &&
|
---|
6811 | { ac_try='test -s conftest$ac_exeext'
|
---|
6812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6813 | (eval $ac_try) 2>&5
|
---|
6814 | ac_status=$?
|
---|
6815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6816 | (exit $ac_status); }; }; then
|
---|
6817 | ac_cv_search_opendir="none required"
|
---|
6818 | else
|
---|
6819 | echo "$as_me: failed program was:" >&5
|
---|
6820 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6821 |
|
---|
6822 | fi
|
---|
6823 | rm -f conftest.err conftest.$ac_objext \
|
---|
6824 | conftest$ac_exeext conftest.$ac_ext
|
---|
6825 | if test "$ac_cv_search_opendir" = no; then
|
---|
6826 | for ac_lib in x; do
|
---|
6827 | LIBS="-l$ac_lib $ac_func_search_save_LIBS"
|
---|
6828 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6829 | /* confdefs.h. */
|
---|
6830 | _ACEOF
|
---|
6831 | cat confdefs.h >>conftest.$ac_ext
|
---|
6832 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6833 | /* end confdefs.h. */
|
---|
6834 |
|
---|
6835 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6836 | #ifdef __cplusplus
|
---|
6837 | extern "C"
|
---|
6838 | #endif
|
---|
6839 | /* We use char because int might match the return type of a gcc2
|
---|
6840 | builtin and then its argument prototype would still apply. */
|
---|
6841 | char opendir ();
|
---|
6842 | int
|
---|
6843 | main ()
|
---|
6844 | {
|
---|
6845 | opendir ();
|
---|
6846 | ;
|
---|
6847 | return 0;
|
---|
6848 | }
|
---|
6849 | _ACEOF
|
---|
6850 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6852 | (eval $ac_link) 2>conftest.er1
|
---|
6853 | ac_status=$?
|
---|
6854 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6855 | rm -f conftest.er1
|
---|
6856 | cat conftest.err >&5
|
---|
6857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6858 | (exit $ac_status); } &&
|
---|
6859 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6860 | || test ! -s conftest.err'
|
---|
6861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6862 | (eval $ac_try) 2>&5
|
---|
6863 | ac_status=$?
|
---|
6864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6865 | (exit $ac_status); }; } &&
|
---|
6866 | { ac_try='test -s conftest$ac_exeext'
|
---|
6867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6868 | (eval $ac_try) 2>&5
|
---|
6869 | ac_status=$?
|
---|
6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6871 | (exit $ac_status); }; }; then
|
---|
6872 | ac_cv_search_opendir="-l$ac_lib"
|
---|
6873 | break
|
---|
6874 | else
|
---|
6875 | echo "$as_me: failed program was:" >&5
|
---|
6876 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6877 |
|
---|
6878 | fi
|
---|
6879 | rm -f conftest.err conftest.$ac_objext \
|
---|
6880 | conftest$ac_exeext conftest.$ac_ext
|
---|
6881 | done
|
---|
6882 | fi
|
---|
6883 | LIBS=$ac_func_search_save_LIBS
|
---|
6884 | fi
|
---|
6885 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
|
---|
6886 | echo "${ECHO_T}$ac_cv_search_opendir" >&6
|
---|
6887 | if test "$ac_cv_search_opendir" != no; then
|
---|
6888 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
|
---|
6889 |
|
---|
6890 | fi
|
---|
6891 |
|
---|
6892 | fi
|
---|
6893 |
|
---|
6894 | dirfd_headers='
|
---|
6895 | #if HAVE_DIRENT_H
|
---|
6896 | # include <dirent.h>
|
---|
6897 | #else /* not HAVE_DIRENT_H */
|
---|
6898 | # define dirent direct
|
---|
6899 | # if HAVE_SYS_NDIR_H
|
---|
6900 | # include <sys/ndir.h>
|
---|
6901 | # endif /* HAVE_SYS_NDIR_H */
|
---|
6902 | # if HAVE_SYS_DIR_H
|
---|
6903 | # include <sys/dir.h>
|
---|
6904 | # endif /* HAVE_SYS_DIR_H */
|
---|
6905 | # if HAVE_NDIR_H
|
---|
6906 | # include <ndir.h>
|
---|
6907 | # endif /* HAVE_NDIR_H */
|
---|
6908 | #endif /* HAVE_DIRENT_H */
|
---|
6909 | '
|
---|
6910 |
|
---|
6911 | for ac_func in dirfd
|
---|
6912 | do
|
---|
6913 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
6914 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
6915 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
6916 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
6917 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
6918 | else
|
---|
6919 | cat >conftest.$ac_ext <<_ACEOF
|
---|
6920 | /* confdefs.h. */
|
---|
6921 | _ACEOF
|
---|
6922 | cat confdefs.h >>conftest.$ac_ext
|
---|
6923 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
6924 | /* end confdefs.h. */
|
---|
6925 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
6926 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
6927 | #define $ac_func innocuous_$ac_func
|
---|
6928 |
|
---|
6929 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
6930 | which can conflict with char $ac_func (); below.
|
---|
6931 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
6932 | <limits.h> exists even on freestanding compilers. */
|
---|
6933 |
|
---|
6934 | #ifdef __STDC__
|
---|
6935 | # include <limits.h>
|
---|
6936 | #else
|
---|
6937 | # include <assert.h>
|
---|
6938 | #endif
|
---|
6939 |
|
---|
6940 | #undef $ac_func
|
---|
6941 |
|
---|
6942 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
6943 | #ifdef __cplusplus
|
---|
6944 | extern "C"
|
---|
6945 | {
|
---|
6946 | #endif
|
---|
6947 | /* We use char because int might match the return type of a gcc2
|
---|
6948 | builtin and then its argument prototype would still apply. */
|
---|
6949 | char $ac_func ();
|
---|
6950 | /* The GNU C library defines this for functions which it implements
|
---|
6951 | to always fail with ENOSYS. Some functions are actually named
|
---|
6952 | something starting with __ and the normal name is an alias. */
|
---|
6953 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
6954 | choke me
|
---|
6955 | #else
|
---|
6956 | char (*f) () = $ac_func;
|
---|
6957 | #endif
|
---|
6958 | #ifdef __cplusplus
|
---|
6959 | }
|
---|
6960 | #endif
|
---|
6961 |
|
---|
6962 | int
|
---|
6963 | main ()
|
---|
6964 | {
|
---|
6965 | return f != $ac_func;
|
---|
6966 | ;
|
---|
6967 | return 0;
|
---|
6968 | }
|
---|
6969 | _ACEOF
|
---|
6970 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
6971 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
6972 | (eval $ac_link) 2>conftest.er1
|
---|
6973 | ac_status=$?
|
---|
6974 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
6975 | rm -f conftest.er1
|
---|
6976 | cat conftest.err >&5
|
---|
6977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6978 | (exit $ac_status); } &&
|
---|
6979 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
6980 | || test ! -s conftest.err'
|
---|
6981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6982 | (eval $ac_try) 2>&5
|
---|
6983 | ac_status=$?
|
---|
6984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6985 | (exit $ac_status); }; } &&
|
---|
6986 | { ac_try='test -s conftest$ac_exeext'
|
---|
6987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
6988 | (eval $ac_try) 2>&5
|
---|
6989 | ac_status=$?
|
---|
6990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
6991 | (exit $ac_status); }; }; then
|
---|
6992 | eval "$as_ac_var=yes"
|
---|
6993 | else
|
---|
6994 | echo "$as_me: failed program was:" >&5
|
---|
6995 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
6996 |
|
---|
6997 | eval "$as_ac_var=no"
|
---|
6998 | fi
|
---|
6999 | rm -f conftest.err conftest.$ac_objext \
|
---|
7000 | conftest$ac_exeext conftest.$ac_ext
|
---|
7001 | fi
|
---|
7002 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
7003 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
7004 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
7005 | cat >>confdefs.h <<_ACEOF
|
---|
7006 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
7007 | _ACEOF
|
---|
7008 |
|
---|
7009 | fi
|
---|
7010 | done
|
---|
7011 |
|
---|
7012 | echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
|
---|
7013 | echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
|
---|
7014 | if test "${ac_cv_have_decl_dirfd+set}" = set; then
|
---|
7015 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7016 | else
|
---|
7017 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7018 | /* confdefs.h. */
|
---|
7019 | _ACEOF
|
---|
7020 | cat confdefs.h >>conftest.$ac_ext
|
---|
7021 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7022 | /* end confdefs.h. */
|
---|
7023 | $dirfd_headers
|
---|
7024 |
|
---|
7025 | int
|
---|
7026 | main ()
|
---|
7027 | {
|
---|
7028 | #ifndef dirfd
|
---|
7029 | char *p = (char *) dirfd;
|
---|
7030 | #endif
|
---|
7031 |
|
---|
7032 | ;
|
---|
7033 | return 0;
|
---|
7034 | }
|
---|
7035 | _ACEOF
|
---|
7036 | rm -f conftest.$ac_objext
|
---|
7037 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7038 | (eval $ac_compile) 2>conftest.er1
|
---|
7039 | ac_status=$?
|
---|
7040 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7041 | rm -f conftest.er1
|
---|
7042 | cat conftest.err >&5
|
---|
7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7044 | (exit $ac_status); } &&
|
---|
7045 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7046 | || test ! -s conftest.err'
|
---|
7047 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7048 | (eval $ac_try) 2>&5
|
---|
7049 | ac_status=$?
|
---|
7050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7051 | (exit $ac_status); }; } &&
|
---|
7052 | { ac_try='test -s conftest.$ac_objext'
|
---|
7053 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7054 | (eval $ac_try) 2>&5
|
---|
7055 | ac_status=$?
|
---|
7056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7057 | (exit $ac_status); }; }; then
|
---|
7058 | ac_cv_have_decl_dirfd=yes
|
---|
7059 | else
|
---|
7060 | echo "$as_me: failed program was:" >&5
|
---|
7061 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7062 |
|
---|
7063 | ac_cv_have_decl_dirfd=no
|
---|
7064 | fi
|
---|
7065 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7066 | fi
|
---|
7067 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
|
---|
7068 | echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
|
---|
7069 | if test $ac_cv_have_decl_dirfd = yes; then
|
---|
7070 |
|
---|
7071 | cat >>confdefs.h <<_ACEOF
|
---|
7072 | #define HAVE_DECL_DIRFD 1
|
---|
7073 | _ACEOF
|
---|
7074 |
|
---|
7075 |
|
---|
7076 | else
|
---|
7077 | cat >>confdefs.h <<_ACEOF
|
---|
7078 | #define HAVE_DECL_DIRFD 0
|
---|
7079 | _ACEOF
|
---|
7080 |
|
---|
7081 |
|
---|
7082 | fi
|
---|
7083 |
|
---|
7084 |
|
---|
7085 |
|
---|
7086 | echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
|
---|
7087 | echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
|
---|
7088 | if test "${jm_cv_func_dirfd_macro+set}" = set; then
|
---|
7089 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7090 | else
|
---|
7091 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7092 | /* confdefs.h. */
|
---|
7093 | _ACEOF
|
---|
7094 | cat confdefs.h >>conftest.$ac_ext
|
---|
7095 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7096 | /* end confdefs.h. */
|
---|
7097 | $dirfd_headers
|
---|
7098 | #ifdef dirfd
|
---|
7099 | dirent_header_defines_dirfd
|
---|
7100 | #endif
|
---|
7101 | _ACEOF
|
---|
7102 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
---|
7103 | $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
|
---|
7104 | jm_cv_func_dirfd_macro=yes
|
---|
7105 | else
|
---|
7106 | jm_cv_func_dirfd_macro=no
|
---|
7107 | fi
|
---|
7108 | rm -f conftest*
|
---|
7109 |
|
---|
7110 | fi
|
---|
7111 | echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
|
---|
7112 | echo "${ECHO_T}$jm_cv_func_dirfd_macro" >&6
|
---|
7113 |
|
---|
7114 | # Use the replacement only if we have no function, macro,
|
---|
7115 | # or declaration with that name.
|
---|
7116 | if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
|
---|
7117 | = no,no,no; then
|
---|
7118 |
|
---|
7119 | for ac_func in dirfd
|
---|
7120 | do
|
---|
7121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
7122 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
7123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
7124 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
7125 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7126 | else
|
---|
7127 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7128 | /* confdefs.h. */
|
---|
7129 | _ACEOF
|
---|
7130 | cat confdefs.h >>conftest.$ac_ext
|
---|
7131 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7132 | /* end confdefs.h. */
|
---|
7133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
7134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
7135 | #define $ac_func innocuous_$ac_func
|
---|
7136 |
|
---|
7137 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
7138 | which can conflict with char $ac_func (); below.
|
---|
7139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
7140 | <limits.h> exists even on freestanding compilers. */
|
---|
7141 |
|
---|
7142 | #ifdef __STDC__
|
---|
7143 | # include <limits.h>
|
---|
7144 | #else
|
---|
7145 | # include <assert.h>
|
---|
7146 | #endif
|
---|
7147 |
|
---|
7148 | #undef $ac_func
|
---|
7149 |
|
---|
7150 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
7151 | #ifdef __cplusplus
|
---|
7152 | extern "C"
|
---|
7153 | {
|
---|
7154 | #endif
|
---|
7155 | /* We use char because int might match the return type of a gcc2
|
---|
7156 | builtin and then its argument prototype would still apply. */
|
---|
7157 | char $ac_func ();
|
---|
7158 | /* The GNU C library defines this for functions which it implements
|
---|
7159 | to always fail with ENOSYS. Some functions are actually named
|
---|
7160 | something starting with __ and the normal name is an alias. */
|
---|
7161 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
7162 | choke me
|
---|
7163 | #else
|
---|
7164 | char (*f) () = $ac_func;
|
---|
7165 | #endif
|
---|
7166 | #ifdef __cplusplus
|
---|
7167 | }
|
---|
7168 | #endif
|
---|
7169 |
|
---|
7170 | int
|
---|
7171 | main ()
|
---|
7172 | {
|
---|
7173 | return f != $ac_func;
|
---|
7174 | ;
|
---|
7175 | return 0;
|
---|
7176 | }
|
---|
7177 | _ACEOF
|
---|
7178 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7180 | (eval $ac_link) 2>conftest.er1
|
---|
7181 | ac_status=$?
|
---|
7182 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7183 | rm -f conftest.er1
|
---|
7184 | cat conftest.err >&5
|
---|
7185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7186 | (exit $ac_status); } &&
|
---|
7187 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7188 | || test ! -s conftest.err'
|
---|
7189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7190 | (eval $ac_try) 2>&5
|
---|
7191 | ac_status=$?
|
---|
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7193 | (exit $ac_status); }; } &&
|
---|
7194 | { ac_try='test -s conftest$ac_exeext'
|
---|
7195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7196 | (eval $ac_try) 2>&5
|
---|
7197 | ac_status=$?
|
---|
7198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7199 | (exit $ac_status); }; }; then
|
---|
7200 | eval "$as_ac_var=yes"
|
---|
7201 | else
|
---|
7202 | echo "$as_me: failed program was:" >&5
|
---|
7203 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7204 |
|
---|
7205 | eval "$as_ac_var=no"
|
---|
7206 | fi
|
---|
7207 | rm -f conftest.err conftest.$ac_objext \
|
---|
7208 | conftest$ac_exeext conftest.$ac_ext
|
---|
7209 | fi
|
---|
7210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
7211 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
7212 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
7213 | cat >>confdefs.h <<_ACEOF
|
---|
7214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
7215 | _ACEOF
|
---|
7216 |
|
---|
7217 | else
|
---|
7218 | case $LIBOBJS in
|
---|
7219 | "$ac_func.$ac_objext" | \
|
---|
7220 | *" $ac_func.$ac_objext" | \
|
---|
7221 | "$ac_func.$ac_objext "* | \
|
---|
7222 | *" $ac_func.$ac_objext "* ) ;;
|
---|
7223 | *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext" ;;
|
---|
7224 | esac
|
---|
7225 |
|
---|
7226 | fi
|
---|
7227 | done
|
---|
7228 |
|
---|
7229 |
|
---|
7230 | echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
|
---|
7231 | echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
|
---|
7232 | if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
|
---|
7233 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7234 | else
|
---|
7235 |
|
---|
7236 | dirfd_save_CFLAGS=$CFLAGS
|
---|
7237 | for ac_expr in d_fd dd_fd; do
|
---|
7238 |
|
---|
7239 | CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
|
---|
7240 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7241 | /* confdefs.h. */
|
---|
7242 | _ACEOF
|
---|
7243 | cat confdefs.h >>conftest.$ac_ext
|
---|
7244 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7245 | /* end confdefs.h. */
|
---|
7246 | $dirfd_headers
|
---|
7247 |
|
---|
7248 | int
|
---|
7249 | main ()
|
---|
7250 | {
|
---|
7251 | DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
|
---|
7252 | ;
|
---|
7253 | return 0;
|
---|
7254 | }
|
---|
7255 | _ACEOF
|
---|
7256 | rm -f conftest.$ac_objext
|
---|
7257 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7258 | (eval $ac_compile) 2>conftest.er1
|
---|
7259 | ac_status=$?
|
---|
7260 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7261 | rm -f conftest.er1
|
---|
7262 | cat conftest.err >&5
|
---|
7263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7264 | (exit $ac_status); } &&
|
---|
7265 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7266 | || test ! -s conftest.err'
|
---|
7267 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7268 | (eval $ac_try) 2>&5
|
---|
7269 | ac_status=$?
|
---|
7270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7271 | (exit $ac_status); }; } &&
|
---|
7272 | { ac_try='test -s conftest.$ac_objext'
|
---|
7273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7274 | (eval $ac_try) 2>&5
|
---|
7275 | ac_status=$?
|
---|
7276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7277 | (exit $ac_status); }; }; then
|
---|
7278 | dir_fd_found=yes
|
---|
7279 |
|
---|
7280 | else
|
---|
7281 | echo "$as_me: failed program was:" >&5
|
---|
7282 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7283 |
|
---|
7284 | fi
|
---|
7285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7286 | CFLAGS=$dirfd_save_CFLAGS
|
---|
7287 | test "$dir_fd_found" = yes && break
|
---|
7288 | done
|
---|
7289 | test "$dir_fd_found" = yes || ac_expr=no_such_member
|
---|
7290 |
|
---|
7291 | gl_cv_sys_dir_fd_member_name=$ac_expr
|
---|
7292 |
|
---|
7293 |
|
---|
7294 | fi
|
---|
7295 | echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
|
---|
7296 | echo "${ECHO_T}$gl_cv_sys_dir_fd_member_name" >&6
|
---|
7297 | if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
|
---|
7298 |
|
---|
7299 | cat >>confdefs.h <<_ACEOF
|
---|
7300 | #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
|
---|
7301 | _ACEOF
|
---|
7302 |
|
---|
7303 | fi
|
---|
7304 |
|
---|
7305 |
|
---|
7306 | fi
|
---|
7307 |
|
---|
7308 |
|
---|
7309 | #
|
---|
7310 | # iconv
|
---|
7311 | #
|
---|
7312 |
|
---|
7313 |
|
---|
7314 |
|
---|
7315 |
|
---|
7316 |
|
---|
7317 |
|
---|
7318 |
|
---|
7319 | # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
|
---|
7320 | if test "${with_libiconv_prefix+set}" = set; then
|
---|
7321 | withval="$with_libiconv_prefix"
|
---|
7322 |
|
---|
7323 | for dir in `echo "$withval" | tr : ' '`; do
|
---|
7324 | if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
|
---|
7325 | if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
|
---|
7326 | done
|
---|
7327 |
|
---|
7328 | fi;
|
---|
7329 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
7330 | echo "$as_me:$LINENO: checking for iconv.h" >&5
|
---|
7331 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
|
---|
7332 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
7333 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7334 | fi
|
---|
7335 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
|
---|
7336 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
|
---|
7337 | else
|
---|
7338 | # Is the header compilable?
|
---|
7339 | echo "$as_me:$LINENO: checking iconv.h usability" >&5
|
---|
7340 | echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
|
---|
7341 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7342 | /* confdefs.h. */
|
---|
7343 | _ACEOF
|
---|
7344 | cat confdefs.h >>conftest.$ac_ext
|
---|
7345 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7346 | /* end confdefs.h. */
|
---|
7347 | $ac_includes_default
|
---|
7348 | #include <iconv.h>
|
---|
7349 | _ACEOF
|
---|
7350 | rm -f conftest.$ac_objext
|
---|
7351 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7352 | (eval $ac_compile) 2>conftest.er1
|
---|
7353 | ac_status=$?
|
---|
7354 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7355 | rm -f conftest.er1
|
---|
7356 | cat conftest.err >&5
|
---|
7357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7358 | (exit $ac_status); } &&
|
---|
7359 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7360 | || test ! -s conftest.err'
|
---|
7361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7362 | (eval $ac_try) 2>&5
|
---|
7363 | ac_status=$?
|
---|
7364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7365 | (exit $ac_status); }; } &&
|
---|
7366 | { ac_try='test -s conftest.$ac_objext'
|
---|
7367 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7368 | (eval $ac_try) 2>&5
|
---|
7369 | ac_status=$?
|
---|
7370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7371 | (exit $ac_status); }; }; then
|
---|
7372 | ac_header_compiler=yes
|
---|
7373 | else
|
---|
7374 | echo "$as_me: failed program was:" >&5
|
---|
7375 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7376 |
|
---|
7377 | ac_header_compiler=no
|
---|
7378 | fi
|
---|
7379 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7380 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7381 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
7382 |
|
---|
7383 | # Is the header present?
|
---|
7384 | echo "$as_me:$LINENO: checking iconv.h presence" >&5
|
---|
7385 | echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
|
---|
7386 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7387 | /* confdefs.h. */
|
---|
7388 | _ACEOF
|
---|
7389 | cat confdefs.h >>conftest.$ac_ext
|
---|
7390 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7391 | /* end confdefs.h. */
|
---|
7392 | #include <iconv.h>
|
---|
7393 | _ACEOF
|
---|
7394 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
7395 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
7396 | ac_status=$?
|
---|
7397 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7398 | rm -f conftest.er1
|
---|
7399 | cat conftest.err >&5
|
---|
7400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7401 | (exit $ac_status); } >/dev/null; then
|
---|
7402 | if test -s conftest.err; then
|
---|
7403 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
7404 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
7405 | else
|
---|
7406 | ac_cpp_err=
|
---|
7407 | fi
|
---|
7408 | else
|
---|
7409 | ac_cpp_err=yes
|
---|
7410 | fi
|
---|
7411 | if test -z "$ac_cpp_err"; then
|
---|
7412 | ac_header_preproc=yes
|
---|
7413 | else
|
---|
7414 | echo "$as_me: failed program was:" >&5
|
---|
7415 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7416 |
|
---|
7417 | ac_header_preproc=no
|
---|
7418 | fi
|
---|
7419 | rm -f conftest.err conftest.$ac_ext
|
---|
7420 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7421 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
7422 |
|
---|
7423 | # So? What about this header?
|
---|
7424 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7425 | yes:no: )
|
---|
7426 | { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7427 | echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7428 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
|
---|
7429 | echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
|
---|
7430 | ac_header_preproc=yes
|
---|
7431 | ;;
|
---|
7432 | no:yes:* )
|
---|
7433 | { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
|
---|
7434 | echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
|
---|
7435 | { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
|
---|
7436 | echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
|
---|
7437 | { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
|
---|
7438 | echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
|
---|
7439 | { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7440 | echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7441 | { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
|
---|
7442 | echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
|
---|
7443 | { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
|
---|
7444 | echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
|
---|
7445 | (
|
---|
7446 | cat <<\_ASBOX
|
---|
7447 | ## ----------------------------------- ##
|
---|
7448 | ## Report this to the rdesktop lists. ##
|
---|
7449 | ## ----------------------------------- ##
|
---|
7450 | _ASBOX
|
---|
7451 | ) |
|
---|
7452 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
7453 | ;;
|
---|
7454 | esac
|
---|
7455 | echo "$as_me:$LINENO: checking for iconv.h" >&5
|
---|
7456 | echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
|
---|
7457 | if test "${ac_cv_header_iconv_h+set}" = set; then
|
---|
7458 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7459 | else
|
---|
7460 | ac_cv_header_iconv_h=$ac_header_preproc
|
---|
7461 | fi
|
---|
7462 | echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
|
---|
7463 | echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
|
---|
7464 |
|
---|
7465 | fi
|
---|
7466 | if test $ac_cv_header_iconv_h = yes; then
|
---|
7467 | cat >>confdefs.h <<\_ACEOF
|
---|
7468 | #define HAVE_ICONV_H 1
|
---|
7469 | _ACEOF
|
---|
7470 |
|
---|
7471 | fi
|
---|
7472 |
|
---|
7473 |
|
---|
7474 |
|
---|
7475 | echo "$as_me:$LINENO: checking for iconv" >&5
|
---|
7476 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6
|
---|
7477 | if test "${am_cv_func_iconv+set}" = set; then
|
---|
7478 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7479 | else
|
---|
7480 |
|
---|
7481 | am_cv_func_iconv="no, consider installing GNU libiconv"
|
---|
7482 | am_cv_lib_iconv=no
|
---|
7483 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7484 | /* confdefs.h. */
|
---|
7485 | _ACEOF
|
---|
7486 | cat confdefs.h >>conftest.$ac_ext
|
---|
7487 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7488 | /* end confdefs.h. */
|
---|
7489 | #include <stdlib.h>
|
---|
7490 | #include <iconv.h>
|
---|
7491 | int
|
---|
7492 | main ()
|
---|
7493 | {
|
---|
7494 | iconv_t cd = iconv_open("","");
|
---|
7495 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
7496 | iconv_close(cd);
|
---|
7497 | ;
|
---|
7498 | return 0;
|
---|
7499 | }
|
---|
7500 | _ACEOF
|
---|
7501 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7503 | (eval $ac_link) 2>conftest.er1
|
---|
7504 | ac_status=$?
|
---|
7505 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7506 | rm -f conftest.er1
|
---|
7507 | cat conftest.err >&5
|
---|
7508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7509 | (exit $ac_status); } &&
|
---|
7510 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7511 | || test ! -s conftest.err'
|
---|
7512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7513 | (eval $ac_try) 2>&5
|
---|
7514 | ac_status=$?
|
---|
7515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7516 | (exit $ac_status); }; } &&
|
---|
7517 | { ac_try='test -s conftest$ac_exeext'
|
---|
7518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7519 | (eval $ac_try) 2>&5
|
---|
7520 | ac_status=$?
|
---|
7521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7522 | (exit $ac_status); }; }; then
|
---|
7523 | am_cv_func_iconv=yes
|
---|
7524 | else
|
---|
7525 | echo "$as_me: failed program was:" >&5
|
---|
7526 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7527 |
|
---|
7528 | fi
|
---|
7529 | rm -f conftest.err conftest.$ac_objext \
|
---|
7530 | conftest$ac_exeext conftest.$ac_ext
|
---|
7531 | if test "$am_cv_func_iconv" != yes; then
|
---|
7532 | am_save_LIBS="$LIBS"
|
---|
7533 | LIBS="$LIBS -liconv"
|
---|
7534 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7535 | /* confdefs.h. */
|
---|
7536 | _ACEOF
|
---|
7537 | cat confdefs.h >>conftest.$ac_ext
|
---|
7538 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7539 | /* end confdefs.h. */
|
---|
7540 | #include <stdlib.h>
|
---|
7541 | #include <iconv.h>
|
---|
7542 | int
|
---|
7543 | main ()
|
---|
7544 | {
|
---|
7545 | iconv_t cd = iconv_open("","");
|
---|
7546 | iconv(cd,NULL,NULL,NULL,NULL);
|
---|
7547 | iconv_close(cd);
|
---|
7548 | ;
|
---|
7549 | return 0;
|
---|
7550 | }
|
---|
7551 | _ACEOF
|
---|
7552 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
7553 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
7554 | (eval $ac_link) 2>conftest.er1
|
---|
7555 | ac_status=$?
|
---|
7556 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7557 | rm -f conftest.er1
|
---|
7558 | cat conftest.err >&5
|
---|
7559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7560 | (exit $ac_status); } &&
|
---|
7561 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7562 | || test ! -s conftest.err'
|
---|
7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7564 | (eval $ac_try) 2>&5
|
---|
7565 | ac_status=$?
|
---|
7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7567 | (exit $ac_status); }; } &&
|
---|
7568 | { ac_try='test -s conftest$ac_exeext'
|
---|
7569 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7570 | (eval $ac_try) 2>&5
|
---|
7571 | ac_status=$?
|
---|
7572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7573 | (exit $ac_status); }; }; then
|
---|
7574 | am_cv_lib_iconv=yes
|
---|
7575 | am_cv_func_iconv=yes
|
---|
7576 | else
|
---|
7577 | echo "$as_me: failed program was:" >&5
|
---|
7578 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7579 |
|
---|
7580 | fi
|
---|
7581 | rm -f conftest.err conftest.$ac_objext \
|
---|
7582 | conftest$ac_exeext conftest.$ac_ext
|
---|
7583 | LIBS="$am_save_LIBS"
|
---|
7584 | fi
|
---|
7585 |
|
---|
7586 | fi
|
---|
7587 | echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
|
---|
7588 | echo "${ECHO_T}$am_cv_func_iconv" >&6
|
---|
7589 | if test "$am_cv_func_iconv" = yes; then
|
---|
7590 |
|
---|
7591 | cat >>confdefs.h <<\_ACEOF
|
---|
7592 | #define HAVE_ICONV 1
|
---|
7593 | _ACEOF
|
---|
7594 |
|
---|
7595 | echo "$as_me:$LINENO: checking for iconv declaration" >&5
|
---|
7596 | echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
|
---|
7597 | if test "${am_cv_proto_iconv+set}" = set; then
|
---|
7598 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7599 | else
|
---|
7600 |
|
---|
7601 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7602 | /* confdefs.h. */
|
---|
7603 | _ACEOF
|
---|
7604 | cat confdefs.h >>conftest.$ac_ext
|
---|
7605 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7606 | /* end confdefs.h. */
|
---|
7607 |
|
---|
7608 | #include <stdlib.h>
|
---|
7609 | #include <iconv.h>
|
---|
7610 | extern
|
---|
7611 | #ifdef __cplusplus
|
---|
7612 | "C"
|
---|
7613 | #endif
|
---|
7614 | #if defined(__STDC__) || defined(__cplusplus)
|
---|
7615 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
|
---|
7616 | #else
|
---|
7617 | size_t iconv();
|
---|
7618 | #endif
|
---|
7619 |
|
---|
7620 | int
|
---|
7621 | main ()
|
---|
7622 | {
|
---|
7623 |
|
---|
7624 | ;
|
---|
7625 | return 0;
|
---|
7626 | }
|
---|
7627 | _ACEOF
|
---|
7628 | rm -f conftest.$ac_objext
|
---|
7629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7630 | (eval $ac_compile) 2>conftest.er1
|
---|
7631 | ac_status=$?
|
---|
7632 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7633 | rm -f conftest.er1
|
---|
7634 | cat conftest.err >&5
|
---|
7635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7636 | (exit $ac_status); } &&
|
---|
7637 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7638 | || test ! -s conftest.err'
|
---|
7639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7640 | (eval $ac_try) 2>&5
|
---|
7641 | ac_status=$?
|
---|
7642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7643 | (exit $ac_status); }; } &&
|
---|
7644 | { ac_try='test -s conftest.$ac_objext'
|
---|
7645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7646 | (eval $ac_try) 2>&5
|
---|
7647 | ac_status=$?
|
---|
7648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7649 | (exit $ac_status); }; }; then
|
---|
7650 | am_cv_proto_iconv_arg1=""
|
---|
7651 | else
|
---|
7652 | echo "$as_me: failed program was:" >&5
|
---|
7653 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7654 |
|
---|
7655 | am_cv_proto_iconv_arg1="const"
|
---|
7656 | fi
|
---|
7657 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7658 | 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);"
|
---|
7659 | fi
|
---|
7660 |
|
---|
7661 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
|
---|
7662 | echo "$as_me:$LINENO: result: ${ac_t:-
|
---|
7663 | }$am_cv_proto_iconv" >&5
|
---|
7664 | echo "${ECHO_T}${ac_t:-
|
---|
7665 | }$am_cv_proto_iconv" >&6
|
---|
7666 |
|
---|
7667 | cat >>confdefs.h <<_ACEOF
|
---|
7668 | #define ICONV_CONST $am_cv_proto_iconv_arg1
|
---|
7669 | _ACEOF
|
---|
7670 |
|
---|
7671 | fi
|
---|
7672 | LIBICONV=
|
---|
7673 | if test "$am_cv_lib_iconv" = yes; then
|
---|
7674 | LIBICONV="-liconv"
|
---|
7675 | fi
|
---|
7676 |
|
---|
7677 |
|
---|
7678 | LIBS="$LIBS $LIBICONV"
|
---|
7679 |
|
---|
7680 | #
|
---|
7681 | # socklen_t
|
---|
7682 | # from curl
|
---|
7683 |
|
---|
7684 |
|
---|
7685 |
|
---|
7686 |
|
---|
7687 | echo "$as_me:$LINENO: checking for socklen_t" >&5
|
---|
7688 | echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
|
---|
7689 | if test "${ac_cv_type_socklen_t+set}" = set; then
|
---|
7690 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7691 | else
|
---|
7692 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7693 | /* confdefs.h. */
|
---|
7694 | _ACEOF
|
---|
7695 | cat confdefs.h >>conftest.$ac_ext
|
---|
7696 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7697 | /* end confdefs.h. */
|
---|
7698 | #include <sys/types.h>
|
---|
7699 | #include <sys/socket.h>
|
---|
7700 |
|
---|
7701 | int
|
---|
7702 | main ()
|
---|
7703 | {
|
---|
7704 | if ((socklen_t *) 0)
|
---|
7705 | return 0;
|
---|
7706 | if (sizeof (socklen_t))
|
---|
7707 | return 0;
|
---|
7708 | ;
|
---|
7709 | return 0;
|
---|
7710 | }
|
---|
7711 | _ACEOF
|
---|
7712 | rm -f conftest.$ac_objext
|
---|
7713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7714 | (eval $ac_compile) 2>conftest.er1
|
---|
7715 | ac_status=$?
|
---|
7716 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7717 | rm -f conftest.er1
|
---|
7718 | cat conftest.err >&5
|
---|
7719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7720 | (exit $ac_status); } &&
|
---|
7721 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7722 | || test ! -s conftest.err'
|
---|
7723 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7724 | (eval $ac_try) 2>&5
|
---|
7725 | ac_status=$?
|
---|
7726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7727 | (exit $ac_status); }; } &&
|
---|
7728 | { ac_try='test -s conftest.$ac_objext'
|
---|
7729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7730 | (eval $ac_try) 2>&5
|
---|
7731 | ac_status=$?
|
---|
7732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7733 | (exit $ac_status); }; }; then
|
---|
7734 | ac_cv_type_socklen_t=yes
|
---|
7735 | else
|
---|
7736 | echo "$as_me: failed program was:" >&5
|
---|
7737 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7738 |
|
---|
7739 | ac_cv_type_socklen_t=no
|
---|
7740 | fi
|
---|
7741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7742 | fi
|
---|
7743 | echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
|
---|
7744 | echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
|
---|
7745 | if test $ac_cv_type_socklen_t = yes; then
|
---|
7746 | :
|
---|
7747 | else
|
---|
7748 |
|
---|
7749 | echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
|
---|
7750 | echo $ECHO_N "checking for socklen_t equivalent... $ECHO_C" >&6
|
---|
7751 | if test "${socklen_t_equiv+set}" = set; then
|
---|
7752 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7753 | else
|
---|
7754 |
|
---|
7755 | # Systems have either "struct sockaddr *" or
|
---|
7756 | # "void *" as the second argument to getpeername
|
---|
7757 | socklen_t_equiv=
|
---|
7758 | for arg2 in "struct sockaddr" void; do
|
---|
7759 | for t in int size_t unsigned long "unsigned long"; do
|
---|
7760 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7761 | /* confdefs.h. */
|
---|
7762 | _ACEOF
|
---|
7763 | cat confdefs.h >>conftest.$ac_ext
|
---|
7764 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7765 | /* end confdefs.h. */
|
---|
7766 |
|
---|
7767 | #include <sys/types.h>
|
---|
7768 | #include <sys/socket.h>
|
---|
7769 |
|
---|
7770 | int getpeername (int, $arg2 *, $t *);
|
---|
7771 |
|
---|
7772 | int
|
---|
7773 | main ()
|
---|
7774 | {
|
---|
7775 |
|
---|
7776 | $t len;
|
---|
7777 | getpeername(0,0,&len);
|
---|
7778 |
|
---|
7779 | ;
|
---|
7780 | return 0;
|
---|
7781 | }
|
---|
7782 | _ACEOF
|
---|
7783 | rm -f conftest.$ac_objext
|
---|
7784 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7785 | (eval $ac_compile) 2>conftest.er1
|
---|
7786 | ac_status=$?
|
---|
7787 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7788 | rm -f conftest.er1
|
---|
7789 | cat conftest.err >&5
|
---|
7790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7791 | (exit $ac_status); } &&
|
---|
7792 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7793 | || test ! -s conftest.err'
|
---|
7794 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7795 | (eval $ac_try) 2>&5
|
---|
7796 | ac_status=$?
|
---|
7797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7798 | (exit $ac_status); }; } &&
|
---|
7799 | { ac_try='test -s conftest.$ac_objext'
|
---|
7800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7801 | (eval $ac_try) 2>&5
|
---|
7802 | ac_status=$?
|
---|
7803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7804 | (exit $ac_status); }; }; then
|
---|
7805 |
|
---|
7806 | socklen_t_equiv="$t"
|
---|
7807 | break
|
---|
7808 |
|
---|
7809 | else
|
---|
7810 | echo "$as_me: failed program was:" >&5
|
---|
7811 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7812 |
|
---|
7813 | fi
|
---|
7814 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7815 | done
|
---|
7816 | done
|
---|
7817 |
|
---|
7818 | if test "x$socklen_t_equiv" = x; then
|
---|
7819 | { { echo "$as_me:$LINENO: error: Cannot find a type to use in place of socklen_t" >&5
|
---|
7820 | echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
|
---|
7821 | { (exit 1); exit 1; }; }
|
---|
7822 | fi
|
---|
7823 |
|
---|
7824 | fi
|
---|
7825 |
|
---|
7826 | echo "$as_me:$LINENO: result: $socklen_t_equiv" >&5
|
---|
7827 | echo "${ECHO_T}$socklen_t_equiv" >&6
|
---|
7828 |
|
---|
7829 | cat >>confdefs.h <<_ACEOF
|
---|
7830 | #define socklen_t $socklen_t_equiv
|
---|
7831 | _ACEOF
|
---|
7832 |
|
---|
7833 | fi
|
---|
7834 |
|
---|
7835 |
|
---|
7836 |
|
---|
7837 | #
|
---|
7838 | # statfs stuff
|
---|
7839 | #
|
---|
7840 |
|
---|
7841 | for ac_header in sys/vfs.h
|
---|
7842 | do
|
---|
7843 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7844 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7845 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7846 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7847 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7848 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7849 | fi
|
---|
7850 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7851 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7852 | else
|
---|
7853 | # Is the header compilable?
|
---|
7854 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
7855 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
7856 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7857 | /* confdefs.h. */
|
---|
7858 | _ACEOF
|
---|
7859 | cat confdefs.h >>conftest.$ac_ext
|
---|
7860 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7861 | /* end confdefs.h. */
|
---|
7862 | $ac_includes_default
|
---|
7863 | #include <$ac_header>
|
---|
7864 | _ACEOF
|
---|
7865 | rm -f conftest.$ac_objext
|
---|
7866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
7867 | (eval $ac_compile) 2>conftest.er1
|
---|
7868 | ac_status=$?
|
---|
7869 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7870 | rm -f conftest.er1
|
---|
7871 | cat conftest.err >&5
|
---|
7872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7873 | (exit $ac_status); } &&
|
---|
7874 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
7875 | || test ! -s conftest.err'
|
---|
7876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7877 | (eval $ac_try) 2>&5
|
---|
7878 | ac_status=$?
|
---|
7879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7880 | (exit $ac_status); }; } &&
|
---|
7881 | { ac_try='test -s conftest.$ac_objext'
|
---|
7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
7883 | (eval $ac_try) 2>&5
|
---|
7884 | ac_status=$?
|
---|
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7886 | (exit $ac_status); }; }; then
|
---|
7887 | ac_header_compiler=yes
|
---|
7888 | else
|
---|
7889 | echo "$as_me: failed program was:" >&5
|
---|
7890 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7891 |
|
---|
7892 | ac_header_compiler=no
|
---|
7893 | fi
|
---|
7894 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
7895 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
7896 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
7897 |
|
---|
7898 | # Is the header present?
|
---|
7899 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
7900 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
7901 | cat >conftest.$ac_ext <<_ACEOF
|
---|
7902 | /* confdefs.h. */
|
---|
7903 | _ACEOF
|
---|
7904 | cat confdefs.h >>conftest.$ac_ext
|
---|
7905 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
7906 | /* end confdefs.h. */
|
---|
7907 | #include <$ac_header>
|
---|
7908 | _ACEOF
|
---|
7909 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
7910 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
7911 | ac_status=$?
|
---|
7912 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
7913 | rm -f conftest.er1
|
---|
7914 | cat conftest.err >&5
|
---|
7915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
7916 | (exit $ac_status); } >/dev/null; then
|
---|
7917 | if test -s conftest.err; then
|
---|
7918 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
7919 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
7920 | else
|
---|
7921 | ac_cpp_err=
|
---|
7922 | fi
|
---|
7923 | else
|
---|
7924 | ac_cpp_err=yes
|
---|
7925 | fi
|
---|
7926 | if test -z "$ac_cpp_err"; then
|
---|
7927 | ac_header_preproc=yes
|
---|
7928 | else
|
---|
7929 | echo "$as_me: failed program was:" >&5
|
---|
7930 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
7931 |
|
---|
7932 | ac_header_preproc=no
|
---|
7933 | fi
|
---|
7934 | rm -f conftest.err conftest.$ac_ext
|
---|
7935 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
7936 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
7937 |
|
---|
7938 | # So? What about this header?
|
---|
7939 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
7940 | yes:no: )
|
---|
7941 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
7942 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
7943 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
7944 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
7945 | ac_header_preproc=yes
|
---|
7946 | ;;
|
---|
7947 | no:yes:* )
|
---|
7948 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
7949 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
7950 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
7951 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
7952 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
7953 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
7954 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
7955 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
7956 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
7957 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
7958 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
7959 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
7960 | (
|
---|
7961 | cat <<\_ASBOX
|
---|
7962 | ## ----------------------------------- ##
|
---|
7963 | ## Report this to the rdesktop lists. ##
|
---|
7964 | ## ----------------------------------- ##
|
---|
7965 | _ASBOX
|
---|
7966 | ) |
|
---|
7967 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
7968 | ;;
|
---|
7969 | esac
|
---|
7970 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7971 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7972 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7973 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7974 | else
|
---|
7975 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
7976 | fi
|
---|
7977 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
7978 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
7979 |
|
---|
7980 | fi
|
---|
7981 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
7982 | cat >>confdefs.h <<_ACEOF
|
---|
7983 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
7984 | _ACEOF
|
---|
7985 |
|
---|
7986 | fi
|
---|
7987 |
|
---|
7988 | done
|
---|
7989 |
|
---|
7990 |
|
---|
7991 | for ac_header in sys/statvfs.h
|
---|
7992 | do
|
---|
7993 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
7994 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7995 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
7996 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
7997 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
7998 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
7999 | fi
|
---|
8000 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8001 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8002 | else
|
---|
8003 | # Is the header compilable?
|
---|
8004 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8005 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
8006 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8007 | /* confdefs.h. */
|
---|
8008 | _ACEOF
|
---|
8009 | cat confdefs.h >>conftest.$ac_ext
|
---|
8010 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8011 | /* end confdefs.h. */
|
---|
8012 | $ac_includes_default
|
---|
8013 | #include <$ac_header>
|
---|
8014 | _ACEOF
|
---|
8015 | rm -f conftest.$ac_objext
|
---|
8016 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8017 | (eval $ac_compile) 2>conftest.er1
|
---|
8018 | ac_status=$?
|
---|
8019 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8020 | rm -f conftest.er1
|
---|
8021 | cat conftest.err >&5
|
---|
8022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8023 | (exit $ac_status); } &&
|
---|
8024 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8025 | || test ! -s conftest.err'
|
---|
8026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8027 | (eval $ac_try) 2>&5
|
---|
8028 | ac_status=$?
|
---|
8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8030 | (exit $ac_status); }; } &&
|
---|
8031 | { ac_try='test -s conftest.$ac_objext'
|
---|
8032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8033 | (eval $ac_try) 2>&5
|
---|
8034 | ac_status=$?
|
---|
8035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8036 | (exit $ac_status); }; }; then
|
---|
8037 | ac_header_compiler=yes
|
---|
8038 | else
|
---|
8039 | echo "$as_me: failed program was:" >&5
|
---|
8040 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8041 |
|
---|
8042 | ac_header_compiler=no
|
---|
8043 | fi
|
---|
8044 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8045 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8046 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
8047 |
|
---|
8048 | # Is the header present?
|
---|
8049 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8050 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
8051 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8052 | /* confdefs.h. */
|
---|
8053 | _ACEOF
|
---|
8054 | cat confdefs.h >>conftest.$ac_ext
|
---|
8055 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8056 | /* end confdefs.h. */
|
---|
8057 | #include <$ac_header>
|
---|
8058 | _ACEOF
|
---|
8059 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
8060 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
8061 | ac_status=$?
|
---|
8062 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8063 | rm -f conftest.er1
|
---|
8064 | cat conftest.err >&5
|
---|
8065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8066 | (exit $ac_status); } >/dev/null; then
|
---|
8067 | if test -s conftest.err; then
|
---|
8068 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
8069 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
8070 | else
|
---|
8071 | ac_cpp_err=
|
---|
8072 | fi
|
---|
8073 | else
|
---|
8074 | ac_cpp_err=yes
|
---|
8075 | fi
|
---|
8076 | if test -z "$ac_cpp_err"; then
|
---|
8077 | ac_header_preproc=yes
|
---|
8078 | else
|
---|
8079 | echo "$as_me: failed program was:" >&5
|
---|
8080 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8081 |
|
---|
8082 | ac_header_preproc=no
|
---|
8083 | fi
|
---|
8084 | rm -f conftest.err conftest.$ac_ext
|
---|
8085 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8086 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
8087 |
|
---|
8088 | # So? What about this header?
|
---|
8089 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8090 | yes:no: )
|
---|
8091 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8092 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8093 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8094 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8095 | ac_header_preproc=yes
|
---|
8096 | ;;
|
---|
8097 | no:yes:* )
|
---|
8098 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8099 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8100 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8101 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
8102 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
8103 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
8104 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8105 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8106 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
8107 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
8108 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
8109 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
8110 | (
|
---|
8111 | cat <<\_ASBOX
|
---|
8112 | ## ----------------------------------- ##
|
---|
8113 | ## Report this to the rdesktop lists. ##
|
---|
8114 | ## ----------------------------------- ##
|
---|
8115 | _ASBOX
|
---|
8116 | ) |
|
---|
8117 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
8118 | ;;
|
---|
8119 | esac
|
---|
8120 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8121 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8122 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8123 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8124 | else
|
---|
8125 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
8126 | fi
|
---|
8127 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8128 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8129 |
|
---|
8130 | fi
|
---|
8131 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8132 | cat >>confdefs.h <<_ACEOF
|
---|
8133 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8134 | _ACEOF
|
---|
8135 |
|
---|
8136 | fi
|
---|
8137 |
|
---|
8138 | done
|
---|
8139 |
|
---|
8140 |
|
---|
8141 | for ac_header in sys/statfs.h
|
---|
8142 | do
|
---|
8143 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8144 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8145 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8146 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8147 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8148 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8149 | fi
|
---|
8150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8151 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8152 | else
|
---|
8153 | # Is the header compilable?
|
---|
8154 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8155 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
8156 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8157 | /* confdefs.h. */
|
---|
8158 | _ACEOF
|
---|
8159 | cat confdefs.h >>conftest.$ac_ext
|
---|
8160 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8161 | /* end confdefs.h. */
|
---|
8162 | $ac_includes_default
|
---|
8163 | #include <$ac_header>
|
---|
8164 | _ACEOF
|
---|
8165 | rm -f conftest.$ac_objext
|
---|
8166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8167 | (eval $ac_compile) 2>conftest.er1
|
---|
8168 | ac_status=$?
|
---|
8169 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8170 | rm -f conftest.er1
|
---|
8171 | cat conftest.err >&5
|
---|
8172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8173 | (exit $ac_status); } &&
|
---|
8174 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8175 | || test ! -s conftest.err'
|
---|
8176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8177 | (eval $ac_try) 2>&5
|
---|
8178 | ac_status=$?
|
---|
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8180 | (exit $ac_status); }; } &&
|
---|
8181 | { ac_try='test -s conftest.$ac_objext'
|
---|
8182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8183 | (eval $ac_try) 2>&5
|
---|
8184 | ac_status=$?
|
---|
8185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8186 | (exit $ac_status); }; }; then
|
---|
8187 | ac_header_compiler=yes
|
---|
8188 | else
|
---|
8189 | echo "$as_me: failed program was:" >&5
|
---|
8190 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8191 |
|
---|
8192 | ac_header_compiler=no
|
---|
8193 | fi
|
---|
8194 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8195 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8196 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
8197 |
|
---|
8198 | # Is the header present?
|
---|
8199 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8200 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
8201 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8202 | /* confdefs.h. */
|
---|
8203 | _ACEOF
|
---|
8204 | cat confdefs.h >>conftest.$ac_ext
|
---|
8205 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8206 | /* end confdefs.h. */
|
---|
8207 | #include <$ac_header>
|
---|
8208 | _ACEOF
|
---|
8209 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
8210 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
8211 | ac_status=$?
|
---|
8212 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8213 | rm -f conftest.er1
|
---|
8214 | cat conftest.err >&5
|
---|
8215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8216 | (exit $ac_status); } >/dev/null; then
|
---|
8217 | if test -s conftest.err; then
|
---|
8218 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
8219 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
8220 | else
|
---|
8221 | ac_cpp_err=
|
---|
8222 | fi
|
---|
8223 | else
|
---|
8224 | ac_cpp_err=yes
|
---|
8225 | fi
|
---|
8226 | if test -z "$ac_cpp_err"; then
|
---|
8227 | ac_header_preproc=yes
|
---|
8228 | else
|
---|
8229 | echo "$as_me: failed program was:" >&5
|
---|
8230 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8231 |
|
---|
8232 | ac_header_preproc=no
|
---|
8233 | fi
|
---|
8234 | rm -f conftest.err conftest.$ac_ext
|
---|
8235 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8236 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
8237 |
|
---|
8238 | # So? What about this header?
|
---|
8239 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8240 | yes:no: )
|
---|
8241 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8242 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8243 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8244 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8245 | ac_header_preproc=yes
|
---|
8246 | ;;
|
---|
8247 | no:yes:* )
|
---|
8248 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8249 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8250 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8251 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
8252 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
8253 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
8254 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8255 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8256 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
8257 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
8258 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
8259 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
8260 | (
|
---|
8261 | cat <<\_ASBOX
|
---|
8262 | ## ----------------------------------- ##
|
---|
8263 | ## Report this to the rdesktop lists. ##
|
---|
8264 | ## ----------------------------------- ##
|
---|
8265 | _ASBOX
|
---|
8266 | ) |
|
---|
8267 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
8268 | ;;
|
---|
8269 | esac
|
---|
8270 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8271 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8272 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8273 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8274 | else
|
---|
8275 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
8276 | fi
|
---|
8277 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8278 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8279 |
|
---|
8280 | fi
|
---|
8281 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8282 | cat >>confdefs.h <<_ACEOF
|
---|
8283 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8284 | _ACEOF
|
---|
8285 |
|
---|
8286 | fi
|
---|
8287 |
|
---|
8288 | done
|
---|
8289 |
|
---|
8290 |
|
---|
8291 | for ac_header in sys/param.h
|
---|
8292 | do
|
---|
8293 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8294 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8295 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8296 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8297 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8298 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8299 | fi
|
---|
8300 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8301 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8302 | else
|
---|
8303 | # Is the header compilable?
|
---|
8304 | echo "$as_me:$LINENO: checking $ac_header usability" >&5
|
---|
8305 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
|
---|
8306 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8307 | /* confdefs.h. */
|
---|
8308 | _ACEOF
|
---|
8309 | cat confdefs.h >>conftest.$ac_ext
|
---|
8310 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8311 | /* end confdefs.h. */
|
---|
8312 | $ac_includes_default
|
---|
8313 | #include <$ac_header>
|
---|
8314 | _ACEOF
|
---|
8315 | rm -f conftest.$ac_objext
|
---|
8316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8317 | (eval $ac_compile) 2>conftest.er1
|
---|
8318 | ac_status=$?
|
---|
8319 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8320 | rm -f conftest.er1
|
---|
8321 | cat conftest.err >&5
|
---|
8322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8323 | (exit $ac_status); } &&
|
---|
8324 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8325 | || test ! -s conftest.err'
|
---|
8326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8327 | (eval $ac_try) 2>&5
|
---|
8328 | ac_status=$?
|
---|
8329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8330 | (exit $ac_status); }; } &&
|
---|
8331 | { ac_try='test -s conftest.$ac_objext'
|
---|
8332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8333 | (eval $ac_try) 2>&5
|
---|
8334 | ac_status=$?
|
---|
8335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8336 | (exit $ac_status); }; }; then
|
---|
8337 | ac_header_compiler=yes
|
---|
8338 | else
|
---|
8339 | echo "$as_me: failed program was:" >&5
|
---|
8340 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8341 |
|
---|
8342 | ac_header_compiler=no
|
---|
8343 | fi
|
---|
8344 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8345 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
8346 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
8347 |
|
---|
8348 | # Is the header present?
|
---|
8349 | echo "$as_me:$LINENO: checking $ac_header presence" >&5
|
---|
8350 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
|
---|
8351 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8352 | /* confdefs.h. */
|
---|
8353 | _ACEOF
|
---|
8354 | cat confdefs.h >>conftest.$ac_ext
|
---|
8355 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8356 | /* end confdefs.h. */
|
---|
8357 | #include <$ac_header>
|
---|
8358 | _ACEOF
|
---|
8359 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
8360 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
8361 | ac_status=$?
|
---|
8362 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8363 | rm -f conftest.er1
|
---|
8364 | cat conftest.err >&5
|
---|
8365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8366 | (exit $ac_status); } >/dev/null; then
|
---|
8367 | if test -s conftest.err; then
|
---|
8368 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
8369 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
8370 | else
|
---|
8371 | ac_cpp_err=
|
---|
8372 | fi
|
---|
8373 | else
|
---|
8374 | ac_cpp_err=yes
|
---|
8375 | fi
|
---|
8376 | if test -z "$ac_cpp_err"; then
|
---|
8377 | ac_header_preproc=yes
|
---|
8378 | else
|
---|
8379 | echo "$as_me: failed program was:" >&5
|
---|
8380 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8381 |
|
---|
8382 | ac_header_preproc=no
|
---|
8383 | fi
|
---|
8384 | rm -f conftest.err conftest.$ac_ext
|
---|
8385 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
8386 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
8387 |
|
---|
8388 | # So? What about this header?
|
---|
8389 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
8390 | yes:no: )
|
---|
8391 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
8392 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
8393 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
|
---|
8394 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
|
---|
8395 | ac_header_preproc=yes
|
---|
8396 | ;;
|
---|
8397 | no:yes:* )
|
---|
8398 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
|
---|
8399 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
|
---|
8400 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
|
---|
8401 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
|
---|
8402 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
|
---|
8403 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
|
---|
8404 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
|
---|
8405 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
8406 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
|
---|
8407 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
|
---|
8408 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
|
---|
8409 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
|
---|
8410 | (
|
---|
8411 | cat <<\_ASBOX
|
---|
8412 | ## ----------------------------------- ##
|
---|
8413 | ## Report this to the rdesktop lists. ##
|
---|
8414 | ## ----------------------------------- ##
|
---|
8415 | _ASBOX
|
---|
8416 | ) |
|
---|
8417 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
8418 | ;;
|
---|
8419 | esac
|
---|
8420 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8421 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8422 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8423 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8424 | else
|
---|
8425 | eval "$as_ac_Header=\$ac_header_preproc"
|
---|
8426 | fi
|
---|
8427 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8428 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8429 |
|
---|
8430 | fi
|
---|
8431 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8432 | cat >>confdefs.h <<_ACEOF
|
---|
8433 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8434 | _ACEOF
|
---|
8435 |
|
---|
8436 | fi
|
---|
8437 |
|
---|
8438 | done
|
---|
8439 |
|
---|
8440 |
|
---|
8441 | mount_includes="\
|
---|
8442 | $ac_includes_default
|
---|
8443 | #if HAVE_SYS_PARAM_H
|
---|
8444 | # include <sys/param.h>
|
---|
8445 | #endif
|
---|
8446 | "
|
---|
8447 |
|
---|
8448 |
|
---|
8449 | for ac_header in sys/mount.h
|
---|
8450 | do
|
---|
8451 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
---|
8452 | echo "$as_me:$LINENO: checking for $ac_header" >&5
|
---|
8453 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
|
---|
8454 | if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
---|
8455 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8456 | else
|
---|
8457 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8458 | /* confdefs.h. */
|
---|
8459 | _ACEOF
|
---|
8460 | cat confdefs.h >>conftest.$ac_ext
|
---|
8461 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8462 | /* end confdefs.h. */
|
---|
8463 | $mount_includes
|
---|
8464 |
|
---|
8465 | #include <$ac_header>
|
---|
8466 | _ACEOF
|
---|
8467 | rm -f conftest.$ac_objext
|
---|
8468 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
8469 | (eval $ac_compile) 2>conftest.er1
|
---|
8470 | ac_status=$?
|
---|
8471 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8472 | rm -f conftest.er1
|
---|
8473 | cat conftest.err >&5
|
---|
8474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8475 | (exit $ac_status); } &&
|
---|
8476 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8477 | || test ! -s conftest.err'
|
---|
8478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8479 | (eval $ac_try) 2>&5
|
---|
8480 | ac_status=$?
|
---|
8481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8482 | (exit $ac_status); }; } &&
|
---|
8483 | { ac_try='test -s conftest.$ac_objext'
|
---|
8484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8485 | (eval $ac_try) 2>&5
|
---|
8486 | ac_status=$?
|
---|
8487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8488 | (exit $ac_status); }; }; then
|
---|
8489 | eval "$as_ac_Header=yes"
|
---|
8490 | else
|
---|
8491 | echo "$as_me: failed program was:" >&5
|
---|
8492 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8493 |
|
---|
8494 | eval "$as_ac_Header=no"
|
---|
8495 | fi
|
---|
8496 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
8497 | fi
|
---|
8498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
|
---|
8499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
|
---|
8500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then
|
---|
8501 | cat >>confdefs.h <<_ACEOF
|
---|
8502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
---|
8503 | _ACEOF
|
---|
8504 |
|
---|
8505 | fi
|
---|
8506 |
|
---|
8507 | done
|
---|
8508 |
|
---|
8509 |
|
---|
8510 | #################################################
|
---|
8511 | # these tests are taken from the GNU fileutils package
|
---|
8512 | { echo "$as_me:$LINENO: checking how to get filesystem space usage..." >&5
|
---|
8513 | echo "$as_me: checking how to get filesystem space usage..." >&6;}
|
---|
8514 | space=no
|
---|
8515 |
|
---|
8516 | # Test for statvfs64.
|
---|
8517 | if test $space = no; then
|
---|
8518 | # SVR4
|
---|
8519 | echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
|
---|
8520 | echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
|
---|
8521 | if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
|
---|
8522 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8523 | else
|
---|
8524 | if test "$cross_compiling" = yes; then
|
---|
8525 | fu_cv_sys_stat_statvfs64=cross
|
---|
8526 | else
|
---|
8527 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8528 | /* confdefs.h. */
|
---|
8529 | _ACEOF
|
---|
8530 | cat confdefs.h >>conftest.$ac_ext
|
---|
8531 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8532 | /* end confdefs.h. */
|
---|
8533 |
|
---|
8534 | #if defined(HAVE_UNISTD_H)
|
---|
8535 | #include <unistd.h>
|
---|
8536 | #endif
|
---|
8537 | #include <sys/types.h>
|
---|
8538 | #include <sys/statvfs.h>
|
---|
8539 | main ()
|
---|
8540 | {
|
---|
8541 | struct statvfs64 fsd;
|
---|
8542 | exit (statvfs64 (".", &fsd));
|
---|
8543 | }
|
---|
8544 | _ACEOF
|
---|
8545 | rm -f conftest$ac_exeext
|
---|
8546 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8547 | (eval $ac_link) 2>&5
|
---|
8548 | ac_status=$?
|
---|
8549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8550 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8552 | (eval $ac_try) 2>&5
|
---|
8553 | ac_status=$?
|
---|
8554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8555 | (exit $ac_status); }; }; then
|
---|
8556 | fu_cv_sys_stat_statvfs64=yes
|
---|
8557 | else
|
---|
8558 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8559 | echo "$as_me: failed program was:" >&5
|
---|
8560 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8561 |
|
---|
8562 | ( exit $ac_status )
|
---|
8563 | fu_cv_sys_stat_statvfs64=no
|
---|
8564 | fi
|
---|
8565 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8566 | fi
|
---|
8567 | fi
|
---|
8568 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
|
---|
8569 | echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
|
---|
8570 | if test $fu_cv_sys_stat_statvfs64 = yes; then
|
---|
8571 | space=yes
|
---|
8572 |
|
---|
8573 | cat >>confdefs.h <<\_ACEOF
|
---|
8574 | #define STAT_STATVFS64 1
|
---|
8575 | _ACEOF
|
---|
8576 |
|
---|
8577 | fi
|
---|
8578 | fi
|
---|
8579 |
|
---|
8580 | # Perform only the link test since it seems there are no variants of the
|
---|
8581 | # statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
|
---|
8582 | # because that got a false positive on SCO OSR5. Adding the declaration
|
---|
8583 | # of a `struct statvfs' causes this test to fail (as it should) on such
|
---|
8584 | # systems. That system is reported to work fine with STAT_STATFS4 which
|
---|
8585 | # is what it gets when this test fails.
|
---|
8586 | if test $space = no; then
|
---|
8587 | # SVR4
|
---|
8588 | echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
|
---|
8589 | echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
|
---|
8590 | if test "${fu_cv_sys_stat_statvfs+set}" = set; then
|
---|
8591 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8592 | else
|
---|
8593 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8594 | /* confdefs.h. */
|
---|
8595 | _ACEOF
|
---|
8596 | cat confdefs.h >>conftest.$ac_ext
|
---|
8597 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8598 | /* end confdefs.h. */
|
---|
8599 | #include <sys/types.h>
|
---|
8600 | #include <sys/statvfs.h>
|
---|
8601 | int
|
---|
8602 | main ()
|
---|
8603 | {
|
---|
8604 | struct statvfs fsd; statvfs (0, &fsd);
|
---|
8605 | ;
|
---|
8606 | return 0;
|
---|
8607 | }
|
---|
8608 | _ACEOF
|
---|
8609 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
8610 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8611 | (eval $ac_link) 2>conftest.er1
|
---|
8612 | ac_status=$?
|
---|
8613 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
8614 | rm -f conftest.er1
|
---|
8615 | cat conftest.err >&5
|
---|
8616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8617 | (exit $ac_status); } &&
|
---|
8618 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
8619 | || test ! -s conftest.err'
|
---|
8620 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8621 | (eval $ac_try) 2>&5
|
---|
8622 | ac_status=$?
|
---|
8623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8624 | (exit $ac_status); }; } &&
|
---|
8625 | { ac_try='test -s conftest$ac_exeext'
|
---|
8626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8627 | (eval $ac_try) 2>&5
|
---|
8628 | ac_status=$?
|
---|
8629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8630 | (exit $ac_status); }; }; then
|
---|
8631 | fu_cv_sys_stat_statvfs=yes
|
---|
8632 | else
|
---|
8633 | echo "$as_me: failed program was:" >&5
|
---|
8634 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8635 |
|
---|
8636 | fu_cv_sys_stat_statvfs=no
|
---|
8637 | fi
|
---|
8638 | rm -f conftest.err conftest.$ac_objext \
|
---|
8639 | conftest$ac_exeext conftest.$ac_ext
|
---|
8640 | fi
|
---|
8641 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
|
---|
8642 | echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
|
---|
8643 | if test $fu_cv_sys_stat_statvfs = yes; then
|
---|
8644 | space=yes
|
---|
8645 |
|
---|
8646 | cat >>confdefs.h <<\_ACEOF
|
---|
8647 | #define STAT_STATVFS 1
|
---|
8648 | _ACEOF
|
---|
8649 |
|
---|
8650 | fi
|
---|
8651 | fi
|
---|
8652 |
|
---|
8653 | if test $space = no; then
|
---|
8654 | # DEC Alpha running OSF/1
|
---|
8655 | echo "$as_me:$LINENO: checking for 3-argument statfs function (DEC OSF/1)" >&5
|
---|
8656 | echo $ECHO_N "checking for 3-argument statfs function (DEC OSF/1)... $ECHO_C" >&6
|
---|
8657 | if test "${fu_cv_sys_stat_statfs3_osf1+set}" = set; then
|
---|
8658 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8659 | else
|
---|
8660 | if test "$cross_compiling" = yes; then
|
---|
8661 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
8662 | else
|
---|
8663 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8664 | /* confdefs.h. */
|
---|
8665 | _ACEOF
|
---|
8666 | cat confdefs.h >>conftest.$ac_ext
|
---|
8667 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8668 | /* end confdefs.h. */
|
---|
8669 |
|
---|
8670 | #include <sys/param.h>
|
---|
8671 | #include <sys/types.h>
|
---|
8672 | #include <sys/mount.h>
|
---|
8673 | main ()
|
---|
8674 | {
|
---|
8675 | struct statfs fsd;
|
---|
8676 | fsd.f_fsize = 0;
|
---|
8677 | exit (statfs (".", &fsd, sizeof (struct statfs)));
|
---|
8678 | }
|
---|
8679 | _ACEOF
|
---|
8680 | rm -f conftest$ac_exeext
|
---|
8681 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8682 | (eval $ac_link) 2>&5
|
---|
8683 | ac_status=$?
|
---|
8684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8685 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8687 | (eval $ac_try) 2>&5
|
---|
8688 | ac_status=$?
|
---|
8689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8690 | (exit $ac_status); }; }; then
|
---|
8691 | fu_cv_sys_stat_statfs3_osf1=yes
|
---|
8692 | else
|
---|
8693 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8694 | echo "$as_me: failed program was:" >&5
|
---|
8695 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8696 |
|
---|
8697 | ( exit $ac_status )
|
---|
8698 | fu_cv_sys_stat_statfs3_osf1=no
|
---|
8699 | fi
|
---|
8700 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8701 | fi
|
---|
8702 | fi
|
---|
8703 |
|
---|
8704 |
|
---|
8705 |
|
---|
8706 | #C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
|
---|
8707 | if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
|
---|
8708 | space=yes
|
---|
8709 |
|
---|
8710 | cat >>confdefs.h <<\_ACEOF
|
---|
8711 | #define STAT_STATFS3_OSF1 1
|
---|
8712 | _ACEOF
|
---|
8713 |
|
---|
8714 | fi
|
---|
8715 | fi
|
---|
8716 |
|
---|
8717 | if test $space = no; then
|
---|
8718 | # AIX
|
---|
8719 | echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
|
---|
8720 | echo $ECHO_N "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... $ECHO_C" >&6
|
---|
8721 | if test "${fu_cv_sys_stat_statfs2_bsize+set}" = set; then
|
---|
8722 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8723 | else
|
---|
8724 | if test "$cross_compiling" = yes; then
|
---|
8725 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
8726 | else
|
---|
8727 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8728 | /* confdefs.h. */
|
---|
8729 | _ACEOF
|
---|
8730 | cat confdefs.h >>conftest.$ac_ext
|
---|
8731 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8732 | /* end confdefs.h. */
|
---|
8733 |
|
---|
8734 | #ifdef HAVE_SYS_PARAM_H
|
---|
8735 | #include <sys/param.h>
|
---|
8736 | #endif
|
---|
8737 | #ifdef HAVE_SYS_MOUNT_H
|
---|
8738 | #include <sys/mount.h>
|
---|
8739 | #endif
|
---|
8740 | #ifdef HAVE_SYS_VFS_H
|
---|
8741 | #include <sys/vfs.h>
|
---|
8742 | #endif
|
---|
8743 | main ()
|
---|
8744 | {
|
---|
8745 | struct statfs fsd;
|
---|
8746 | fsd.f_bsize = 0;
|
---|
8747 | exit (statfs (".", &fsd));
|
---|
8748 | }
|
---|
8749 | _ACEOF
|
---|
8750 | rm -f conftest$ac_exeext
|
---|
8751 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8752 | (eval $ac_link) 2>&5
|
---|
8753 | ac_status=$?
|
---|
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8755 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8757 | (eval $ac_try) 2>&5
|
---|
8758 | ac_status=$?
|
---|
8759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8760 | (exit $ac_status); }; }; then
|
---|
8761 | fu_cv_sys_stat_statfs2_bsize=yes
|
---|
8762 | else
|
---|
8763 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8764 | echo "$as_me: failed program was:" >&5
|
---|
8765 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8766 |
|
---|
8767 | ( exit $ac_status )
|
---|
8768 | fu_cv_sys_stat_statfs2_bsize=no
|
---|
8769 | fi
|
---|
8770 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8771 | fi
|
---|
8772 | fi
|
---|
8773 |
|
---|
8774 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
|
---|
8775 | echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
|
---|
8776 | if test $fu_cv_sys_stat_statfs2_bsize = yes; then
|
---|
8777 | space=yes
|
---|
8778 |
|
---|
8779 | cat >>confdefs.h <<\_ACEOF
|
---|
8780 | #define STAT_STATFS2_BSIZE 1
|
---|
8781 | _ACEOF
|
---|
8782 |
|
---|
8783 | fi
|
---|
8784 | fi
|
---|
8785 |
|
---|
8786 | if test $space = no; then
|
---|
8787 | # SVR3
|
---|
8788 | echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
|
---|
8789 | echo $ECHO_N "checking for four-argument statfs (AIX-3.2.5, SVR3)... $ECHO_C" >&6
|
---|
8790 | if test "${fu_cv_sys_stat_statfs4+set}" = set; then
|
---|
8791 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8792 | else
|
---|
8793 | if test "$cross_compiling" = yes; then
|
---|
8794 | fu_cv_sys_stat_statfs4=no
|
---|
8795 | else
|
---|
8796 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8797 | /* confdefs.h. */
|
---|
8798 | _ACEOF
|
---|
8799 | cat confdefs.h >>conftest.$ac_ext
|
---|
8800 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8801 | /* end confdefs.h. */
|
---|
8802 | #include <sys/types.h>
|
---|
8803 | #include <sys/statfs.h>
|
---|
8804 | main ()
|
---|
8805 | {
|
---|
8806 | struct statfs fsd;
|
---|
8807 | exit (statfs (".", &fsd, sizeof fsd, 0));
|
---|
8808 | }
|
---|
8809 | _ACEOF
|
---|
8810 | rm -f conftest$ac_exeext
|
---|
8811 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8812 | (eval $ac_link) 2>&5
|
---|
8813 | ac_status=$?
|
---|
8814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8815 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8817 | (eval $ac_try) 2>&5
|
---|
8818 | ac_status=$?
|
---|
8819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8820 | (exit $ac_status); }; }; then
|
---|
8821 | fu_cv_sys_stat_statfs4=yes
|
---|
8822 | else
|
---|
8823 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8824 | echo "$as_me: failed program was:" >&5
|
---|
8825 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8826 |
|
---|
8827 | ( exit $ac_status )
|
---|
8828 | fu_cv_sys_stat_statfs4=no
|
---|
8829 | fi
|
---|
8830 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8831 | fi
|
---|
8832 | fi
|
---|
8833 |
|
---|
8834 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
|
---|
8835 | echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
|
---|
8836 | if test $fu_cv_sys_stat_statfs4 = yes; then
|
---|
8837 | space=yes
|
---|
8838 |
|
---|
8839 | cat >>confdefs.h <<\_ACEOF
|
---|
8840 | #define STAT_STATFS4 1
|
---|
8841 | _ACEOF
|
---|
8842 |
|
---|
8843 | fi
|
---|
8844 | fi
|
---|
8845 |
|
---|
8846 | if test $space = no; then
|
---|
8847 | # 4.4BSD and NetBSD
|
---|
8848 | echo "$as_me:$LINENO: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
|
---|
8849 | echo $ECHO_N "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... $ECHO_C" >&6
|
---|
8850 | if test "${fu_cv_sys_stat_statfs2_fsize+set}" = set; then
|
---|
8851 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8852 | else
|
---|
8853 | if test "$cross_compiling" = yes; then
|
---|
8854 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
8855 | else
|
---|
8856 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8857 | /* confdefs.h. */
|
---|
8858 | _ACEOF
|
---|
8859 | cat confdefs.h >>conftest.$ac_ext
|
---|
8860 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8861 | /* end confdefs.h. */
|
---|
8862 | #include <sys/types.h>
|
---|
8863 | #ifdef HAVE_SYS_PARAM_H
|
---|
8864 | #include <sys/param.h>
|
---|
8865 | #endif
|
---|
8866 | #ifdef HAVE_SYS_MOUNT_H
|
---|
8867 | #include <sys/mount.h>
|
---|
8868 | #endif
|
---|
8869 | main ()
|
---|
8870 | {
|
---|
8871 | struct statfs fsd;
|
---|
8872 | fsd.f_fsize = 0;
|
---|
8873 | exit (statfs (".", &fsd));
|
---|
8874 | }
|
---|
8875 | _ACEOF
|
---|
8876 | rm -f conftest$ac_exeext
|
---|
8877 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8878 | (eval $ac_link) 2>&5
|
---|
8879 | ac_status=$?
|
---|
8880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8881 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8883 | (eval $ac_try) 2>&5
|
---|
8884 | ac_status=$?
|
---|
8885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8886 | (exit $ac_status); }; }; then
|
---|
8887 | fu_cv_sys_stat_statfs2_fsize=yes
|
---|
8888 | else
|
---|
8889 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8890 | echo "$as_me: failed program was:" >&5
|
---|
8891 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8892 |
|
---|
8893 | ( exit $ac_status )
|
---|
8894 | fu_cv_sys_stat_statfs2_fsize=no
|
---|
8895 | fi
|
---|
8896 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8897 | fi
|
---|
8898 | fi
|
---|
8899 |
|
---|
8900 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
|
---|
8901 | echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
|
---|
8902 | if test $fu_cv_sys_stat_statfs2_fsize = yes; then
|
---|
8903 | space=yes
|
---|
8904 |
|
---|
8905 | cat >>confdefs.h <<\_ACEOF
|
---|
8906 | #define STAT_STATFS2_FSIZE 1
|
---|
8907 | _ACEOF
|
---|
8908 |
|
---|
8909 | fi
|
---|
8910 | fi
|
---|
8911 |
|
---|
8912 | if test $space = no; then
|
---|
8913 | # Ultrix
|
---|
8914 | echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
|
---|
8915 | echo $ECHO_N "checking for two-argument statfs with struct fs_data (Ultrix)... $ECHO_C" >&6
|
---|
8916 | if test "${fu_cv_sys_stat_fs_data+set}" = set; then
|
---|
8917 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
8918 | else
|
---|
8919 | if test "$cross_compiling" = yes; then
|
---|
8920 | fu_cv_sys_stat_fs_data=no
|
---|
8921 | else
|
---|
8922 | cat >conftest.$ac_ext <<_ACEOF
|
---|
8923 | /* confdefs.h. */
|
---|
8924 | _ACEOF
|
---|
8925 | cat confdefs.h >>conftest.$ac_ext
|
---|
8926 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
8927 | /* end confdefs.h. */
|
---|
8928 | #include <sys/types.h>
|
---|
8929 | #ifdef HAVE_SYS_PARAM_H
|
---|
8930 | #include <sys/param.h>
|
---|
8931 | #endif
|
---|
8932 | #ifdef HAVE_SYS_MOUNT_H
|
---|
8933 | #include <sys/mount.h>
|
---|
8934 | #endif
|
---|
8935 | #ifdef HAVE_SYS_FS_TYPES_H
|
---|
8936 | #include <sys/fs_types.h>
|
---|
8937 | #endif
|
---|
8938 | main ()
|
---|
8939 | {
|
---|
8940 | struct fs_data fsd;
|
---|
8941 | /* Ultrix's statfs returns 1 for success,
|
---|
8942 | 0 for not mounted, -1 for failure. */
|
---|
8943 | exit (statfs (".", &fsd) != 1);
|
---|
8944 | }
|
---|
8945 | _ACEOF
|
---|
8946 | rm -f conftest$ac_exeext
|
---|
8947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
8948 | (eval $ac_link) 2>&5
|
---|
8949 | ac_status=$?
|
---|
8950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8951 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
|
---|
8952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
8953 | (eval $ac_try) 2>&5
|
---|
8954 | ac_status=$?
|
---|
8955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
8956 | (exit $ac_status); }; }; then
|
---|
8957 | fu_cv_sys_stat_fs_data=yes
|
---|
8958 | else
|
---|
8959 | echo "$as_me: program exited with status $ac_status" >&5
|
---|
8960 | echo "$as_me: failed program was:" >&5
|
---|
8961 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
8962 |
|
---|
8963 | ( exit $ac_status )
|
---|
8964 | fu_cv_sys_stat_fs_data=no
|
---|
8965 | fi
|
---|
8966 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
|
---|
8967 | fi
|
---|
8968 | fi
|
---|
8969 |
|
---|
8970 | echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
|
---|
8971 | echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
|
---|
8972 | if test $fu_cv_sys_stat_fs_data = yes; then
|
---|
8973 | space=yes
|
---|
8974 |
|
---|
8975 | cat >>confdefs.h <<\_ACEOF
|
---|
8976 | #define STAT_STATFS2_FS_DATA 1
|
---|
8977 | _ACEOF
|
---|
8978 |
|
---|
8979 | fi
|
---|
8980 | fi
|
---|
8981 |
|
---|
8982 | statxfs_includes="\
|
---|
8983 | $ac_includes_default
|
---|
8984 | #if HAVE_SYS_STATVFS_H
|
---|
8985 | # include <sys/statvfs.h>
|
---|
8986 | #endif
|
---|
8987 | #if HAVE_SYS_VFS_H
|
---|
8988 | # include <sys/vfs.h>
|
---|
8989 | #endif
|
---|
8990 | #if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
|
---|
8991 | # if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
|
---|
8992 | /* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
|
---|
8993 | # include <sys/param.h>
|
---|
8994 | # include <sys/mount.h>
|
---|
8995 | # elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
|
---|
8996 | /* Ultrix 4.4 needs these for the declaration of struct statfs. */
|
---|
8997 | # include <netinet/in.h>
|
---|
8998 | # include <nfs/nfs_clnt.h>
|
---|
8999 | # include <nfs/vfs.h>
|
---|
9000 | # endif
|
---|
9001 | #endif
|
---|
9002 | "
|
---|
9003 |
|
---|
9004 | echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
|
---|
9005 | echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
|
---|
9006 | if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
|
---|
9007 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9008 | else
|
---|
9009 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9010 | /* confdefs.h. */
|
---|
9011 | _ACEOF
|
---|
9012 | cat confdefs.h >>conftest.$ac_ext
|
---|
9013 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9014 | /* end confdefs.h. */
|
---|
9015 | $statxfs_includes
|
---|
9016 |
|
---|
9017 | int
|
---|
9018 | main ()
|
---|
9019 | {
|
---|
9020 | static struct statfs ac_aggr;
|
---|
9021 | if (ac_aggr.f_namemax)
|
---|
9022 | return 0;
|
---|
9023 | ;
|
---|
9024 | return 0;
|
---|
9025 | }
|
---|
9026 | _ACEOF
|
---|
9027 | rm -f conftest.$ac_objext
|
---|
9028 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9029 | (eval $ac_compile) 2>conftest.er1
|
---|
9030 | ac_status=$?
|
---|
9031 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9032 | rm -f conftest.er1
|
---|
9033 | cat conftest.err >&5
|
---|
9034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9035 | (exit $ac_status); } &&
|
---|
9036 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9037 | || test ! -s conftest.err'
|
---|
9038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9039 | (eval $ac_try) 2>&5
|
---|
9040 | ac_status=$?
|
---|
9041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9042 | (exit $ac_status); }; } &&
|
---|
9043 | { ac_try='test -s conftest.$ac_objext'
|
---|
9044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9045 | (eval $ac_try) 2>&5
|
---|
9046 | ac_status=$?
|
---|
9047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9048 | (exit $ac_status); }; }; then
|
---|
9049 | ac_cv_member_struct_statfs_f_namemax=yes
|
---|
9050 | else
|
---|
9051 | echo "$as_me: failed program was:" >&5
|
---|
9052 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9053 |
|
---|
9054 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9055 | /* confdefs.h. */
|
---|
9056 | _ACEOF
|
---|
9057 | cat confdefs.h >>conftest.$ac_ext
|
---|
9058 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9059 | /* end confdefs.h. */
|
---|
9060 | $statxfs_includes
|
---|
9061 |
|
---|
9062 | int
|
---|
9063 | main ()
|
---|
9064 | {
|
---|
9065 | static struct statfs ac_aggr;
|
---|
9066 | if (sizeof ac_aggr.f_namemax)
|
---|
9067 | return 0;
|
---|
9068 | ;
|
---|
9069 | return 0;
|
---|
9070 | }
|
---|
9071 | _ACEOF
|
---|
9072 | rm -f conftest.$ac_objext
|
---|
9073 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9074 | (eval $ac_compile) 2>conftest.er1
|
---|
9075 | ac_status=$?
|
---|
9076 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9077 | rm -f conftest.er1
|
---|
9078 | cat conftest.err >&5
|
---|
9079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9080 | (exit $ac_status); } &&
|
---|
9081 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9082 | || test ! -s conftest.err'
|
---|
9083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9084 | (eval $ac_try) 2>&5
|
---|
9085 | ac_status=$?
|
---|
9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9087 | (exit $ac_status); }; } &&
|
---|
9088 | { ac_try='test -s conftest.$ac_objext'
|
---|
9089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9090 | (eval $ac_try) 2>&5
|
---|
9091 | ac_status=$?
|
---|
9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9093 | (exit $ac_status); }; }; then
|
---|
9094 | ac_cv_member_struct_statfs_f_namemax=yes
|
---|
9095 | else
|
---|
9096 | echo "$as_me: failed program was:" >&5
|
---|
9097 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9098 |
|
---|
9099 | ac_cv_member_struct_statfs_f_namemax=no
|
---|
9100 | fi
|
---|
9101 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9102 | fi
|
---|
9103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9104 | fi
|
---|
9105 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
|
---|
9106 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
|
---|
9107 | if test $ac_cv_member_struct_statfs_f_namemax = yes; then
|
---|
9108 |
|
---|
9109 | cat >>confdefs.h <<_ACEOF
|
---|
9110 | #define HAVE_STRUCT_STATFS_F_NAMEMAX 1
|
---|
9111 | _ACEOF
|
---|
9112 |
|
---|
9113 |
|
---|
9114 | fi
|
---|
9115 |
|
---|
9116 | echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
|
---|
9117 | echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
|
---|
9118 | if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
|
---|
9119 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9120 | else
|
---|
9121 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9122 | /* confdefs.h. */
|
---|
9123 | _ACEOF
|
---|
9124 | cat confdefs.h >>conftest.$ac_ext
|
---|
9125 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9126 | /* end confdefs.h. */
|
---|
9127 | $statxfs_includes
|
---|
9128 |
|
---|
9129 | int
|
---|
9130 | main ()
|
---|
9131 | {
|
---|
9132 | static struct statvfs ac_aggr;
|
---|
9133 | if (ac_aggr.f_namemax)
|
---|
9134 | return 0;
|
---|
9135 | ;
|
---|
9136 | return 0;
|
---|
9137 | }
|
---|
9138 | _ACEOF
|
---|
9139 | rm -f conftest.$ac_objext
|
---|
9140 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9141 | (eval $ac_compile) 2>conftest.er1
|
---|
9142 | ac_status=$?
|
---|
9143 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9144 | rm -f conftest.er1
|
---|
9145 | cat conftest.err >&5
|
---|
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9147 | (exit $ac_status); } &&
|
---|
9148 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9149 | || test ! -s conftest.err'
|
---|
9150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9151 | (eval $ac_try) 2>&5
|
---|
9152 | ac_status=$?
|
---|
9153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9154 | (exit $ac_status); }; } &&
|
---|
9155 | { ac_try='test -s conftest.$ac_objext'
|
---|
9156 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9157 | (eval $ac_try) 2>&5
|
---|
9158 | ac_status=$?
|
---|
9159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9160 | (exit $ac_status); }; }; then
|
---|
9161 | ac_cv_member_struct_statvfs_f_namemax=yes
|
---|
9162 | else
|
---|
9163 | echo "$as_me: failed program was:" >&5
|
---|
9164 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9165 |
|
---|
9166 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9167 | /* confdefs.h. */
|
---|
9168 | _ACEOF
|
---|
9169 | cat confdefs.h >>conftest.$ac_ext
|
---|
9170 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9171 | /* end confdefs.h. */
|
---|
9172 | $statxfs_includes
|
---|
9173 |
|
---|
9174 | int
|
---|
9175 | main ()
|
---|
9176 | {
|
---|
9177 | static struct statvfs ac_aggr;
|
---|
9178 | if (sizeof ac_aggr.f_namemax)
|
---|
9179 | return 0;
|
---|
9180 | ;
|
---|
9181 | return 0;
|
---|
9182 | }
|
---|
9183 | _ACEOF
|
---|
9184 | rm -f conftest.$ac_objext
|
---|
9185 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9186 | (eval $ac_compile) 2>conftest.er1
|
---|
9187 | ac_status=$?
|
---|
9188 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9189 | rm -f conftest.er1
|
---|
9190 | cat conftest.err >&5
|
---|
9191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9192 | (exit $ac_status); } &&
|
---|
9193 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9194 | || test ! -s conftest.err'
|
---|
9195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9196 | (eval $ac_try) 2>&5
|
---|
9197 | ac_status=$?
|
---|
9198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9199 | (exit $ac_status); }; } &&
|
---|
9200 | { ac_try='test -s conftest.$ac_objext'
|
---|
9201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9202 | (eval $ac_try) 2>&5
|
---|
9203 | ac_status=$?
|
---|
9204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9205 | (exit $ac_status); }; }; then
|
---|
9206 | ac_cv_member_struct_statvfs_f_namemax=yes
|
---|
9207 | else
|
---|
9208 | echo "$as_me: failed program was:" >&5
|
---|
9209 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9210 |
|
---|
9211 | ac_cv_member_struct_statvfs_f_namemax=no
|
---|
9212 | fi
|
---|
9213 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9214 | fi
|
---|
9215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9216 | fi
|
---|
9217 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
|
---|
9218 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
|
---|
9219 | if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
|
---|
9220 |
|
---|
9221 | cat >>confdefs.h <<_ACEOF
|
---|
9222 | #define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
|
---|
9223 | _ACEOF
|
---|
9224 |
|
---|
9225 |
|
---|
9226 | fi
|
---|
9227 |
|
---|
9228 | echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
|
---|
9229 | echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
|
---|
9230 | if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
|
---|
9231 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9232 | else
|
---|
9233 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9234 | /* confdefs.h. */
|
---|
9235 | _ACEOF
|
---|
9236 | cat confdefs.h >>conftest.$ac_ext
|
---|
9237 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9238 | /* end confdefs.h. */
|
---|
9239 | $statxfs_includes
|
---|
9240 |
|
---|
9241 | int
|
---|
9242 | main ()
|
---|
9243 | {
|
---|
9244 | static struct statfs ac_aggr;
|
---|
9245 | if (ac_aggr.f_namelen)
|
---|
9246 | return 0;
|
---|
9247 | ;
|
---|
9248 | return 0;
|
---|
9249 | }
|
---|
9250 | _ACEOF
|
---|
9251 | rm -f conftest.$ac_objext
|
---|
9252 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9253 | (eval $ac_compile) 2>conftest.er1
|
---|
9254 | ac_status=$?
|
---|
9255 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9256 | rm -f conftest.er1
|
---|
9257 | cat conftest.err >&5
|
---|
9258 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9259 | (exit $ac_status); } &&
|
---|
9260 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9261 | || test ! -s conftest.err'
|
---|
9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9263 | (eval $ac_try) 2>&5
|
---|
9264 | ac_status=$?
|
---|
9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9266 | (exit $ac_status); }; } &&
|
---|
9267 | { ac_try='test -s conftest.$ac_objext'
|
---|
9268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9269 | (eval $ac_try) 2>&5
|
---|
9270 | ac_status=$?
|
---|
9271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9272 | (exit $ac_status); }; }; then
|
---|
9273 | ac_cv_member_struct_statfs_f_namelen=yes
|
---|
9274 | else
|
---|
9275 | echo "$as_me: failed program was:" >&5
|
---|
9276 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9277 |
|
---|
9278 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9279 | /* confdefs.h. */
|
---|
9280 | _ACEOF
|
---|
9281 | cat confdefs.h >>conftest.$ac_ext
|
---|
9282 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9283 | /* end confdefs.h. */
|
---|
9284 | $statxfs_includes
|
---|
9285 |
|
---|
9286 | int
|
---|
9287 | main ()
|
---|
9288 | {
|
---|
9289 | static struct statfs ac_aggr;
|
---|
9290 | if (sizeof ac_aggr.f_namelen)
|
---|
9291 | return 0;
|
---|
9292 | ;
|
---|
9293 | return 0;
|
---|
9294 | }
|
---|
9295 | _ACEOF
|
---|
9296 | rm -f conftest.$ac_objext
|
---|
9297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9298 | (eval $ac_compile) 2>conftest.er1
|
---|
9299 | ac_status=$?
|
---|
9300 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9301 | rm -f conftest.er1
|
---|
9302 | cat conftest.err >&5
|
---|
9303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9304 | (exit $ac_status); } &&
|
---|
9305 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9306 | || test ! -s conftest.err'
|
---|
9307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9308 | (eval $ac_try) 2>&5
|
---|
9309 | ac_status=$?
|
---|
9310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9311 | (exit $ac_status); }; } &&
|
---|
9312 | { ac_try='test -s conftest.$ac_objext'
|
---|
9313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9314 | (eval $ac_try) 2>&5
|
---|
9315 | ac_status=$?
|
---|
9316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9317 | (exit $ac_status); }; }; then
|
---|
9318 | ac_cv_member_struct_statfs_f_namelen=yes
|
---|
9319 | else
|
---|
9320 | echo "$as_me: failed program was:" >&5
|
---|
9321 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9322 |
|
---|
9323 | ac_cv_member_struct_statfs_f_namelen=no
|
---|
9324 | fi
|
---|
9325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9326 | fi
|
---|
9327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9328 | fi
|
---|
9329 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
|
---|
9330 | echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
|
---|
9331 | if test $ac_cv_member_struct_statfs_f_namelen = yes; then
|
---|
9332 |
|
---|
9333 | cat >>confdefs.h <<_ACEOF
|
---|
9334 | #define HAVE_STRUCT_STATFS_F_NAMELEN 1
|
---|
9335 | _ACEOF
|
---|
9336 |
|
---|
9337 |
|
---|
9338 | fi
|
---|
9339 |
|
---|
9340 | echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
|
---|
9341 | echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
|
---|
9342 | if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
|
---|
9343 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9344 | else
|
---|
9345 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9346 | /* confdefs.h. */
|
---|
9347 | _ACEOF
|
---|
9348 | cat confdefs.h >>conftest.$ac_ext
|
---|
9349 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9350 | /* end confdefs.h. */
|
---|
9351 | $statxfs_includes
|
---|
9352 |
|
---|
9353 | int
|
---|
9354 | main ()
|
---|
9355 | {
|
---|
9356 | static struct statvfs ac_aggr;
|
---|
9357 | if (ac_aggr.f_namelen)
|
---|
9358 | return 0;
|
---|
9359 | ;
|
---|
9360 | return 0;
|
---|
9361 | }
|
---|
9362 | _ACEOF
|
---|
9363 | rm -f conftest.$ac_objext
|
---|
9364 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9365 | (eval $ac_compile) 2>conftest.er1
|
---|
9366 | ac_status=$?
|
---|
9367 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9368 | rm -f conftest.er1
|
---|
9369 | cat conftest.err >&5
|
---|
9370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9371 | (exit $ac_status); } &&
|
---|
9372 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9373 | || test ! -s conftest.err'
|
---|
9374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9375 | (eval $ac_try) 2>&5
|
---|
9376 | ac_status=$?
|
---|
9377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9378 | (exit $ac_status); }; } &&
|
---|
9379 | { ac_try='test -s conftest.$ac_objext'
|
---|
9380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9381 | (eval $ac_try) 2>&5
|
---|
9382 | ac_status=$?
|
---|
9383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9384 | (exit $ac_status); }; }; then
|
---|
9385 | ac_cv_member_struct_statvfs_f_namelen=yes
|
---|
9386 | else
|
---|
9387 | echo "$as_me: failed program was:" >&5
|
---|
9388 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9389 |
|
---|
9390 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9391 | /* confdefs.h. */
|
---|
9392 | _ACEOF
|
---|
9393 | cat confdefs.h >>conftest.$ac_ext
|
---|
9394 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9395 | /* end confdefs.h. */
|
---|
9396 | $statxfs_includes
|
---|
9397 |
|
---|
9398 | int
|
---|
9399 | main ()
|
---|
9400 | {
|
---|
9401 | static struct statvfs ac_aggr;
|
---|
9402 | if (sizeof ac_aggr.f_namelen)
|
---|
9403 | return 0;
|
---|
9404 | ;
|
---|
9405 | return 0;
|
---|
9406 | }
|
---|
9407 | _ACEOF
|
---|
9408 | rm -f conftest.$ac_objext
|
---|
9409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9410 | (eval $ac_compile) 2>conftest.er1
|
---|
9411 | ac_status=$?
|
---|
9412 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9413 | rm -f conftest.er1
|
---|
9414 | cat conftest.err >&5
|
---|
9415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9416 | (exit $ac_status); } &&
|
---|
9417 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9418 | || test ! -s conftest.err'
|
---|
9419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9420 | (eval $ac_try) 2>&5
|
---|
9421 | ac_status=$?
|
---|
9422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9423 | (exit $ac_status); }; } &&
|
---|
9424 | { ac_try='test -s conftest.$ac_objext'
|
---|
9425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9426 | (eval $ac_try) 2>&5
|
---|
9427 | ac_status=$?
|
---|
9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9429 | (exit $ac_status); }; }; then
|
---|
9430 | ac_cv_member_struct_statvfs_f_namelen=yes
|
---|
9431 | else
|
---|
9432 | echo "$as_me: failed program was:" >&5
|
---|
9433 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9434 |
|
---|
9435 | ac_cv_member_struct_statvfs_f_namelen=no
|
---|
9436 | fi
|
---|
9437 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9438 | fi
|
---|
9439 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9440 | fi
|
---|
9441 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
|
---|
9442 | echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
|
---|
9443 | if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
|
---|
9444 |
|
---|
9445 | cat >>confdefs.h <<_ACEOF
|
---|
9446 | #define HAVE_STRUCT_STATVFS_F_NAMELEN 1
|
---|
9447 | _ACEOF
|
---|
9448 |
|
---|
9449 |
|
---|
9450 | fi
|
---|
9451 |
|
---|
9452 |
|
---|
9453 | #
|
---|
9454 | # Large file support
|
---|
9455 | #
|
---|
9456 | # Check whether --enable-largefile or --disable-largefile was given.
|
---|
9457 | if test "${enable_largefile+set}" = set; then
|
---|
9458 | enableval="$enable_largefile"
|
---|
9459 |
|
---|
9460 | fi;
|
---|
9461 | if test "$enable_largefile" != no; then
|
---|
9462 |
|
---|
9463 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
|
---|
9464 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
|
---|
9465 | if test "${ac_cv_sys_largefile_CC+set}" = set; then
|
---|
9466 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9467 | else
|
---|
9468 | ac_cv_sys_largefile_CC=no
|
---|
9469 | if test "$GCC" != yes; then
|
---|
9470 | ac_save_CC=$CC
|
---|
9471 | while :; do
|
---|
9472 | # IRIX 6.2 and later do not support large files by default,
|
---|
9473 | # so use the C compiler's -n32 option if that helps.
|
---|
9474 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9475 | /* confdefs.h. */
|
---|
9476 | _ACEOF
|
---|
9477 | cat confdefs.h >>conftest.$ac_ext
|
---|
9478 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9479 | /* end confdefs.h. */
|
---|
9480 | #include <sys/types.h>
|
---|
9481 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
9482 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
9483 | since some C++ compilers masquerading as C compilers
|
---|
9484 | incorrectly reject 9223372036854775807. */
|
---|
9485 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
9486 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
9487 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
9488 | ? 1 : -1];
|
---|
9489 | int
|
---|
9490 | main ()
|
---|
9491 | {
|
---|
9492 |
|
---|
9493 | ;
|
---|
9494 | return 0;
|
---|
9495 | }
|
---|
9496 | _ACEOF
|
---|
9497 | rm -f conftest.$ac_objext
|
---|
9498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9499 | (eval $ac_compile) 2>conftest.er1
|
---|
9500 | ac_status=$?
|
---|
9501 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9502 | rm -f conftest.er1
|
---|
9503 | cat conftest.err >&5
|
---|
9504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9505 | (exit $ac_status); } &&
|
---|
9506 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9507 | || test ! -s conftest.err'
|
---|
9508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9509 | (eval $ac_try) 2>&5
|
---|
9510 | ac_status=$?
|
---|
9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9512 | (exit $ac_status); }; } &&
|
---|
9513 | { ac_try='test -s conftest.$ac_objext'
|
---|
9514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9515 | (eval $ac_try) 2>&5
|
---|
9516 | ac_status=$?
|
---|
9517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9518 | (exit $ac_status); }; }; then
|
---|
9519 | break
|
---|
9520 | else
|
---|
9521 | echo "$as_me: failed program was:" >&5
|
---|
9522 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9523 |
|
---|
9524 | fi
|
---|
9525 | rm -f conftest.err conftest.$ac_objext
|
---|
9526 | CC="$CC -n32"
|
---|
9527 | rm -f conftest.$ac_objext
|
---|
9528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9529 | (eval $ac_compile) 2>conftest.er1
|
---|
9530 | ac_status=$?
|
---|
9531 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9532 | rm -f conftest.er1
|
---|
9533 | cat conftest.err >&5
|
---|
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9535 | (exit $ac_status); } &&
|
---|
9536 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9537 | || test ! -s conftest.err'
|
---|
9538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9539 | (eval $ac_try) 2>&5
|
---|
9540 | ac_status=$?
|
---|
9541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9542 | (exit $ac_status); }; } &&
|
---|
9543 | { ac_try='test -s conftest.$ac_objext'
|
---|
9544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9545 | (eval $ac_try) 2>&5
|
---|
9546 | ac_status=$?
|
---|
9547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9548 | (exit $ac_status); }; }; then
|
---|
9549 | ac_cv_sys_largefile_CC=' -n32'; break
|
---|
9550 | else
|
---|
9551 | echo "$as_me: failed program was:" >&5
|
---|
9552 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9553 |
|
---|
9554 | fi
|
---|
9555 | rm -f conftest.err conftest.$ac_objext
|
---|
9556 | break
|
---|
9557 | done
|
---|
9558 | CC=$ac_save_CC
|
---|
9559 | rm -f conftest.$ac_ext
|
---|
9560 | fi
|
---|
9561 | fi
|
---|
9562 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
|
---|
9563 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
|
---|
9564 | if test "$ac_cv_sys_largefile_CC" != no; then
|
---|
9565 | CC=$CC$ac_cv_sys_largefile_CC
|
---|
9566 | fi
|
---|
9567 |
|
---|
9568 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
|
---|
9569 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
|
---|
9570 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then
|
---|
9571 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9572 | else
|
---|
9573 | while :; do
|
---|
9574 | ac_cv_sys_file_offset_bits=no
|
---|
9575 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9576 | /* confdefs.h. */
|
---|
9577 | _ACEOF
|
---|
9578 | cat confdefs.h >>conftest.$ac_ext
|
---|
9579 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9580 | /* end confdefs.h. */
|
---|
9581 | #include <sys/types.h>
|
---|
9582 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
9583 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
9584 | since some C++ compilers masquerading as C compilers
|
---|
9585 | incorrectly reject 9223372036854775807. */
|
---|
9586 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
9587 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
9588 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
9589 | ? 1 : -1];
|
---|
9590 | int
|
---|
9591 | main ()
|
---|
9592 | {
|
---|
9593 |
|
---|
9594 | ;
|
---|
9595 | return 0;
|
---|
9596 | }
|
---|
9597 | _ACEOF
|
---|
9598 | rm -f conftest.$ac_objext
|
---|
9599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9600 | (eval $ac_compile) 2>conftest.er1
|
---|
9601 | ac_status=$?
|
---|
9602 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9603 | rm -f conftest.er1
|
---|
9604 | cat conftest.err >&5
|
---|
9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9606 | (exit $ac_status); } &&
|
---|
9607 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9608 | || test ! -s conftest.err'
|
---|
9609 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9610 | (eval $ac_try) 2>&5
|
---|
9611 | ac_status=$?
|
---|
9612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9613 | (exit $ac_status); }; } &&
|
---|
9614 | { ac_try='test -s conftest.$ac_objext'
|
---|
9615 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9616 | (eval $ac_try) 2>&5
|
---|
9617 | ac_status=$?
|
---|
9618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9619 | (exit $ac_status); }; }; then
|
---|
9620 | break
|
---|
9621 | else
|
---|
9622 | echo "$as_me: failed program was:" >&5
|
---|
9623 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9624 |
|
---|
9625 | fi
|
---|
9626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9627 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9628 | /* confdefs.h. */
|
---|
9629 | _ACEOF
|
---|
9630 | cat confdefs.h >>conftest.$ac_ext
|
---|
9631 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9632 | /* end confdefs.h. */
|
---|
9633 | #define _FILE_OFFSET_BITS 64
|
---|
9634 | #include <sys/types.h>
|
---|
9635 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
9636 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
9637 | since some C++ compilers masquerading as C compilers
|
---|
9638 | incorrectly reject 9223372036854775807. */
|
---|
9639 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
9640 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
9641 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
9642 | ? 1 : -1];
|
---|
9643 | int
|
---|
9644 | main ()
|
---|
9645 | {
|
---|
9646 |
|
---|
9647 | ;
|
---|
9648 | return 0;
|
---|
9649 | }
|
---|
9650 | _ACEOF
|
---|
9651 | rm -f conftest.$ac_objext
|
---|
9652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9653 | (eval $ac_compile) 2>conftest.er1
|
---|
9654 | ac_status=$?
|
---|
9655 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9656 | rm -f conftest.er1
|
---|
9657 | cat conftest.err >&5
|
---|
9658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9659 | (exit $ac_status); } &&
|
---|
9660 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9661 | || test ! -s conftest.err'
|
---|
9662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9663 | (eval $ac_try) 2>&5
|
---|
9664 | ac_status=$?
|
---|
9665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9666 | (exit $ac_status); }; } &&
|
---|
9667 | { ac_try='test -s conftest.$ac_objext'
|
---|
9668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9669 | (eval $ac_try) 2>&5
|
---|
9670 | ac_status=$?
|
---|
9671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9672 | (exit $ac_status); }; }; then
|
---|
9673 | ac_cv_sys_file_offset_bits=64; break
|
---|
9674 | else
|
---|
9675 | echo "$as_me: failed program was:" >&5
|
---|
9676 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9677 |
|
---|
9678 | fi
|
---|
9679 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9680 | break
|
---|
9681 | done
|
---|
9682 | fi
|
---|
9683 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
|
---|
9684 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
|
---|
9685 | if test "$ac_cv_sys_file_offset_bits" != no; then
|
---|
9686 |
|
---|
9687 | cat >>confdefs.h <<_ACEOF
|
---|
9688 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
|
---|
9689 | _ACEOF
|
---|
9690 |
|
---|
9691 | fi
|
---|
9692 | rm -f conftest*
|
---|
9693 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
|
---|
9694 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
|
---|
9695 | if test "${ac_cv_sys_large_files+set}" = set; then
|
---|
9696 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9697 | else
|
---|
9698 | while :; do
|
---|
9699 | ac_cv_sys_large_files=no
|
---|
9700 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9701 | /* confdefs.h. */
|
---|
9702 | _ACEOF
|
---|
9703 | cat confdefs.h >>conftest.$ac_ext
|
---|
9704 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9705 | /* end confdefs.h. */
|
---|
9706 | #include <sys/types.h>
|
---|
9707 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
9708 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
9709 | since some C++ compilers masquerading as C compilers
|
---|
9710 | incorrectly reject 9223372036854775807. */
|
---|
9711 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
9712 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
9713 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
9714 | ? 1 : -1];
|
---|
9715 | int
|
---|
9716 | main ()
|
---|
9717 | {
|
---|
9718 |
|
---|
9719 | ;
|
---|
9720 | return 0;
|
---|
9721 | }
|
---|
9722 | _ACEOF
|
---|
9723 | rm -f conftest.$ac_objext
|
---|
9724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9725 | (eval $ac_compile) 2>conftest.er1
|
---|
9726 | ac_status=$?
|
---|
9727 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9728 | rm -f conftest.er1
|
---|
9729 | cat conftest.err >&5
|
---|
9730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9731 | (exit $ac_status); } &&
|
---|
9732 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9733 | || test ! -s conftest.err'
|
---|
9734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9735 | (eval $ac_try) 2>&5
|
---|
9736 | ac_status=$?
|
---|
9737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9738 | (exit $ac_status); }; } &&
|
---|
9739 | { ac_try='test -s conftest.$ac_objext'
|
---|
9740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9741 | (eval $ac_try) 2>&5
|
---|
9742 | ac_status=$?
|
---|
9743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9744 | (exit $ac_status); }; }; then
|
---|
9745 | break
|
---|
9746 | else
|
---|
9747 | echo "$as_me: failed program was:" >&5
|
---|
9748 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9749 |
|
---|
9750 | fi
|
---|
9751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9752 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9753 | /* confdefs.h. */
|
---|
9754 | _ACEOF
|
---|
9755 | cat confdefs.h >>conftest.$ac_ext
|
---|
9756 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9757 | /* end confdefs.h. */
|
---|
9758 | #define _LARGE_FILES 1
|
---|
9759 | #include <sys/types.h>
|
---|
9760 | /* Check that off_t can represent 2**63 - 1 correctly.
|
---|
9761 | We can't simply define LARGE_OFF_T to be 9223372036854775807,
|
---|
9762 | since some C++ compilers masquerading as C compilers
|
---|
9763 | incorrectly reject 9223372036854775807. */
|
---|
9764 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
|
---|
9765 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
|
---|
9766 | && LARGE_OFF_T % 2147483647 == 1)
|
---|
9767 | ? 1 : -1];
|
---|
9768 | int
|
---|
9769 | main ()
|
---|
9770 | {
|
---|
9771 |
|
---|
9772 | ;
|
---|
9773 | return 0;
|
---|
9774 | }
|
---|
9775 | _ACEOF
|
---|
9776 | rm -f conftest.$ac_objext
|
---|
9777 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9778 | (eval $ac_compile) 2>conftest.er1
|
---|
9779 | ac_status=$?
|
---|
9780 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9781 | rm -f conftest.er1
|
---|
9782 | cat conftest.err >&5
|
---|
9783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9784 | (exit $ac_status); } &&
|
---|
9785 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9786 | || test ! -s conftest.err'
|
---|
9787 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9788 | (eval $ac_try) 2>&5
|
---|
9789 | ac_status=$?
|
---|
9790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9791 | (exit $ac_status); }; } &&
|
---|
9792 | { ac_try='test -s conftest.$ac_objext'
|
---|
9793 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9794 | (eval $ac_try) 2>&5
|
---|
9795 | ac_status=$?
|
---|
9796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9797 | (exit $ac_status); }; }; then
|
---|
9798 | ac_cv_sys_large_files=1; break
|
---|
9799 | else
|
---|
9800 | echo "$as_me: failed program was:" >&5
|
---|
9801 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9802 |
|
---|
9803 | fi
|
---|
9804 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9805 | break
|
---|
9806 | done
|
---|
9807 | fi
|
---|
9808 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
|
---|
9809 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6
|
---|
9810 | if test "$ac_cv_sys_large_files" != no; then
|
---|
9811 |
|
---|
9812 | cat >>confdefs.h <<_ACEOF
|
---|
9813 | #define _LARGE_FILES $ac_cv_sys_large_files
|
---|
9814 | _ACEOF
|
---|
9815 |
|
---|
9816 | fi
|
---|
9817 | rm -f conftest*
|
---|
9818 | fi
|
---|
9819 |
|
---|
9820 |
|
---|
9821 | #
|
---|
9822 | # mntent
|
---|
9823 | #
|
---|
9824 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
9825 | echo "$as_me:$LINENO: checking for mntent.h" >&5
|
---|
9826 | echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6
|
---|
9827 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
9828 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9829 | fi
|
---|
9830 | echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
|
---|
9831 | echo "${ECHO_T}$ac_cv_header_mntent_h" >&6
|
---|
9832 | else
|
---|
9833 | # Is the header compilable?
|
---|
9834 | echo "$as_me:$LINENO: checking mntent.h usability" >&5
|
---|
9835 | echo $ECHO_N "checking mntent.h usability... $ECHO_C" >&6
|
---|
9836 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9837 | /* confdefs.h. */
|
---|
9838 | _ACEOF
|
---|
9839 | cat confdefs.h >>conftest.$ac_ext
|
---|
9840 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9841 | /* end confdefs.h. */
|
---|
9842 | $ac_includes_default
|
---|
9843 | #include <mntent.h>
|
---|
9844 | _ACEOF
|
---|
9845 | rm -f conftest.$ac_objext
|
---|
9846 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
|
---|
9847 | (eval $ac_compile) 2>conftest.er1
|
---|
9848 | ac_status=$?
|
---|
9849 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9850 | rm -f conftest.er1
|
---|
9851 | cat conftest.err >&5
|
---|
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9853 | (exit $ac_status); } &&
|
---|
9854 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
9855 | || test ! -s conftest.err'
|
---|
9856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9857 | (eval $ac_try) 2>&5
|
---|
9858 | ac_status=$?
|
---|
9859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9860 | (exit $ac_status); }; } &&
|
---|
9861 | { ac_try='test -s conftest.$ac_objext'
|
---|
9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
9863 | (eval $ac_try) 2>&5
|
---|
9864 | ac_status=$?
|
---|
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9866 | (exit $ac_status); }; }; then
|
---|
9867 | ac_header_compiler=yes
|
---|
9868 | else
|
---|
9869 | echo "$as_me: failed program was:" >&5
|
---|
9870 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9871 |
|
---|
9872 | ac_header_compiler=no
|
---|
9873 | fi
|
---|
9874 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
|
---|
9875 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
|
---|
9876 | echo "${ECHO_T}$ac_header_compiler" >&6
|
---|
9877 |
|
---|
9878 | # Is the header present?
|
---|
9879 | echo "$as_me:$LINENO: checking mntent.h presence" >&5
|
---|
9880 | echo $ECHO_N "checking mntent.h presence... $ECHO_C" >&6
|
---|
9881 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9882 | /* confdefs.h. */
|
---|
9883 | _ACEOF
|
---|
9884 | cat confdefs.h >>conftest.$ac_ext
|
---|
9885 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9886 | /* end confdefs.h. */
|
---|
9887 | #include <mntent.h>
|
---|
9888 | _ACEOF
|
---|
9889 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
|
---|
9890 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
|
---|
9891 | ac_status=$?
|
---|
9892 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
9893 | rm -f conftest.er1
|
---|
9894 | cat conftest.err >&5
|
---|
9895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
9896 | (exit $ac_status); } >/dev/null; then
|
---|
9897 | if test -s conftest.err; then
|
---|
9898 | ac_cpp_err=$ac_c_preproc_warn_flag
|
---|
9899 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
|
---|
9900 | else
|
---|
9901 | ac_cpp_err=
|
---|
9902 | fi
|
---|
9903 | else
|
---|
9904 | ac_cpp_err=yes
|
---|
9905 | fi
|
---|
9906 | if test -z "$ac_cpp_err"; then
|
---|
9907 | ac_header_preproc=yes
|
---|
9908 | else
|
---|
9909 | echo "$as_me: failed program was:" >&5
|
---|
9910 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
9911 |
|
---|
9912 | ac_header_preproc=no
|
---|
9913 | fi
|
---|
9914 | rm -f conftest.err conftest.$ac_ext
|
---|
9915 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
|
---|
9916 | echo "${ECHO_T}$ac_header_preproc" >&6
|
---|
9917 |
|
---|
9918 | # So? What about this header?
|
---|
9919 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
|
---|
9920 | yes:no: )
|
---|
9921 | { echo "$as_me:$LINENO: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&5
|
---|
9922 | echo "$as_me: WARNING: mntent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
|
---|
9923 | { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the compiler's result" >&5
|
---|
9924 | echo "$as_me: WARNING: mntent.h: proceeding with the compiler's result" >&2;}
|
---|
9925 | ac_header_preproc=yes
|
---|
9926 | ;;
|
---|
9927 | no:yes:* )
|
---|
9928 | { echo "$as_me:$LINENO: WARNING: mntent.h: present but cannot be compiled" >&5
|
---|
9929 | echo "$as_me: WARNING: mntent.h: present but cannot be compiled" >&2;}
|
---|
9930 | { echo "$as_me:$LINENO: WARNING: mntent.h: check for missing prerequisite headers?" >&5
|
---|
9931 | echo "$as_me: WARNING: mntent.h: check for missing prerequisite headers?" >&2;}
|
---|
9932 | { echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
|
---|
9933 | echo "$as_me: WARNING: mntent.h: see the Autoconf documentation" >&2;}
|
---|
9934 | { echo "$as_me:$LINENO: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&5
|
---|
9935 | echo "$as_me: WARNING: mntent.h: section \"Present But Cannot Be Compiled\"" >&2;}
|
---|
9936 | { echo "$as_me:$LINENO: WARNING: mntent.h: proceeding with the preprocessor's result" >&5
|
---|
9937 | echo "$as_me: WARNING: mntent.h: proceeding with the preprocessor's result" >&2;}
|
---|
9938 | { echo "$as_me:$LINENO: WARNING: mntent.h: in the future, the compiler will take precedence" >&5
|
---|
9939 | echo "$as_me: WARNING: mntent.h: in the future, the compiler will take precedence" >&2;}
|
---|
9940 | (
|
---|
9941 | cat <<\_ASBOX
|
---|
9942 | ## ----------------------------------- ##
|
---|
9943 | ## Report this to the rdesktop lists. ##
|
---|
9944 | ## ----------------------------------- ##
|
---|
9945 | _ASBOX
|
---|
9946 | ) |
|
---|
9947 | sed "s/^/$as_me: WARNING: /" >&2
|
---|
9948 | ;;
|
---|
9949 | esac
|
---|
9950 | echo "$as_me:$LINENO: checking for mntent.h" >&5
|
---|
9951 | echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6
|
---|
9952 | if test "${ac_cv_header_mntent_h+set}" = set; then
|
---|
9953 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9954 | else
|
---|
9955 | ac_cv_header_mntent_h=$ac_header_preproc
|
---|
9956 | fi
|
---|
9957 | echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
|
---|
9958 | echo "${ECHO_T}$ac_cv_header_mntent_h" >&6
|
---|
9959 |
|
---|
9960 | fi
|
---|
9961 | if test $ac_cv_header_mntent_h = yes; then
|
---|
9962 | cat >>confdefs.h <<\_ACEOF
|
---|
9963 | #define HAVE_MNTENT_H 1
|
---|
9964 | _ACEOF
|
---|
9965 |
|
---|
9966 | fi
|
---|
9967 |
|
---|
9968 |
|
---|
9969 |
|
---|
9970 | for ac_func in setmntent
|
---|
9971 | do
|
---|
9972 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
|
---|
9973 | echo "$as_me:$LINENO: checking for $ac_func" >&5
|
---|
9974 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
|
---|
9975 | if eval "test \"\${$as_ac_var+set}\" = set"; then
|
---|
9976 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
9977 | else
|
---|
9978 | cat >conftest.$ac_ext <<_ACEOF
|
---|
9979 | /* confdefs.h. */
|
---|
9980 | _ACEOF
|
---|
9981 | cat confdefs.h >>conftest.$ac_ext
|
---|
9982 | cat >>conftest.$ac_ext <<_ACEOF
|
---|
9983 | /* end confdefs.h. */
|
---|
9984 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
|
---|
9985 | For example, HP-UX 11i <limits.h> declares gettimeofday. */
|
---|
9986 | #define $ac_func innocuous_$ac_func
|
---|
9987 |
|
---|
9988 | /* System header to define __stub macros and hopefully few prototypes,
|
---|
9989 | which can conflict with char $ac_func (); below.
|
---|
9990 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|
---|
9991 | <limits.h> exists even on freestanding compilers. */
|
---|
9992 |
|
---|
9993 | #ifdef __STDC__
|
---|
9994 | # include <limits.h>
|
---|
9995 | #else
|
---|
9996 | # include <assert.h>
|
---|
9997 | #endif
|
---|
9998 |
|
---|
9999 | #undef $ac_func
|
---|
10000 |
|
---|
10001 | /* Override any gcc2 internal prototype to avoid an error. */
|
---|
10002 | #ifdef __cplusplus
|
---|
10003 | extern "C"
|
---|
10004 | {
|
---|
10005 | #endif
|
---|
10006 | /* We use char because int might match the return type of a gcc2
|
---|
10007 | builtin and then its argument prototype would still apply. */
|
---|
10008 | char $ac_func ();
|
---|
10009 | /* The GNU C library defines this for functions which it implements
|
---|
10010 | to always fail with ENOSYS. Some functions are actually named
|
---|
10011 | something starting with __ and the normal name is an alias. */
|
---|
10012 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
|
---|
10013 | choke me
|
---|
10014 | #else
|
---|
10015 | char (*f) () = $ac_func;
|
---|
10016 | #endif
|
---|
10017 | #ifdef __cplusplus
|
---|
10018 | }
|
---|
10019 | #endif
|
---|
10020 |
|
---|
10021 | int
|
---|
10022 | main ()
|
---|
10023 | {
|
---|
10024 | return f != $ac_func;
|
---|
10025 | ;
|
---|
10026 | return 0;
|
---|
10027 | }
|
---|
10028 | _ACEOF
|
---|
10029 | rm -f conftest.$ac_objext conftest$ac_exeext
|
---|
10030 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
|
---|
10031 | (eval $ac_link) 2>conftest.er1
|
---|
10032 | ac_status=$?
|
---|
10033 | grep -v '^ *+' conftest.er1 >conftest.err
|
---|
10034 | rm -f conftest.er1
|
---|
10035 | cat conftest.err >&5
|
---|
10036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10037 | (exit $ac_status); } &&
|
---|
10038 | { ac_try='test -z "$ac_c_werror_flag"
|
---|
10039 | || test ! -s conftest.err'
|
---|
10040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10041 | (eval $ac_try) 2>&5
|
---|
10042 | ac_status=$?
|
---|
10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10044 | (exit $ac_status); }; } &&
|
---|
10045 | { ac_try='test -s conftest$ac_exeext'
|
---|
10046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
|
---|
10047 | (eval $ac_try) 2>&5
|
---|
10048 | ac_status=$?
|
---|
10049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5
|
---|
10050 | (exit $ac_status); }; }; then
|
---|
10051 | eval "$as_ac_var=yes"
|
---|
10052 | else
|
---|
10053 | echo "$as_me: failed program was:" >&5
|
---|
10054 | sed 's/^/| /' conftest.$ac_ext >&5
|
---|
10055 |
|
---|
10056 | eval "$as_ac_var=no"
|
---|
10057 | fi
|
---|
10058 | rm -f conftest.err conftest.$ac_objext \
|
---|
10059 | conftest$ac_exeext conftest.$ac_ext
|
---|
10060 | fi
|
---|
10061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
|
---|
10062 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
|
---|
10063 | if test `eval echo '${'$as_ac_var'}'` = yes; then
|
---|
10064 | cat >>confdefs.h <<_ACEOF
|
---|
10065 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
|
---|
10066 | _ACEOF
|
---|
10067 |
|
---|
10068 | fi
|
---|
10069 | done
|
---|
10070 |
|
---|
10071 |
|
---|
10072 | #
|
---|
10073 | # IPv6
|
---|
10074 | #
|
---|
10075 |
|
---|
10076 | # Check whether --with-ipv6 or --without-ipv6 was given.
|
---|
10077 | if test "${with_ipv6+set}" = set; then
|
---|
10078 | withval="$with_ipv6"
|
---|
10079 |
|
---|
10080 | if test $withval != "no";
|
---|
10081 | then
|
---|
10082 | cat >>confdefs.h <<\_ACEOF
|
---|
10083 | #define IPv6 1
|
---|
10084 | _ACEOF
|
---|
10085 |
|
---|
10086 | fi
|
---|
10087 |
|
---|
10088 | fi;
|
---|
10089 |
|
---|
10090 |
|
---|
10091 | #
|
---|
10092 | # debugging
|
---|
10093 | #
|
---|
10094 |
|
---|
10095 | # Check whether --with-debug or --without-debug was given.
|
---|
10096 | if test "${with_debug+set}" = set; then
|
---|
10097 | withval="$with_debug"
|
---|
10098 |
|
---|
10099 | if test $withval != "no";
|
---|
10100 | then
|
---|
10101 | cat >>confdefs.h <<\_ACEOF
|
---|
10102 | #define WITH_DEBUG 1
|
---|
10103 | _ACEOF
|
---|
10104 |
|
---|
10105 | fi
|
---|
10106 |
|
---|
10107 | fi;
|
---|
10108 |
|
---|
10109 |
|
---|
10110 | # Check whether --with-debug-kbd or --without-debug-kbd was given.
|
---|
10111 | if test "${with_debug_kbd+set}" = set; then
|
---|
10112 | withval="$with_debug_kbd"
|
---|
10113 |
|
---|
10114 | if test $withval != "no";
|
---|
10115 | then
|
---|
10116 | cat >>confdefs.h <<\_ACEOF
|
---|
10117 | #define WITH_DEBUG_KBD 1
|
---|
10118 | _ACEOF
|
---|
10119 |
|
---|
10120 | fi
|
---|
10121 |
|
---|
10122 | fi;
|
---|
10123 |
|
---|
10124 |
|
---|
10125 | # Check whether --with-debug-rdp5 or --without-debug-rdp5 was given.
|
---|
10126 | if test "${with_debug_rdp5+set}" = set; then
|
---|
10127 | withval="$with_debug_rdp5"
|
---|
10128 |
|
---|
10129 | if test $withval != "no";
|
---|
10130 | then
|
---|
10131 | cat >>confdefs.h <<\_ACEOF
|
---|
10132 | #define WITH_DEBUG_RDP5 1
|
---|
10133 | _ACEOF
|
---|
10134 |
|
---|
10135 | fi
|
---|
10136 |
|
---|
10137 | fi;
|
---|
10138 |
|
---|
10139 |
|
---|
10140 | # Check whether --with-debug-clipboard or --without-debug-clipboard was given.
|
---|
10141 | if test "${with_debug_clipboard+set}" = set; then
|
---|
10142 | withval="$with_debug_clipboard"
|
---|
10143 |
|
---|
10144 | if test $withval != "no";
|
---|
10145 | then
|
---|
10146 | cat >>confdefs.h <<\_ACEOF
|
---|
10147 | #define WITH_DEBUG_CLIPBOARD 1
|
---|
10148 | _ACEOF
|
---|
10149 |
|
---|
10150 | fi
|
---|
10151 |
|
---|
10152 | fi;
|
---|
10153 |
|
---|
10154 |
|
---|
10155 | # Check whether --with-debug-channel or --without-debug-channel was given.
|
---|
10156 | if test "${with_debug_channel+set}" = set; then
|
---|
10157 | withval="$with_debug_channel"
|
---|
10158 |
|
---|
10159 | if test $withval != "no";
|
---|
10160 | then
|
---|
10161 | cat >>confdefs.h <<\_ACEOF
|
---|
10162 | #define WITH_DEBUG_CHANNEL 1
|
---|
10163 | _ACEOF
|
---|
10164 |
|
---|
10165 | fi
|
---|
10166 |
|
---|
10167 | fi;
|
---|
10168 |
|
---|
10169 |
|
---|
10170 | #
|
---|
10171 | # target-specific stuff
|
---|
10172 | #
|
---|
10173 | # strip leading colon from rpath
|
---|
10174 | rpath=`echo $rpath |sed 's/^://'`
|
---|
10175 | # Make sure we can run config.sub.
|
---|
10176 | $ac_config_sub sun4 >/dev/null 2>&1 ||
|
---|
10177 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
|
---|
10178 | echo "$as_me: error: cannot run $ac_config_sub" >&2;}
|
---|
10179 | { (exit 1); exit 1; }; }
|
---|
10180 |
|
---|
10181 | echo "$as_me:$LINENO: checking build system type" >&5
|
---|
10182 | echo $ECHO_N "checking build system type... $ECHO_C" >&6
|
---|
10183 | if test "${ac_cv_build+set}" = set; then
|
---|
10184 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10185 | else
|
---|
10186 | ac_cv_build_alias=$build_alias
|
---|
10187 | test -z "$ac_cv_build_alias" &&
|
---|
10188 | ac_cv_build_alias=`$ac_config_guess`
|
---|
10189 | test -z "$ac_cv_build_alias" &&
|
---|
10190 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
|
---|
10191 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
|
---|
10192 | { (exit 1); exit 1; }; }
|
---|
10193 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
|
---|
10194 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
|
---|
10195 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
|
---|
10196 | { (exit 1); exit 1; }; }
|
---|
10197 |
|
---|
10198 | fi
|
---|
10199 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5
|
---|
10200 | echo "${ECHO_T}$ac_cv_build" >&6
|
---|
10201 | build=$ac_cv_build
|
---|
10202 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
10203 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
10204 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
10205 |
|
---|
10206 |
|
---|
10207 | echo "$as_me:$LINENO: checking host system type" >&5
|
---|
10208 | echo $ECHO_N "checking host system type... $ECHO_C" >&6
|
---|
10209 | if test "${ac_cv_host+set}" = set; then
|
---|
10210 | echo $ECHO_N "(cached) $ECHO_C" >&6
|
---|
10211 | else
|
---|
10212 | ac_cv_host_alias=$host_alias
|
---|
10213 | test -z "$ac_cv_host_alias" &&
|
---|
10214 | ac_cv_host_alias=$ac_cv_build_alias
|
---|
10215 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
|
---|
10216 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
|
---|
10217 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
|
---|
10218 | { (exit 1); exit 1; }; }
|
---|
10219 |
|
---|
10220 | fi
|
---|
10221 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5
|
---|
10222 | echo "${ECHO_T}$ac_cv_host" >&6
|
---|
10223 | host=$ac_cv_host
|
---|
10224 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
|
---|
10225 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
|
---|
10226 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
|
---|
10227 |
|
---|
10228 |
|
---|
10229 | case "$host" in
|
---|
10230 | *-*-solaris*)
|
---|
10231 | LDFLAGS="$LDFLAGS -R$rpath"
|
---|
10232 | ;;
|
---|
10233 | *-dec-osf*)
|
---|
10234 | LDFLAGS="$LDFLAGS -Wl,-rpath,$rpath"
|
---|
10235 | ;;
|
---|
10236 | *-*-hpux*)
|
---|
10237 | CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
|
---|
10238 | ;;
|
---|
10239 | *-*-irix6.5*)
|
---|
10240 | LIBS="$LIBS -L$ssldir/lib32 -lcrypto"
|
---|
10241 | CFLAGS="$CFLAGS -D__SGI_IRIX__"
|
---|
10242 | ;;
|
---|
10243 | esac
|
---|
10244 |
|
---|
10245 |
|
---|
10246 | ac_config_files="$ac_config_files Makefile"
|
---|
10247 | cat >confcache <<\_ACEOF
|
---|
10248 | # This file is a shell script that caches the results of configure
|
---|
10249 | # tests run on this system so they can be shared between configure
|
---|
10250 | # scripts and configure runs, see configure's option --config-cache.
|
---|
10251 | # It is not useful on other systems. If it contains results you don't
|
---|
10252 | # want to keep, you may remove or edit it.
|
---|
10253 | #
|
---|
10254 | # config.status only pays attention to the cache file if you give it
|
---|
10255 | # the --recheck option to rerun configure.
|
---|
10256 | #
|
---|
10257 | # `ac_cv_env_foo' variables (set or unset) will be overridden when
|
---|
10258 | # loading this file, other *unset* `ac_cv_foo' will be assigned the
|
---|
10259 | # following values.
|
---|
10260 |
|
---|
10261 | _ACEOF
|
---|
10262 |
|
---|
10263 | # The following way of writing the cache mishandles newlines in values,
|
---|
10264 | # but we know of no workaround that is simple, portable, and efficient.
|
---|
10265 | # So, don't put newlines in cache variables' values.
|
---|
10266 | # Ultrix sh set writes to stderr and can't be redirected directly,
|
---|
10267 | # and sets the high bit in the cache file unless we assign to the vars.
|
---|
10268 | {
|
---|
10269 | (set) 2>&1 |
|
---|
10270 | case `(ac_space=' '; set | grep ac_space) 2>&1` in
|
---|
10271 | *ac_space=\ *)
|
---|
10272 | # `set' does not quote correctly, so add quotes (double-quote
|
---|
10273 | # substitution turns \\\\ into \\, and sed turns \\ into \).
|
---|
10274 | sed -n \
|
---|
10275 | "s/'/'\\\\''/g;
|
---|
10276 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
|
---|
10277 | ;;
|
---|
10278 | *)
|
---|
10279 | # `set' quotes correctly as required by POSIX, so do not add quotes.
|
---|
10280 | sed -n \
|
---|
10281 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
|
---|
10282 | ;;
|
---|
10283 | esac;
|
---|
10284 | } |
|
---|
10285 | sed '
|
---|
10286 | t clear
|
---|
10287 | : clear
|
---|
10288 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
|
---|
10289 | t end
|
---|
10290 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
|
---|
10291 | : end' >>confcache
|
---|
10292 | if diff $cache_file confcache >/dev/null 2>&1; then :; else
|
---|
10293 | if test -w $cache_file; then
|
---|
10294 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
|
---|
10295 | cat confcache >$cache_file
|
---|
10296 | else
|
---|
10297 | echo "not updating unwritable cache $cache_file"
|
---|
10298 | fi
|
---|
10299 | fi
|
---|
10300 | rm -f confcache
|
---|
10301 |
|
---|
10302 | test "x$prefix" = xNONE && prefix=$ac_default_prefix
|
---|
10303 | # Let make expand exec_prefix.
|
---|
10304 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
|
---|
10305 |
|
---|
10306 | # VPATH may cause trouble with some makes, so we remove $(srcdir),
|
---|
10307 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
|
---|
10308 | # trailing colons and then remove the whole line if VPATH becomes empty
|
---|
10309 | # (actually we leave an empty line to preserve line numbers).
|
---|
10310 | if test "x$srcdir" = x.; then
|
---|
10311 | ac_vpsub='/^[ ]*VPATH[ ]*=/{
|
---|
10312 | s/:*\$(srcdir):*/:/;
|
---|
10313 | s/:*\${srcdir}:*/:/;
|
---|
10314 | s/:*@srcdir@:*/:/;
|
---|
10315 | s/^\([^=]*=[ ]*\):*/\1/;
|
---|
10316 | s/:*$//;
|
---|
10317 | s/^[^=]*=[ ]*$//;
|
---|
10318 | }'
|
---|
10319 | fi
|
---|
10320 |
|
---|
10321 | # Transform confdefs.h into DEFS.
|
---|
10322 | # Protect against shell expansion while executing Makefile rules.
|
---|
10323 | # Protect against Makefile macro expansion.
|
---|
10324 | #
|
---|
10325 | # If the first sed substitution is executed (which looks for macros that
|
---|
10326 | # take arguments), then we branch to the quote section. Otherwise,
|
---|
10327 | # look for a macro that doesn't take arguments.
|
---|
10328 | cat >confdef2opt.sed <<\_ACEOF
|
---|
10329 | t clear
|
---|
10330 | : clear
|
---|
10331 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
|
---|
10332 | t quote
|
---|
10333 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
|
---|
10334 | t quote
|
---|
10335 | d
|
---|
10336 | : quote
|
---|
10337 | s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
|
---|
10338 | s,\[,\\&,g
|
---|
10339 | s,\],\\&,g
|
---|
10340 | s,\$,$$,g
|
---|
10341 | p
|
---|
10342 | _ACEOF
|
---|
10343 | # We use echo to avoid assuming a particular line-breaking character.
|
---|
10344 | # The extra dot is to prevent the shell from consuming trailing
|
---|
10345 | # line-breaks from the sub-command output. A line-break within
|
---|
10346 | # single-quotes doesn't work because, if this script is created in a
|
---|
10347 | # platform that uses two characters for line-breaks (e.g., DOS), tr
|
---|
10348 | # would break.
|
---|
10349 | ac_LF_and_DOT=`echo; echo .`
|
---|
10350 | DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
|
---|
10351 | rm -f confdef2opt.sed
|
---|
10352 |
|
---|
10353 |
|
---|
10354 | ac_libobjs=
|
---|
10355 | ac_ltlibobjs=
|
---|
10356 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
|
---|
10357 | # 1. Remove the extension, and $U if already installed.
|
---|
10358 | ac_i=`echo "$ac_i" |
|
---|
10359 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
|
---|
10360 | # 2. Add them.
|
---|
10361 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
|
---|
10362 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
|
---|
10363 | done
|
---|
10364 | LIBOBJS=$ac_libobjs
|
---|
10365 |
|
---|
10366 | LTLIBOBJS=$ac_ltlibobjs
|
---|
10367 |
|
---|
10368 |
|
---|
10369 |
|
---|
10370 | : ${CONFIG_STATUS=./config.status}
|
---|
10371 | ac_clean_files_save=$ac_clean_files
|
---|
10372 | ac_clean_files="$ac_clean_files $CONFIG_STATUS"
|
---|
10373 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
|
---|
10374 | echo "$as_me: creating $CONFIG_STATUS" >&6;}
|
---|
10375 | cat >$CONFIG_STATUS <<_ACEOF
|
---|
10376 | #! $SHELL
|
---|
10377 | # Generated by $as_me.
|
---|
10378 | # Run this file to recreate the current configuration.
|
---|
10379 | # Compiler output produced by configure, useful for debugging
|
---|
10380 | # configure, is in config.log if it exists.
|
---|
10381 |
|
---|
10382 | debug=false
|
---|
10383 | ac_cs_recheck=false
|
---|
10384 | ac_cs_silent=false
|
---|
10385 | SHELL=\${CONFIG_SHELL-$SHELL}
|
---|
10386 | _ACEOF
|
---|
10387 |
|
---|
10388 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10389 | ## --------------------- ##
|
---|
10390 | ## M4sh Initialization. ##
|
---|
10391 | ## --------------------- ##
|
---|
10392 |
|
---|
10393 | # Be Bourne compatible
|
---|
10394 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
|
---|
10395 | emulate sh
|
---|
10396 | NULLCMD=:
|
---|
10397 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
|
---|
10398 | # is contrary to our usage. Disable this feature.
|
---|
10399 | alias -g '${1+"$@"}'='"$@"'
|
---|
10400 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
|
---|
10401 | set -o posix
|
---|
10402 | fi
|
---|
10403 | DUALCASE=1; export DUALCASE # for MKS sh
|
---|
10404 |
|
---|
10405 | # Support unset when possible.
|
---|
10406 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
|
---|
10407 | as_unset=unset
|
---|
10408 | else
|
---|
10409 | as_unset=false
|
---|
10410 | fi
|
---|
10411 |
|
---|
10412 |
|
---|
10413 | # Work around bugs in pre-3.0 UWIN ksh.
|
---|
10414 | $as_unset ENV MAIL MAILPATH
|
---|
10415 | PS1='$ '
|
---|
10416 | PS2='> '
|
---|
10417 | PS4='+ '
|
---|
10418 |
|
---|
10419 | # NLS nuisances.
|
---|
10420 | for as_var in \
|
---|
10421 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
|
---|
10422 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
|
---|
10423 | LC_TELEPHONE LC_TIME
|
---|
10424 | do
|
---|
10425 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
|
---|
10426 | eval $as_var=C; export $as_var
|
---|
10427 | else
|
---|
10428 | $as_unset $as_var
|
---|
10429 | fi
|
---|
10430 | done
|
---|
10431 |
|
---|
10432 | # Required to use basename.
|
---|
10433 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
10434 | as_expr=expr
|
---|
10435 | else
|
---|
10436 | as_expr=false
|
---|
10437 | fi
|
---|
10438 |
|
---|
10439 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
|
---|
10440 | as_basename=basename
|
---|
10441 | else
|
---|
10442 | as_basename=false
|
---|
10443 | fi
|
---|
10444 |
|
---|
10445 |
|
---|
10446 | # Name of the executable.
|
---|
10447 | as_me=`$as_basename "$0" ||
|
---|
10448 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
|
---|
10449 | X"$0" : 'X\(//\)$' \| \
|
---|
10450 | X"$0" : 'X\(/\)$' \| \
|
---|
10451 | . : '\(.\)' 2>/dev/null ||
|
---|
10452 | echo X/"$0" |
|
---|
10453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
|
---|
10454 | /^X\/\(\/\/\)$/{ s//\1/; q; }
|
---|
10455 | /^X\/\(\/\).*/{ s//\1/; q; }
|
---|
10456 | s/.*/./; q'`
|
---|
10457 |
|
---|
10458 |
|
---|
10459 | # PATH needs CR, and LINENO needs CR and PATH.
|
---|
10460 | # Avoid depending upon Character Ranges.
|
---|
10461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz'
|
---|
10462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
|
---|
10463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS
|
---|
10464 | as_cr_digits='0123456789'
|
---|
10465 | as_cr_alnum=$as_cr_Letters$as_cr_digits
|
---|
10466 |
|
---|
10467 | # The user is always right.
|
---|
10468 | if test "${PATH_SEPARATOR+set}" != set; then
|
---|
10469 | echo "#! /bin/sh" >conf$$.sh
|
---|
10470 | echo "exit 0" >>conf$$.sh
|
---|
10471 | chmod +x conf$$.sh
|
---|
10472 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
|
---|
10473 | PATH_SEPARATOR=';'
|
---|
10474 | else
|
---|
10475 | PATH_SEPARATOR=:
|
---|
10476 | fi
|
---|
10477 | rm -f conf$$.sh
|
---|
10478 | fi
|
---|
10479 |
|
---|
10480 |
|
---|
10481 | as_lineno_1=$LINENO
|
---|
10482 | as_lineno_2=$LINENO
|
---|
10483 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
10484 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
10485 | test "x$as_lineno_3" = "x$as_lineno_2" || {
|
---|
10486 | # Find who we are. Look in the path if we contain no path at all
|
---|
10487 | # relative or not.
|
---|
10488 | case $0 in
|
---|
10489 | *[\\/]* ) as_myself=$0 ;;
|
---|
10490 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
10491 | for as_dir in $PATH
|
---|
10492 | do
|
---|
10493 | IFS=$as_save_IFS
|
---|
10494 | test -z "$as_dir" && as_dir=.
|
---|
10495 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
|
---|
10496 | done
|
---|
10497 |
|
---|
10498 | ;;
|
---|
10499 | esac
|
---|
10500 | # We did not find ourselves, most probably we were run as `sh COMMAND'
|
---|
10501 | # in which case we are not to be found in the path.
|
---|
10502 | if test "x$as_myself" = x; then
|
---|
10503 | as_myself=$0
|
---|
10504 | fi
|
---|
10505 | if test ! -f "$as_myself"; then
|
---|
10506 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
|
---|
10507 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
|
---|
10508 | { (exit 1); exit 1; }; }
|
---|
10509 | fi
|
---|
10510 | case $CONFIG_SHELL in
|
---|
10511 | '')
|
---|
10512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
|
---|
10513 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
|
---|
10514 | do
|
---|
10515 | IFS=$as_save_IFS
|
---|
10516 | test -z "$as_dir" && as_dir=.
|
---|
10517 | for as_base in sh bash ksh sh5; do
|
---|
10518 | case $as_dir in
|
---|
10519 | /*)
|
---|
10520 | if ("$as_dir/$as_base" -c '
|
---|
10521 | as_lineno_1=$LINENO
|
---|
10522 | as_lineno_2=$LINENO
|
---|
10523 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
|
---|
10524 | test "x$as_lineno_1" != "x$as_lineno_2" &&
|
---|
10525 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
|
---|
10526 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
|
---|
10527 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
|
---|
10528 | CONFIG_SHELL=$as_dir/$as_base
|
---|
10529 | export CONFIG_SHELL
|
---|
10530 | exec "$CONFIG_SHELL" "$0" ${1+"$@"}
|
---|
10531 | fi;;
|
---|
10532 | esac
|
---|
10533 | done
|
---|
10534 | done
|
---|
10535 | ;;
|
---|
10536 | esac
|
---|
10537 |
|
---|
10538 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
|
---|
10539 | # uniformly replaced by the line number. The first 'sed' inserts a
|
---|
10540 | # line-number line before each line; the second 'sed' does the real
|
---|
10541 | # work. The second script uses 'N' to pair each line-number line
|
---|
10542 | # with the numbered line, and appends trailing '-' during
|
---|
10543 | # substitution so that $LINENO is not a special case at line end.
|
---|
10544 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
|
---|
10545 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
|
---|
10546 | sed '=' <$as_myself |
|
---|
10547 | sed '
|
---|
10548 | N
|
---|
10549 | s,$,-,
|
---|
10550 | : loop
|
---|
10551 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
|
---|
10552 | t loop
|
---|
10553 | s,-$,,
|
---|
10554 | s,^['$as_cr_digits']*\n,,
|
---|
10555 | ' >$as_me.lineno &&
|
---|
10556 | chmod +x $as_me.lineno ||
|
---|
10557 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
|
---|
10558 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
|
---|
10559 | { (exit 1); exit 1; }; }
|
---|
10560 |
|
---|
10561 | # Don't try to exec as it changes $[0], causing all sort of problems
|
---|
10562 | # (the dirname of $[0] is not the place where we might find the
|
---|
10563 | # original and so on. Autoconf is especially sensible to this).
|
---|
10564 | . ./$as_me.lineno
|
---|
10565 | # Exit status is that of the last command.
|
---|
10566 | exit
|
---|
10567 | }
|
---|
10568 |
|
---|
10569 |
|
---|
10570 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
|
---|
10571 | *c*,-n*) ECHO_N= ECHO_C='
|
---|
10572 | ' ECHO_T=' ' ;;
|
---|
10573 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
|
---|
10574 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
|
---|
10575 | esac
|
---|
10576 |
|
---|
10577 | if expr a : '\(a\)' >/dev/null 2>&1; then
|
---|
10578 | as_expr=expr
|
---|
10579 | else
|
---|
10580 | as_expr=false
|
---|
10581 | fi
|
---|
10582 |
|
---|
10583 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
10584 | echo >conf$$.file
|
---|
10585 | if ln -s conf$$.file conf$$ 2>/dev/null; then
|
---|
10586 | # We could just check for DJGPP; but this test a) works b) is more generic
|
---|
10587 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
|
---|
10588 | if test -f conf$$.exe; then
|
---|
10589 | # Don't use ln at all; we don't have any links
|
---|
10590 | as_ln_s='cp -p'
|
---|
10591 | else
|
---|
10592 | as_ln_s='ln -s'
|
---|
10593 | fi
|
---|
10594 | elif ln conf$$.file conf$$ 2>/dev/null; then
|
---|
10595 | as_ln_s=ln
|
---|
10596 | else
|
---|
10597 | as_ln_s='cp -p'
|
---|
10598 | fi
|
---|
10599 | rm -f conf$$ conf$$.exe conf$$.file
|
---|
10600 |
|
---|
10601 | if mkdir -p . 2>/dev/null; then
|
---|
10602 | as_mkdir_p=:
|
---|
10603 | else
|
---|
10604 | test -d ./-p && rmdir ./-p
|
---|
10605 | as_mkdir_p=false
|
---|
10606 | fi
|
---|
10607 |
|
---|
10608 | as_executable_p="test -f"
|
---|
10609 |
|
---|
10610 | # Sed expression to map a string onto a valid CPP name.
|
---|
10611 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
|
---|
10612 |
|
---|
10613 | # Sed expression to map a string onto a valid variable name.
|
---|
10614 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
|
---|
10615 |
|
---|
10616 |
|
---|
10617 | # IFS
|
---|
10618 | # We need space, tab and new line, in precisely that order.
|
---|
10619 | as_nl='
|
---|
10620 | '
|
---|
10621 | IFS=" $as_nl"
|
---|
10622 |
|
---|
10623 | # CDPATH.
|
---|
10624 | $as_unset CDPATH
|
---|
10625 |
|
---|
10626 | exec 6>&1
|
---|
10627 |
|
---|
10628 | # Open the log real soon, to keep \$[0] and so on meaningful, and to
|
---|
10629 | # report actual input values of CONFIG_FILES etc. instead of their
|
---|
10630 | # values after options handling. Logging --version etc. is OK.
|
---|
10631 | exec 5>>config.log
|
---|
10632 | {
|
---|
10633 | echo
|
---|
10634 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
|
---|
10635 | ## Running $as_me. ##
|
---|
10636 | _ASBOX
|
---|
10637 | } >&5
|
---|
10638 | cat >&5 <<_CSEOF
|
---|
10639 |
|
---|
10640 | This file was extended by rdesktop $as_me 1.5.0, which was
|
---|
10641 | generated by GNU Autoconf 2.59. Invocation command line was
|
---|
10642 |
|
---|
10643 | CONFIG_FILES = $CONFIG_FILES
|
---|
10644 | CONFIG_HEADERS = $CONFIG_HEADERS
|
---|
10645 | CONFIG_LINKS = $CONFIG_LINKS
|
---|
10646 | CONFIG_COMMANDS = $CONFIG_COMMANDS
|
---|
10647 | $ $0 $@
|
---|
10648 |
|
---|
10649 | _CSEOF
|
---|
10650 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
|
---|
10651 | echo >&5
|
---|
10652 | _ACEOF
|
---|
10653 |
|
---|
10654 | # Files that config.status was made for.
|
---|
10655 | if test -n "$ac_config_files"; then
|
---|
10656 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
|
---|
10657 | fi
|
---|
10658 |
|
---|
10659 | if test -n "$ac_config_headers"; then
|
---|
10660 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
|
---|
10661 | fi
|
---|
10662 |
|
---|
10663 | if test -n "$ac_config_links"; then
|
---|
10664 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
|
---|
10665 | fi
|
---|
10666 |
|
---|
10667 | if test -n "$ac_config_commands"; then
|
---|
10668 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
|
---|
10669 | fi
|
---|
10670 |
|
---|
10671 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10672 |
|
---|
10673 | ac_cs_usage="\
|
---|
10674 | \`$as_me' instantiates files from templates according to the
|
---|
10675 | current configuration.
|
---|
10676 |
|
---|
10677 | Usage: $0 [OPTIONS] [FILE]...
|
---|
10678 |
|
---|
10679 | -h, --help print this help, then exit
|
---|
10680 | -V, --version print version number, then exit
|
---|
10681 | -q, --quiet do not print progress messages
|
---|
10682 | -d, --debug don't remove temporary files
|
---|
10683 | --recheck update $as_me by reconfiguring in the same conditions
|
---|
10684 | --file=FILE[:TEMPLATE]
|
---|
10685 | instantiate the configuration file FILE
|
---|
10686 |
|
---|
10687 | Configuration files:
|
---|
10688 | $config_files
|
---|
10689 |
|
---|
10690 | Report bugs to <[email protected]>."
|
---|
10691 | _ACEOF
|
---|
10692 |
|
---|
10693 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
10694 | ac_cs_version="\\
|
---|
10695 | rdesktop config.status 1.5.0
|
---|
10696 | configured by $0, generated by GNU Autoconf 2.59,
|
---|
10697 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
|
---|
10698 |
|
---|
10699 | Copyright (C) 2003 Free Software Foundation, Inc.
|
---|
10700 | This config.status script is free software; the Free Software Foundation
|
---|
10701 | gives unlimited permission to copy, distribute and modify it."
|
---|
10702 | srcdir=$srcdir
|
---|
10703 | INSTALL="$INSTALL"
|
---|
10704 | _ACEOF
|
---|
10705 |
|
---|
10706 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10707 | # If no file are specified by the user, then we need to provide default
|
---|
10708 | # value. By we need to know if files were specified by the user.
|
---|
10709 | ac_need_defaults=:
|
---|
10710 | while test $# != 0
|
---|
10711 | do
|
---|
10712 | case $1 in
|
---|
10713 | --*=*)
|
---|
10714 | ac_option=`expr "x$1" : 'x\([^=]*\)='`
|
---|
10715 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
|
---|
10716 | ac_shift=:
|
---|
10717 | ;;
|
---|
10718 | -*)
|
---|
10719 | ac_option=$1
|
---|
10720 | ac_optarg=$2
|
---|
10721 | ac_shift=shift
|
---|
10722 | ;;
|
---|
10723 | *) # This is not an option, so the user has probably given explicit
|
---|
10724 | # arguments.
|
---|
10725 | ac_option=$1
|
---|
10726 | ac_need_defaults=false;;
|
---|
10727 | esac
|
---|
10728 |
|
---|
10729 | case $ac_option in
|
---|
10730 | # Handling of the options.
|
---|
10731 | _ACEOF
|
---|
10732 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10733 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
|
---|
10734 | ac_cs_recheck=: ;;
|
---|
10735 | --version | --vers* | -V )
|
---|
10736 | echo "$ac_cs_version"; exit 0 ;;
|
---|
10737 | --he | --h)
|
---|
10738 | # Conflict between --help and --header
|
---|
10739 | { { echo "$as_me:$LINENO: error: ambiguous option: $1
|
---|
10740 | Try \`$0 --help' for more information." >&5
|
---|
10741 | echo "$as_me: error: ambiguous option: $1
|
---|
10742 | Try \`$0 --help' for more information." >&2;}
|
---|
10743 | { (exit 1); exit 1; }; };;
|
---|
10744 | --help | --hel | -h )
|
---|
10745 | echo "$ac_cs_usage"; exit 0 ;;
|
---|
10746 | --debug | --d* | -d )
|
---|
10747 | debug=: ;;
|
---|
10748 | --file | --fil | --fi | --f )
|
---|
10749 | $ac_shift
|
---|
10750 | CONFIG_FILES="$CONFIG_FILES $ac_optarg"
|
---|
10751 | ac_need_defaults=false;;
|
---|
10752 | --header | --heade | --head | --hea )
|
---|
10753 | $ac_shift
|
---|
10754 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
|
---|
10755 | ac_need_defaults=false;;
|
---|
10756 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \
|
---|
10757 | | -silent | --silent | --silen | --sile | --sil | --si | --s)
|
---|
10758 | ac_cs_silent=: ;;
|
---|
10759 |
|
---|
10760 | # This is an error.
|
---|
10761 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
|
---|
10762 | Try \`$0 --help' for more information." >&5
|
---|
10763 | echo "$as_me: error: unrecognized option: $1
|
---|
10764 | Try \`$0 --help' for more information." >&2;}
|
---|
10765 | { (exit 1); exit 1; }; } ;;
|
---|
10766 |
|
---|
10767 | *) ac_config_targets="$ac_config_targets $1" ;;
|
---|
10768 |
|
---|
10769 | esac
|
---|
10770 | shift
|
---|
10771 | done
|
---|
10772 |
|
---|
10773 | ac_configure_extra_args=
|
---|
10774 |
|
---|
10775 | if $ac_cs_silent; then
|
---|
10776 | exec 6>/dev/null
|
---|
10777 | ac_configure_extra_args="$ac_configure_extra_args --silent"
|
---|
10778 | fi
|
---|
10779 |
|
---|
10780 | _ACEOF
|
---|
10781 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
10782 | if \$ac_cs_recheck; then
|
---|
10783 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
|
---|
10784 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
|
---|
10785 | fi
|
---|
10786 |
|
---|
10787 | _ACEOF
|
---|
10788 |
|
---|
10789 |
|
---|
10790 |
|
---|
10791 |
|
---|
10792 |
|
---|
10793 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10794 | for ac_config_target in $ac_config_targets
|
---|
10795 | do
|
---|
10796 | case "$ac_config_target" in
|
---|
10797 | # Handling of arguments.
|
---|
10798 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
|
---|
10799 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
|
---|
10800 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
|
---|
10801 | { (exit 1); exit 1; }; };;
|
---|
10802 | esac
|
---|
10803 | done
|
---|
10804 |
|
---|
10805 | # If the user did not use the arguments to specify the items to instantiate,
|
---|
10806 | # then the envvar interface is used. Set only those that are not.
|
---|
10807 | # We use the long form for the default assignment because of an extremely
|
---|
10808 | # bizarre bug on SunOS 4.1.3.
|
---|
10809 | if $ac_need_defaults; then
|
---|
10810 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
|
---|
10811 | fi
|
---|
10812 |
|
---|
10813 | # Have a temporary directory for convenience. Make it in the build tree
|
---|
10814 | # simply because there is no reason to put it here, and in addition,
|
---|
10815 | # creating and moving files from /tmp can sometimes cause problems.
|
---|
10816 | # Create a temporary directory, and hook for its removal unless debugging.
|
---|
10817 | $debug ||
|
---|
10818 | {
|
---|
10819 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
|
---|
10820 | trap '{ (exit 1); exit 1; }' 1 2 13 15
|
---|
10821 | }
|
---|
10822 |
|
---|
10823 | # Create a (secure) tmp directory for tmp files.
|
---|
10824 |
|
---|
10825 | {
|
---|
10826 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
|
---|
10827 | test -n "$tmp" && test -d "$tmp"
|
---|
10828 | } ||
|
---|
10829 | {
|
---|
10830 | tmp=./confstat$$-$RANDOM
|
---|
10831 | (umask 077 && mkdir $tmp)
|
---|
10832 | } ||
|
---|
10833 | {
|
---|
10834 | echo "$me: cannot create a temporary directory in ." >&2
|
---|
10835 | { (exit 1); exit 1; }
|
---|
10836 | }
|
---|
10837 |
|
---|
10838 | _ACEOF
|
---|
10839 |
|
---|
10840 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
10841 |
|
---|
10842 | #
|
---|
10843 | # CONFIG_FILES section.
|
---|
10844 | #
|
---|
10845 |
|
---|
10846 | # No need to generate the scripts if there are no CONFIG_FILES.
|
---|
10847 | # This happens for instance when ./config.status config.h
|
---|
10848 | if test -n "\$CONFIG_FILES"; then
|
---|
10849 | # Protect against being on the right side of a sed subst in config.status.
|
---|
10850 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
|
---|
10851 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
|
---|
10852 | s,@SHELL@,$SHELL,;t t
|
---|
10853 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
|
---|
10854 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
|
---|
10855 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
|
---|
10856 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
|
---|
10857 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
|
---|
10858 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
|
---|
10859 | s,@exec_prefix@,$exec_prefix,;t t
|
---|
10860 | s,@prefix@,$prefix,;t t
|
---|
10861 | s,@program_transform_name@,$program_transform_name,;t t
|
---|
10862 | s,@bindir@,$bindir,;t t
|
---|
10863 | s,@sbindir@,$sbindir,;t t
|
---|
10864 | s,@libexecdir@,$libexecdir,;t t
|
---|
10865 | s,@datadir@,$datadir,;t t
|
---|
10866 | s,@sysconfdir@,$sysconfdir,;t t
|
---|
10867 | s,@sharedstatedir@,$sharedstatedir,;t t
|
---|
10868 | s,@localstatedir@,$localstatedir,;t t
|
---|
10869 | s,@libdir@,$libdir,;t t
|
---|
10870 | s,@includedir@,$includedir,;t t
|
---|
10871 | s,@oldincludedir@,$oldincludedir,;t t
|
---|
10872 | s,@infodir@,$infodir,;t t
|
---|
10873 | s,@mandir@,$mandir,;t t
|
---|
10874 | s,@build_alias@,$build_alias,;t t
|
---|
10875 | s,@host_alias@,$host_alias,;t t
|
---|
10876 | s,@target_alias@,$target_alias,;t t
|
---|
10877 | s,@DEFS@,$DEFS,;t t
|
---|
10878 | s,@ECHO_C@,$ECHO_C,;t t
|
---|
10879 | s,@ECHO_N@,$ECHO_N,;t t
|
---|
10880 | s,@ECHO_T@,$ECHO_T,;t t
|
---|
10881 | s,@LIBS@,$LIBS,;t t
|
---|
10882 | s,@CC@,$CC,;t t
|
---|
10883 | s,@CFLAGS@,$CFLAGS,;t t
|
---|
10884 | s,@LDFLAGS@,$LDFLAGS,;t t
|
---|
10885 | s,@CPPFLAGS@,$CPPFLAGS,;t t
|
---|
10886 | s,@ac_ct_CC@,$ac_ct_CC,;t t
|
---|
10887 | s,@EXEEXT@,$EXEEXT,;t t
|
---|
10888 | s,@OBJEXT@,$OBJEXT,;t t
|
---|
10889 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
|
---|
10890 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
|
---|
10891 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t
|
---|
10892 | s,@CPP@,$CPP,;t t
|
---|
10893 | s,@EGREP@,$EGREP,;t t
|
---|
10894 | s,@X_CFLAGS@,$X_CFLAGS,;t t
|
---|
10895 | s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
|
---|
10896 | s,@X_LIBS@,$X_LIBS,;t t
|
---|
10897 | s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
|
---|
10898 | s,@STRIP@,$STRIP,;t t
|
---|
10899 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
|
---|
10900 | s,@ssldir@,$ssldir,;t t
|
---|
10901 | s,@VNCINC@,$VNCINC,;t t
|
---|
10902 | s,@LDVNC@,$LDVNC,;t t
|
---|
10903 | s,@VNCLINK@,$VNCLINK,;t t
|
---|
10904 | s,@RDP2VNCTARGET@,$RDP2VNCTARGET,;t t
|
---|
10905 | s,@SOUNDOBJ@,$SOUNDOBJ,;t t
|
---|
10906 | s,@LIBOBJS@,$LIBOBJS,;t t
|
---|
10907 | s,@LIBICONV@,$LIBICONV,;t t
|
---|
10908 | s,@build@,$build,;t t
|
---|
10909 | s,@build_cpu@,$build_cpu,;t t
|
---|
10910 | s,@build_vendor@,$build_vendor,;t t
|
---|
10911 | s,@build_os@,$build_os,;t t
|
---|
10912 | s,@host@,$host,;t t
|
---|
10913 | s,@host_cpu@,$host_cpu,;t t
|
---|
10914 | s,@host_vendor@,$host_vendor,;t t
|
---|
10915 | s,@host_os@,$host_os,;t t
|
---|
10916 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t
|
---|
10917 | CEOF
|
---|
10918 |
|
---|
10919 | _ACEOF
|
---|
10920 |
|
---|
10921 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10922 | # Split the substitutions into bite-sized pieces for seds with
|
---|
10923 | # small command number limits, like on Digital OSF/1 and HP-UX.
|
---|
10924 | ac_max_sed_lines=48
|
---|
10925 | ac_sed_frag=1 # Number of current file.
|
---|
10926 | ac_beg=1 # First line for current file.
|
---|
10927 | ac_end=$ac_max_sed_lines # Line after last line for current file.
|
---|
10928 | ac_more_lines=:
|
---|
10929 | ac_sed_cmds=
|
---|
10930 | while $ac_more_lines; do
|
---|
10931 | if test $ac_beg -gt 1; then
|
---|
10932 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
10933 | else
|
---|
10934 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
|
---|
10935 | fi
|
---|
10936 | if test ! -s $tmp/subs.frag; then
|
---|
10937 | ac_more_lines=false
|
---|
10938 | else
|
---|
10939 | # The purpose of the label and of the branching condition is to
|
---|
10940 | # speed up the sed processing (if there are no `@' at all, there
|
---|
10941 | # is no need to browse any of the substitutions).
|
---|
10942 | # These are the two extra sed commands mentioned above.
|
---|
10943 | (echo ':t
|
---|
10944 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
|
---|
10945 | if test -z "$ac_sed_cmds"; then
|
---|
10946 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
10947 | else
|
---|
10948 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
|
---|
10949 | fi
|
---|
10950 | ac_sed_frag=`expr $ac_sed_frag + 1`
|
---|
10951 | ac_beg=$ac_end
|
---|
10952 | ac_end=`expr $ac_end + $ac_max_sed_lines`
|
---|
10953 | fi
|
---|
10954 | done
|
---|
10955 | if test -z "$ac_sed_cmds"; then
|
---|
10956 | ac_sed_cmds=cat
|
---|
10957 | fi
|
---|
10958 | fi # test -n "$CONFIG_FILES"
|
---|
10959 |
|
---|
10960 | _ACEOF
|
---|
10961 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
10962 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
|
---|
10963 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
|
---|
10964 | case $ac_file in
|
---|
10965 | - | *:- | *:-:* ) # input from stdin
|
---|
10966 | cat >$tmp/stdin
|
---|
10967 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
10968 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
10969 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
|
---|
10970 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
|
---|
10971 | * ) ac_file_in=$ac_file.in ;;
|
---|
10972 | esac
|
---|
10973 |
|
---|
10974 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
|
---|
10975 | ac_dir=`(dirname "$ac_file") 2>/dev/null ||
|
---|
10976 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
10977 | X"$ac_file" : 'X\(//\)[^/]' \| \
|
---|
10978 | X"$ac_file" : 'X\(//\)$' \| \
|
---|
10979 | X"$ac_file" : 'X\(/\)' \| \
|
---|
10980 | . : '\(.\)' 2>/dev/null ||
|
---|
10981 | echo X"$ac_file" |
|
---|
10982 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
10983 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
10984 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
10985 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
10986 | s/.*/./; q'`
|
---|
10987 | { if $as_mkdir_p; then
|
---|
10988 | mkdir -p "$ac_dir"
|
---|
10989 | else
|
---|
10990 | as_dir="$ac_dir"
|
---|
10991 | as_dirs=
|
---|
10992 | while test ! -d "$as_dir"; do
|
---|
10993 | as_dirs="$as_dir $as_dirs"
|
---|
10994 | as_dir=`(dirname "$as_dir") 2>/dev/null ||
|
---|
10995 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
---|
10996 | X"$as_dir" : 'X\(//\)[^/]' \| \
|
---|
10997 | X"$as_dir" : 'X\(//\)$' \| \
|
---|
10998 | X"$as_dir" : 'X\(/\)' \| \
|
---|
10999 | . : '\(.\)' 2>/dev/null ||
|
---|
11000 | echo X"$as_dir" |
|
---|
11001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
|
---|
11002 | /^X\(\/\/\)[^/].*/{ s//\1/; q; }
|
---|
11003 | /^X\(\/\/\)$/{ s//\1/; q; }
|
---|
11004 | /^X\(\/\).*/{ s//\1/; q; }
|
---|
11005 | s/.*/./; q'`
|
---|
11006 | done
|
---|
11007 | test ! -n "$as_dirs" || mkdir $as_dirs
|
---|
11008 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
|
---|
11009 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
|
---|
11010 | { (exit 1); exit 1; }; }; }
|
---|
11011 |
|
---|
11012 | ac_builddir=.
|
---|
11013 |
|
---|
11014 | if test "$ac_dir" != .; then
|
---|
11015 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
|
---|
11016 | # A "../" for each directory in $ac_dir_suffix.
|
---|
11017 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
|
---|
11018 | else
|
---|
11019 | ac_dir_suffix= ac_top_builddir=
|
---|
11020 | fi
|
---|
11021 |
|
---|
11022 | case $srcdir in
|
---|
11023 | .) # No --srcdir option. We are building in place.
|
---|
11024 | ac_srcdir=.
|
---|
11025 | if test -z "$ac_top_builddir"; then
|
---|
11026 | ac_top_srcdir=.
|
---|
11027 | else
|
---|
11028 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
|
---|
11029 | fi ;;
|
---|
11030 | [\\/]* | ?:[\\/]* ) # Absolute path.
|
---|
11031 | ac_srcdir=$srcdir$ac_dir_suffix;
|
---|
11032 | ac_top_srcdir=$srcdir ;;
|
---|
11033 | *) # Relative path.
|
---|
11034 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
|
---|
11035 | ac_top_srcdir=$ac_top_builddir$srcdir ;;
|
---|
11036 | esac
|
---|
11037 |
|
---|
11038 | # Do not use `cd foo && pwd` to compute absolute paths, because
|
---|
11039 | # the directories may not exist.
|
---|
11040 | case `pwd` in
|
---|
11041 | .) ac_abs_builddir="$ac_dir";;
|
---|
11042 | *)
|
---|
11043 | case "$ac_dir" in
|
---|
11044 | .) ac_abs_builddir=`pwd`;;
|
---|
11045 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
|
---|
11046 | *) ac_abs_builddir=`pwd`/"$ac_dir";;
|
---|
11047 | esac;;
|
---|
11048 | esac
|
---|
11049 | case $ac_abs_builddir in
|
---|
11050 | .) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
11051 | *)
|
---|
11052 | case ${ac_top_builddir}. in
|
---|
11053 | .) ac_abs_top_builddir=$ac_abs_builddir;;
|
---|
11054 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
|
---|
11055 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
|
---|
11056 | esac;;
|
---|
11057 | esac
|
---|
11058 | case $ac_abs_builddir in
|
---|
11059 | .) ac_abs_srcdir=$ac_srcdir;;
|
---|
11060 | *)
|
---|
11061 | case $ac_srcdir in
|
---|
11062 | .) ac_abs_srcdir=$ac_abs_builddir;;
|
---|
11063 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
|
---|
11064 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
|
---|
11065 | esac;;
|
---|
11066 | esac
|
---|
11067 | case $ac_abs_builddir in
|
---|
11068 | .) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
11069 | *)
|
---|
11070 | case $ac_top_srcdir in
|
---|
11071 | .) ac_abs_top_srcdir=$ac_abs_builddir;;
|
---|
11072 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
|
---|
11073 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
|
---|
11074 | esac;;
|
---|
11075 | esac
|
---|
11076 |
|
---|
11077 |
|
---|
11078 | case $INSTALL in
|
---|
11079 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
|
---|
11080 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
|
---|
11081 | esac
|
---|
11082 |
|
---|
11083 | if test x"$ac_file" != x-; then
|
---|
11084 | { echo "$as_me:$LINENO: creating $ac_file" >&5
|
---|
11085 | echo "$as_me: creating $ac_file" >&6;}
|
---|
11086 | rm -f "$ac_file"
|
---|
11087 | fi
|
---|
11088 | # Let's still pretend it is `configure' which instantiates (i.e., don't
|
---|
11089 | # use $as_me), people would be surprised to read:
|
---|
11090 | # /* config.h. Generated by config.status. */
|
---|
11091 | if test x"$ac_file" = x-; then
|
---|
11092 | configure_input=
|
---|
11093 | else
|
---|
11094 | configure_input="$ac_file. "
|
---|
11095 | fi
|
---|
11096 | configure_input=$configure_input"Generated from `echo $ac_file_in |
|
---|
11097 | sed 's,.*/,,'` by configure."
|
---|
11098 |
|
---|
11099 | # First look for the input files in the build tree, otherwise in the
|
---|
11100 | # src tree.
|
---|
11101 | ac_file_inputs=`IFS=:
|
---|
11102 | for f in $ac_file_in; do
|
---|
11103 | case $f in
|
---|
11104 | -) echo $tmp/stdin ;;
|
---|
11105 | [\\/$]*)
|
---|
11106 | # Absolute (can't be DOS-style, as IFS=:)
|
---|
11107 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
11108 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
11109 | { (exit 1); exit 1; }; }
|
---|
11110 | echo "$f";;
|
---|
11111 | *) # Relative
|
---|
11112 | if test -f "$f"; then
|
---|
11113 | # Build tree
|
---|
11114 | echo "$f"
|
---|
11115 | elif test -f "$srcdir/$f"; then
|
---|
11116 | # Source tree
|
---|
11117 | echo "$srcdir/$f"
|
---|
11118 | else
|
---|
11119 | # /dev/null tree
|
---|
11120 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
|
---|
11121 | echo "$as_me: error: cannot find input file: $f" >&2;}
|
---|
11122 | { (exit 1); exit 1; }; }
|
---|
11123 | fi;;
|
---|
11124 | esac
|
---|
11125 | done` || { (exit 1); exit 1; }
|
---|
11126 | _ACEOF
|
---|
11127 | cat >>$CONFIG_STATUS <<_ACEOF
|
---|
11128 | sed "$ac_vpsub
|
---|
11129 | $extrasub
|
---|
11130 | _ACEOF
|
---|
11131 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11132 | :t
|
---|
11133 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
|
---|
11134 | s,@configure_input@,$configure_input,;t t
|
---|
11135 | s,@srcdir@,$ac_srcdir,;t t
|
---|
11136 | s,@abs_srcdir@,$ac_abs_srcdir,;t t
|
---|
11137 | s,@top_srcdir@,$ac_top_srcdir,;t t
|
---|
11138 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
|
---|
11139 | s,@builddir@,$ac_builddir,;t t
|
---|
11140 | s,@abs_builddir@,$ac_abs_builddir,;t t
|
---|
11141 | s,@top_builddir@,$ac_top_builddir,;t t
|
---|
11142 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
|
---|
11143 | s,@INSTALL@,$ac_INSTALL,;t t
|
---|
11144 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
|
---|
11145 | rm -f $tmp/stdin
|
---|
11146 | if test x"$ac_file" != x-; then
|
---|
11147 | mv $tmp/out $ac_file
|
---|
11148 | else
|
---|
11149 | cat $tmp/out
|
---|
11150 | rm -f $tmp/out
|
---|
11151 | fi
|
---|
11152 |
|
---|
11153 | done
|
---|
11154 | _ACEOF
|
---|
11155 |
|
---|
11156 | cat >>$CONFIG_STATUS <<\_ACEOF
|
---|
11157 |
|
---|
11158 | { (exit 0); exit 0; }
|
---|
11159 | _ACEOF
|
---|
11160 | chmod +x $CONFIG_STATUS
|
---|
11161 | ac_clean_files=$ac_clean_files_save
|
---|
11162 |
|
---|
11163 |
|
---|
11164 | # configure is writing to config.log, and then calls config.status.
|
---|
11165 | # config.status does its own redirection, appending to config.log.
|
---|
11166 | # Unfortunately, on DOS this fails, as config.log is still kept open
|
---|
11167 | # by configure, so config.status won't be able to write to it; its
|
---|
11168 | # output is simply discarded. So we exec the FD to /dev/null,
|
---|
11169 | # effectively closing config.log, so it can be properly (re)opened and
|
---|
11170 | # appended to by config.status. When coming back to configure, we
|
---|
11171 | # need to make the FD available again.
|
---|
11172 | if test "$no_create" != yes; then
|
---|
11173 | ac_cs_success=:
|
---|
11174 | ac_config_status_args=
|
---|
11175 | test "$silent" = yes &&
|
---|
11176 | ac_config_status_args="$ac_config_status_args --quiet"
|
---|
11177 | exec 5>/dev/null
|
---|
11178 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
|
---|
11179 | exec 5>>config.log
|
---|
11180 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which
|
---|
11181 | # would make configure fail if this is the last instruction.
|
---|
11182 | $ac_cs_success || { (exit 1); exit 1; }
|
---|
11183 | fi
|
---|
11184 |
|
---|
11185 |
|
---|