VirtualBox

source: vbox/trunk/src/VBox/RDP/client/configure@ 8794

最後變更 在這個檔案從8794是 7826,由 vboxsync 提交於 17 年 前

Export modified rdesktop version including USB support to OSE. It's GPL anyway.

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:executable 設為 *
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 323.2 KB
 
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
13if 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+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for 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
43do
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
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo 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.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if 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
97fi
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
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
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
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
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
152done
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
187case `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= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if 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
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_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.
231as_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.
236as_nl='
237'
238IFS=" $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.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${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.
268PACKAGE_NAME='rdesktop'
269PACKAGE_TARNAME='rdesktop'
270PACKAGE_VERSION='1.5.0'
271PACKAGE_STRING='rdesktop 1.5.0'
272PACKAGE_BUGREPORT=''
273
274ac_unique_file="rdesktop.c"
275# Factoring default headers for most tests.
276ac_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
312ac_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'
313ac_subst_files=''
314
315# Initialize some variables set by options.
316ac_init_help=
317ac_init_version=false
318# The variables have the same names as the options, with
319# dashes changed to underlines.
320cache_file=/dev/null
321exec_prefix=NONE
322no_create=
323no_recursion=
324prefix=NONE
325program_prefix=NONE
326program_suffix=NONE
327program_transform_name=s,x,x,
328silent=
329site=
330srcdir=
331verbose=
332x_includes=NONE
333x_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.
340bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share'
344sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib'
348includedir='${prefix}/include'
349oldincludedir='/usr/include'
350infodir='${prefix}/info'
351mandir='${prefix}/man'
352
353ac_prev=
354for ac_option
355do
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
627Try \`$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
650done
651
652if 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; }; }
656fi
657
658# Be sure to have absolute paths.
659for ac_var in exec_prefix prefix
660do
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
667done
668
669# Be sure to have absolute paths.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
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
679done
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.
684build=$build_alias
685host=$host_alias
686target=$target_alias
687
688# FIXME: To remove some day.
689if 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
697fi
698
699ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702test "$silent" = yes && exec 6>/dev/null
703
704
705# Find the source files, if location was not specified.
706if 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 ||
715echo 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
725else
726 ac_srcdir_defaulted=no
727fi
728if 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
736fi
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; }; }
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741ac_env_build_alias_set=${build_alias+set}
742ac_env_build_alias_value=$build_alias
743ac_cv_env_build_alias_set=${build_alias+set}
744ac_cv_env_build_alias_value=$build_alias
745ac_env_host_alias_set=${host_alias+set}
746ac_env_host_alias_value=$host_alias
747ac_cv_env_host_alias_set=${host_alias+set}
748ac_cv_env_host_alias_value=$host_alias
749ac_env_target_alias_set=${target_alias+set}
750ac_env_target_alias_value=$target_alias
751ac_cv_env_target_alias_set=${target_alias+set}
752ac_cv_env_target_alias_value=$target_alias
753ac_env_CC_set=${CC+set}
754ac_env_CC_value=$CC
755ac_cv_env_CC_set=${CC+set}
756ac_cv_env_CC_value=$CC
757ac_env_CFLAGS_set=${CFLAGS+set}
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CPP_set=${CPP+set}
770ac_env_CPP_value=$CPP
771ac_cv_env_CPP_set=${CPP+set}
772ac_cv_env_CPP_value=$CPP
773
774#
775# Report the --help message.
776#
777if 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
783Usage: $0 [OPTION]... [VAR=VALUE]...
784
785To assign environment variables (e.g., CC, CFLAGS...), specify them as
786VAR=VALUE. See below for descriptions of some of the useful variables.
787
788Defaults for the options are specified in brackets.
789
790Configuration:
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
804Installation 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
810By default, \`make install' will install all the files in
811\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
812an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813for instance \`--prefix=\$HOME'.
814
815For better control, use the options below.
816
817Fine 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
834X features:
835 --x-includes=DIR X include files are in DIR
836 --x-libraries=DIR X library files are in DIR
837
838System 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
842fi
843
844if 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
850Optional 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
856Optional 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
874Some 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
883Use these variables to override the choices made by `configure' or to help
884it to find libraries and programs with nonstandard names/locations.
885
886_ACEOF
887fi
888
889if 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
896if 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'`
900else
901 ac_dir_suffix= ac_top_builddir=
902fi
903
904case $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 ;;
918esac
919
920# Do not use `cd foo && pwd` to compute absolute paths, because
921# the directories may not exist.
922case `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;;
930esac
931case $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;;
939esac
940case $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;;
948esac
949case $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;;
957esac
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
976fi
977
978test -n "$ac_init_help" && exit 0
979if $ac_init_version; then
980 cat <<\_ACEOF
981rdesktop configure 1.5.0
982generated by GNU Autoconf 2.59
983
984Copyright (C) 2003 Free Software Foundation, Inc.
985This configure script is free software; the Free Software Foundation
986gives unlimited permission to copy, distribute and modify it.
987_ACEOF
988 exit 0
989fi
990exec 5>config.log
991cat >&5 <<_ACEOF
992This file contains any messages produced by compilers while
993running configure, to aid debugging if configure makes a mistake.
994
995It was created by rdesktop $as_me 1.5.0, which was
996generated by GNU Autoconf 2.59. Invocation command line was
997
998 $ $0 $@
999
1000_ACEOF
1001{
1002cat <<_ASUNAME
1003## --------- ##
1004## Platform. ##
1005## --------- ##
1006
1007hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1008uname -m = `(uname -m) 2>/dev/null || echo unknown`
1009uname -r = `(uname -r) 2>/dev/null || echo unknown`
1010uname -s = `(uname -s) 2>/dev/null || echo unknown`
1011uname -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`
1019hostinfo = `(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
1026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1027for as_dir in $PATH
1028do
1029 IFS=$as_save_IFS
1030 test -z "$as_dir" && as_dir=.
1031 echo "PATH: $as_dir"
1032done
1033
1034} >&5
1035
1036cat >&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.
1051ac_configure_args=
1052ac_configure_args0=
1053ac_configure_args1=
1054ac_sep=
1055ac_must_keep_next=false
1056for ac_pass in 1 2
1057do
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
1093done
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.
1102trap '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
1176for ac_signal in 1 2 13 15; do
1177 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1178done
1179ac_signal=0
1180
1181# confdefs.h avoids OS command line length limits that DEFS can exceed.
1182rm -rf conftest* confdefs.h
1183# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1184echo >confdefs.h
1185
1186# Predefined preprocessor variables.
1187
1188cat >>confdefs.h <<_ACEOF
1189#define PACKAGE_NAME "$PACKAGE_NAME"
1190_ACEOF
1191
1192
1193cat >>confdefs.h <<_ACEOF
1194#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1195_ACEOF
1196
1197
1198cat >>confdefs.h <<_ACEOF
1199#define PACKAGE_VERSION "$PACKAGE_VERSION"
1200_ACEOF
1201
1202
1203cat >>confdefs.h <<_ACEOF
1204#define PACKAGE_STRING "$PACKAGE_STRING"
1205_ACEOF
1206
1207
1208cat >>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.
1215if 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
1221fi
1222for 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
1225echo "$as_me: loading site script $ac_site_file" >&6;}
1226 sed 's/^/| /' "$ac_site_file" >&5
1227 . "$ac_site_file"
1228 fi
1229done
1230
1231if 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
1236echo "$as_me: loading cache $cache_file" >&6;}
1237 case $cache_file in
1238 [\\/]* | ?:[\\/]* ) . $cache_file;;
1239 *) . ./$cache_file;;
1240 esac
1241 fi
1242else
1243 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1244echo "$as_me: creating cache $cache_file" >&6;}
1245 >$cache_file
1246fi
1247
1248# Check that the precious variables saved in the cache have kept the same
1249# value.
1250ac_cache_corrupted=false
1251for 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
1260echo "$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
1264echo "$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
1270echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1271 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1272echo "$as_me: former value: $ac_old_val" >&2;}
1273 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1274echo "$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
1290done
1291if $ac_cache_corrupted; then
1292 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1293echo "$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
1295echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1296 { (exit 1); exit 1; }; }
1297fi
1298
1299ac_ext=c
1300ac_cpp='$CPP $CPPFLAGS'
1301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1303ac_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
1334ac_ext=c
1335ac_cpp='$CPP $CPPFLAGS'
1336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1338ac_compiler_gnu=$ac_cv_c_compiler_gnu
1339if 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.
1341set dummy ${ac_tool_prefix}gcc; ac_word=$2
1342echo "$as_me:$LINENO: checking for $ac_word" >&5
1343echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1344if test "${ac_cv_prog_CC+set}" = set; then
1345 echo $ECHO_N "(cached) $ECHO_C" >&6
1346else
1347 if test -n "$CC"; then
1348 ac_cv_prog_CC="$CC" # Let the user override the test.
1349else
1350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1351for as_dir in $PATH
1352do
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
1361done
1362done
1363
1364fi
1365fi
1366CC=$ac_cv_prog_CC
1367if test -n "$CC"; then
1368 echo "$as_me:$LINENO: result: $CC" >&5
1369echo "${ECHO_T}$CC" >&6
1370else
1371 echo "$as_me:$LINENO: result: no" >&5
1372echo "${ECHO_T}no" >&6
1373fi
1374
1375fi
1376if 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.
1379set dummy gcc; ac_word=$2
1380echo "$as_me:$LINENO: checking for $ac_word" >&5
1381echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1382if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1383 echo $ECHO_N "(cached) $ECHO_C" >&6
1384else
1385 if test -n "$ac_ct_CC"; then
1386 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1387else
1388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1389for as_dir in $PATH
1390do
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
1399done
1400done
1401
1402fi
1403fi
1404ac_ct_CC=$ac_cv_prog_ac_ct_CC
1405if test -n "$ac_ct_CC"; then
1406 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1407echo "${ECHO_T}$ac_ct_CC" >&6
1408else
1409 echo "$as_me:$LINENO: result: no" >&5
1410echo "${ECHO_T}no" >&6
1411fi
1412
1413 CC=$ac_ct_CC
1414else
1415 CC="$ac_cv_prog_CC"
1416fi
1417
1418if 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.
1421set dummy ${ac_tool_prefix}cc; ac_word=$2
1422echo "$as_me:$LINENO: checking for $ac_word" >&5
1423echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1424if test "${ac_cv_prog_CC+set}" = set; then
1425 echo $ECHO_N "(cached) $ECHO_C" >&6
1426else
1427 if test -n "$CC"; then
1428 ac_cv_prog_CC="$CC" # Let the user override the test.
1429else
1430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1431for as_dir in $PATH
1432do
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
1441done
1442done
1443
1444fi
1445fi
1446CC=$ac_cv_prog_CC
1447if test -n "$CC"; then
1448 echo "$as_me:$LINENO: result: $CC" >&5
1449echo "${ECHO_T}$CC" >&6
1450else
1451 echo "$as_me:$LINENO: result: no" >&5
1452echo "${ECHO_T}no" >&6
1453fi
1454
1455fi
1456if 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.
1459set dummy cc; ac_word=$2
1460echo "$as_me:$LINENO: checking for $ac_word" >&5
1461echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1462if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1463 echo $ECHO_N "(cached) $ECHO_C" >&6
1464else
1465 if test -n "$ac_ct_CC"; then
1466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1467else
1468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469for as_dir in $PATH
1470do
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
1479done
1480done
1481
1482fi
1483fi
1484ac_ct_CC=$ac_cv_prog_ac_ct_CC
1485if test -n "$ac_ct_CC"; then
1486 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1487echo "${ECHO_T}$ac_ct_CC" >&6
1488else
1489 echo "$as_me:$LINENO: result: no" >&5
1490echo "${ECHO_T}no" >&6
1491fi
1492
1493 CC=$ac_ct_CC
1494else
1495 CC="$ac_cv_prog_CC"
1496fi
1497
1498fi
1499if test -z "$CC"; then
1500 # Extract the first word of "cc", so it can be a program name with args.
1501set dummy cc; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
1506else
1507 if test -n "$CC"; then
1508 ac_cv_prog_CC="$CC" # Let the user override the test.
1509else
1510 ac_prog_rejected=no
1511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1512for as_dir in $PATH
1513do
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
1526done
1527done
1528
1529if 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
1540fi
1541fi
1542fi
1543CC=$ac_cv_prog_CC
1544if test -n "$CC"; then
1545 echo "$as_me:$LINENO: result: $CC" >&5
1546echo "${ECHO_T}$CC" >&6
1547else
1548 echo "$as_me:$LINENO: result: no" >&5
1549echo "${ECHO_T}no" >&6
1550fi
1551
1552fi
1553if 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.
1558set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1559echo "$as_me:$LINENO: checking for $ac_word" >&5
1560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1561if test "${ac_cv_prog_CC+set}" = set; then
1562 echo $ECHO_N "(cached) $ECHO_C" >&6
1563else
1564 if test -n "$CC"; then
1565 ac_cv_prog_CC="$CC" # Let the user override the test.
1566else
1567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1568for as_dir in $PATH
1569do
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
1578done
1579done
1580
1581fi
1582fi
1583CC=$ac_cv_prog_CC
1584if test -n "$CC"; then
1585 echo "$as_me:$LINENO: result: $CC" >&5
1586echo "${ECHO_T}$CC" >&6
1587else
1588 echo "$as_me:$LINENO: result: no" >&5
1589echo "${ECHO_T}no" >&6
1590fi
1591
1592 test -n "$CC" && break
1593 done
1594fi
1595if test -z "$CC"; then
1596 ac_ct_CC=$CC
1597 for ac_prog in cl
1598do
1599 # Extract the first word of "$ac_prog", so it can be a program name with args.
1600set dummy $ac_prog; ac_word=$2
1601echo "$as_me:$LINENO: checking for $ac_word" >&5
1602echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1603if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1605else
1606 if test -n "$ac_ct_CC"; then
1607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1608else
1609as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1610for as_dir in $PATH
1611do
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
1620done
1621done
1622
1623fi
1624fi
1625ac_ct_CC=$ac_cv_prog_ac_ct_CC
1626if test -n "$ac_ct_CC"; then
1627 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1628echo "${ECHO_T}$ac_ct_CC" >&6
1629else
1630 echo "$as_me:$LINENO: result: no" >&5
1631echo "${ECHO_T}no" >&6
1632fi
1633
1634 test -n "$ac_ct_CC" && break
1635done
1636
1637 CC=$ac_ct_CC
1638fi
1639
1640fi
1641
1642
1643test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1644See \`config.log' for more details." >&5
1645echo "$as_me: error: no acceptable C compiler found in \$PATH
1646See \`config.log' for more details." >&2;}
1647 { (exit 1); exit 1; }; }
1648
1649# Provide some information about the compiler.
1650echo "$as_me:$LINENO:" \
1651 "checking for C compiler version" >&5
1652ac_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
1669cat >conftest.$ac_ext <<_ACEOF
1670/* confdefs.h. */
1671_ACEOF
1672cat confdefs.h >>conftest.$ac_ext
1673cat >>conftest.$ac_ext <<_ACEOF
1674/* end confdefs.h. */
1675
1676int
1677main ()
1678{
1679
1680 ;
1681 return 0;
1682}
1683_ACEOF
1684ac_clean_files_save=$ac_clean_files
1685ac_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.
1689echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1690echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1691ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1692if { (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.
1703ac_cv_exeext=
1704# b.out is created by i960 compilers.
1705for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1706do
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
1728done
1729else
1730 echo "$as_me: failed program was:" >&5
1731sed 's/^/| /' conftest.$ac_ext >&5
1732
1733{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1734See \`config.log' for more details." >&5
1735echo "$as_me: error: C compiler cannot create executables
1736See \`config.log' for more details." >&2;}
1737 { (exit 77); exit 77; }; }
1738fi
1739
1740ac_exeext=$ac_cv_exeext
1741echo "$as_me:$LINENO: result: $ac_file" >&5
1742echo "${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.
1746echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1747echo $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.
1750if 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.
1763If you meant to cross compile, use \`--host'.
1764See \`config.log' for more details." >&5
1765echo "$as_me: error: cannot run C compiled programs.
1766If you meant to cross compile, use \`--host'.
1767See \`config.log' for more details." >&2;}
1768 { (exit 1); exit 1; }; }
1769 fi
1770 fi
1771fi
1772echo "$as_me:$LINENO: result: yes" >&5
1773echo "${ECHO_T}yes" >&6
1774
1775rm -f a.out a.exe conftest$ac_cv_exeext b.out
1776ac_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.
1779echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1780echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1781echo "$as_me:$LINENO: result: $cross_compiling" >&5
1782echo "${ECHO_T}$cross_compiling" >&6
1783
1784echo "$as_me:$LINENO: checking for suffix of executables" >&5
1785echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1786if { (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'.
1795for 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
1804done
1805else
1806 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1807See \`config.log' for more details." >&5
1808echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1809See \`config.log' for more details." >&2;}
1810 { (exit 1); exit 1; }; }
1811fi
1812
1813rm -f conftest$ac_cv_exeext
1814echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1815echo "${ECHO_T}$ac_cv_exeext" >&6
1816
1817rm -f conftest.$ac_ext
1818EXEEXT=$ac_cv_exeext
1819ac_exeext=$EXEEXT
1820echo "$as_me:$LINENO: checking for suffix of object files" >&5
1821echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1822if test "${ac_cv_objext+set}" = set; then
1823 echo $ECHO_N "(cached) $ECHO_C" >&6
1824else
1825 cat >conftest.$ac_ext <<_ACEOF
1826/* confdefs.h. */
1827_ACEOF
1828cat confdefs.h >>conftest.$ac_ext
1829cat >>conftest.$ac_ext <<_ACEOF
1830/* end confdefs.h. */
1831
1832int
1833main ()
1834{
1835
1836 ;
1837 return 0;
1838}
1839_ACEOF
1840rm -f conftest.o conftest.obj
1841if { (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
1852done
1853else
1854 echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1858See \`config.log' for more details." >&5
1859echo "$as_me: error: cannot compute suffix of object files: cannot compile
1860See \`config.log' for more details." >&2;}
1861 { (exit 1); exit 1; }; }
1862fi
1863
1864rm -f conftest.$ac_cv_objext conftest.$ac_ext
1865fi
1866echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1867echo "${ECHO_T}$ac_cv_objext" >&6
1868OBJEXT=$ac_cv_objext
1869ac_objext=$OBJEXT
1870echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1871echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1872if test "${ac_cv_c_compiler_gnu+set}" = set; then
1873 echo $ECHO_N "(cached) $ECHO_C" >&6
1874else
1875 cat >conftest.$ac_ext <<_ACEOF
1876/* confdefs.h. */
1877_ACEOF
1878cat confdefs.h >>conftest.$ac_ext
1879cat >>conftest.$ac_ext <<_ACEOF
1880/* end confdefs.h. */
1881
1882int
1883main ()
1884{
1885#ifndef __GNUC__
1886 choke me
1887#endif
1888
1889 ;
1890 return 0;
1891}
1892_ACEOF
1893rm -f conftest.$ac_objext
1894if { (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
1916else
1917 echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920ac_compiler_gnu=no
1921fi
1922rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1923ac_cv_c_compiler_gnu=$ac_compiler_gnu
1924
1925fi
1926echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1927echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1928GCC=`test $ac_compiler_gnu = yes && echo yes`
1929ac_test_CFLAGS=${CFLAGS+set}
1930ac_save_CFLAGS=$CFLAGS
1931CFLAGS="-g"
1932echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1933echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1934if test "${ac_cv_prog_cc_g+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937 cat >conftest.$ac_ext <<_ACEOF
1938/* confdefs.h. */
1939_ACEOF
1940cat confdefs.h >>conftest.$ac_ext
1941cat >>conftest.$ac_ext <<_ACEOF
1942/* end confdefs.h. */
1943
1944int
1945main ()
1946{
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952rm -f conftest.$ac_objext
1953if { (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
1975else
1976 echo "$as_me: failed program was:" >&5
1977sed 's/^/| /' conftest.$ac_ext >&5
1978
1979ac_cv_prog_cc_g=no
1980fi
1981rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1984echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1985if test "$ac_test_CFLAGS" = set; then
1986 CFLAGS=$ac_save_CFLAGS
1987elif 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
1993else
1994 if test "$GCC" = yes; then
1995 CFLAGS="-O2"
1996 else
1997 CFLAGS=
1998 fi
1999fi
2000echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2001echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2002if test "${ac_cv_prog_cc_stdc+set}" = set; then
2003 echo $ECHO_N "(cached) $ECHO_C" >&6
2004else
2005 ac_cv_prog_cc_stdc=no
2006ac_save_CC=$CC
2007cat >conftest.$ac_ext <<_ACEOF
2008/* confdefs.h. */
2009_ACEOF
2010cat confdefs.h >>conftest.$ac_ext
2011cat >>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. */
2018struct buf { int x; };
2019FILE * (*rcsopen) (struct buf *, struct stat *, int);
2020static char *e (p, i)
2021 char **p;
2022 int i;
2023{
2024 return p[i];
2025}
2026static 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. */
2043int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2044
2045int test (int i, double x);
2046struct s1 {int (*f) (int a);};
2047struct s2 {int (*f) (double a);};
2048int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2049int argc;
2050char **argv;
2051int
2052main ()
2053{
2054return 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__
2066for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2067do
2068 CC="$ac_save_CC $ac_arg"
2069 rm -f conftest.$ac_objext
2070if { (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
2092break
2093else
2094 echo "$as_me: failed program was:" >&5
2095sed 's/^/| /' conftest.$ac_ext >&5
2096
2097fi
2098rm -f conftest.err conftest.$ac_objext
2099done
2100rm -f conftest.$ac_ext conftest.$ac_objext
2101CC=$ac_save_CC
2102
2103fi
2104
2105case "x$ac_cv_prog_cc_stdc" in
2106 x|xno)
2107 echo "$as_me:$LINENO: result: none needed" >&5
2108echo "${ECHO_T}none needed" >&6 ;;
2109 *)
2110 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2111echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2112 CC="$CC $ac_cv_prog_cc_stdc" ;;
2113esac
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.
2119cat >conftest.$ac_ext <<_ACEOF
2120#ifndef __cplusplus
2121 choke me
2122#endif
2123_ACEOF
2124rm -f conftest.$ac_objext
2125if { (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);'
2153do
2154 cat >conftest.$ac_ext <<_ACEOF
2155/* confdefs.h. */
2156_ACEOF
2157cat confdefs.h >>conftest.$ac_ext
2158cat >>conftest.$ac_ext <<_ACEOF
2159/* end confdefs.h. */
2160$ac_declaration
2161#include <stdlib.h>
2162int
2163main ()
2164{
2165exit (42);
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170rm -f conftest.$ac_objext
2171if { (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 :
2193else
2194 echo "$as_me: failed program was:" >&5
2195sed 's/^/| /' conftest.$ac_ext >&5
2196
2197continue
2198fi
2199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2200 cat >conftest.$ac_ext <<_ACEOF
2201/* confdefs.h. */
2202_ACEOF
2203cat confdefs.h >>conftest.$ac_ext
2204cat >>conftest.$ac_ext <<_ACEOF
2205/* end confdefs.h. */
2206$ac_declaration
2207int
2208main ()
2209{
2210exit (42);
2211 ;
2212 return 0;
2213}
2214_ACEOF
2215rm -f conftest.$ac_objext
2216if { (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
2238else
2239 echo "$as_me: failed program was:" >&5
2240sed 's/^/| /' conftest.$ac_ext >&5
2241
2242fi
2243rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2244done
2245rm -f conftest*
2246if test -n "$ac_declaration"; then
2247 echo '#ifdef __cplusplus' >>confdefs.h
2248 echo $ac_declaration >>confdefs.h
2249 echo '#endif' >>confdefs.h
2250fi
2251
2252else
2253 echo "$as_me: failed program was:" >&5
2254sed 's/^/| /' conftest.$ac_ext >&5
2255
2256fi
2257rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258ac_ext=c
2259ac_cpp='$CPP $CPPFLAGS'
2260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2262ac_compiler_gnu=$ac_cv_c_compiler_gnu
2263
2264if test "$GCC" = yes; then
2265 CFLAGS="$CFLAGS -Wall"
2266fi
2267
2268ac_aux_dir=
2269for 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
2283done
2284if test -z "$ac_aux_dir"; then
2285 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2286echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2287 { (exit 1); exit 1; }; }
2288fi
2289ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2290ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2291ac_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.
2306echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2307echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2308if test -z "$INSTALL"; then
2309if test "${ac_cv_path_install+set}" = set; then
2310 echo $ECHO_N "(cached) $ECHO_C" >&6
2311else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313for as_dir in $PATH
2314do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 # Account for people who put trailing slashes in PATH elements.
2318case $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 ;;
2346esac
2347done
2348
2349
2350fi
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
2360fi
2361echo "$as_me:$LINENO: result: $INSTALL" >&5
2362echo "${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.
2366test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2367
2368test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2369
2370test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2371
2372ac_ext=c
2373ac_cpp='$CPP $CPPFLAGS'
2374ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2375ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2376ac_compiler_gnu=$ac_cv_c_compiler_gnu
2377
2378
2379ac_ext=c
2380ac_cpp='$CPP $CPPFLAGS'
2381ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2385echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2386# On Suns, sometimes $CPP names a directory.
2387if test -n "$CPP" && test -d "$CPP"; then
2388 CPP=
2389fi
2390if test -z "$CPP"; then
2391 if test "${ac_cv_prog_CPP+set}" = set; then
2392 echo $ECHO_N "(cached) $ECHO_C" >&6
2393else
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
2398for ac_c_preproc_warn_flag in '' yes
2399do
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
2409cat confdefs.h >>conftest.$ac_ext
2410cat >>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
2419if { (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
2433else
2434 ac_cpp_err=yes
2435fi
2436if test -z "$ac_cpp_err"; then
2437 :
2438else
2439 echo "$as_me: failed program was:" >&5
2440sed 's/^/| /' conftest.$ac_ext >&5
2441
2442 # Broken: fails on valid input.
2443continue
2444fi
2445rm -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
2452cat confdefs.h >>conftest.$ac_ext
2453cat >>conftest.$ac_ext <<_ACEOF
2454/* end confdefs.h. */
2455#include <ac_nonexistent.h>
2456_ACEOF
2457if { (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
2471else
2472 ac_cpp_err=yes
2473fi
2474if test -z "$ac_cpp_err"; then
2475 # Broken: success on invalid input.
2476continue
2477else
2478 echo "$as_me: failed program was:" >&5
2479sed 's/^/| /' conftest.$ac_ext >&5
2480
2481 # Passes both tests.
2482ac_preproc_ok=:
2483break
2484fi
2485rm -f conftest.err conftest.$ac_ext
2486
2487done
2488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2489rm -f conftest.err conftest.$ac_ext
2490if $ac_preproc_ok; then
2491 break
2492fi
2493
2494 done
2495 ac_cv_prog_CPP=$CPP
2496
2497fi
2498 CPP=$ac_cv_prog_CPP
2499else
2500 ac_cv_prog_CPP=$CPP
2501fi
2502echo "$as_me:$LINENO: result: $CPP" >&5
2503echo "${ECHO_T}$CPP" >&6
2504ac_preproc_ok=false
2505for ac_c_preproc_warn_flag in '' yes
2506do
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
2516cat confdefs.h >>conftest.$ac_ext
2517cat >>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
2526if { (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
2540else
2541 ac_cpp_err=yes
2542fi
2543if test -z "$ac_cpp_err"; then
2544 :
2545else
2546 echo "$as_me: failed program was:" >&5
2547sed 's/^/| /' conftest.$ac_ext >&5
2548
2549 # Broken: fails on valid input.
2550continue
2551fi
2552rm -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
2559cat confdefs.h >>conftest.$ac_ext
2560cat >>conftest.$ac_ext <<_ACEOF
2561/* end confdefs.h. */
2562#include <ac_nonexistent.h>
2563_ACEOF
2564if { (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
2578else
2579 ac_cpp_err=yes
2580fi
2581if test -z "$ac_cpp_err"; then
2582 # Broken: success on invalid input.
2583continue
2584else
2585 echo "$as_me: failed program was:" >&5
2586sed 's/^/| /' conftest.$ac_ext >&5
2587
2588 # Passes both tests.
2589ac_preproc_ok=:
2590break
2591fi
2592rm -f conftest.err conftest.$ac_ext
2593
2594done
2595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2596rm -f conftest.err conftest.$ac_ext
2597if $ac_preproc_ok; then
2598 :
2599else
2600 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2601See \`config.log' for more details." >&5
2602echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2603See \`config.log' for more details." >&2;}
2604 { (exit 1); exit 1; }; }
2605fi
2606
2607ac_ext=c
2608ac_cpp='$CPP $CPPFLAGS'
2609ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2610ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2611ac_compiler_gnu=$ac_cv_c_compiler_gnu
2612
2613
2614echo "$as_me:$LINENO: checking for egrep" >&5
2615echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2616if test "${ac_cv_prog_egrep+set}" = set; then
2617 echo $ECHO_N "(cached) $ECHO_C" >&6
2618else
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
2623fi
2624echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2625echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2626 EGREP=$ac_cv_prog_egrep
2627
2628
2629echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2630echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2631if test "${ac_cv_header_stdc+set}" = set; then
2632 echo $ECHO_N "(cached) $ECHO_C" >&6
2633else
2634 cat >conftest.$ac_ext <<_ACEOF
2635/* confdefs.h. */
2636_ACEOF
2637cat confdefs.h >>conftest.$ac_ext
2638cat >>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
2645int
2646main ()
2647{
2648
2649 ;
2650 return 0;
2651}
2652_ACEOF
2653rm -f conftest.$ac_objext
2654if { (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
2676else
2677 echo "$as_me: failed program was:" >&5
2678sed 's/^/| /' conftest.$ac_ext >&5
2679
2680ac_cv_header_stdc=no
2681fi
2682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2683
2684if 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
2689cat confdefs.h >>conftest.$ac_ext
2690cat >>conftest.$ac_ext <<_ACEOF
2691/* end confdefs.h. */
2692#include <string.h>
2693
2694_ACEOF
2695if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2696 $EGREP "memchr" >/dev/null 2>&1; then
2697 :
2698else
2699 ac_cv_header_stdc=no
2700fi
2701rm -f conftest*
2702
2703fi
2704
2705if 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
2710cat confdefs.h >>conftest.$ac_ext
2711cat >>conftest.$ac_ext <<_ACEOF
2712/* end confdefs.h. */
2713#include <stdlib.h>
2714
2715_ACEOF
2716if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2717 $EGREP "free" >/dev/null 2>&1; then
2718 :
2719else
2720 ac_cv_header_stdc=no
2721fi
2722rm -f conftest*
2723
2724fi
2725
2726if 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 :
2730else
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>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)))
2750int
2751main ()
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
2761rm -f conftest$ac_exeext
2762if { (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 :
2773else
2774 echo "$as_me: program exited with status $ac_status" >&5
2775echo "$as_me: failed program was:" >&5
2776sed 's/^/| /' conftest.$ac_ext >&5
2777
2778( exit $ac_status )
2779ac_cv_header_stdc=no
2780fi
2781rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2782fi
2783fi
2784fi
2785echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2786echo "${ECHO_T}$ac_cv_header_stdc" >&6
2787if test $ac_cv_header_stdc = yes; then
2788
2789cat >>confdefs.h <<\_ACEOF
2790#define STDC_HEADERS 1
2791_ACEOF
2792
2793fi
2794
2795echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2796echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2797if test "${ac_cv_c_bigendian+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799else
2800 # See if sys/param.h defines the BYTE_ORDER macro.
2801cat >conftest.$ac_ext <<_ACEOF
2802/* confdefs.h. */
2803_ACEOF
2804cat confdefs.h >>conftest.$ac_ext
2805cat >>conftest.$ac_ext <<_ACEOF
2806/* end confdefs.h. */
2807#include <sys/types.h>
2808#include <sys/param.h>
2809
2810int
2811main ()
2812{
2813#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2814 bogus endian macros
2815#endif
2816
2817 ;
2818 return 0;
2819}
2820_ACEOF
2821rm -f conftest.$ac_objext
2822if { (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.
2844cat >conftest.$ac_ext <<_ACEOF
2845/* confdefs.h. */
2846_ACEOF
2847cat confdefs.h >>conftest.$ac_ext
2848cat >>conftest.$ac_ext <<_ACEOF
2849/* end confdefs.h. */
2850#include <sys/types.h>
2851#include <sys/param.h>
2852
2853int
2854main ()
2855{
2856#if BYTE_ORDER != BIG_ENDIAN
2857 not big endian
2858#endif
2859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864rm -f conftest.$ac_objext
2865if { (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
2887else
2888 echo "$as_me: failed program was:" >&5
2889sed 's/^/| /' conftest.$ac_ext >&5
2890
2891ac_cv_c_bigendian=no
2892fi
2893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2894else
2895 echo "$as_me: failed program was:" >&5
2896sed 's/^/| /' conftest.$ac_ext >&5
2897
2898# It does not; compile a test program.
2899if 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
2905cat confdefs.h >>conftest.$ac_ext
2906cat >>conftest.$ac_ext <<_ACEOF
2907/* end confdefs.h. */
2908short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2909short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
2910void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
2911short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
2912short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
2913void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
2914int
2915main ()
2916{
2917 _ascii (); _ebcdic ();
2918 ;
2919 return 0;
2920}
2921_ACEOF
2922rm -f conftest.$ac_objext
2923if { (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
2946fi
2947if 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
2954fi
2955else
2956 echo "$as_me: failed program was:" >&5
2957sed 's/^/| /' conftest.$ac_ext >&5
2958
2959fi
2960rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2961else
2962 cat >conftest.$ac_ext <<_ACEOF
2963/* confdefs.h. */
2964_ACEOF
2965cat confdefs.h >>conftest.$ac_ext
2966cat >>conftest.$ac_ext <<_ACEOF
2967/* end confdefs.h. */
2968int
2969main ()
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
2981rm -f conftest$ac_exeext
2982if { (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
2993else
2994 echo "$as_me: program exited with status $ac_status" >&5
2995echo "$as_me: failed program was:" >&5
2996sed 's/^/| /' conftest.$ac_ext >&5
2997
2998( exit $ac_status )
2999ac_cv_c_bigendian=yes
3000fi
3001rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3002fi
3003fi
3004rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3005fi
3006echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3007echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3008case $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
3021presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3022echo "$as_me: error: unknown endianness
3023presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3024 { (exit 1); exit 1; }; } ;;
3025esac
3026
3027echo "$as_me:$LINENO: checking for X" >&5
3028echo $ECHO_N "checking for X... $ECHO_C" >&6
3029
3030
3031# Check whether --with-x or --without-x was given.
3032if test "${with_x+set}" = set; then
3033 withval="$with_x"
3034
3035fi;
3036# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3037if test "x$with_x" = xno; then
3038 # The user explicitly disabled X.
3039 have_x=disabled
3040else
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
3047else
3048 # One or both of the vars are not set, and there is no cached value.
3049ac_x_includes=no ac_x_libraries=no
3050rm -fr conftest.dir
3051if 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'
3055acfindx:
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
3082fi
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.
3086ac_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
3121if 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
3127cat confdefs.h >>conftest.$ac_ext
3128cat >>conftest.$ac_ext <<_ACEOF
3129/* end confdefs.h. */
3130#include <X11/Intrinsic.h>
3131_ACEOF
3132if { (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
3146else
3147 ac_cpp_err=yes
3148fi
3149if test -z "$ac_cpp_err"; then
3150 # We can compile using X headers with no special include directory.
3151ac_x_includes=
3152else
3153 echo "$as_me: failed program was:" >&5
3154sed '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
3161done
3162fi
3163rm -f conftest.err conftest.$ac_ext
3164fi # $ac_x_includes = no
3165
3166if 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
3175cat confdefs.h >>conftest.$ac_ext
3176cat >>conftest.$ac_ext <<_ACEOF
3177/* end confdefs.h. */
3178#include <X11/Intrinsic.h>
3179int
3180main ()
3181{
3182XtMalloc (0)
3183 ;
3184 return 0;
3185}
3186_ACEOF
3187rm -f conftest.$ac_objext conftest$ac_exeext
3188if { (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.
3211ac_x_libraries=
3212else
3213 echo "$as_me: failed program was:" >&5
3214sed 's/^/| /' conftest.$ac_ext >&5
3215
3216LIBS=$ac_save_LIBS
3217for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3218do
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
3226done
3227fi
3228rm -f conftest.err conftest.$ac_objext \
3229 conftest$ac_exeext conftest.$ac_ext
3230fi # $ac_x_libraries = no
3231
3232if 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"
3235else
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"
3239fi
3240fi
3241
3242 fi
3243 eval "$ac_cv_have_x"
3244fi # $with_x != no
3245
3246if test "$have_x" != yes; then
3247 echo "$as_me:$LINENO: result: $have_x" >&5
3248echo "${ECHO_T}$have_x" >&6
3249 no_x=yes
3250else
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
3258echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3259fi
3260
3261if test "$no_x" = yes; then
3262 # Not all programs may use this symbol, but it does not hurt to define it.
3263
3264cat >>confdefs.h <<\_ACEOF
3265#define X_DISPLAY_MISSING 1
3266_ACEOF
3267
3268 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3269else
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
3282echo $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
3287cat confdefs.h >>conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */
3290
3291int
3292main ()
3293{
3294
3295 ;
3296 return 0;
3297}
3298_ACEOF
3299rm -f conftest.$ac_objext conftest$ac_exeext
3300if { (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
3322else
3323 echo "$as_me: failed program was:" >&5
3324sed 's/^/| /' conftest.$ac_ext >&5
3325
3326ac_R_nospace=no
3327fi
3328rm -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
3332echo "${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
3339cat confdefs.h >>conftest.$ac_ext
3340cat >>conftest.$ac_ext <<_ACEOF
3341/* end confdefs.h. */
3342
3343int
3344main ()
3345{
3346
3347 ;
3348 return 0;
3349}
3350_ACEOF
3351rm -f conftest.$ac_objext conftest$ac_exeext
3352if { (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
3374else
3375 echo "$as_me: failed program was:" >&5
3376sed 's/^/| /' conftest.$ac_ext >&5
3377
3378ac_R_space=no
3379fi
3380rm -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
3384echo "${ECHO_T}yes" >&6
3385 X_LIBS="$X_LIBS -R $x_libraries"
3386 else
3387 echo "$as_me:$LINENO: result: neither works" >&5
3388echo "${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
3409cat confdefs.h >>conftest.$ac_ext
3410cat >>conftest.$ac_ext <<_ACEOF
3411/* end confdefs.h. */
3412
3413/* Override any gcc2 internal prototype to avoid an error. */
3414#ifdef __cplusplus
3415extern "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. */
3419char XOpenDisplay ();
3420int
3421main ()
3422{
3423XOpenDisplay ();
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.$ac_objext conftest$ac_exeext
3429if { (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 :
3451else
3452 echo "$as_me: failed program was:" >&5
3453sed 's/^/| /' conftest.$ac_ext >&5
3454
3455echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3456echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3457if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3459else
3460 ac_check_lib_save_LIBS=$LIBS
3461LIBS="-ldnet $LIBS"
3462cat >conftest.$ac_ext <<_ACEOF
3463/* confdefs.h. */
3464_ACEOF
3465cat confdefs.h >>conftest.$ac_ext
3466cat >>conftest.$ac_ext <<_ACEOF
3467/* end confdefs.h. */
3468
3469/* Override any gcc2 internal prototype to avoid an error. */
3470#ifdef __cplusplus
3471extern "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. */
3475char dnet_ntoa ();
3476int
3477main ()
3478{
3479dnet_ntoa ();
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext conftest$ac_exeext
3485if { (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
3507else
3508 echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511ac_cv_lib_dnet_dnet_ntoa=no
3512fi
3513rm -f conftest.err conftest.$ac_objext \
3514 conftest$ac_exeext conftest.$ac_ext
3515LIBS=$ac_check_lib_save_LIBS
3516fi
3517echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3518echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3519if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3520 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3521fi
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
3525echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3526if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528else
3529 ac_check_lib_save_LIBS=$LIBS
3530LIBS="-ldnet_stub $LIBS"
3531cat >conftest.$ac_ext <<_ACEOF
3532/* confdefs.h. */
3533_ACEOF
3534cat confdefs.h >>conftest.$ac_ext
3535cat >>conftest.$ac_ext <<_ACEOF
3536/* end confdefs.h. */
3537
3538/* Override any gcc2 internal prototype to avoid an error. */
3539#ifdef __cplusplus
3540extern "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. */
3544char dnet_ntoa ();
3545int
3546main ()
3547{
3548dnet_ntoa ();
3549 ;
3550 return 0;
3551}
3552_ACEOF
3553rm -f conftest.$ac_objext conftest$ac_exeext
3554if { (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
3576else
3577 echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580ac_cv_lib_dnet_stub_dnet_ntoa=no
3581fi
3582rm -f conftest.err conftest.$ac_objext \
3583 conftest$ac_exeext conftest.$ac_ext
3584LIBS=$ac_check_lib_save_LIBS
3585fi
3586echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3587echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3588if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3589 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3590fi
3591
3592 fi
3593fi
3594rm -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
3607echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3608if test "${ac_cv_func_gethostbyname+set}" = set; then
3609 echo $ECHO_N "(cached) $ECHO_C" >&6
3610else
3611 cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>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
3636extern "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. */
3641char 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)
3646choke me
3647#else
3648char (*f) () = gethostbyname;
3649#endif
3650#ifdef __cplusplus
3651}
3652#endif
3653
3654int
3655main ()
3656{
3657return f != gethostbyname;
3658 ;
3659 return 0;
3660}
3661_ACEOF
3662rm -f conftest.$ac_objext conftest$ac_exeext
3663if { (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
3685else
3686 echo "$as_me: failed program was:" >&5
3687sed 's/^/| /' conftest.$ac_ext >&5
3688
3689ac_cv_func_gethostbyname=no
3690fi
3691rm -f conftest.err conftest.$ac_objext \
3692 conftest$ac_exeext conftest.$ac_ext
3693fi
3694echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3695echo "${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
3699echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3700if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702else
3703 ac_check_lib_save_LIBS=$LIBS
3704LIBS="-lnsl $LIBS"
3705cat >conftest.$ac_ext <<_ACEOF
3706/* confdefs.h. */
3707_ACEOF
3708cat confdefs.h >>conftest.$ac_ext
3709cat >>conftest.$ac_ext <<_ACEOF
3710/* end confdefs.h. */
3711
3712/* Override any gcc2 internal prototype to avoid an error. */
3713#ifdef __cplusplus
3714extern "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. */
3718char gethostbyname ();
3719int
3720main ()
3721{
3722gethostbyname ();
3723 ;
3724 return 0;
3725}
3726_ACEOF
3727rm -f conftest.$ac_objext conftest$ac_exeext
3728if { (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
3750else
3751 echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754ac_cv_lib_nsl_gethostbyname=no
3755fi
3756rm -f conftest.err conftest.$ac_objext \
3757 conftest$ac_exeext conftest.$ac_ext
3758LIBS=$ac_check_lib_save_LIBS
3759fi
3760echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3761echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3762if test $ac_cv_lib_nsl_gethostbyname = yes; then
3763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3764fi
3765
3766 if test $ac_cv_lib_nsl_gethostbyname = no; then
3767 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3768echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3769if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772 ac_check_lib_save_LIBS=$LIBS
3773LIBS="-lbsd $LIBS"
3774cat >conftest.$ac_ext <<_ACEOF
3775/* confdefs.h. */
3776_ACEOF
3777cat confdefs.h >>conftest.$ac_ext
3778cat >>conftest.$ac_ext <<_ACEOF
3779/* end confdefs.h. */
3780
3781/* Override any gcc2 internal prototype to avoid an error. */
3782#ifdef __cplusplus
3783extern "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. */
3787char gethostbyname ();
3788int
3789main ()
3790{
3791gethostbyname ();
3792 ;
3793 return 0;
3794}
3795_ACEOF
3796rm -f conftest.$ac_objext conftest$ac_exeext
3797if { (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
3819else
3820 echo "$as_me: failed program was:" >&5
3821sed 's/^/| /' conftest.$ac_ext >&5
3822
3823ac_cv_lib_bsd_gethostbyname=no
3824fi
3825rm -f conftest.err conftest.$ac_objext \
3826 conftest$ac_exeext conftest.$ac_ext
3827LIBS=$ac_check_lib_save_LIBS
3828fi
3829echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3830echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3831if test $ac_cv_lib_bsd_gethostbyname = yes; then
3832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3833fi
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
3846echo $ECHO_N "checking for connect... $ECHO_C" >&6
3847if test "${ac_cv_func_connect+set}" = set; then
3848 echo $ECHO_N "(cached) $ECHO_C" >&6
3849else
3850 cat >conftest.$ac_ext <<_ACEOF
3851/* confdefs.h. */
3852_ACEOF
3853cat confdefs.h >>conftest.$ac_ext
3854cat >>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
3875extern "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. */
3880char 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)
3885choke me
3886#else
3887char (*f) () = connect;
3888#endif
3889#ifdef __cplusplus
3890}
3891#endif
3892
3893int
3894main ()
3895{
3896return f != connect;
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (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
3924else
3925 echo "$as_me: failed program was:" >&5
3926sed 's/^/| /' conftest.$ac_ext >&5
3927
3928ac_cv_func_connect=no
3929fi
3930rm -f conftest.err conftest.$ac_objext \
3931 conftest$ac_exeext conftest.$ac_ext
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3934echo "${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
3938echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3939if test "${ac_cv_lib_socket_connect+set}" = set; then
3940 echo $ECHO_N "(cached) $ECHO_C" >&6
3941else
3942 ac_check_lib_save_LIBS=$LIBS
3943LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3944cat >conftest.$ac_ext <<_ACEOF
3945/* confdefs.h. */
3946_ACEOF
3947cat confdefs.h >>conftest.$ac_ext
3948cat >>conftest.$ac_ext <<_ACEOF
3949/* end confdefs.h. */
3950
3951/* Override any gcc2 internal prototype to avoid an error. */
3952#ifdef __cplusplus
3953extern "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. */
3957char connect ();
3958int
3959main ()
3960{
3961connect ();
3962 ;
3963 return 0;
3964}
3965_ACEOF
3966rm -f conftest.$ac_objext conftest$ac_exeext
3967if { (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
3989else
3990 echo "$as_me: failed program was:" >&5
3991sed 's/^/| /' conftest.$ac_ext >&5
3992
3993ac_cv_lib_socket_connect=no
3994fi
3995rm -f conftest.err conftest.$ac_objext \
3996 conftest$ac_exeext conftest.$ac_ext
3997LIBS=$ac_check_lib_save_LIBS
3998fi
3999echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4000echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4001if test $ac_cv_lib_socket_connect = yes; then
4002 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4003fi
4004
4005 fi
4006
4007 # Guillermo Gomez says -lposix is necessary on A/UX.
4008 echo "$as_me:$LINENO: checking for remove" >&5
4009echo $ECHO_N "checking for remove... $ECHO_C" >&6
4010if test "${ac_cv_func_remove+set}" = set; then
4011 echo $ECHO_N "(cached) $ECHO_C" >&6
4012else
4013 cat >conftest.$ac_ext <<_ACEOF
4014/* confdefs.h. */
4015_ACEOF
4016cat confdefs.h >>conftest.$ac_ext
4017cat >>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
4038extern "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. */
4043char 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)
4048choke me
4049#else
4050char (*f) () = remove;
4051#endif
4052#ifdef __cplusplus
4053}
4054#endif
4055
4056int
4057main ()
4058{
4059return f != remove;
4060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext conftest$ac_exeext
4065if { (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
4087else
4088 echo "$as_me: failed program was:" >&5
4089sed 's/^/| /' conftest.$ac_ext >&5
4090
4091ac_cv_func_remove=no
4092fi
4093rm -f conftest.err conftest.$ac_objext \
4094 conftest$ac_exeext conftest.$ac_ext
4095fi
4096echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4097echo "${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
4101echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4102if test "${ac_cv_lib_posix_remove+set}" = set; then
4103 echo $ECHO_N "(cached) $ECHO_C" >&6
4104else
4105 ac_check_lib_save_LIBS=$LIBS
4106LIBS="-lposix $LIBS"
4107cat >conftest.$ac_ext <<_ACEOF
4108/* confdefs.h. */
4109_ACEOF
4110cat confdefs.h >>conftest.$ac_ext
4111cat >>conftest.$ac_ext <<_ACEOF
4112/* end confdefs.h. */
4113
4114/* Override any gcc2 internal prototype to avoid an error. */
4115#ifdef __cplusplus
4116extern "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. */
4120char remove ();
4121int
4122main ()
4123{
4124remove ();
4125 ;
4126 return 0;
4127}
4128_ACEOF
4129rm -f conftest.$ac_objext conftest$ac_exeext
4130if { (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
4152else
4153 echo "$as_me: failed program was:" >&5
4154sed 's/^/| /' conftest.$ac_ext >&5
4155
4156ac_cv_lib_posix_remove=no
4157fi
4158rm -f conftest.err conftest.$ac_objext \
4159 conftest$ac_exeext conftest.$ac_ext
4160LIBS=$ac_check_lib_save_LIBS
4161fi
4162echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4163echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4164if test $ac_cv_lib_posix_remove = yes; then
4165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4166fi
4167
4168 fi
4169
4170 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4171 echo "$as_me:$LINENO: checking for shmat" >&5
4172echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4173if test "${ac_cv_func_shmat+set}" = set; then
4174 echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176 cat >conftest.$ac_ext <<_ACEOF
4177/* confdefs.h. */
4178_ACEOF
4179cat confdefs.h >>conftest.$ac_ext
4180cat >>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
4201extern "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. */
4206char 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)
4211choke me
4212#else
4213char (*f) () = shmat;
4214#endif
4215#ifdef __cplusplus
4216}
4217#endif
4218
4219int
4220main ()
4221{
4222return f != shmat;
4223 ;
4224 return 0;
4225}
4226_ACEOF
4227rm -f conftest.$ac_objext conftest$ac_exeext
4228if { (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
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
4254ac_cv_func_shmat=no
4255fi
4256rm -f conftest.err conftest.$ac_objext \
4257 conftest$ac_exeext conftest.$ac_ext
4258fi
4259echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4260echo "${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
4264echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4265if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4266 echo $ECHO_N "(cached) $ECHO_C" >&6
4267else
4268 ac_check_lib_save_LIBS=$LIBS
4269LIBS="-lipc $LIBS"
4270cat >conftest.$ac_ext <<_ACEOF
4271/* confdefs.h. */
4272_ACEOF
4273cat confdefs.h >>conftest.$ac_ext
4274cat >>conftest.$ac_ext <<_ACEOF
4275/* end confdefs.h. */
4276
4277/* Override any gcc2 internal prototype to avoid an error. */
4278#ifdef __cplusplus
4279extern "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. */
4283char shmat ();
4284int
4285main ()
4286{
4287shmat ();
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292rm -f conftest.$ac_objext conftest$ac_exeext
4293if { (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
4315else
4316 echo "$as_me: failed program was:" >&5
4317sed 's/^/| /' conftest.$ac_ext >&5
4318
4319ac_cv_lib_ipc_shmat=no
4320fi
4321rm -f conftest.err conftest.$ac_objext \
4322 conftest$ac_exeext conftest.$ac_ext
4323LIBS=$ac_check_lib_save_LIBS
4324fi
4325echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4326echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4327if test $ac_cv_lib_ipc_shmat = yes; then
4328 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4329fi
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
4344echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4345if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4346 echo $ECHO_N "(cached) $ECHO_C" >&6
4347else
4348 ac_check_lib_save_LIBS=$LIBS
4349LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4350cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h. */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h. */
4356
4357/* Override any gcc2 internal prototype to avoid an error. */
4358#ifdef __cplusplus
4359extern "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. */
4363char IceConnectionNumber ();
4364int
4365main ()
4366{
4367IceConnectionNumber ();
4368 ;
4369 return 0;
4370}
4371_ACEOF
4372rm -f conftest.$ac_objext conftest$ac_exeext
4373if { (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
4395else
4396 echo "$as_me: failed program was:" >&5
4397sed 's/^/| /' conftest.$ac_ext >&5
4398
4399ac_cv_lib_ICE_IceConnectionNumber=no
4400fi
4401rm -f conftest.err conftest.$ac_objext \
4402 conftest$ac_exeext conftest.$ac_ext
4403LIBS=$ac_check_lib_save_LIBS
4404fi
4405echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4406echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4407if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4408 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4409fi
4410
4411 LDFLAGS=$ac_save_LDFLAGS
4412
4413fi
4414
4415
4416echo "$as_me:$LINENO: checking for library containing socket" >&5
4417echo $ECHO_N "checking for library containing socket... $ECHO_C" >&6
4418if test "${ac_cv_search_socket+set}" = set; then
4419 echo $ECHO_N "(cached) $ECHO_C" >&6
4420else
4421 ac_func_search_save_LIBS=$LIBS
4422ac_cv_search_socket=no
4423cat >conftest.$ac_ext <<_ACEOF
4424/* confdefs.h. */
4425_ACEOF
4426cat confdefs.h >>conftest.$ac_ext
4427cat >>conftest.$ac_ext <<_ACEOF
4428/* end confdefs.h. */
4429
4430/* Override any gcc2 internal prototype to avoid an error. */
4431#ifdef __cplusplus
4432extern "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. */
4436char socket ();
4437int
4438main ()
4439{
4440socket ();
4441 ;
4442 return 0;
4443}
4444_ACEOF
4445rm -f conftest.$ac_objext conftest$ac_exeext
4446if { (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"
4468else
4469 echo "$as_me: failed program was:" >&5
4470sed 's/^/| /' conftest.$ac_ext >&5
4471
4472fi
4473rm -f conftest.err conftest.$ac_objext \
4474 conftest$ac_exeext conftest.$ac_ext
4475if 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
4481cat confdefs.h >>conftest.$ac_ext
4482cat >>conftest.$ac_ext <<_ACEOF
4483/* end confdefs.h. */
4484
4485/* Override any gcc2 internal prototype to avoid an error. */
4486#ifdef __cplusplus
4487extern "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. */
4491char socket ();
4492int
4493main ()
4494{
4495socket ();
4496 ;
4497 return 0;
4498}
4499_ACEOF
4500rm -f conftest.$ac_objext conftest$ac_exeext
4501if { (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"
4523break
4524else
4525 echo "$as_me: failed program was:" >&5
4526sed 's/^/| /' conftest.$ac_ext >&5
4527
4528fi
4529rm -f conftest.err conftest.$ac_objext \
4530 conftest$ac_exeext conftest.$ac_ext
4531 done
4532fi
4533LIBS=$ac_func_search_save_LIBS
4534fi
4535echo "$as_me:$LINENO: result: $ac_cv_search_socket" >&5
4536echo "${ECHO_T}$ac_cv_search_socket" >&6
4537if test "$ac_cv_search_socket" != no; then
4538 test "$ac_cv_search_socket" = "none required" || LIBS="$ac_cv_search_socket $LIBS"
4539
4540fi
4541
4542echo "$as_me:$LINENO: checking for library containing inet_aton" >&5
4543echo $ECHO_N "checking for library containing inet_aton... $ECHO_C" >&6
4544if test "${ac_cv_search_inet_aton+set}" = set; then
4545 echo $ECHO_N "(cached) $ECHO_C" >&6
4546else
4547 ac_func_search_save_LIBS=$LIBS
4548ac_cv_search_inet_aton=no
4549cat >conftest.$ac_ext <<_ACEOF
4550/* confdefs.h. */
4551_ACEOF
4552cat confdefs.h >>conftest.$ac_ext
4553cat >>conftest.$ac_ext <<_ACEOF
4554/* end confdefs.h. */
4555
4556/* Override any gcc2 internal prototype to avoid an error. */
4557#ifdef __cplusplus
4558extern "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. */
4562char inet_aton ();
4563int
4564main ()
4565{
4566inet_aton ();
4567 ;
4568 return 0;
4569}
4570_ACEOF
4571rm -f conftest.$ac_objext conftest$ac_exeext
4572if { (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"
4594else
4595 echo "$as_me: failed program was:" >&5
4596sed 's/^/| /' conftest.$ac_ext >&5
4597
4598fi
4599rm -f conftest.err conftest.$ac_objext \
4600 conftest$ac_exeext conftest.$ac_ext
4601if 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
4607cat confdefs.h >>conftest.$ac_ext
4608cat >>conftest.$ac_ext <<_ACEOF
4609/* end confdefs.h. */
4610
4611/* Override any gcc2 internal prototype to avoid an error. */
4612#ifdef __cplusplus
4613extern "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. */
4617char inet_aton ();
4618int
4619main ()
4620{
4621inet_aton ();
4622 ;
4623 return 0;
4624}
4625_ACEOF
4626rm -f conftest.$ac_objext conftest$ac_exeext
4627if { (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"
4649break
4650else
4651 echo "$as_me: failed program was:" >&5
4652sed 's/^/| /' conftest.$ac_ext >&5
4653
4654fi
4655rm -f conftest.err conftest.$ac_objext \
4656 conftest$ac_exeext conftest.$ac_ext
4657 done
4658fi
4659LIBS=$ac_func_search_save_LIBS
4660fi
4661echo "$as_me:$LINENO: result: $ac_cv_search_inet_aton" >&5
4662echo "${ECHO_T}$ac_cv_search_inet_aton" >&6
4663if 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
4666fi
4667
4668
4669# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4680 inttypes.h stdint.h unistd.h
4681do
4682as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4683echo "$as_me:$LINENO: checking for $ac_header" >&5
4684echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4685if eval "test \"\${$as_ac_Header+set}\" = set"; then
4686 echo $ECHO_N "(cached) $ECHO_C" >&6
4687else
4688 cat >conftest.$ac_ext <<_ACEOF
4689/* confdefs.h. */
4690_ACEOF
4691cat confdefs.h >>conftest.$ac_ext
4692cat >>conftest.$ac_ext <<_ACEOF
4693/* end confdefs.h. */
4694$ac_includes_default
4695
4696#include <$ac_header>
4697_ACEOF
4698rm -f conftest.$ac_objext
4699if { (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"
4721else
4722 echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725eval "$as_ac_Header=no"
4726fi
4727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4728fi
4729echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4730echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4731if 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
4736fi
4737
4738done
4739
4740
4741if test "${ac_cv_header_sys_select_h+set}" = set; then
4742 echo "$as_me:$LINENO: checking for sys/select.h" >&5
4743echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
4744if test "${ac_cv_header_sys_select_h+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746fi
4747echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
4748echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
4749else
4750 # Is the header compilable?
4751echo "$as_me:$LINENO: checking sys/select.h usability" >&5
4752echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
4753cat >conftest.$ac_ext <<_ACEOF
4754/* confdefs.h. */
4755_ACEOF
4756cat confdefs.h >>conftest.$ac_ext
4757cat >>conftest.$ac_ext <<_ACEOF
4758/* end confdefs.h. */
4759$ac_includes_default
4760#include <sys/select.h>
4761_ACEOF
4762rm -f conftest.$ac_objext
4763if { (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
4785else
4786 echo "$as_me: failed program was:" >&5
4787sed 's/^/| /' conftest.$ac_ext >&5
4788
4789ac_header_compiler=no
4790fi
4791rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4792echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4793echo "${ECHO_T}$ac_header_compiler" >&6
4794
4795# Is the header present?
4796echo "$as_me:$LINENO: checking sys/select.h presence" >&5
4797echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
4798cat >conftest.$ac_ext <<_ACEOF
4799/* confdefs.h. */
4800_ACEOF
4801cat confdefs.h >>conftest.$ac_ext
4802cat >>conftest.$ac_ext <<_ACEOF
4803/* end confdefs.h. */
4804#include <sys/select.h>
4805_ACEOF
4806if { (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
4820else
4821 ac_cpp_err=yes
4822fi
4823if test -z "$ac_cpp_err"; then
4824 ac_header_preproc=yes
4825else
4826 echo "$as_me: failed program was:" >&5
4827sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 ac_header_preproc=no
4830fi
4831rm -f conftest.err conftest.$ac_ext
4832echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4833echo "${ECHO_T}$ac_header_preproc" >&6
4834
4835# So? What about this header?
4836case $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
4839echo "$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
4841echo "$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
4846echo "$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
4848echo "$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
4850echo "$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
4852echo "$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
4854echo "$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
4856echo "$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 ;;
4866esac
4867echo "$as_me:$LINENO: checking for sys/select.h" >&5
4868echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
4869if test "${ac_cv_header_sys_select_h+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 ac_cv_header_sys_select_h=$ac_header_preproc
4873fi
4874echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
4875echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
4876
4877fi
4878if test $ac_cv_header_sys_select_h = yes; then
4879 cat >>confdefs.h <<\_ACEOF
4880#define HAVE_SYS_SELECT_H 1
4881_ACEOF
4882
4883fi
4884
4885
4886if test "${ac_cv_header_sys_modem_h+set}" = set; then
4887 echo "$as_me:$LINENO: checking for sys/modem.h" >&5
4888echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6
4889if test "${ac_cv_header_sys_modem_h+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4891fi
4892echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
4893echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6
4894else
4895 # Is the header compilable?
4896echo "$as_me:$LINENO: checking sys/modem.h usability" >&5
4897echo $ECHO_N "checking sys/modem.h usability... $ECHO_C" >&6
4898cat >conftest.$ac_ext <<_ACEOF
4899/* confdefs.h. */
4900_ACEOF
4901cat confdefs.h >>conftest.$ac_ext
4902cat >>conftest.$ac_ext <<_ACEOF
4903/* end confdefs.h. */
4904$ac_includes_default
4905#include <sys/modem.h>
4906_ACEOF
4907rm -f conftest.$ac_objext
4908if { (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
4930else
4931 echo "$as_me: failed program was:" >&5
4932sed 's/^/| /' conftest.$ac_ext >&5
4933
4934ac_header_compiler=no
4935fi
4936rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4937echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4938echo "${ECHO_T}$ac_header_compiler" >&6
4939
4940# Is the header present?
4941echo "$as_me:$LINENO: checking sys/modem.h presence" >&5
4942echo $ECHO_N "checking sys/modem.h presence... $ECHO_C" >&6
4943cat >conftest.$ac_ext <<_ACEOF
4944/* confdefs.h. */
4945_ACEOF
4946cat confdefs.h >>conftest.$ac_ext
4947cat >>conftest.$ac_ext <<_ACEOF
4948/* end confdefs.h. */
4949#include <sys/modem.h>
4950_ACEOF
4951if { (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
4965else
4966 ac_cpp_err=yes
4967fi
4968if test -z "$ac_cpp_err"; then
4969 ac_header_preproc=yes
4970else
4971 echo "$as_me: failed program was:" >&5
4972sed 's/^/| /' conftest.$ac_ext >&5
4973
4974 ac_header_preproc=no
4975fi
4976rm -f conftest.err conftest.$ac_ext
4977echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4978echo "${ECHO_T}$ac_header_preproc" >&6
4979
4980# So? What about this header?
4981case $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
4984echo "$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
4986echo "$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
4991echo "$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
4993echo "$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
4995echo "$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
4997echo "$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
4999echo "$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
5001echo "$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 ;;
5011esac
5012echo "$as_me:$LINENO: checking for sys/modem.h" >&5
5013echo $ECHO_N "checking for sys/modem.h... $ECHO_C" >&6
5014if test "${ac_cv_header_sys_modem_h+set}" = set; then
5015 echo $ECHO_N "(cached) $ECHO_C" >&6
5016else
5017 ac_cv_header_sys_modem_h=$ac_header_preproc
5018fi
5019echo "$as_me:$LINENO: result: $ac_cv_header_sys_modem_h" >&5
5020echo "${ECHO_T}$ac_cv_header_sys_modem_h" >&6
5021
5022fi
5023if test $ac_cv_header_sys_modem_h = yes; then
5024 cat >>confdefs.h <<\_ACEOF
5025#define HAVE_SYS_MODEM_H 1
5026_ACEOF
5027
5028fi
5029
5030
5031if test "${ac_cv_header_sys_filio_h+set}" = set; then
5032 echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5033echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
5034if test "${ac_cv_header_sys_filio_h+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036fi
5037echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5038echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
5039else
5040 # Is the header compilable?
5041echo "$as_me:$LINENO: checking sys/filio.h usability" >&5
5042echo $ECHO_N "checking sys/filio.h usability... $ECHO_C" >&6
5043cat >conftest.$ac_ext <<_ACEOF
5044/* confdefs.h. */
5045_ACEOF
5046cat confdefs.h >>conftest.$ac_ext
5047cat >>conftest.$ac_ext <<_ACEOF
5048/* end confdefs.h. */
5049$ac_includes_default
5050#include <sys/filio.h>
5051_ACEOF
5052rm -f conftest.$ac_objext
5053if { (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
5075else
5076 echo "$as_me: failed program was:" >&5
5077sed 's/^/| /' conftest.$ac_ext >&5
5078
5079ac_header_compiler=no
5080fi
5081rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5082echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5083echo "${ECHO_T}$ac_header_compiler" >&6
5084
5085# Is the header present?
5086echo "$as_me:$LINENO: checking sys/filio.h presence" >&5
5087echo $ECHO_N "checking sys/filio.h presence... $ECHO_C" >&6
5088cat >conftest.$ac_ext <<_ACEOF
5089/* confdefs.h. */
5090_ACEOF
5091cat confdefs.h >>conftest.$ac_ext
5092cat >>conftest.$ac_ext <<_ACEOF
5093/* end confdefs.h. */
5094#include <sys/filio.h>
5095_ACEOF
5096if { (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
5110else
5111 ac_cpp_err=yes
5112fi
5113if test -z "$ac_cpp_err"; then
5114 ac_header_preproc=yes
5115else
5116 echo "$as_me: failed program was:" >&5
5117sed 's/^/| /' conftest.$ac_ext >&5
5118
5119 ac_header_preproc=no
5120fi
5121rm -f conftest.err conftest.$ac_ext
5122echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5123echo "${ECHO_T}$ac_header_preproc" >&6
5124
5125# So? What about this header?
5126case $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
5129echo "$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
5131echo "$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
5136echo "$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
5138echo "$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
5140echo "$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
5142echo "$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
5144echo "$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
5146echo "$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 ;;
5156esac
5157echo "$as_me:$LINENO: checking for sys/filio.h" >&5
5158echo $ECHO_N "checking for sys/filio.h... $ECHO_C" >&6
5159if test "${ac_cv_header_sys_filio_h+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162 ac_cv_header_sys_filio_h=$ac_header_preproc
5163fi
5164echo "$as_me:$LINENO: result: $ac_cv_header_sys_filio_h" >&5
5165echo "${ECHO_T}$ac_cv_header_sys_filio_h" >&6
5166
5167fi
5168if test $ac_cv_header_sys_filio_h = yes; then
5169 cat >>confdefs.h <<\_ACEOF
5170#define HAVE_SYS_FILIO_H 1
5171_ACEOF
5172
5173fi
5174
5175
5176if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5177 echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5178echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6
5179if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5180 echo $ECHO_N "(cached) $ECHO_C" >&6
5181fi
5182echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5183echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6
5184else
5185 # Is the header compilable?
5186echo "$as_me:$LINENO: checking sys/strtio.h usability" >&5
5187echo $ECHO_N "checking sys/strtio.h usability... $ECHO_C" >&6
5188cat >conftest.$ac_ext <<_ACEOF
5189/* confdefs.h. */
5190_ACEOF
5191cat confdefs.h >>conftest.$ac_ext
5192cat >>conftest.$ac_ext <<_ACEOF
5193/* end confdefs.h. */
5194$ac_includes_default
5195#include <sys/strtio.h>
5196_ACEOF
5197rm -f conftest.$ac_objext
5198if { (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
5220else
5221 echo "$as_me: failed program was:" >&5
5222sed 's/^/| /' conftest.$ac_ext >&5
5223
5224ac_header_compiler=no
5225fi
5226rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5227echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5228echo "${ECHO_T}$ac_header_compiler" >&6
5229
5230# Is the header present?
5231echo "$as_me:$LINENO: checking sys/strtio.h presence" >&5
5232echo $ECHO_N "checking sys/strtio.h presence... $ECHO_C" >&6
5233cat >conftest.$ac_ext <<_ACEOF
5234/* confdefs.h. */
5235_ACEOF
5236cat confdefs.h >>conftest.$ac_ext
5237cat >>conftest.$ac_ext <<_ACEOF
5238/* end confdefs.h. */
5239#include <sys/strtio.h>
5240_ACEOF
5241if { (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
5255else
5256 ac_cpp_err=yes
5257fi
5258if test -z "$ac_cpp_err"; then
5259 ac_header_preproc=yes
5260else
5261 echo "$as_me: failed program was:" >&5
5262sed 's/^/| /' conftest.$ac_ext >&5
5263
5264 ac_header_preproc=no
5265fi
5266rm -f conftest.err conftest.$ac_ext
5267echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5268echo "${ECHO_T}$ac_header_preproc" >&6
5269
5270# So? What about this header?
5271case $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
5274echo "$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
5276echo "$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
5281echo "$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
5283echo "$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
5285echo "$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
5287echo "$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
5289echo "$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
5291echo "$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 ;;
5301esac
5302echo "$as_me:$LINENO: checking for sys/strtio.h" >&5
5303echo $ECHO_N "checking for sys/strtio.h... $ECHO_C" >&6
5304if test "${ac_cv_header_sys_strtio_h+set}" = set; then
5305 echo $ECHO_N "(cached) $ECHO_C" >&6
5306else
5307 ac_cv_header_sys_strtio_h=$ac_header_preproc
5308fi
5309echo "$as_me:$LINENO: result: $ac_cv_header_sys_strtio_h" >&5
5310echo "${ECHO_T}$ac_cv_header_sys_strtio_h" >&6
5311
5312fi
5313if test $ac_cv_header_sys_strtio_h = yes; then
5314 cat >>confdefs.h <<\_ACEOF
5315#define HAVE_SYS_STRTIO_H 1
5316_ACEOF
5317
5318fi
5319
5320
5321if test "${ac_cv_header_locale_h+set}" = set; then
5322 echo "$as_me:$LINENO: checking for locale.h" >&5
5323echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
5324if test "${ac_cv_header_locale_h+set}" = set; then
5325 echo $ECHO_N "(cached) $ECHO_C" >&6
5326fi
5327echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5328echo "${ECHO_T}$ac_cv_header_locale_h" >&6
5329else
5330 # Is the header compilable?
5331echo "$as_me:$LINENO: checking locale.h usability" >&5
5332echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6
5333cat >conftest.$ac_ext <<_ACEOF
5334/* confdefs.h. */
5335_ACEOF
5336cat confdefs.h >>conftest.$ac_ext
5337cat >>conftest.$ac_ext <<_ACEOF
5338/* end confdefs.h. */
5339$ac_includes_default
5340#include <locale.h>
5341_ACEOF
5342rm -f conftest.$ac_objext
5343if { (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
5365else
5366 echo "$as_me: failed program was:" >&5
5367sed 's/^/| /' conftest.$ac_ext >&5
5368
5369ac_header_compiler=no
5370fi
5371rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5372echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5373echo "${ECHO_T}$ac_header_compiler" >&6
5374
5375# Is the header present?
5376echo "$as_me:$LINENO: checking locale.h presence" >&5
5377echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6
5378cat >conftest.$ac_ext <<_ACEOF
5379/* confdefs.h. */
5380_ACEOF
5381cat confdefs.h >>conftest.$ac_ext
5382cat >>conftest.$ac_ext <<_ACEOF
5383/* end confdefs.h. */
5384#include <locale.h>
5385_ACEOF
5386if { (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
5400else
5401 ac_cpp_err=yes
5402fi
5403if test -z "$ac_cpp_err"; then
5404 ac_header_preproc=yes
5405else
5406 echo "$as_me: failed program was:" >&5
5407sed 's/^/| /' conftest.$ac_ext >&5
5408
5409 ac_header_preproc=no
5410fi
5411rm -f conftest.err conftest.$ac_ext
5412echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5413echo "${ECHO_T}$ac_header_preproc" >&6
5414
5415# So? What about this header?
5416case $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
5419echo "$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
5421echo "$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
5426echo "$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
5428echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
5429 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
5430echo "$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
5432echo "$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
5434echo "$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
5436echo "$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 ;;
5446esac
5447echo "$as_me:$LINENO: checking for locale.h" >&5
5448echo $ECHO_N "checking for locale.h... $ECHO_C" >&6
5449if test "${ac_cv_header_locale_h+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5451else
5452 ac_cv_header_locale_h=$ac_header_preproc
5453fi
5454echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
5455echo "${ECHO_T}$ac_cv_header_locale_h" >&6
5456
5457fi
5458if test $ac_cv_header_locale_h = yes; then
5459 cat >>confdefs.h <<\_ACEOF
5460#define HAVE_LOCALE_H 1
5461_ACEOF
5462
5463fi
5464
5465
5466if test "${ac_cv_header_langinfo_h+set}" = set; then
5467 echo "$as_me:$LINENO: checking for langinfo.h" >&5
5468echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
5469if test "${ac_cv_header_langinfo_h+set}" = set; then
5470 echo $ECHO_N "(cached) $ECHO_C" >&6
5471fi
5472echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
5473echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
5474else
5475 # Is the header compilable?
5476echo "$as_me:$LINENO: checking langinfo.h usability" >&5
5477echo $ECHO_N "checking langinfo.h usability... $ECHO_C" >&6
5478cat >conftest.$ac_ext <<_ACEOF
5479/* confdefs.h. */
5480_ACEOF
5481cat confdefs.h >>conftest.$ac_ext
5482cat >>conftest.$ac_ext <<_ACEOF
5483/* end confdefs.h. */
5484$ac_includes_default
5485#include <langinfo.h>
5486_ACEOF
5487rm -f conftest.$ac_objext
5488if { (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
5510else
5511 echo "$as_me: failed program was:" >&5
5512sed 's/^/| /' conftest.$ac_ext >&5
5513
5514ac_header_compiler=no
5515fi
5516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5517echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5518echo "${ECHO_T}$ac_header_compiler" >&6
5519
5520# Is the header present?
5521echo "$as_me:$LINENO: checking langinfo.h presence" >&5
5522echo $ECHO_N "checking langinfo.h presence... $ECHO_C" >&6
5523cat >conftest.$ac_ext <<_ACEOF
5524/* confdefs.h. */
5525_ACEOF
5526cat confdefs.h >>conftest.$ac_ext
5527cat >>conftest.$ac_ext <<_ACEOF
5528/* end confdefs.h. */
5529#include <langinfo.h>
5530_ACEOF
5531if { (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
5545else
5546 ac_cpp_err=yes
5547fi
5548if test -z "$ac_cpp_err"; then
5549 ac_header_preproc=yes
5550else
5551 echo "$as_me: failed program was:" >&5
5552sed 's/^/| /' conftest.$ac_ext >&5
5553
5554 ac_header_preproc=no
5555fi
5556rm -f conftest.err conftest.$ac_ext
5557echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5558echo "${ECHO_T}$ac_header_preproc" >&6
5559
5560# So? What about this header?
5561case $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
5564echo "$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
5566echo "$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
5571echo "$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
5573echo "$as_me: WARNING: langinfo.h: check for missing prerequisite headers?" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: langinfo.h: see the Autoconf documentation" >&5
5575echo "$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
5577echo "$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
5579echo "$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
5581echo "$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 ;;
5591esac
5592echo "$as_me:$LINENO: checking for langinfo.h" >&5
5593echo $ECHO_N "checking for langinfo.h... $ECHO_C" >&6
5594if test "${ac_cv_header_langinfo_h+set}" = set; then
5595 echo $ECHO_N "(cached) $ECHO_C" >&6
5596else
5597 ac_cv_header_langinfo_h=$ac_header_preproc
5598fi
5599echo "$as_me:$LINENO: result: $ac_cv_header_langinfo_h" >&5
5600echo "${ECHO_T}$ac_cv_header_langinfo_h" >&6
5601
5602fi
5603if test $ac_cv_header_langinfo_h = yes; then
5604 cat >>confdefs.h <<\_ACEOF
5605#define HAVE_LANGINFO_H 1
5606_ACEOF
5607
5608fi
5609
5610
5611
5612if 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.
5614set dummy ${ac_tool_prefix}strip; ac_word=$2
5615echo "$as_me:$LINENO: checking for $ac_word" >&5
5616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5617if test "${ac_cv_prog_STRIP+set}" = set; then
5618 echo $ECHO_N "(cached) $ECHO_C" >&6
5619else
5620 if test -n "$STRIP"; then
5621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5622else
5623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624for as_dir in $PATH
5625do
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
5634done
5635done
5636
5637fi
5638fi
5639STRIP=$ac_cv_prog_STRIP
5640if test -n "$STRIP"; then
5641 echo "$as_me:$LINENO: result: $STRIP" >&5
5642echo "${ECHO_T}$STRIP" >&6
5643else
5644 echo "$as_me:$LINENO: result: no" >&5
5645echo "${ECHO_T}no" >&6
5646fi
5647
5648fi
5649if 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.
5652set dummy strip; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5656 echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658 if test -n "$ac_ct_STRIP"; then
5659 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
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
5672done
5673done
5674
5675 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5676fi
5677fi
5678ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5679if test -n "$ac_ct_STRIP"; then
5680 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5681echo "${ECHO_T}$ac_ct_STRIP" >&6
5682else
5683 echo "$as_me:$LINENO: result: no" >&5
5684echo "${ECHO_T}no" >&6
5685fi
5686
5687 STRIP=$ac_ct_STRIP
5688else
5689 STRIP="$ac_cv_prog_STRIP"
5690fi
5691
5692
5693rpath=""
5694
5695#
5696# OpenSSL detection borrowed from stunnel
5697#
5698checkssldir() { :
5699 if test -f "$1/include/openssl/ssl.h"; then
5700 ssldir="$1"
5701 return 0
5702 fi
5703 return 1
5704}
5705echo "$as_me:$LINENO: checking for OpenSSL directory" >&5
5706echo $ECHO_N "checking for OpenSSL directory... $ECHO_C" >&6
5707
5708# Check whether --with-openssl or --without-openssl was given.
5709if test "${with_openssl+set}" = set; then
5710 withval="$with_openssl"
5711
5712 checkssldir "$withval"
5713
5714else
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
5723fi;
5724if test -z "$ssldir"; then
5725 echo "$as_me:$LINENO: result: Not found" >&5
5726echo "${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
5732fi
5733echo "$as_me:$LINENO: result: $ssldir" >&5
5734echo "${ECHO_T}$ssldir" >&6
5735
5736cat >>confdefs.h <<_ACEOF
5737#define ssldir "$ssldir"
5738_ACEOF
5739
5740
5741CFLAGS="$CFLAGS -I$ssldir/include"
5742# Check whether --enable-static-openssl or --disable-static-openssl was given.
5743if test "${enable_static_openssl+set}" = set; then
5744 enableval="$enable_static_openssl"
5745
5746LIBS="$LIBS $ssldir/lib/libcrypto.a"
5747
5748else
5749
5750LIBS="$LIBS -L$ssldir/lib -lcrypto"
5751rpath="$rpath:$ssldir/lib"
5752
5753fi;
5754
5755
5756#
5757# Alignment
5758#
5759echo "$as_me:$LINENO: checking if architecture needs alignment" >&5
5760echo $ECHO_N "checking if architecture needs alignment... $ECHO_C" >&6
5761if test "$cross_compiling" = yes; then
5762 echo "$as_me:$LINENO: result: assuming yes" >&5
5763echo "${ECHO_T}assuming yes" >&6
5764 cat >>confdefs.h <<\_ACEOF
5765#define NEED_ALIGN 1
5766_ACEOF
5767
5768else
5769 cat >conftest.$ac_ext <<_ACEOF
5770/* confdefs.h. */
5771_ACEOF
5772cat confdefs.h >>conftest.$ac_ext
5773cat >>conftest.$ac_ext <<_ACEOF
5774/* end confdefs.h. */
5775
5776#include <stdlib.h>
5777#include <signal.h>
5778int 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
5790rm -f conftest$ac_exeext
5791if { (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
5802echo "${ECHO_T}no" >&6
5803else
5804 echo "$as_me: program exited with status $ac_status" >&5
5805echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808( exit $ac_status )
5809echo "$as_me:$LINENO: result: yes" >&5
5810echo "${ECHO_T}yes" >&6
5811 cat >>confdefs.h <<\_ACEOF
5812#define NEED_ALIGN 1
5813_ACEOF
5814
5815fi
5816rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5817fi
5818
5819#
5820# linux/compiler.h
5821#
5822echo "$as_me:$LINENO: checking if linux/compiler.h is required" >&5
5823echo $ECHO_N "checking if linux/compiler.h is required... $ECHO_C" >&6
5824cat >conftest.$ac_ext <<_ACEOF
5825/* confdefs.h. */
5826_ACEOF
5827cat confdefs.h >>conftest.$ac_ext
5828cat >>conftest.$ac_ext <<_ACEOF
5829/* end confdefs.h. */
5830
5831#include <linux/compiler.h>
5832
5833int
5834main ()
5835{
5836
5837 ;
5838 return 0;
5839}
5840_ACEOF
5841rm -f conftest.$ac_objext
5842if { (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
5864echo "${ECHO_T}yes" >&6
5865else
5866 echo "$as_me: failed program was:" >&5
5867sed 's/^/| /' conftest.$ac_ext >&5
5868
5869echo "$as_me:$LINENO: result: no" >&5
5870echo "${ECHO_T}no" >&6
5871 cat >>confdefs.h <<\_ACEOF
5872#define VBOX_WITHOUT_LINUX_COMPILER_H 1
5873_ACEOF
5874
5875fi
5876rm -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.
5884if test "${with_egd_socket+set}" = set; then
5885 withval="$with_egd_socket"
5886 EGD_SOCKET="$withval"
5887else
5888 EGD_SOCKET="/var/run/egd-pool"
5889
5890fi;
5891cat >>confdefs.h <<_ACEOF
5892#define EGD_SOCKET "$EGD_SOCKET"
5893_ACEOF
5894
5895
5896
5897#
5898# rdp2vnc
5899#
5900vncserverconfig=libvncserver-config
5901
5902# Check whether --with-libvncserver-config or --without-libvncserver-config was given.
5903if test "${with_libvncserver_config+set}" = set; then
5904 withval="$with_libvncserver_config"
5905 vncserverconfig="$withval"
5906
5907fi;
5908
5909# Check whether --with-libvncserver or --without-libvncserver was given.
5910if 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
5923fi;
5924
5925#
5926# sound
5927#
5928
5929# Check whether --with-libao or --without-libao was given.
5930if 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
5939fi;
5940
5941sound="yes"
5942
5943# Check whether --with-sound or --without-sound was given.
5944if test "${with_sound+set}" = set; then
5945 withval="$with_sound"
5946
5947 sound="$withval"
5948
5949fi;
5950if 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
5953echo $ECHO_N "checking for ao/ao.h... $ECHO_C" >&6
5954if test "${ac_cv_header_ao_ao_h+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5956fi
5957echo "$as_me:$LINENO: result: $ac_cv_header_ao_ao_h" >&5
5958echo "${ECHO_T}$ac_cv_header_ao_ao_h" >&6
5959else
5960 # Is the header compilable?
5961echo "$as_me:$LINENO: checking ao/ao.h usability" >&5
5962echo $ECHO_N "checking ao/ao.h usability... $ECHO_C" >&6
5963cat >conftest.$ac_ext <<_ACEOF
5964/* confdefs.h. */
5965_ACEOF
5966cat confdefs.h >>conftest.$ac_ext
5967cat >>conftest.$ac_ext <<_ACEOF
5968/* end confdefs.h. */
5969$ac_includes_default
5970#include <ao/ao.h>
5971_ACEOF
5972rm -f conftest.$ac_objext
5973if { (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
5995else
5996 echo "$as_me: failed program was:" >&5
5997sed 's/^/| /' conftest.$ac_ext >&5
5998
5999ac_header_compiler=no
6000fi
6001rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6002echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6003echo "${ECHO_T}$ac_header_compiler" >&6
6004
6005# Is the header present?
6006echo "$as_me:$LINENO: checking ao/ao.h presence" >&5
6007echo $ECHO_N "checking ao/ao.h presence... $ECHO_C" >&6
6008cat >conftest.$ac_ext <<_ACEOF
6009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
6014#include <ao/ao.h>
6015_ACEOF
6016if { (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
6030else
6031 ac_cpp_err=yes
6032fi
6033if test -z "$ac_cpp_err"; then
6034 ac_header_preproc=yes
6035else
6036 echo "$as_me: failed program was:" >&5
6037sed 's/^/| /' conftest.$ac_ext >&5
6038
6039 ac_header_preproc=no
6040fi
6041rm -f conftest.err conftest.$ac_ext
6042echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6043echo "${ECHO_T}$ac_header_preproc" >&6
6044
6045# So? What about this header?
6046case $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
6049echo "$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
6051echo "$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
6056echo "$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
6058echo "$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
6060echo "$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
6062echo "$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
6064echo "$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
6066echo "$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 ;;
6076esac
6077echo "$as_me:$LINENO: checking for ao/ao.h" >&5
6078echo $ECHO_N "checking for ao/ao.h... $ECHO_C" >&6
6079if test "${ac_cv_header_ao_ao_h+set}" = set; then
6080 echo $ECHO_N "(cached) $ECHO_C" >&6
6081else
6082 ac_cv_header_ao_ao_h=$ac_header_preproc
6083fi
6084echo "$as_me:$LINENO: result: $ac_cv_header_ao_ao_h" >&5
6085echo "${ECHO_T}$ac_cv_header_ao_ao_h" >&6
6086
6087fi
6088if test $ac_cv_header_ao_ao_h = yes; then
6089 sound=libao
6090fi
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
6095echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
6096if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098fi
6099echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6100echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
6101else
6102 # Is the header compilable?
6103echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
6104echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
6105cat >conftest.$ac_ext <<_ACEOF
6106/* confdefs.h. */
6107_ACEOF
6108cat confdefs.h >>conftest.$ac_ext
6109cat >>conftest.$ac_ext <<_ACEOF
6110/* end confdefs.h. */
6111$ac_includes_default
6112#include <sys/soundcard.h>
6113_ACEOF
6114rm -f conftest.$ac_objext
6115if { (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
6137else
6138 echo "$as_me: failed program was:" >&5
6139sed 's/^/| /' conftest.$ac_ext >&5
6140
6141ac_header_compiler=no
6142fi
6143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6144echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6145echo "${ECHO_T}$ac_header_compiler" >&6
6146
6147# Is the header present?
6148echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
6149echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
6150cat >conftest.$ac_ext <<_ACEOF
6151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
6156#include <sys/soundcard.h>
6157_ACEOF
6158if { (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
6172else
6173 ac_cpp_err=yes
6174fi
6175if test -z "$ac_cpp_err"; then
6176 ac_header_preproc=yes
6177else
6178 echo "$as_me: failed program was:" >&5
6179sed 's/^/| /' conftest.$ac_ext >&5
6180
6181 ac_header_preproc=no
6182fi
6183rm -f conftest.err conftest.$ac_ext
6184echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6185echo "${ECHO_T}$ac_header_preproc" >&6
6186
6187# So? What about this header?
6188case $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
6191echo "$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
6193echo "$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
6198echo "$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
6200echo "$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
6202echo "$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
6204echo "$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
6206echo "$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
6208echo "$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 ;;
6218esac
6219echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
6220echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
6221if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223else
6224 ac_cv_header_sys_soundcard_h=$ac_header_preproc
6225fi
6226echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
6227echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
6228
6229fi
6230if test $ac_cv_header_sys_soundcard_h = yes; then
6231 sound=oss
6232fi
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
6237echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6
6238if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6240fi
6241echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
6242echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6
6243else
6244 # Is the header compilable?
6245echo "$as_me:$LINENO: checking dmedia/audio.h usability" >&5
6246echo $ECHO_N "checking dmedia/audio.h usability... $ECHO_C" >&6
6247cat >conftest.$ac_ext <<_ACEOF
6248/* confdefs.h. */
6249_ACEOF
6250cat confdefs.h >>conftest.$ac_ext
6251cat >>conftest.$ac_ext <<_ACEOF
6252/* end confdefs.h. */
6253$ac_includes_default
6254#include <dmedia/audio.h>
6255_ACEOF
6256rm -f conftest.$ac_objext
6257if { (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
6279else
6280 echo "$as_me: failed program was:" >&5
6281sed 's/^/| /' conftest.$ac_ext >&5
6282
6283ac_header_compiler=no
6284fi
6285rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6286echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6287echo "${ECHO_T}$ac_header_compiler" >&6
6288
6289# Is the header present?
6290echo "$as_me:$LINENO: checking dmedia/audio.h presence" >&5
6291echo $ECHO_N "checking dmedia/audio.h presence... $ECHO_C" >&6
6292cat >conftest.$ac_ext <<_ACEOF
6293/* confdefs.h. */
6294_ACEOF
6295cat confdefs.h >>conftest.$ac_ext
6296cat >>conftest.$ac_ext <<_ACEOF
6297/* end confdefs.h. */
6298#include <dmedia/audio.h>
6299_ACEOF
6300if { (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
6314else
6315 ac_cpp_err=yes
6316fi
6317if test -z "$ac_cpp_err"; then
6318 ac_header_preproc=yes
6319else
6320 echo "$as_me: failed program was:" >&5
6321sed 's/^/| /' conftest.$ac_ext >&5
6322
6323 ac_header_preproc=no
6324fi
6325rm -f conftest.err conftest.$ac_ext
6326echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6327echo "${ECHO_T}$ac_header_preproc" >&6
6328
6329# So? What about this header?
6330case $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
6333echo "$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
6335echo "$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
6340echo "$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
6342echo "$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
6344echo "$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
6346echo "$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
6348echo "$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
6350echo "$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 ;;
6360esac
6361echo "$as_me:$LINENO: checking for dmedia/audio.h" >&5
6362echo $ECHO_N "checking for dmedia/audio.h... $ECHO_C" >&6
6363if test "${ac_cv_header_dmedia_audio_h+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6365else
6366 ac_cv_header_dmedia_audio_h=$ac_header_preproc
6367fi
6368echo "$as_me:$LINENO: result: $ac_cv_header_dmedia_audio_h" >&5
6369echo "${ECHO_T}$ac_cv_header_dmedia_audio_h" >&6
6370
6371fi
6372if test $ac_cv_header_dmedia_audio_h = yes; then
6373 sound=sgi
6374fi
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
6379echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6
6380if test "${ac_cv_header_sys_audioio_h+set}" = set; then
6381 echo $ECHO_N "(cached) $ECHO_C" >&6
6382fi
6383echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
6384echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6
6385else
6386 # Is the header compilable?
6387echo "$as_me:$LINENO: checking sys/audioio.h usability" >&5
6388echo $ECHO_N "checking sys/audioio.h usability... $ECHO_C" >&6
6389cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */
6395$ac_includes_default
6396#include <sys/audioio.h>
6397_ACEOF
6398rm -f conftest.$ac_objext
6399if { (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
6421else
6422 echo "$as_me: failed program was:" >&5
6423sed 's/^/| /' conftest.$ac_ext >&5
6424
6425ac_header_compiler=no
6426fi
6427rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6428echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6429echo "${ECHO_T}$ac_header_compiler" >&6
6430
6431# Is the header present?
6432echo "$as_me:$LINENO: checking sys/audioio.h presence" >&5
6433echo $ECHO_N "checking sys/audioio.h presence... $ECHO_C" >&6
6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
6439/* end confdefs.h. */
6440#include <sys/audioio.h>
6441_ACEOF
6442if { (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
6456else
6457 ac_cpp_err=yes
6458fi
6459if test -z "$ac_cpp_err"; then
6460 ac_header_preproc=yes
6461else
6462 echo "$as_me: failed program was:" >&5
6463sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 ac_header_preproc=no
6466fi
6467rm -f conftest.err conftest.$ac_ext
6468echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6469echo "${ECHO_T}$ac_header_preproc" >&6
6470
6471# So? What about this header?
6472case $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
6475echo "$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
6477echo "$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
6482echo "$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
6484echo "$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
6486echo "$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
6488echo "$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
6490echo "$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
6492echo "$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 ;;
6502esac
6503echo "$as_me:$LINENO: checking for sys/audioio.h" >&5
6504echo $ECHO_N "checking for sys/audioio.h... $ECHO_C" >&6
6505if test "${ac_cv_header_sys_audioio_h+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6507else
6508 ac_cv_header_sys_audioio_h=$ac_header_preproc
6509fi
6510echo "$as_me:$LINENO: result: $ac_cv_header_sys_audioio_h" >&5
6511echo "${ECHO_T}$ac_cv_header_sys_audioio_h" >&6
6512
6513fi
6514if test $ac_cv_header_sys_audioio_h = yes; then
6515 sound=sun
6516fi
6517
6518
6519fi
6520if test "$sound" = no; then
6521 break
6522elif test "$sound" = oss; then
6523 SOUNDOBJ="rdpsnd.o rdpsnd_oss.o"
6524 cat >>confdefs.h <<\_ACEOF
6525#define WITH_RDPSND 1
6526_ACEOF
6527
6528elif 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
6535elif test "$sound" = sun; then
6536 SOUNDOBJ="rdpsnd.o rdpsnd_sun.o"
6537 cat >>confdefs.h <<\_ACEOF
6538#define WITH_RDPSND 1
6539_ACEOF
6540
6541elif 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
6548else
6549 { echo "$as_me:$LINENO: WARNING: sound support disabled" >&5
6550echo "$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
6552echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun) and libao" >&2;}
6553fi
6554
6555
6556#
6557# dirfd
6558#
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569ac_header_dirent=no
6570for 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`
6572echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6573echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
6574if eval "test \"\${$as_ac_Header+set}\" = set"; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576else
6577 cat >conftest.$ac_ext <<_ACEOF
6578/* confdefs.h. */
6579_ACEOF
6580cat confdefs.h >>conftest.$ac_ext
6581cat >>conftest.$ac_ext <<_ACEOF
6582/* end confdefs.h. */
6583#include <sys/types.h>
6584#include <$ac_hdr>
6585
6586int
6587main ()
6588{
6589if ((DIR *) 0)
6590return 0;
6591 ;
6592 return 0;
6593}
6594_ACEOF
6595rm -f conftest.$ac_objext
6596if { (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"
6618else
6619 echo "$as_me: failed program was:" >&5
6620sed 's/^/| /' conftest.$ac_ext >&5
6621
6622eval "$as_ac_Header=no"
6623fi
6624rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6625fi
6626echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6627echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6628if 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
6633ac_header_dirent=$ac_hdr; break
6634fi
6635
6636done
6637# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6638if test $ac_header_dirent = dirent.h; then
6639 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6640echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6641if test "${ac_cv_search_opendir+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6643else
6644 ac_func_search_save_LIBS=$LIBS
6645ac_cv_search_opendir=no
6646cat >conftest.$ac_ext <<_ACEOF
6647/* confdefs.h. */
6648_ACEOF
6649cat confdefs.h >>conftest.$ac_ext
6650cat >>conftest.$ac_ext <<_ACEOF
6651/* end confdefs.h. */
6652
6653/* Override any gcc2 internal prototype to avoid an error. */
6654#ifdef __cplusplus
6655extern "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. */
6659char opendir ();
6660int
6661main ()
6662{
6663opendir ();
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668rm -f conftest.$ac_objext conftest$ac_exeext
6669if { (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"
6691else
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
6695fi
6696rm -f conftest.err conftest.$ac_objext \
6697 conftest$ac_exeext conftest.$ac_ext
6698if 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
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707
6708/* Override any gcc2 internal prototype to avoid an error. */
6709#ifdef __cplusplus
6710extern "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. */
6714char opendir ();
6715int
6716main ()
6717{
6718opendir ();
6719 ;
6720 return 0;
6721}
6722_ACEOF
6723rm -f conftest.$ac_objext conftest$ac_exeext
6724if { (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"
6746break
6747else
6748 echo "$as_me: failed program was:" >&5
6749sed 's/^/| /' conftest.$ac_ext >&5
6750
6751fi
6752rm -f conftest.err conftest.$ac_objext \
6753 conftest$ac_exeext conftest.$ac_ext
6754 done
6755fi
6756LIBS=$ac_func_search_save_LIBS
6757fi
6758echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6759echo "${ECHO_T}$ac_cv_search_opendir" >&6
6760if test "$ac_cv_search_opendir" != no; then
6761 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6762
6763fi
6764
6765else
6766 echo "$as_me:$LINENO: checking for library containing opendir" >&5
6767echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
6768if test "${ac_cv_search_opendir+set}" = set; then
6769 echo $ECHO_N "(cached) $ECHO_C" >&6
6770else
6771 ac_func_search_save_LIBS=$LIBS
6772ac_cv_search_opendir=no
6773cat >conftest.$ac_ext <<_ACEOF
6774/* confdefs.h. */
6775_ACEOF
6776cat confdefs.h >>conftest.$ac_ext
6777cat >>conftest.$ac_ext <<_ACEOF
6778/* end confdefs.h. */
6779
6780/* Override any gcc2 internal prototype to avoid an error. */
6781#ifdef __cplusplus
6782extern "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. */
6786char opendir ();
6787int
6788main ()
6789{
6790opendir ();
6791 ;
6792 return 0;
6793}
6794_ACEOF
6795rm -f conftest.$ac_objext conftest$ac_exeext
6796if { (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"
6818else
6819 echo "$as_me: failed program was:" >&5
6820sed 's/^/| /' conftest.$ac_ext >&5
6821
6822fi
6823rm -f conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
6825if 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
6831cat confdefs.h >>conftest.$ac_ext
6832cat >>conftest.$ac_ext <<_ACEOF
6833/* end confdefs.h. */
6834
6835/* Override any gcc2 internal prototype to avoid an error. */
6836#ifdef __cplusplus
6837extern "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. */
6841char opendir ();
6842int
6843main ()
6844{
6845opendir ();
6846 ;
6847 return 0;
6848}
6849_ACEOF
6850rm -f conftest.$ac_objext conftest$ac_exeext
6851if { (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"
6873break
6874else
6875 echo "$as_me: failed program was:" >&5
6876sed 's/^/| /' conftest.$ac_ext >&5
6877
6878fi
6879rm -f conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 done
6882fi
6883LIBS=$ac_func_search_save_LIBS
6884fi
6885echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6886echo "${ECHO_T}$ac_cv_search_opendir" >&6
6887if test "$ac_cv_search_opendir" != no; then
6888 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
6889
6890fi
6891
6892fi
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
6911for ac_func in dirfd
6912do
6913as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
6914echo "$as_me:$LINENO: checking for $ac_func" >&5
6915echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6916if eval "test \"\${$as_ac_var+set}\" = set"; then
6917 echo $ECHO_N "(cached) $ECHO_C" >&6
6918else
6919 cat >conftest.$ac_ext <<_ACEOF
6920/* confdefs.h. */
6921_ACEOF
6922cat confdefs.h >>conftest.$ac_ext
6923cat >>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
6944extern "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. */
6949char $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)
6954choke me
6955#else
6956char (*f) () = $ac_func;
6957#endif
6958#ifdef __cplusplus
6959}
6960#endif
6961
6962int
6963main ()
6964{
6965return f != $ac_func;
6966 ;
6967 return 0;
6968}
6969_ACEOF
6970rm -f conftest.$ac_objext conftest$ac_exeext
6971if { (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"
6993else
6994 echo "$as_me: failed program was:" >&5
6995sed 's/^/| /' conftest.$ac_ext >&5
6996
6997eval "$as_ac_var=no"
6998fi
6999rm -f conftest.err conftest.$ac_objext \
7000 conftest$ac_exeext conftest.$ac_ext
7001fi
7002echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7003echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7004if 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
7009fi
7010done
7011
7012 echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
7013echo $ECHO_N "checking whether dirfd is declared... $ECHO_C" >&6
7014if test "${ac_cv_have_decl_dirfd+set}" = set; then
7015 echo $ECHO_N "(cached) $ECHO_C" >&6
7016else
7017 cat >conftest.$ac_ext <<_ACEOF
7018/* confdefs.h. */
7019_ACEOF
7020cat confdefs.h >>conftest.$ac_ext
7021cat >>conftest.$ac_ext <<_ACEOF
7022/* end confdefs.h. */
7023$dirfd_headers
7024
7025int
7026main ()
7027{
7028#ifndef dirfd
7029 char *p = (char *) dirfd;
7030#endif
7031
7032 ;
7033 return 0;
7034}
7035_ACEOF
7036rm -f conftest.$ac_objext
7037if { (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
7059else
7060 echo "$as_me: failed program was:" >&5
7061sed 's/^/| /' conftest.$ac_ext >&5
7062
7063ac_cv_have_decl_dirfd=no
7064fi
7065rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7066fi
7067echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
7068echo "${ECHO_T}$ac_cv_have_decl_dirfd" >&6
7069if test $ac_cv_have_decl_dirfd = yes; then
7070
7071cat >>confdefs.h <<_ACEOF
7072#define HAVE_DECL_DIRFD 1
7073_ACEOF
7074
7075
7076else
7077 cat >>confdefs.h <<_ACEOF
7078#define HAVE_DECL_DIRFD 0
7079_ACEOF
7080
7081
7082fi
7083
7084
7085
7086 echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
7087echo $ECHO_N "checking whether dirfd is a macro... $ECHO_C" >&6
7088if test "${jm_cv_func_dirfd_macro+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7090else
7091 cat >conftest.$ac_ext <<_ACEOF
7092/* confdefs.h. */
7093_ACEOF
7094cat confdefs.h >>conftest.$ac_ext
7095cat >>conftest.$ac_ext <<_ACEOF
7096/* end confdefs.h. */
7097$dirfd_headers
7098#ifdef dirfd
7099 dirent_header_defines_dirfd
7100#endif
7101_ACEOF
7102if (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
7105else
7106 jm_cv_func_dirfd_macro=no
7107fi
7108rm -f conftest*
7109
7110fi
7111echo "$as_me:$LINENO: result: $jm_cv_func_dirfd_macro" >&5
7112echo "${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
7119for ac_func in dirfd
7120do
7121as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7122echo "$as_me:$LINENO: checking for $ac_func" >&5
7123echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7124if eval "test \"\${$as_ac_var+set}\" = set"; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7126else
7127 cat >conftest.$ac_ext <<_ACEOF
7128/* confdefs.h. */
7129_ACEOF
7130cat confdefs.h >>conftest.$ac_ext
7131cat >>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
7152extern "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. */
7157char $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)
7162choke me
7163#else
7164char (*f) () = $ac_func;
7165#endif
7166#ifdef __cplusplus
7167}
7168#endif
7169
7170int
7171main ()
7172{
7173return f != $ac_func;
7174 ;
7175 return 0;
7176}
7177_ACEOF
7178rm -f conftest.$ac_objext conftest$ac_exeext
7179if { (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"
7201else
7202 echo "$as_me: failed program was:" >&5
7203sed 's/^/| /' conftest.$ac_ext >&5
7204
7205eval "$as_ac_var=no"
7206fi
7207rm -f conftest.err conftest.$ac_objext \
7208 conftest$ac_exeext conftest.$ac_ext
7209fi
7210echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
7211echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7212if 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
7217else
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" ;;
7224esac
7225
7226fi
7227done
7228
7229
7230 echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
7231echo $ECHO_N "checking how to get the file descriptor associated with an open DIR*... $ECHO_C" >&6
7232if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234else
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
7243cat confdefs.h >>conftest.$ac_ext
7244cat >>conftest.$ac_ext <<_ACEOF
7245/* end confdefs.h. */
7246$dirfd_headers
7247
7248int
7249main ()
7250{
7251DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
7252 ;
7253 return 0;
7254}
7255_ACEOF
7256rm -f conftest.$ac_objext
7257if { (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
7280else
7281 echo "$as_me: failed program was:" >&5
7282sed 's/^/| /' conftest.$ac_ext >&5
7283
7284fi
7285rm -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
7294fi
7295echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
7296echo "${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
7299cat >>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.
7320if 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
7328fi;
7329 if test "${ac_cv_header_iconv_h+set}" = set; then
7330 echo "$as_me:$LINENO: checking for iconv.h" >&5
7331echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
7332if test "${ac_cv_header_iconv_h+set}" = set; then
7333 echo $ECHO_N "(cached) $ECHO_C" >&6
7334fi
7335echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
7336echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
7337else
7338 # Is the header compilable?
7339echo "$as_me:$LINENO: checking iconv.h usability" >&5
7340echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
7341cat >conftest.$ac_ext <<_ACEOF
7342/* confdefs.h. */
7343_ACEOF
7344cat confdefs.h >>conftest.$ac_ext
7345cat >>conftest.$ac_ext <<_ACEOF
7346/* end confdefs.h. */
7347$ac_includes_default
7348#include <iconv.h>
7349_ACEOF
7350rm -f conftest.$ac_objext
7351if { (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
7373else
7374 echo "$as_me: failed program was:" >&5
7375sed 's/^/| /' conftest.$ac_ext >&5
7376
7377ac_header_compiler=no
7378fi
7379rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7380echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7381echo "${ECHO_T}$ac_header_compiler" >&6
7382
7383# Is the header present?
7384echo "$as_me:$LINENO: checking iconv.h presence" >&5
7385echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
7386cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
7391/* end confdefs.h. */
7392#include <iconv.h>
7393_ACEOF
7394if { (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
7408else
7409 ac_cpp_err=yes
7410fi
7411if test -z "$ac_cpp_err"; then
7412 ac_header_preproc=yes
7413else
7414 echo "$as_me: failed program was:" >&5
7415sed 's/^/| /' conftest.$ac_ext >&5
7416
7417 ac_header_preproc=no
7418fi
7419rm -f conftest.err conftest.$ac_ext
7420echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7421echo "${ECHO_T}$ac_header_preproc" >&6
7422
7423# So? What about this header?
7424case $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
7427echo "$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
7429echo "$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
7434echo "$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
7436echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
7437 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
7438echo "$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
7440echo "$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
7442echo "$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
7444echo "$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 ;;
7454esac
7455echo "$as_me:$LINENO: checking for iconv.h" >&5
7456echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
7457if test "${ac_cv_header_iconv_h+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7459else
7460 ac_cv_header_iconv_h=$ac_header_preproc
7461fi
7462echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
7463echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
7464
7465fi
7466if test $ac_cv_header_iconv_h = yes; then
7467 cat >>confdefs.h <<\_ACEOF
7468#define HAVE_ICONV_H 1
7469_ACEOF
7470
7471fi
7472
7473
7474
7475 echo "$as_me:$LINENO: checking for iconv" >&5
7476echo $ECHO_N "checking for iconv... $ECHO_C" >&6
7477if test "${am_cv_func_iconv+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479else
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
7486cat confdefs.h >>conftest.$ac_ext
7487cat >>conftest.$ac_ext <<_ACEOF
7488/* end confdefs.h. */
7489#include <stdlib.h>
7490#include <iconv.h>
7491int
7492main ()
7493{
7494iconv_t cd = iconv_open("","");
7495 iconv(cd,NULL,NULL,NULL,NULL);
7496 iconv_close(cd);
7497 ;
7498 return 0;
7499}
7500_ACEOF
7501rm -f conftest.$ac_objext conftest$ac_exeext
7502if { (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
7524else
7525 echo "$as_me: failed program was:" >&5
7526sed 's/^/| /' conftest.$ac_ext >&5
7527
7528fi
7529rm -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
7537cat confdefs.h >>conftest.$ac_ext
7538cat >>conftest.$ac_ext <<_ACEOF
7539/* end confdefs.h. */
7540#include <stdlib.h>
7541#include <iconv.h>
7542int
7543main ()
7544{
7545iconv_t cd = iconv_open("","");
7546 iconv(cd,NULL,NULL,NULL,NULL);
7547 iconv_close(cd);
7548 ;
7549 return 0;
7550}
7551_ACEOF
7552rm -f conftest.$ac_objext conftest$ac_exeext
7553if { (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
7576else
7577 echo "$as_me: failed program was:" >&5
7578sed 's/^/| /' conftest.$ac_ext >&5
7579
7580fi
7581rm -f conftest.err conftest.$ac_objext \
7582 conftest$ac_exeext conftest.$ac_ext
7583 LIBS="$am_save_LIBS"
7584 fi
7585
7586fi
7587echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
7588echo "${ECHO_T}$am_cv_func_iconv" >&6
7589 if test "$am_cv_func_iconv" = yes; then
7590
7591cat >>confdefs.h <<\_ACEOF
7592#define HAVE_ICONV 1
7593_ACEOF
7594
7595 echo "$as_me:$LINENO: checking for iconv declaration" >&5
7596echo $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
7599else
7600
7601 cat >conftest.$ac_ext <<_ACEOF
7602/* confdefs.h. */
7603_ACEOF
7604cat confdefs.h >>conftest.$ac_ext
7605cat >>conftest.$ac_ext <<_ACEOF
7606/* end confdefs.h. */
7607
7608#include <stdlib.h>
7609#include <iconv.h>
7610extern
7611#ifdef __cplusplus
7612"C"
7613#endif
7614#if defined(__STDC__) || defined(__cplusplus)
7615size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
7616#else
7617size_t iconv();
7618#endif
7619
7620int
7621main ()
7622{
7623
7624 ;
7625 return 0;
7626}
7627_ACEOF
7628rm -f conftest.$ac_objext
7629if { (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=""
7651else
7652 echo "$as_me: failed program was:" >&5
7653sed 's/^/| /' conftest.$ac_ext >&5
7654
7655am_cv_proto_iconv_arg1="const"
7656fi
7657rm -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);"
7659fi
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
7664echo "${ECHO_T}${ac_t:-
7665 }$am_cv_proto_iconv" >&6
7666
7667cat >>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
7678LIBS="$LIBS $LIBICONV"
7679
7680#
7681# socklen_t
7682# from curl
7683
7684
7685
7686
7687 echo "$as_me:$LINENO: checking for socklen_t" >&5
7688echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
7689if test "${ac_cv_type_socklen_t+set}" = set; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691else
7692 cat >conftest.$ac_ext <<_ACEOF
7693/* confdefs.h. */
7694_ACEOF
7695cat confdefs.h >>conftest.$ac_ext
7696cat >>conftest.$ac_ext <<_ACEOF
7697/* end confdefs.h. */
7698#include <sys/types.h>
7699#include <sys/socket.h>
7700
7701int
7702main ()
7703{
7704if ((socklen_t *) 0)
7705 return 0;
7706if (sizeof (socklen_t))
7707 return 0;
7708 ;
7709 return 0;
7710}
7711_ACEOF
7712rm -f conftest.$ac_objext
7713if { (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
7735else
7736 echo "$as_me: failed program was:" >&5
7737sed 's/^/| /' conftest.$ac_ext >&5
7738
7739ac_cv_type_socklen_t=no
7740fi
7741rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7742fi
7743echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
7744echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
7745if test $ac_cv_type_socklen_t = yes; then
7746 :
7747else
7748
7749 echo "$as_me:$LINENO: checking for socklen_t equivalent" >&5
7750echo $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
7753else
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
7763cat confdefs.h >>conftest.$ac_ext
7764cat >>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
7772int
7773main ()
7774{
7775
7776 $t len;
7777 getpeername(0,0,&len);
7778
7779 ;
7780 return 0;
7781}
7782_ACEOF
7783rm -f conftest.$ac_objext
7784if { (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
7809else
7810 echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813fi
7814rm -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
7820echo "$as_me: error: Cannot find a type to use in place of socklen_t" >&2;}
7821 { (exit 1); exit 1; }; }
7822 fi
7823
7824fi
7825
7826 echo "$as_me:$LINENO: result: $socklen_t_equiv" >&5
7827echo "${ECHO_T}$socklen_t_equiv" >&6
7828
7829cat >>confdefs.h <<_ACEOF
7830#define socklen_t $socklen_t_equiv
7831_ACEOF
7832
7833fi
7834
7835
7836
7837#
7838# statfs stuff
7839#
7840
7841for ac_header in sys/vfs.h
7842do
7843as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7844if eval "test \"\${$as_ac_Header+set}\" = set"; then
7845 echo "$as_me:$LINENO: checking for $ac_header" >&5
7846echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7847if eval "test \"\${$as_ac_Header+set}\" = set"; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849fi
7850echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7851echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7852else
7853 # Is the header compilable?
7854echo "$as_me:$LINENO: checking $ac_header usability" >&5
7855echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7856cat >conftest.$ac_ext <<_ACEOF
7857/* confdefs.h. */
7858_ACEOF
7859cat confdefs.h >>conftest.$ac_ext
7860cat >>conftest.$ac_ext <<_ACEOF
7861/* end confdefs.h. */
7862$ac_includes_default
7863#include <$ac_header>
7864_ACEOF
7865rm -f conftest.$ac_objext
7866if { (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
7888else
7889 echo "$as_me: failed program was:" >&5
7890sed 's/^/| /' conftest.$ac_ext >&5
7891
7892ac_header_compiler=no
7893fi
7894rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7895echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7896echo "${ECHO_T}$ac_header_compiler" >&6
7897
7898# Is the header present?
7899echo "$as_me:$LINENO: checking $ac_header presence" >&5
7900echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7901cat >conftest.$ac_ext <<_ACEOF
7902/* confdefs.h. */
7903_ACEOF
7904cat confdefs.h >>conftest.$ac_ext
7905cat >>conftest.$ac_ext <<_ACEOF
7906/* end confdefs.h. */
7907#include <$ac_header>
7908_ACEOF
7909if { (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
7923else
7924 ac_cpp_err=yes
7925fi
7926if test -z "$ac_cpp_err"; then
7927 ac_header_preproc=yes
7928else
7929 echo "$as_me: failed program was:" >&5
7930sed 's/^/| /' conftest.$ac_ext >&5
7931
7932 ac_header_preproc=no
7933fi
7934rm -f conftest.err conftest.$ac_ext
7935echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7936echo "${ECHO_T}$ac_header_preproc" >&6
7937
7938# So? What about this header?
7939case $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
7942echo "$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
7944echo "$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
7949echo "$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
7951echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7952 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7953echo "$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
7955echo "$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
7957echo "$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
7959echo "$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 ;;
7969esac
7970echo "$as_me:$LINENO: checking for $ac_header" >&5
7971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7972if eval "test \"\${$as_ac_Header+set}\" = set"; then
7973 echo $ECHO_N "(cached) $ECHO_C" >&6
7974else
7975 eval "$as_ac_Header=\$ac_header_preproc"
7976fi
7977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7979
7980fi
7981if 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
7986fi
7987
7988done
7989
7990
7991for ac_header in sys/statvfs.h
7992do
7993as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7994if eval "test \"\${$as_ac_Header+set}\" = set"; then
7995 echo "$as_me:$LINENO: checking for $ac_header" >&5
7996echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7997if eval "test \"\${$as_ac_Header+set}\" = set"; then
7998 echo $ECHO_N "(cached) $ECHO_C" >&6
7999fi
8000echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8001echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8002else
8003 # Is the header compilable?
8004echo "$as_me:$LINENO: checking $ac_header usability" >&5
8005echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8006cat >conftest.$ac_ext <<_ACEOF
8007/* confdefs.h. */
8008_ACEOF
8009cat confdefs.h >>conftest.$ac_ext
8010cat >>conftest.$ac_ext <<_ACEOF
8011/* end confdefs.h. */
8012$ac_includes_default
8013#include <$ac_header>
8014_ACEOF
8015rm -f conftest.$ac_objext
8016if { (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
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
8042ac_header_compiler=no
8043fi
8044rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8045echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8046echo "${ECHO_T}$ac_header_compiler" >&6
8047
8048# Is the header present?
8049echo "$as_me:$LINENO: checking $ac_header presence" >&5
8050echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8051cat >conftest.$ac_ext <<_ACEOF
8052/* confdefs.h. */
8053_ACEOF
8054cat confdefs.h >>conftest.$ac_ext
8055cat >>conftest.$ac_ext <<_ACEOF
8056/* end confdefs.h. */
8057#include <$ac_header>
8058_ACEOF
8059if { (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
8073else
8074 ac_cpp_err=yes
8075fi
8076if test -z "$ac_cpp_err"; then
8077 ac_header_preproc=yes
8078else
8079 echo "$as_me: failed program was:" >&5
8080sed 's/^/| /' conftest.$ac_ext >&5
8081
8082 ac_header_preproc=no
8083fi
8084rm -f conftest.err conftest.$ac_ext
8085echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8086echo "${ECHO_T}$ac_header_preproc" >&6
8087
8088# So? What about this header?
8089case $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
8092echo "$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
8094echo "$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
8099echo "$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
8101echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8102 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8103echo "$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
8105echo "$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
8107echo "$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
8109echo "$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 ;;
8119esac
8120echo "$as_me:$LINENO: checking for $ac_header" >&5
8121echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8122if eval "test \"\${$as_ac_Header+set}\" = set"; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8124else
8125 eval "$as_ac_Header=\$ac_header_preproc"
8126fi
8127echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8128echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8129
8130fi
8131if 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
8136fi
8137
8138done
8139
8140
8141for ac_header in sys/statfs.h
8142do
8143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8144if eval "test \"\${$as_ac_Header+set}\" = set"; then
8145 echo "$as_me:$LINENO: checking for $ac_header" >&5
8146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8147if eval "test \"\${$as_ac_Header+set}\" = set"; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8149fi
8150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8152else
8153 # Is the header compilable?
8154echo "$as_me:$LINENO: checking $ac_header usability" >&5
8155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8156cat >conftest.$ac_ext <<_ACEOF
8157/* confdefs.h. */
8158_ACEOF
8159cat confdefs.h >>conftest.$ac_ext
8160cat >>conftest.$ac_ext <<_ACEOF
8161/* end confdefs.h. */
8162$ac_includes_default
8163#include <$ac_header>
8164_ACEOF
8165rm -f conftest.$ac_objext
8166if { (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
8188else
8189 echo "$as_me: failed program was:" >&5
8190sed 's/^/| /' conftest.$ac_ext >&5
8191
8192ac_header_compiler=no
8193fi
8194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8196echo "${ECHO_T}$ac_header_compiler" >&6
8197
8198# Is the header present?
8199echo "$as_me:$LINENO: checking $ac_header presence" >&5
8200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8201cat >conftest.$ac_ext <<_ACEOF
8202/* confdefs.h. */
8203_ACEOF
8204cat confdefs.h >>conftest.$ac_ext
8205cat >>conftest.$ac_ext <<_ACEOF
8206/* end confdefs.h. */
8207#include <$ac_header>
8208_ACEOF
8209if { (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
8223else
8224 ac_cpp_err=yes
8225fi
8226if test -z "$ac_cpp_err"; then
8227 ac_header_preproc=yes
8228else
8229 echo "$as_me: failed program was:" >&5
8230sed 's/^/| /' conftest.$ac_ext >&5
8231
8232 ac_header_preproc=no
8233fi
8234rm -f conftest.err conftest.$ac_ext
8235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8236echo "${ECHO_T}$ac_header_preproc" >&6
8237
8238# So? What about this header?
8239case $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
8242echo "$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
8244echo "$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
8249echo "$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
8251echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8253echo "$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
8255echo "$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
8257echo "$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
8259echo "$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 ;;
8269esac
8270echo "$as_me:$LINENO: checking for $ac_header" >&5
8271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8272if eval "test \"\${$as_ac_Header+set}\" = set"; then
8273 echo $ECHO_N "(cached) $ECHO_C" >&6
8274else
8275 eval "$as_ac_Header=\$ac_header_preproc"
8276fi
8277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8279
8280fi
8281if 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
8286fi
8287
8288done
8289
8290
8291for ac_header in sys/param.h
8292do
8293as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8294if eval "test \"\${$as_ac_Header+set}\" = set"; then
8295 echo "$as_me:$LINENO: checking for $ac_header" >&5
8296echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8297if eval "test \"\${$as_ac_Header+set}\" = set"; then
8298 echo $ECHO_N "(cached) $ECHO_C" >&6
8299fi
8300echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8301echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8302else
8303 # Is the header compilable?
8304echo "$as_me:$LINENO: checking $ac_header usability" >&5
8305echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8306cat >conftest.$ac_ext <<_ACEOF
8307/* confdefs.h. */
8308_ACEOF
8309cat confdefs.h >>conftest.$ac_ext
8310cat >>conftest.$ac_ext <<_ACEOF
8311/* end confdefs.h. */
8312$ac_includes_default
8313#include <$ac_header>
8314_ACEOF
8315rm -f conftest.$ac_objext
8316if { (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
8338else
8339 echo "$as_me: failed program was:" >&5
8340sed 's/^/| /' conftest.$ac_ext >&5
8341
8342ac_header_compiler=no
8343fi
8344rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8345echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8346echo "${ECHO_T}$ac_header_compiler" >&6
8347
8348# Is the header present?
8349echo "$as_me:$LINENO: checking $ac_header presence" >&5
8350echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8351cat >conftest.$ac_ext <<_ACEOF
8352/* confdefs.h. */
8353_ACEOF
8354cat confdefs.h >>conftest.$ac_ext
8355cat >>conftest.$ac_ext <<_ACEOF
8356/* end confdefs.h. */
8357#include <$ac_header>
8358_ACEOF
8359if { (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
8373else
8374 ac_cpp_err=yes
8375fi
8376if test -z "$ac_cpp_err"; then
8377 ac_header_preproc=yes
8378else
8379 echo "$as_me: failed program was:" >&5
8380sed 's/^/| /' conftest.$ac_ext >&5
8381
8382 ac_header_preproc=no
8383fi
8384rm -f conftest.err conftest.$ac_ext
8385echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8386echo "${ECHO_T}$ac_header_preproc" >&6
8387
8388# So? What about this header?
8389case $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
8392echo "$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
8394echo "$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
8399echo "$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
8401echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8403echo "$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
8405echo "$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
8407echo "$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
8409echo "$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 ;;
8419esac
8420echo "$as_me:$LINENO: checking for $ac_header" >&5
8421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8422if eval "test \"\${$as_ac_Header+set}\" = set"; then
8423 echo $ECHO_N "(cached) $ECHO_C" >&6
8424else
8425 eval "$as_ac_Header=\$ac_header_preproc"
8426fi
8427echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8428echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8429
8430fi
8431if 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
8436fi
8437
8438done
8439
8440
8441mount_includes="\
8442 $ac_includes_default
8443 #if HAVE_SYS_PARAM_H
8444 # include <sys/param.h>
8445 #endif
8446 "
8447
8448
8449for ac_header in sys/mount.h
8450do
8451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8452echo "$as_me:$LINENO: checking for $ac_header" >&5
8453echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8454if eval "test \"\${$as_ac_Header+set}\" = set"; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8456else
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463$mount_includes
8464
8465#include <$ac_header>
8466_ACEOF
8467rm -f conftest.$ac_objext
8468if { (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"
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494eval "$as_ac_Header=no"
8495fi
8496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8497fi
8498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8500if 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
8505fi
8506
8507done
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
8513echo "$as_me: checking how to get filesystem space usage..." >&6;}
8514space=no
8515
8516# Test for statvfs64.
8517if test $space = no; then
8518 # SVR4
8519 echo "$as_me:$LINENO: checking statvfs64 function (SVR4)" >&5
8520echo $ECHO_N "checking statvfs64 function (SVR4)... $ECHO_C" >&6
8521if test "${fu_cv_sys_stat_statvfs64+set}" = set; then
8522 echo $ECHO_N "(cached) $ECHO_C" >&6
8523else
8524 if test "$cross_compiling" = yes; then
8525 fu_cv_sys_stat_statvfs64=cross
8526else
8527 cat >conftest.$ac_ext <<_ACEOF
8528/* confdefs.h. */
8529_ACEOF
8530cat confdefs.h >>conftest.$ac_ext
8531cat >>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
8545rm -f conftest$ac_exeext
8546if { (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
8557else
8558 echo "$as_me: program exited with status $ac_status" >&5
8559echo "$as_me: failed program was:" >&5
8560sed 's/^/| /' conftest.$ac_ext >&5
8561
8562( exit $ac_status )
8563fu_cv_sys_stat_statvfs64=no
8564fi
8565rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8566fi
8567fi
8568echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs64" >&5
8569echo "${ECHO_T}$fu_cv_sys_stat_statvfs64" >&6
8570 if test $fu_cv_sys_stat_statvfs64 = yes; then
8571 space=yes
8572
8573cat >>confdefs.h <<\_ACEOF
8574#define STAT_STATVFS64 1
8575_ACEOF
8576
8577 fi
8578fi
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.
8586if test $space = no; then
8587 # SVR4
8588 echo "$as_me:$LINENO: checking statvfs function (SVR4)" >&5
8589echo $ECHO_N "checking statvfs function (SVR4)... $ECHO_C" >&6
8590if test "${fu_cv_sys_stat_statvfs+set}" = set; then
8591 echo $ECHO_N "(cached) $ECHO_C" >&6
8592else
8593 cat >conftest.$ac_ext <<_ACEOF
8594/* confdefs.h. */
8595_ACEOF
8596cat confdefs.h >>conftest.$ac_ext
8597cat >>conftest.$ac_ext <<_ACEOF
8598/* end confdefs.h. */
8599#include <sys/types.h>
8600#include <sys/statvfs.h>
8601int
8602main ()
8603{
8604struct statvfs fsd; statvfs (0, &fsd);
8605 ;
8606 return 0;
8607}
8608_ACEOF
8609rm -f conftest.$ac_objext conftest$ac_exeext
8610if { (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
8632else
8633 echo "$as_me: failed program was:" >&5
8634sed 's/^/| /' conftest.$ac_ext >&5
8635
8636fu_cv_sys_stat_statvfs=no
8637fi
8638rm -f conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640fi
8641echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statvfs" >&5
8642echo "${ECHO_T}$fu_cv_sys_stat_statvfs" >&6
8643 if test $fu_cv_sys_stat_statvfs = yes; then
8644 space=yes
8645
8646cat >>confdefs.h <<\_ACEOF
8647#define STAT_STATVFS 1
8648_ACEOF
8649
8650 fi
8651fi
8652
8653if 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
8656echo $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
8659else
8660 if test "$cross_compiling" = yes; then
8661 fu_cv_sys_stat_statfs3_osf1=no
8662else
8663 cat >conftest.$ac_ext <<_ACEOF
8664/* confdefs.h. */
8665_ACEOF
8666cat confdefs.h >>conftest.$ac_ext
8667cat >>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
8680rm -f conftest$ac_exeext
8681if { (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
8692else
8693 echo "$as_me: program exited with status $ac_status" >&5
8694echo "$as_me: failed program was:" >&5
8695sed 's/^/| /' conftest.$ac_ext >&5
8696
8697( exit $ac_status )
8698fu_cv_sys_stat_statfs3_osf1=no
8699fi
8700rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8701fi
8702fi
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
8710cat >>confdefs.h <<\_ACEOF
8711#define STAT_STATFS3_OSF1 1
8712_ACEOF
8713
8714 fi
8715fi
8716
8717if test $space = no; then
8718# AIX
8719 echo "$as_me:$LINENO: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
8720echo $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
8723else
8724 if test "$cross_compiling" = yes; then
8725 fu_cv_sys_stat_statfs2_bsize=no
8726else
8727 cat >conftest.$ac_ext <<_ACEOF
8728/* confdefs.h. */
8729_ACEOF
8730cat confdefs.h >>conftest.$ac_ext
8731cat >>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
8750rm -f conftest$ac_exeext
8751if { (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
8762else
8763 echo "$as_me: program exited with status $ac_status" >&5
8764echo "$as_me: failed program was:" >&5
8765sed 's/^/| /' conftest.$ac_ext >&5
8766
8767( exit $ac_status )
8768fu_cv_sys_stat_statfs2_bsize=no
8769fi
8770rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8771fi
8772fi
8773
8774 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_bsize" >&5
8775echo "${ECHO_T}$fu_cv_sys_stat_statfs2_bsize" >&6
8776 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
8777 space=yes
8778
8779cat >>confdefs.h <<\_ACEOF
8780#define STAT_STATFS2_BSIZE 1
8781_ACEOF
8782
8783 fi
8784fi
8785
8786if test $space = no; then
8787# SVR3
8788 echo "$as_me:$LINENO: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
8789echo $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
8792else
8793 if test "$cross_compiling" = yes; then
8794 fu_cv_sys_stat_statfs4=no
8795else
8796 cat >conftest.$ac_ext <<_ACEOF
8797/* confdefs.h. */
8798_ACEOF
8799cat confdefs.h >>conftest.$ac_ext
8800cat >>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
8810rm -f conftest$ac_exeext
8811if { (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
8822else
8823 echo "$as_me: program exited with status $ac_status" >&5
8824echo "$as_me: failed program was:" >&5
8825sed 's/^/| /' conftest.$ac_ext >&5
8826
8827( exit $ac_status )
8828fu_cv_sys_stat_statfs4=no
8829fi
8830rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8831fi
8832fi
8833
8834 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs4" >&5
8835echo "${ECHO_T}$fu_cv_sys_stat_statfs4" >&6
8836 if test $fu_cv_sys_stat_statfs4 = yes; then
8837 space=yes
8838
8839cat >>confdefs.h <<\_ACEOF
8840#define STAT_STATFS4 1
8841_ACEOF
8842
8843 fi
8844fi
8845
8846if 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
8849echo $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
8852else
8853 if test "$cross_compiling" = yes; then
8854 fu_cv_sys_stat_statfs2_fsize=no
8855else
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>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
8876rm -f conftest$ac_exeext
8877if { (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
8888else
8889 echo "$as_me: program exited with status $ac_status" >&5
8890echo "$as_me: failed program was:" >&5
8891sed 's/^/| /' conftest.$ac_ext >&5
8892
8893( exit $ac_status )
8894fu_cv_sys_stat_statfs2_fsize=no
8895fi
8896rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8897fi
8898fi
8899
8900 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_statfs2_fsize" >&5
8901echo "${ECHO_T}$fu_cv_sys_stat_statfs2_fsize" >&6
8902 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
8903 space=yes
8904
8905cat >>confdefs.h <<\_ACEOF
8906#define STAT_STATFS2_FSIZE 1
8907_ACEOF
8908
8909 fi
8910fi
8911
8912if test $space = no; then
8913 # Ultrix
8914 echo "$as_me:$LINENO: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
8915echo $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
8918else
8919 if test "$cross_compiling" = yes; then
8920 fu_cv_sys_stat_fs_data=no
8921else
8922 cat >conftest.$ac_ext <<_ACEOF
8923/* confdefs.h. */
8924_ACEOF
8925cat confdefs.h >>conftest.$ac_ext
8926cat >>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
8946rm -f conftest$ac_exeext
8947if { (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
8958else
8959 echo "$as_me: program exited with status $ac_status" >&5
8960echo "$as_me: failed program was:" >&5
8961sed 's/^/| /' conftest.$ac_ext >&5
8962
8963( exit $ac_status )
8964fu_cv_sys_stat_fs_data=no
8965fi
8966rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8967fi
8968fi
8969
8970 echo "$as_me:$LINENO: result: $fu_cv_sys_stat_fs_data" >&5
8971echo "${ECHO_T}$fu_cv_sys_stat_fs_data" >&6
8972 if test $fu_cv_sys_stat_fs_data = yes; then
8973 space=yes
8974
8975cat >>confdefs.h <<\_ACEOF
8976#define STAT_STATFS2_FS_DATA 1
8977_ACEOF
8978
8979 fi
8980fi
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
9004echo "$as_me:$LINENO: checking for struct statfs.f_namemax" >&5
9005echo $ECHO_N "checking for struct statfs.f_namemax... $ECHO_C" >&6
9006if test "${ac_cv_member_struct_statfs_f_namemax+set}" = set; then
9007 echo $ECHO_N "(cached) $ECHO_C" >&6
9008else
9009 cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015$statxfs_includes
9016
9017int
9018main ()
9019{
9020static struct statfs ac_aggr;
9021if (ac_aggr.f_namemax)
9022return 0;
9023 ;
9024 return 0;
9025}
9026_ACEOF
9027rm -f conftest.$ac_objext
9028if { (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
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054cat >conftest.$ac_ext <<_ACEOF
9055/* confdefs.h. */
9056_ACEOF
9057cat confdefs.h >>conftest.$ac_ext
9058cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */
9060$statxfs_includes
9061
9062int
9063main ()
9064{
9065static struct statfs ac_aggr;
9066if (sizeof ac_aggr.f_namemax)
9067return 0;
9068 ;
9069 return 0;
9070}
9071_ACEOF
9072rm -f conftest.$ac_objext
9073if { (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
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099ac_cv_member_struct_statfs_f_namemax=no
9100fi
9101rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9102fi
9103rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9104fi
9105echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namemax" >&5
9106echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namemax" >&6
9107if test $ac_cv_member_struct_statfs_f_namemax = yes; then
9108
9109cat >>confdefs.h <<_ACEOF
9110#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
9111_ACEOF
9112
9113
9114fi
9115
9116echo "$as_me:$LINENO: checking for struct statvfs.f_namemax" >&5
9117echo $ECHO_N "checking for struct statvfs.f_namemax... $ECHO_C" >&6
9118if test "${ac_cv_member_struct_statvfs_f_namemax+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9120else
9121 cat >conftest.$ac_ext <<_ACEOF
9122/* confdefs.h. */
9123_ACEOF
9124cat confdefs.h >>conftest.$ac_ext
9125cat >>conftest.$ac_ext <<_ACEOF
9126/* end confdefs.h. */
9127$statxfs_includes
9128
9129int
9130main ()
9131{
9132static struct statvfs ac_aggr;
9133if (ac_aggr.f_namemax)
9134return 0;
9135 ;
9136 return 0;
9137}
9138_ACEOF
9139rm -f conftest.$ac_objext
9140if { (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
9162else
9163 echo "$as_me: failed program was:" >&5
9164sed 's/^/| /' conftest.$ac_ext >&5
9165
9166cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172$statxfs_includes
9173
9174int
9175main ()
9176{
9177static struct statvfs ac_aggr;
9178if (sizeof ac_aggr.f_namemax)
9179return 0;
9180 ;
9181 return 0;
9182}
9183_ACEOF
9184rm -f conftest.$ac_objext
9185if { (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
9207else
9208 echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211ac_cv_member_struct_statvfs_f_namemax=no
9212fi
9213rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9214fi
9215rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9216fi
9217echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namemax" >&5
9218echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namemax" >&6
9219if test $ac_cv_member_struct_statvfs_f_namemax = yes; then
9220
9221cat >>confdefs.h <<_ACEOF
9222#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
9223_ACEOF
9224
9225
9226fi
9227
9228echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
9229echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
9230if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
9231 echo $ECHO_N "(cached) $ECHO_C" >&6
9232else
9233 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
9239$statxfs_includes
9240
9241int
9242main ()
9243{
9244static struct statfs ac_aggr;
9245if (ac_aggr.f_namelen)
9246return 0;
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext
9252if { (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
9274else
9275 echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284$statxfs_includes
9285
9286int
9287main ()
9288{
9289static struct statfs ac_aggr;
9290if (sizeof ac_aggr.f_namelen)
9291return 0;
9292 ;
9293 return 0;
9294}
9295_ACEOF
9296rm -f conftest.$ac_objext
9297if { (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
9319else
9320 echo "$as_me: failed program was:" >&5
9321sed 's/^/| /' conftest.$ac_ext >&5
9322
9323ac_cv_member_struct_statfs_f_namelen=no
9324fi
9325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9326fi
9327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9328fi
9329echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
9330echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
9331if test $ac_cv_member_struct_statfs_f_namelen = yes; then
9332
9333cat >>confdefs.h <<_ACEOF
9334#define HAVE_STRUCT_STATFS_F_NAMELEN 1
9335_ACEOF
9336
9337
9338fi
9339
9340echo "$as_me:$LINENO: checking for struct statvfs.f_namelen" >&5
9341echo $ECHO_N "checking for struct statvfs.f_namelen... $ECHO_C" >&6
9342if test "${ac_cv_member_struct_statvfs_f_namelen+set}" = set; then
9343 echo $ECHO_N "(cached) $ECHO_C" >&6
9344else
9345 cat >conftest.$ac_ext <<_ACEOF
9346/* confdefs.h. */
9347_ACEOF
9348cat confdefs.h >>conftest.$ac_ext
9349cat >>conftest.$ac_ext <<_ACEOF
9350/* end confdefs.h. */
9351$statxfs_includes
9352
9353int
9354main ()
9355{
9356static struct statvfs ac_aggr;
9357if (ac_aggr.f_namelen)
9358return 0;
9359 ;
9360 return 0;
9361}
9362_ACEOF
9363rm -f conftest.$ac_objext
9364if { (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
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
9390cat >conftest.$ac_ext <<_ACEOF
9391/* confdefs.h. */
9392_ACEOF
9393cat confdefs.h >>conftest.$ac_ext
9394cat >>conftest.$ac_ext <<_ACEOF
9395/* end confdefs.h. */
9396$statxfs_includes
9397
9398int
9399main ()
9400{
9401static struct statvfs ac_aggr;
9402if (sizeof ac_aggr.f_namelen)
9403return 0;
9404 ;
9405 return 0;
9406}
9407_ACEOF
9408rm -f conftest.$ac_objext
9409if { (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
9431else
9432 echo "$as_me: failed program was:" >&5
9433sed 's/^/| /' conftest.$ac_ext >&5
9434
9435ac_cv_member_struct_statvfs_f_namelen=no
9436fi
9437rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9438fi
9439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9440fi
9441echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_namelen" >&5
9442echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_namelen" >&6
9443if test $ac_cv_member_struct_statvfs_f_namelen = yes; then
9444
9445cat >>confdefs.h <<_ACEOF
9446#define HAVE_STRUCT_STATVFS_F_NAMELEN 1
9447_ACEOF
9448
9449
9450fi
9451
9452
9453#
9454# Large file support
9455#
9456# Check whether --enable-largefile or --disable-largefile was given.
9457if test "${enable_largefile+set}" = set; then
9458 enableval="$enable_largefile"
9459
9460fi;
9461if test "$enable_largefile" != no; then
9462
9463 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
9464echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
9465if test "${ac_cv_sys_largefile_CC+set}" = set; then
9466 echo $ECHO_N "(cached) $ECHO_C" >&6
9467else
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
9477cat confdefs.h >>conftest.$ac_ext
9478cat >>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];
9489int
9490main ()
9491{
9492
9493 ;
9494 return 0;
9495}
9496_ACEOF
9497 rm -f conftest.$ac_objext
9498if { (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
9520else
9521 echo "$as_me: failed program was:" >&5
9522sed 's/^/| /' conftest.$ac_ext >&5
9523
9524fi
9525rm -f conftest.err conftest.$ac_objext
9526 CC="$CC -n32"
9527 rm -f conftest.$ac_objext
9528if { (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
9550else
9551 echo "$as_me: failed program was:" >&5
9552sed 's/^/| /' conftest.$ac_ext >&5
9553
9554fi
9555rm -f conftest.err conftest.$ac_objext
9556 break
9557 done
9558 CC=$ac_save_CC
9559 rm -f conftest.$ac_ext
9560 fi
9561fi
9562echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
9563echo "${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
9569echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
9570if test "${ac_cv_sys_file_offset_bits+set}" = set; then
9571 echo $ECHO_N "(cached) $ECHO_C" >&6
9572else
9573 while :; do
9574 ac_cv_sys_file_offset_bits=no
9575 cat >conftest.$ac_ext <<_ACEOF
9576/* confdefs.h. */
9577_ACEOF
9578cat confdefs.h >>conftest.$ac_ext
9579cat >>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];
9590int
9591main ()
9592{
9593
9594 ;
9595 return 0;
9596}
9597_ACEOF
9598rm -f conftest.$ac_objext
9599if { (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
9621else
9622 echo "$as_me: failed program was:" >&5
9623sed 's/^/| /' conftest.$ac_ext >&5
9624
9625fi
9626rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9627 cat >conftest.$ac_ext <<_ACEOF
9628/* confdefs.h. */
9629_ACEOF
9630cat confdefs.h >>conftest.$ac_ext
9631cat >>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];
9643int
9644main ()
9645{
9646
9647 ;
9648 return 0;
9649}
9650_ACEOF
9651rm -f conftest.$ac_objext
9652if { (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
9674else
9675 echo "$as_me: failed program was:" >&5
9676sed 's/^/| /' conftest.$ac_ext >&5
9677
9678fi
9679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9680 break
9681done
9682fi
9683echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
9684echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
9685if test "$ac_cv_sys_file_offset_bits" != no; then
9686
9687cat >>confdefs.h <<_ACEOF
9688#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9689_ACEOF
9690
9691fi
9692rm -f conftest*
9693 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
9694echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
9695if test "${ac_cv_sys_large_files+set}" = set; then
9696 echo $ECHO_N "(cached) $ECHO_C" >&6
9697else
9698 while :; do
9699 ac_cv_sys_large_files=no
9700 cat >conftest.$ac_ext <<_ACEOF
9701/* confdefs.h. */
9702_ACEOF
9703cat confdefs.h >>conftest.$ac_ext
9704cat >>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];
9715int
9716main ()
9717{
9718
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723rm -f conftest.$ac_objext
9724if { (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
9746else
9747 echo "$as_me: failed program was:" >&5
9748sed 's/^/| /' conftest.$ac_ext >&5
9749
9750fi
9751rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9752 cat >conftest.$ac_ext <<_ACEOF
9753/* confdefs.h. */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>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];
9768int
9769main ()
9770{
9771
9772 ;
9773 return 0;
9774}
9775_ACEOF
9776rm -f conftest.$ac_objext
9777if { (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
9799else
9800 echo "$as_me: failed program was:" >&5
9801sed 's/^/| /' conftest.$ac_ext >&5
9802
9803fi
9804rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9805 break
9806done
9807fi
9808echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
9809echo "${ECHO_T}$ac_cv_sys_large_files" >&6
9810if test "$ac_cv_sys_large_files" != no; then
9811
9812cat >>confdefs.h <<_ACEOF
9813#define _LARGE_FILES $ac_cv_sys_large_files
9814_ACEOF
9815
9816fi
9817rm -f conftest*
9818fi
9819
9820
9821#
9822# mntent
9823#
9824if test "${ac_cv_header_mntent_h+set}" = set; then
9825 echo "$as_me:$LINENO: checking for mntent.h" >&5
9826echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6
9827if test "${ac_cv_header_mntent_h+set}" = set; then
9828 echo $ECHO_N "(cached) $ECHO_C" >&6
9829fi
9830echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
9831echo "${ECHO_T}$ac_cv_header_mntent_h" >&6
9832else
9833 # Is the header compilable?
9834echo "$as_me:$LINENO: checking mntent.h usability" >&5
9835echo $ECHO_N "checking mntent.h usability... $ECHO_C" >&6
9836cat >conftest.$ac_ext <<_ACEOF
9837/* confdefs.h. */
9838_ACEOF
9839cat confdefs.h >>conftest.$ac_ext
9840cat >>conftest.$ac_ext <<_ACEOF
9841/* end confdefs.h. */
9842$ac_includes_default
9843#include <mntent.h>
9844_ACEOF
9845rm -f conftest.$ac_objext
9846if { (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
9868else
9869 echo "$as_me: failed program was:" >&5
9870sed 's/^/| /' conftest.$ac_ext >&5
9871
9872ac_header_compiler=no
9873fi
9874rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9876echo "${ECHO_T}$ac_header_compiler" >&6
9877
9878# Is the header present?
9879echo "$as_me:$LINENO: checking mntent.h presence" >&5
9880echo $ECHO_N "checking mntent.h presence... $ECHO_C" >&6
9881cat >conftest.$ac_ext <<_ACEOF
9882/* confdefs.h. */
9883_ACEOF
9884cat confdefs.h >>conftest.$ac_ext
9885cat >>conftest.$ac_ext <<_ACEOF
9886/* end confdefs.h. */
9887#include <mntent.h>
9888_ACEOF
9889if { (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
9903else
9904 ac_cpp_err=yes
9905fi
9906if test -z "$ac_cpp_err"; then
9907 ac_header_preproc=yes
9908else
9909 echo "$as_me: failed program was:" >&5
9910sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_header_preproc=no
9913fi
9914rm -f conftest.err conftest.$ac_ext
9915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9916echo "${ECHO_T}$ac_header_preproc" >&6
9917
9918# So? What about this header?
9919case $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
9922echo "$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
9924echo "$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
9929echo "$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
9931echo "$as_me: WARNING: mntent.h: check for missing prerequisite headers?" >&2;}
9932 { echo "$as_me:$LINENO: WARNING: mntent.h: see the Autoconf documentation" >&5
9933echo "$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
9935echo "$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
9937echo "$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
9939echo "$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 ;;
9949esac
9950echo "$as_me:$LINENO: checking for mntent.h" >&5
9951echo $ECHO_N "checking for mntent.h... $ECHO_C" >&6
9952if test "${ac_cv_header_mntent_h+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9954else
9955 ac_cv_header_mntent_h=$ac_header_preproc
9956fi
9957echo "$as_me:$LINENO: result: $ac_cv_header_mntent_h" >&5
9958echo "${ECHO_T}$ac_cv_header_mntent_h" >&6
9959
9960fi
9961if test $ac_cv_header_mntent_h = yes; then
9962 cat >>confdefs.h <<\_ACEOF
9963#define HAVE_MNTENT_H 1
9964_ACEOF
9965
9966fi
9967
9968
9969
9970for ac_func in setmntent
9971do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9975if eval "test \"\${$as_ac_var+set}\" = set"; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978 cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>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
10003extern "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. */
10008char $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)
10013choke me
10014#else
10015char (*f) () = $ac_func;
10016#endif
10017#ifdef __cplusplus
10018}
10019#endif
10020
10021int
10022main ()
10023{
10024return f != $ac_func;
10025 ;
10026 return 0;
10027}
10028_ACEOF
10029rm -f conftest.$ac_objext conftest$ac_exeext
10030if { (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"
10052else
10053 echo "$as_me: failed program was:" >&5
10054sed 's/^/| /' conftest.$ac_ext >&5
10055
10056eval "$as_ac_var=no"
10057fi
10058rm -f conftest.err conftest.$ac_objext \
10059 conftest$ac_exeext conftest.$ac_ext
10060fi
10061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10062echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10063if 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
10068fi
10069done
10070
10071
10072#
10073# IPv6
10074#
10075
10076# Check whether --with-ipv6 or --without-ipv6 was given.
10077if 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
10088fi;
10089
10090
10091#
10092# debugging
10093#
10094
10095# Check whether --with-debug or --without-debug was given.
10096if 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
10107fi;
10108
10109
10110# Check whether --with-debug-kbd or --without-debug-kbd was given.
10111if 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
10122fi;
10123
10124
10125# Check whether --with-debug-rdp5 or --without-debug-rdp5 was given.
10126if 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
10137fi;
10138
10139
10140# Check whether --with-debug-clipboard or --without-debug-clipboard was given.
10141if 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
10152fi;
10153
10154
10155# Check whether --with-debug-channel or --without-debug-channel was given.
10156if 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
10167fi;
10168
10169
10170#
10171# target-specific stuff
10172#
10173# strip leading colon from rpath
10174rpath=`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
10178echo "$as_me: error: cannot run $ac_config_sub" >&2;}
10179 { (exit 1); exit 1; }; }
10180
10181echo "$as_me:$LINENO: checking build system type" >&5
10182echo $ECHO_N "checking build system type... $ECHO_C" >&6
10183if test "${ac_cv_build+set}" = set; then
10184 echo $ECHO_N "(cached) $ECHO_C" >&6
10185else
10186 ac_cv_build_alias=$build_alias
10187test -z "$ac_cv_build_alias" &&
10188 ac_cv_build_alias=`$ac_config_guess`
10189test -z "$ac_cv_build_alias" &&
10190 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
10191echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
10192 { (exit 1); exit 1; }; }
10193ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
10194 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
10195echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
10196 { (exit 1); exit 1; }; }
10197
10198fi
10199echo "$as_me:$LINENO: result: $ac_cv_build" >&5
10200echo "${ECHO_T}$ac_cv_build" >&6
10201build=$ac_cv_build
10202build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10203build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10204build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10205
10206
10207echo "$as_me:$LINENO: checking host system type" >&5
10208echo $ECHO_N "checking host system type... $ECHO_C" >&6
10209if test "${ac_cv_host+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211else
10212 ac_cv_host_alias=$host_alias
10213test -z "$ac_cv_host_alias" &&
10214 ac_cv_host_alias=$ac_cv_build_alias
10215ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
10216 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
10217echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
10218 { (exit 1); exit 1; }; }
10219
10220fi
10221echo "$as_me:$LINENO: result: $ac_cv_host" >&5
10222echo "${ECHO_T}$ac_cv_host" >&6
10223host=$ac_cv_host
10224host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
10225host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
10226host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
10227
10228
10229case "$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 ;;
10243esac
10244
10245
10246 ac_config_files="$ac_config_files Makefile"
10247cat >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
10292if 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
10299fi
10300rm -f confcache
10301
10302test "x$prefix" = xNONE && prefix=$ac_default_prefix
10303# Let make expand exec_prefix.
10304test "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).
10310if test "x$srcdir" = x.; then
10311 ac_vpsub='/^[ ]*VPATH[ ]*=/{
10312s/:*\$(srcdir):*/:/;
10313s/:*\${srcdir}:*/:/;
10314s/:*@srcdir@:*/:/;
10315s/^\([^=]*=[ ]*\):*/\1/;
10316s/:*$//;
10317s/^[^=]*=[ ]*$//;
10318}'
10319fi
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.
10328cat >confdef2opt.sed <<\_ACEOF
10329t clear
10330: clear
10331s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
10332t quote
10333s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
10334t quote
10335d
10336: quote
10337s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
10338s,\[,\\&,g
10339s,\],\\&,g
10340s,\$,$$,g
10341p
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.
10349ac_LF_and_DOT=`echo; echo .`
10350DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
10351rm -f confdef2opt.sed
10352
10353
10354ac_libobjs=
10355ac_ltlibobjs=
10356for 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'
10363done
10364LIBOBJS=$ac_libobjs
10365
10366LTLIBOBJS=$ac_ltlibobjs
10367
10368
10369
10370: ${CONFIG_STATUS=./config.status}
10371ac_clean_files_save=$ac_clean_files
10372ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10373{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10374echo "$as_me: creating $CONFIG_STATUS" >&6;}
10375cat >$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
10382debug=false
10383ac_cs_recheck=false
10384ac_cs_silent=false
10385SHELL=\${CONFIG_SHELL-$SHELL}
10386_ACEOF
10387
10388cat >>$CONFIG_STATUS <<\_ACEOF
10389## --------------------- ##
10390## M4sh Initialization. ##
10391## --------------------- ##
10392
10393# Be Bourne compatible
10394if 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+"$@"}'='"$@"'
10400elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10401 set -o posix
10402fi
10403DUALCASE=1; export DUALCASE # for MKS sh
10404
10405# Support unset when possible.
10406if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10407 as_unset=unset
10408else
10409 as_unset=false
10410fi
10411
10412
10413# Work around bugs in pre-3.0 UWIN ksh.
10414$as_unset ENV MAIL MAILPATH
10415PS1='$ '
10416PS2='> '
10417PS4='+ '
10418
10419# NLS nuisances.
10420for 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
10424do
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
10430done
10431
10432# Required to use basename.
10433if expr a : '\(a\)' >/dev/null 2>&1; then
10434 as_expr=expr
10435else
10436 as_expr=false
10437fi
10438
10439if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
10440 as_basename=basename
10441else
10442 as_basename=false
10443fi
10444
10445
10446# Name of the executable.
10447as_me=`$as_basename "$0" ||
10448$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10449 X"$0" : 'X\(//\)$' \| \
10450 X"$0" : 'X\(/\)$' \| \
10451 . : '\(.\)' 2>/dev/null ||
10452echo 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.
10461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10464as_cr_digits='0123456789'
10465as_cr_alnum=$as_cr_Letters$as_cr_digits
10466
10467# The user is always right.
10468if 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
10478fi
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
10491for as_dir in $PATH
10492do
10493 IFS=$as_save_IFS
10494 test -z "$as_dir" && as_dir=.
10495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10496done
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
10507echo "$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
10513for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10514do
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
10534done
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
10558echo "$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
10570case `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= ;;
10575esac
10576
10577if expr a : '\(a\)' >/dev/null 2>&1; then
10578 as_expr=expr
10579else
10580 as_expr=false
10581fi
10582
10583rm -f conf$$ conf$$.exe conf$$.file
10584echo >conf$$.file
10585if 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
10594elif ln conf$$.file conf$$ 2>/dev/null; then
10595 as_ln_s=ln
10596else
10597 as_ln_s='cp -p'
10598fi
10599rm -f conf$$ conf$$.exe conf$$.file
10600
10601if mkdir -p . 2>/dev/null; then
10602 as_mkdir_p=:
10603else
10604 test -d ./-p && rmdir ./-p
10605 as_mkdir_p=false
10606fi
10607
10608as_executable_p="test -f"
10609
10610# Sed expression to map a string onto a valid CPP name.
10611as_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.
10614as_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.
10619as_nl='
10620'
10621IFS=" $as_nl"
10622
10623# CDPATH.
10624$as_unset CDPATH
10625
10626exec 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.
10631exec 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
10638cat >&5 <<_CSEOF
10639
10640This file was extended by rdesktop $as_me 1.5.0, which was
10641generated 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
10650echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10651echo >&5
10652_ACEOF
10653
10654# Files that config.status was made for.
10655if test -n "$ac_config_files"; then
10656 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10657fi
10658
10659if test -n "$ac_config_headers"; then
10660 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10661fi
10662
10663if test -n "$ac_config_links"; then
10664 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10665fi
10666
10667if test -n "$ac_config_commands"; then
10668 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10669fi
10670
10671cat >>$CONFIG_STATUS <<\_ACEOF
10672
10673ac_cs_usage="\
10674\`$as_me' instantiates files from templates according to the
10675current configuration.
10676
10677Usage: $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
10687Configuration files:
10688$config_files
10689
10690Report bugs to <[email protected]>."
10691_ACEOF
10692
10693cat >>$CONFIG_STATUS <<_ACEOF
10694ac_cs_version="\\
10695rdesktop config.status 1.5.0
10696configured by $0, generated by GNU Autoconf 2.59,
10697 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10698
10699Copyright (C) 2003 Free Software Foundation, Inc.
10700This config.status script is free software; the Free Software Foundation
10701gives unlimited permission to copy, distribute and modify it."
10702srcdir=$srcdir
10703INSTALL="$INSTALL"
10704_ACEOF
10705
10706cat >>$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.
10709ac_need_defaults=:
10710while test $# != 0
10711do
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
10732cat >>$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
10740Try \`$0 --help' for more information." >&5
10741echo "$as_me: error: ambiguous option: $1
10742Try \`$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
10762Try \`$0 --help' for more information." >&5
10763echo "$as_me: error: unrecognized option: $1
10764Try \`$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
10771done
10772
10773ac_configure_extra_args=
10774
10775if $ac_cs_silent; then
10776 exec 6>/dev/null
10777 ac_configure_extra_args="$ac_configure_extra_args --silent"
10778fi
10779
10780_ACEOF
10781cat >>$CONFIG_STATUS <<_ACEOF
10782if \$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
10785fi
10786
10787_ACEOF
10788
10789
10790
10791
10792
10793cat >>$CONFIG_STATUS <<\_ACEOF
10794for ac_config_target in $ac_config_targets
10795do
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
10800echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10801 { (exit 1); exit 1; }; };;
10802 esac
10803done
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.
10809if $ac_need_defaults; then
10810 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10811fi
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
10840cat >>$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
10848if 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
10852s,@SHELL@,$SHELL,;t t
10853s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10854s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10855s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10856s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10857s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10858s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10859s,@exec_prefix@,$exec_prefix,;t t
10860s,@prefix@,$prefix,;t t
10861s,@program_transform_name@,$program_transform_name,;t t
10862s,@bindir@,$bindir,;t t
10863s,@sbindir@,$sbindir,;t t
10864s,@libexecdir@,$libexecdir,;t t
10865s,@datadir@,$datadir,;t t
10866s,@sysconfdir@,$sysconfdir,;t t
10867s,@sharedstatedir@,$sharedstatedir,;t t
10868s,@localstatedir@,$localstatedir,;t t
10869s,@libdir@,$libdir,;t t
10870s,@includedir@,$includedir,;t t
10871s,@oldincludedir@,$oldincludedir,;t t
10872s,@infodir@,$infodir,;t t
10873s,@mandir@,$mandir,;t t
10874s,@build_alias@,$build_alias,;t t
10875s,@host_alias@,$host_alias,;t t
10876s,@target_alias@,$target_alias,;t t
10877s,@DEFS@,$DEFS,;t t
10878s,@ECHO_C@,$ECHO_C,;t t
10879s,@ECHO_N@,$ECHO_N,;t t
10880s,@ECHO_T@,$ECHO_T,;t t
10881s,@LIBS@,$LIBS,;t t
10882s,@CC@,$CC,;t t
10883s,@CFLAGS@,$CFLAGS,;t t
10884s,@LDFLAGS@,$LDFLAGS,;t t
10885s,@CPPFLAGS@,$CPPFLAGS,;t t
10886s,@ac_ct_CC@,$ac_ct_CC,;t t
10887s,@EXEEXT@,$EXEEXT,;t t
10888s,@OBJEXT@,$OBJEXT,;t t
10889s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10890s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10891s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10892s,@CPP@,$CPP,;t t
10893s,@EGREP@,$EGREP,;t t
10894s,@X_CFLAGS@,$X_CFLAGS,;t t
10895s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10896s,@X_LIBS@,$X_LIBS,;t t
10897s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10898s,@STRIP@,$STRIP,;t t
10899s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10900s,@ssldir@,$ssldir,;t t
10901s,@VNCINC@,$VNCINC,;t t
10902s,@LDVNC@,$LDVNC,;t t
10903s,@VNCLINK@,$VNCLINK,;t t
10904s,@RDP2VNCTARGET@,$RDP2VNCTARGET,;t t
10905s,@SOUNDOBJ@,$SOUNDOBJ,;t t
10906s,@LIBOBJS@,$LIBOBJS,;t t
10907s,@LIBICONV@,$LIBICONV,;t t
10908s,@build@,$build,;t t
10909s,@build_cpu@,$build_cpu,;t t
10910s,@build_vendor@,$build_vendor,;t t
10911s,@build_os@,$build_os,;t t
10912s,@host@,$host,;t t
10913s,@host_cpu@,$host_cpu,;t t
10914s,@host_vendor@,$host_vendor,;t t
10915s,@host_os@,$host_os,;t t
10916s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10917CEOF
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
10958fi # test -n "$CONFIG_FILES"
10959
10960_ACEOF
10961cat >>$CONFIG_STATUS <<\_ACEOF
10962for 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 ||
10981echo 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 ||
11000echo 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
11009echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
11010 { (exit 1); exit 1; }; }; }
11011
11012 ac_builddir=.
11013
11014if 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'`
11018else
11019 ac_dir_suffix= ac_top_builddir=
11020fi
11021
11022case $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 ;;
11036esac
11037
11038# Do not use `cd foo && pwd` to compute absolute paths, because
11039# the directories may not exist.
11040case `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;;
11048esac
11049case $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;;
11057esac
11058case $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;;
11066esac
11067case $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;;
11075esac
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
11085echo "$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
11108echo "$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
11121echo "$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
11127cat >>$CONFIG_STATUS <<_ACEOF
11128 sed "$ac_vpsub
11129$extrasub
11130_ACEOF
11131cat >>$CONFIG_STATUS <<\_ACEOF
11132:t
11133/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11134s,@configure_input@,$configure_input,;t t
11135s,@srcdir@,$ac_srcdir,;t t
11136s,@abs_srcdir@,$ac_abs_srcdir,;t t
11137s,@top_srcdir@,$ac_top_srcdir,;t t
11138s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
11139s,@builddir@,$ac_builddir,;t t
11140s,@abs_builddir@,$ac_abs_builddir,;t t
11141s,@top_builddir@,$ac_top_builddir,;t t
11142s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
11143s,@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
11153done
11154_ACEOF
11155
11156cat >>$CONFIG_STATUS <<\_ACEOF
11157
11158{ (exit 0); exit 0; }
11159_ACEOF
11160chmod +x $CONFIG_STATUS
11161ac_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.
11172if 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; }
11183fi
11184
11185
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette