VirtualBox

source: vbox/trunk/src/VBox/RDP/client-1.8.3/configure@ 57154

最後變更 在這個檔案從57154是 55123,由 vboxsync 提交於 10 年 前

rdesktop 1.8.3 modified for VBox

  • 屬性 svn:eol-style 設為 LF
  • 屬性 svn:executable 設為 *
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 246.0 KB
 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for rdesktop 1.8.3.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell [email protected] about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
437
438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442$as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
463
464
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
498}
499
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
512
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
533 fi
534else
535 as_ln_s='cp -pR'
536fi
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
539
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
559
560# Name of the host.
561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
565#
566# Initializations.
567#
568ac_default_prefix=/usr/local
569ac_clean_files=
570ac_config_libobj_dir=.
571LIBOBJS=
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
576
577# Identity of this package.
578PACKAGE_NAME='rdesktop'
579PACKAGE_TARNAME='rdesktop'
580PACKAGE_VERSION='1.8.3'
581PACKAGE_STRING='rdesktop 1.8.3'
582PACKAGE_BUGREPORT=''
583PACKAGE_URL=''
584
585ac_unique_file="rdesktop.c"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
589#ifdef HAVE_SYS_TYPES_H
590# include <sys/types.h>
591#endif
592#ifdef HAVE_SYS_STAT_H
593# include <sys/stat.h>
594#endif
595#ifdef STDC_HEADERS
596# include <stdlib.h>
597# include <stddef.h>
598#else
599# ifdef HAVE_STDLIB_H
600# include <stdlib.h>
601# endif
602#endif
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
609#ifdef HAVE_STRINGS_H
610# include <strings.h>
611#endif
612#ifdef HAVE_INTTYPES_H
613# include <inttypes.h>
614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
618#ifdef HAVE_UNISTD_H
619# include <unistd.h>
620#endif"
621
622ac_subst_vars='LTLIBOBJS
623LIBICONV
624LIBOBJS
625SOUNDOBJ
626LIBSAMPLERATE_LIBS
627LIBSAMPLERATE_CFLAGS
628ALSA_LIBS
629ALSA_CFLAGS
630LIBAO_LIBS
631LIBAO_CFLAGS
632RDP2VNCTARGET
633VNCLINK
634LDVNC
635VNCINC
636SCARDOBJ
637PCSCLITE_LIBS
638PCSCLITE_CFLAGS
639XRANDR_LIBS
640XRANDR_CFLAGS
641CREDSSPOBJ
642GSSGLUE_LIBS
643GSSGLUE_CFLAGS
644PKG_CONFIG_LIBDIR
645PKG_CONFIG_PATH
646ssldir
647STRIP
648PKG_CONFIG
649X_EXTRA_LIBS
650X_LIBS
651X_PRE_LIBS
652X_CFLAGS
653XMKMF
654EGREP
655GREP
656CPP
657INSTALL_DATA
658INSTALL_SCRIPT
659INSTALL_PROGRAM
660ac_ct_CXX
661CXXFLAGS
662CXX
663OBJEXT
664EXEEXT
665ac_ct_CC
666CPPFLAGS
667LDFLAGS
668CFLAGS
669CC
670host_os
671host_vendor
672host_cpu
673host
674build_os
675build_vendor
676build_cpu
677build
678target_alias
679host_alias
680build_alias
681LIBS
682ECHO_T
683ECHO_N
684ECHO_C
685DEFS
686mandir
687localedir
688libdir
689psdir
690pdfdir
691dvidir
692htmldir
693infodir
694docdir
695oldincludedir
696includedir
697localstatedir
698sharedstatedir
699sysconfdir
700datadir
701datarootdir
702libexecdir
703sbindir
704bindir
705program_transform_name
706prefix
707exec_prefix
708PACKAGE_URL
709PACKAGE_BUGREPORT
710PACKAGE_STRING
711PACKAGE_VERSION
712PACKAGE_TARNAME
713PACKAGE_NAME
714PATH_SEPARATOR
715SHELL'
716ac_subst_files=''
717ac_user_opts='
718enable_option_checking
719with_x
720with_openssl
721enable_static_openssl
722enable_credssp
723enable_static_gssglue
724enable_smartcard
725with_egd_socket
726with_libvncserver_config
727with_libvncserver
728with_sound
729enable_static_libsamplerate
730with_libiconv_prefix
731enable_largefile
732with_ipv6
733with_debug
734with_debug_kbd
735with_debug_rdp5
736with_debug_clipboard
737with_debug_sound
738with_debug_channel
739with_debug_seamless
740with_debug_smartcard
741with_debug_credssp
742'
743 ac_precious_vars='build_alias
744host_alias
745target_alias
746CC
747CFLAGS
748LDFLAGS
749LIBS
750CPPFLAGS
751CXX
752CXXFLAGS
753CCC
754CPP
755XMKMF
756PKG_CONFIG
757PKG_CONFIG_PATH
758PKG_CONFIG_LIBDIR
759GSSGLUE_CFLAGS
760GSSGLUE_LIBS
761XRANDR_CFLAGS
762XRANDR_LIBS
763PCSCLITE_CFLAGS
764PCSCLITE_LIBS
765LIBAO_CFLAGS
766LIBAO_LIBS
767ALSA_CFLAGS
768ALSA_LIBS
769LIBSAMPLERATE_CFLAGS
770LIBSAMPLERATE_LIBS'
771
772
773# Initialize some variables set by options.
774ac_init_help=
775ac_init_version=false
776ac_unrecognized_opts=
777ac_unrecognized_sep=
778# The variables have the same names as the options, with
779# dashes changed to underlines.
780cache_file=/dev/null
781exec_prefix=NONE
782no_create=
783no_recursion=
784prefix=NONE
785program_prefix=NONE
786program_suffix=NONE
787program_transform_name=s,x,x,
788silent=
789site=
790srcdir=
791verbose=
792x_includes=NONE
793x_libraries=NONE
794
795# Installation directory options.
796# These are left unexpanded so users can "make install exec_prefix=/foo"
797# and all the variables that are supposed to be based on exec_prefix
798# by default will actually change.
799# Use braces instead of parens because sh, perl, etc. also accept them.
800# (The list follows the same order as the GNU Coding Standards.)
801bindir='${exec_prefix}/bin'
802sbindir='${exec_prefix}/sbin'
803libexecdir='${exec_prefix}/libexec'
804datarootdir='${prefix}/share'
805datadir='${datarootdir}'
806sysconfdir='${prefix}/etc'
807sharedstatedir='${prefix}/com'
808localstatedir='${prefix}/var'
809includedir='${prefix}/include'
810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
812infodir='${datarootdir}/info'
813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
820
821ac_prev=
822ac_dashdash=
823for ac_option
824do
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\$ac_option
828 ac_prev=
829 continue
830 fi
831
832 case $ac_option in
833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
837
838 # Accept the important Cygnus configure options, so we can diagnose typos.
839
840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
843
844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
845 ac_prev=bindir ;;
846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
847 bindir=$ac_optarg ;;
848
849 -build | --build | --buil | --bui | --bu)
850 ac_prev=build_alias ;;
851 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
852 build_alias=$ac_optarg ;;
853
854 -cache-file | --cache-file | --cache-fil | --cache-fi \
855 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
856 ac_prev=cache_file ;;
857 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
858 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
859 cache_file=$ac_optarg ;;
860
861 --config-cache | -C)
862 cache_file=config.cache ;;
863
864 -datadir | --datadir | --datadi | --datad)
865 ac_prev=datadir ;;
866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
867 datadir=$ac_optarg ;;
868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
876 -disable-* | --disable-*)
877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
880 as_fn_error $? "invalid feature name: $ac_useropt"
881 ac_useropt_orig=$ac_useropt
882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
901
902 -enable-* | --enable-*)
903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
904 # Reject names that are not valid shell variable names.
905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906 as_fn_error $? "invalid feature name: $ac_useropt"
907 ac_useropt_orig=$ac_useropt
908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909 case $ac_user_opts in
910 *"
911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
915 esac
916 eval enable_$ac_useropt=\$ac_optarg ;;
917
918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
920 | --exec | --exe | --ex)
921 ac_prev=exec_prefix ;;
922 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
923 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
924 | --exec=* | --exe=* | --ex=*)
925 exec_prefix=$ac_optarg ;;
926
927 -gas | --gas | --ga | --g)
928 # Obsolete; use --with-gas.
929 with_gas=yes ;;
930
931 -help | --help | --hel | --he | -h)
932 ac_init_help=long ;;
933 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
934 ac_init_help=recursive ;;
935 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
936 ac_init_help=short ;;
937
938 -host | --host | --hos | --ho)
939 ac_prev=host_alias ;;
940 -host=* | --host=* | --hos=* | --ho=*)
941 host_alias=$ac_optarg ;;
942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
949 -includedir | --includedir | --includedi | --included | --include \
950 | --includ | --inclu | --incl | --inc)
951 ac_prev=includedir ;;
952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
953 | --includ=* | --inclu=* | --incl=* | --inc=*)
954 includedir=$ac_optarg ;;
955
956 -infodir | --infodir | --infodi | --infod | --info | --inf)
957 ac_prev=infodir ;;
958 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
959 infodir=$ac_optarg ;;
960
961 -libdir | --libdir | --libdi | --libd)
962 ac_prev=libdir ;;
963 -libdir=* | --libdir=* | --libdi=* | --libd=*)
964 libdir=$ac_optarg ;;
965
966 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
967 | --libexe | --libex | --libe)
968 ac_prev=libexecdir ;;
969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
970 | --libexe=* | --libex=* | --libe=*)
971 libexecdir=$ac_optarg ;;
972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
978 -localstatedir | --localstatedir | --localstatedi | --localstated \
979 | --localstate | --localstat | --localsta | --localst | --locals)
980 ac_prev=localstatedir ;;
981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
983 localstatedir=$ac_optarg ;;
984
985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
986 ac_prev=mandir ;;
987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
988 mandir=$ac_optarg ;;
989
990 -nfp | --nfp | --nf)
991 # Obsolete; use --without-fp.
992 with_fp=no ;;
993
994 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
995 | --no-cr | --no-c | -n)
996 no_create=yes ;;
997
998 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
999 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1000 no_recursion=yes ;;
1001
1002 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1003 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1004 | --oldin | --oldi | --old | --ol | --o)
1005 ac_prev=oldincludedir ;;
1006 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1007 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1008 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1009 oldincludedir=$ac_optarg ;;
1010
1011 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1012 ac_prev=prefix ;;
1013 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1014 prefix=$ac_optarg ;;
1015
1016 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1017 | --program-pre | --program-pr | --program-p)
1018 ac_prev=program_prefix ;;
1019 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1020 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1021 program_prefix=$ac_optarg ;;
1022
1023 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1024 | --program-suf | --program-su | --program-s)
1025 ac_prev=program_suffix ;;
1026 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1027 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1028 program_suffix=$ac_optarg ;;
1029
1030 -program-transform-name | --program-transform-name \
1031 | --program-transform-nam | --program-transform-na \
1032 | --program-transform-n | --program-transform- \
1033 | --program-transform | --program-transfor \
1034 | --program-transfo | --program-transf \
1035 | --program-trans | --program-tran \
1036 | --progr-tra | --program-tr | --program-t)
1037 ac_prev=program_transform_name ;;
1038 -program-transform-name=* | --program-transform-name=* \
1039 | --program-transform-nam=* | --program-transform-na=* \
1040 | --program-transform-n=* | --program-transform-=* \
1041 | --program-transform=* | --program-transfor=* \
1042 | --program-transfo=* | --program-transf=* \
1043 | --program-trans=* | --program-tran=* \
1044 | --progr-tra=* | --program-tr=* | --program-t=*)
1045 program_transform_name=$ac_optarg ;;
1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1058 | -silent | --silent | --silen | --sile | --sil)
1059 silent=yes ;;
1060
1061 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1062 ac_prev=sbindir ;;
1063 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1064 | --sbi=* | --sb=*)
1065 sbindir=$ac_optarg ;;
1066
1067 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1068 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1069 | --sharedst | --shareds | --shared | --share | --shar \
1070 | --sha | --sh)
1071 ac_prev=sharedstatedir ;;
1072 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1073 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1074 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1075 | --sha=* | --sh=*)
1076 sharedstatedir=$ac_optarg ;;
1077
1078 -site | --site | --sit)
1079 ac_prev=site ;;
1080 -site=* | --site=* | --sit=*)
1081 site=$ac_optarg ;;
1082
1083 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1084 ac_prev=srcdir ;;
1085 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1086 srcdir=$ac_optarg ;;
1087
1088 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1089 | --syscon | --sysco | --sysc | --sys | --sy)
1090 ac_prev=sysconfdir ;;
1091 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1092 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1093 sysconfdir=$ac_optarg ;;
1094
1095 -target | --target | --targe | --targ | --tar | --ta | --t)
1096 ac_prev=target_alias ;;
1097 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1098 target_alias=$ac_optarg ;;
1099
1100 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1101 verbose=yes ;;
1102
1103 -version | --version | --versio | --versi | --vers | -V)
1104 ac_init_version=: ;;
1105
1106 -with-* | --with-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error $? "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1114 *"
1115"with_$ac_useropt"
1116"*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=\$ac_optarg ;;
1121
1122 -without-* | --without-*)
1123 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1124 # Reject names that are not valid shell variable names.
1125 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1126 as_fn_error $? "invalid package name: $ac_useropt"
1127 ac_useropt_orig=$ac_useropt
1128 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1129 case $ac_user_opts in
1130 *"
1131"with_$ac_useropt"
1132"*) ;;
1133 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1134 ac_unrecognized_sep=', ';;
1135 esac
1136 eval with_$ac_useropt=no ;;
1137
1138 --x)
1139 # Obsolete; use --with-x.
1140 with_x=yes ;;
1141
1142 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1143 | --x-incl | --x-inc | --x-in | --x-i)
1144 ac_prev=x_includes ;;
1145 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1146 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1147 x_includes=$ac_optarg ;;
1148
1149 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1150 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1151 ac_prev=x_libraries ;;
1152 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1153 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1154 x_libraries=$ac_optarg ;;
1155
1156 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1157Try \`$0 --help' for more information"
1158 ;;
1159
1160 *=*)
1161 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1162 # Reject names that are not valid shell variable names.
1163 case $ac_envvar in #(
1164 '' | [0-9]* | *[!_$as_cr_alnum]* )
1165 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1166 esac
1167 eval $ac_envvar=\$ac_optarg
1168 export $ac_envvar ;;
1169
1170 *)
1171 # FIXME: should be removed in autoconf 3.0.
1172 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1173 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1175 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1176 ;;
1177
1178 esac
1179done
1180
1181if test -n "$ac_prev"; then
1182 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1183 as_fn_error $? "missing argument to $ac_option"
1184fi
1185
1186if test -n "$ac_unrecognized_opts"; then
1187 case $enable_option_checking in
1188 no) ;;
1189 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1190 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1191 esac
1192fi
1193
1194# Check all directory arguments for consistency.
1195for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1196 datadir sysconfdir sharedstatedir localstatedir includedir \
1197 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1198 libdir localedir mandir
1199do
1200 eval ac_val=\$$ac_var
1201 # Remove trailing slashes.
1202 case $ac_val in
1203 */ )
1204 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1205 eval $ac_var=\$ac_val;;
1206 esac
1207 # Be sure to have absolute directory names.
1208 case $ac_val in
1209 [\\/$]* | ?:[\\/]* ) continue;;
1210 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1211 esac
1212 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1213done
1214
1215# There might be people who depend on the old broken behavior: `$host'
1216# used to hold the argument of --host etc.
1217# FIXME: To remove some day.
1218build=$build_alias
1219host=$host_alias
1220target=$target_alias
1221
1222# FIXME: To remove some day.
1223if test "x$host_alias" != x; then
1224 if test "x$build_alias" = x; then
1225 cross_compiling=maybe
1226 elif test "x$build_alias" != "x$host_alias"; then
1227 cross_compiling=yes
1228 fi
1229fi
1230
1231ac_tool_prefix=
1232test -n "$host_alias" && ac_tool_prefix=$host_alias-
1233
1234test "$silent" = yes && exec 6>/dev/null
1235
1236
1237ac_pwd=`pwd` && test -n "$ac_pwd" &&
1238ac_ls_di=`ls -di .` &&
1239ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1240 as_fn_error $? "working directory cannot be determined"
1241test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1242 as_fn_error $? "pwd does not report name of working directory"
1243
1244
1245# Find the source files, if location was not specified.
1246if test -z "$srcdir"; then
1247 ac_srcdir_defaulted=yes
1248 # Try the directory containing this script, then the parent directory.
1249 ac_confdir=`$as_dirname -- "$as_myself" ||
1250$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1251 X"$as_myself" : 'X\(//\)[^/]' \| \
1252 X"$as_myself" : 'X\(//\)$' \| \
1253 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1254$as_echo X"$as_myself" |
1255 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1256 s//\1/
1257 q
1258 }
1259 /^X\(\/\/\)[^/].*/{
1260 s//\1/
1261 q
1262 }
1263 /^X\(\/\/\)$/{
1264 s//\1/
1265 q
1266 }
1267 /^X\(\/\).*/{
1268 s//\1/
1269 q
1270 }
1271 s/.*/./; q'`
1272 srcdir=$ac_confdir
1273 if test ! -r "$srcdir/$ac_unique_file"; then
1274 srcdir=..
1275 fi
1276else
1277 ac_srcdir_defaulted=no
1278fi
1279if test ! -r "$srcdir/$ac_unique_file"; then
1280 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1281 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1282fi
1283ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1284ac_abs_confdir=`(
1285 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1286 pwd)`
1287# When building in place, set srcdir=.
1288if test "$ac_abs_confdir" = "$ac_pwd"; then
1289 srcdir=.
1290fi
1291# Remove unnecessary trailing slashes from srcdir.
1292# Double slashes in file names in object file debugging info
1293# mess up M-x gdb in Emacs.
1294case $srcdir in
1295*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1296esac
1297for ac_var in $ac_precious_vars; do
1298 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1299 eval ac_env_${ac_var}_value=\$${ac_var}
1300 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1302done
1303
1304#
1305# Report the --help message.
1306#
1307if test "$ac_init_help" = "long"; then
1308 # Omit some internal or obsolete options to make the list less imposing.
1309 # This message is too long to be a string in the A/UX 3.1 sh.
1310 cat <<_ACEOF
1311\`configure' configures rdesktop 1.8.3 to adapt to many kinds of systems.
1312
1313Usage: $0 [OPTION]... [VAR=VALUE]...
1314
1315To assign environment variables (e.g., CC, CFLAGS...), specify them as
1316VAR=VALUE. See below for descriptions of some of the useful variables.
1317
1318Defaults for the options are specified in brackets.
1319
1320Configuration:
1321 -h, --help display this help and exit
1322 --help=short display options specific to this package
1323 --help=recursive display the short help of all the included packages
1324 -V, --version display version information and exit
1325 -q, --quiet, --silent do not print \`checking ...' messages
1326 --cache-file=FILE cache test results in FILE [disabled]
1327 -C, --config-cache alias for \`--cache-file=config.cache'
1328 -n, --no-create do not create output files
1329 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1330
1331Installation directories:
1332 --prefix=PREFIX install architecture-independent files in PREFIX
1333 [$ac_default_prefix]
1334 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1335 [PREFIX]
1336
1337By default, \`make install' will install all the files in
1338\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1339an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1340for instance \`--prefix=\$HOME'.
1341
1342For better control, use the options below.
1343
1344Fine tuning of the installation directories:
1345 --bindir=DIR user executables [EPREFIX/bin]
1346 --sbindir=DIR system admin executables [EPREFIX/sbin]
1347 --libexecdir=DIR program executables [EPREFIX/libexec]
1348 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1349 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1350 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1351 --libdir=DIR object code libraries [EPREFIX/lib]
1352 --includedir=DIR C header files [PREFIX/include]
1353 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1354 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1355 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1356 --infodir=DIR info documentation [DATAROOTDIR/info]
1357 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1358 --mandir=DIR man documentation [DATAROOTDIR/man]
1359 --docdir=DIR documentation root [DATAROOTDIR/doc/rdesktop]
1360 --htmldir=DIR html documentation [DOCDIR]
1361 --dvidir=DIR dvi documentation [DOCDIR]
1362 --pdfdir=DIR pdf documentation [DOCDIR]
1363 --psdir=DIR ps documentation [DOCDIR]
1364_ACEOF
1365
1366 cat <<\_ACEOF
1367
1368X features:
1369 --x-includes=DIR X include files are in DIR
1370 --x-libraries=DIR X library files are in DIR
1371
1372System types:
1373 --build=BUILD configure for building on BUILD [guessed]
1374 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1375_ACEOF
1376fi
1377
1378if test -n "$ac_init_help"; then
1379 case $ac_init_help in
1380 short | recursive ) echo "Configuration of rdesktop 1.8.3:";;
1381 esac
1382 cat <<\_ACEOF
1383
1384Optional Features:
1385 --disable-option-checking ignore unrecognized --enable/--with options
1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1388 --enable-static-openssl link OpenSSL statically
1389 --disable-credssp disable support for CredSSP
1390 --enable-static-gssglue
1391 --disable-smartcard disable support for smartcard
1392 --enable-static-libsamplerate link libsamplerate statically
1393 --disable-largefile omit support for large files
1394
1395Optional Packages:
1396 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398 --with-x use the X Window System
1399 --with-openssl=DIR look for OpenSSL at DIR/include, DIR/lib
1400 --with-egd-socket=PATH look for Entropy Gathering Daemon socket at PATH
1401 --with-libvncserver-config=CMD use CMD as libvncserver-config
1402 --with-libvncserver make rdp2vnc
1403 --with-sound select sound system ("oss", "sgi", "sun", "alsa" or "libao")
1404 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib
1405 --with-ipv6 enable IPv6-support
1406 --with-debug enable protocol debugging output
1407 --with-debug-kbd enable debugging of keyboard handling
1408 --with-debug-rdp5 enable debugging of RDP5 code
1409 --with-debug-clipboard enable debugging of clipboard code
1410 --with-debug-sound enable debugging of sound code
1411 --with-debug-channel enable debugging of virtual channel code
1412 --with-debug-seamless enable debugging of SeamlessRDP code
1413 --with-debug-smartcard enable debugging of smart-card code
1414 --with-debug-credssp enable debugging of CredSSP code
1415
1416Some influential environment variables:
1417 CC C compiler command
1418 CFLAGS C compiler flags
1419 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1420 nonstandard directory <lib dir>
1421 LIBS libraries to pass to the linker, e.g. -l<library>
1422 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1423 you have headers in a nonstandard directory <include dir>
1424 CXX C++ compiler command
1425 CXXFLAGS C++ compiler flags
1426 CPP C preprocessor
1427 XMKMF Path to xmkmf, Makefile generator for X Window System
1428 PKG_CONFIG path to pkg-config utility
1429 PKG_CONFIG_PATH
1430 directories to add to pkg-config's search path
1431 PKG_CONFIG_LIBDIR
1432 path overriding pkg-config's built-in search path
1433 GSSGLUE_CFLAGS
1434 C compiler flags for GSSGLUE, overriding pkg-config
1435 GSSGLUE_LIBS
1436 linker flags for GSSGLUE, overriding pkg-config
1437 XRANDR_CFLAGS
1438 C compiler flags for XRANDR, overriding pkg-config
1439 XRANDR_LIBS linker flags for XRANDR, overriding pkg-config
1440 PCSCLITE_CFLAGS
1441 C compiler flags for PCSCLITE, overriding pkg-config
1442 PCSCLITE_LIBS
1443 linker flags for PCSCLITE, overriding pkg-config
1444 LIBAO_CFLAGS
1445 C compiler flags for LIBAO, overriding pkg-config
1446 LIBAO_LIBS linker flags for LIBAO, overriding pkg-config
1447 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1448 ALSA_LIBS linker flags for ALSA, overriding pkg-config
1449 LIBSAMPLERATE_CFLAGS
1450 C compiler flags for LIBSAMPLERATE, overriding pkg-config
1451 LIBSAMPLERATE_LIBS
1452 linker flags for LIBSAMPLERATE, overriding pkg-config
1453
1454Use these variables to override the choices made by `configure' or to help
1455it to find libraries and programs with nonstandard names/locations.
1456
1457Report bugs to the package provider.
1458_ACEOF
1459ac_status=$?
1460fi
1461
1462if test "$ac_init_help" = "recursive"; then
1463 # If there are subdirs, report their specific --help.
1464 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1465 test -d "$ac_dir" ||
1466 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1467 continue
1468 ac_builddir=.
1469
1470case "$ac_dir" in
1471.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472*)
1473 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1474 # A ".." for each directory in $ac_dir_suffix.
1475 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1476 case $ac_top_builddir_sub in
1477 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1479 esac ;;
1480esac
1481ac_abs_top_builddir=$ac_pwd
1482ac_abs_builddir=$ac_pwd$ac_dir_suffix
1483# for backward compatibility:
1484ac_top_builddir=$ac_top_build_prefix
1485
1486case $srcdir in
1487 .) # We are building in place.
1488 ac_srcdir=.
1489 ac_top_srcdir=$ac_top_builddir_sub
1490 ac_abs_top_srcdir=$ac_pwd ;;
1491 [\\/]* | ?:[\\/]* ) # Absolute name.
1492 ac_srcdir=$srcdir$ac_dir_suffix;
1493 ac_top_srcdir=$srcdir
1494 ac_abs_top_srcdir=$srcdir ;;
1495 *) # Relative name.
1496 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1497 ac_top_srcdir=$ac_top_build_prefix$srcdir
1498 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1499esac
1500ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1501
1502 cd "$ac_dir" || { ac_status=$?; continue; }
1503 # Check for guested configure.
1504 if test -f "$ac_srcdir/configure.gnu"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1507 elif test -f "$ac_srcdir/configure"; then
1508 echo &&
1509 $SHELL "$ac_srcdir/configure" --help=recursive
1510 else
1511 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1512 fi || ac_status=$?
1513 cd "$ac_pwd" || { ac_status=$?; break; }
1514 done
1515fi
1516
1517test -n "$ac_init_help" && exit $ac_status
1518if $ac_init_version; then
1519 cat <<\_ACEOF
1520rdesktop configure 1.8.3
1521generated by GNU Autoconf 2.69
1522
1523Copyright (C) 2012 Free Software Foundation, Inc.
1524This configure script is free software; the Free Software Foundation
1525gives unlimited permission to copy, distribute and modify it.
1526_ACEOF
1527 exit
1528fi
1529
1530## ------------------------ ##
1531## Autoconf initialization. ##
1532## ------------------------ ##
1533
1534# ac_fn_c_try_compile LINENO
1535# --------------------------
1536# Try to compile conftest.$ac_ext, and return whether this succeeded.
1537ac_fn_c_try_compile ()
1538{
1539 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1540 rm -f conftest.$ac_objext
1541 if { { ac_try="$ac_compile"
1542case "(($ac_try" in
1543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1544 *) ac_try_echo=$ac_try;;
1545esac
1546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1547$as_echo "$ac_try_echo"; } >&5
1548 (eval "$ac_compile") 2>conftest.err
1549 ac_status=$?
1550 if test -s conftest.err; then
1551 grep -v '^ *+' conftest.err >conftest.er1
1552 cat conftest.er1 >&5
1553 mv -f conftest.er1 conftest.err
1554 fi
1555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1556 test $ac_status = 0; } && {
1557 test -z "$ac_c_werror_flag" ||
1558 test ! -s conftest.err
1559 } && test -s conftest.$ac_objext; then :
1560 ac_retval=0
1561else
1562 $as_echo "$as_me: failed program was:" >&5
1563sed 's/^/| /' conftest.$ac_ext >&5
1564
1565 ac_retval=1
1566fi
1567 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1568 as_fn_set_status $ac_retval
1569
1570} # ac_fn_c_try_compile
1571
1572# ac_fn_cxx_try_compile LINENO
1573# ----------------------------
1574# Try to compile conftest.$ac_ext, and return whether this succeeded.
1575ac_fn_cxx_try_compile ()
1576{
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583esac
1584eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585$as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1592 fi
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_cxx_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599else
1600 $as_echo "$as_me: failed program was:" >&5
1601sed 's/^/| /' conftest.$ac_ext >&5
1602
1603 ac_retval=1
1604fi
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1607
1608} # ac_fn_cxx_try_compile
1609
1610# ac_fn_c_try_cpp LINENO
1611# ----------------------
1612# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613ac_fn_c_try_cpp ()
1614{
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620esac
1621eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622$as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1629 fi
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636else
1637 $as_echo "$as_me: failed program was:" >&5
1638sed 's/^/| /' conftest.$ac_ext >&5
1639
1640 ac_retval=1
1641fi
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1644
1645} # ac_fn_c_try_cpp
1646
1647# ac_fn_c_try_run LINENO
1648# ----------------------
1649# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1650# that executables *can* be run.
1651ac_fn_c_try_run ()
1652{
1653 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1654 if { { ac_try="$ac_link"
1655case "(($ac_try" in
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1658esac
1659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660$as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_link") 2>&5
1662 ac_status=$?
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1665 { { case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_try") 2>&5
1672 ac_status=$?
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; }; }; then :
1675 ac_retval=0
1676else
1677 $as_echo "$as_me: program exited with status $ac_status" >&5
1678 $as_echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=$ac_status
1682fi
1683 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685 as_fn_set_status $ac_retval
1686
1687} # ac_fn_c_try_run
1688
1689# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1690# -------------------------------------------------------
1691# Tests whether HEADER exists and can be compiled using the include files in
1692# INCLUDES, setting the cache variable VAR accordingly.
1693ac_fn_c_check_header_compile ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1697$as_echo_n "checking for $2... " >&6; }
1698if eval \${$3+:} false; then :
1699 $as_echo_n "(cached) " >&6
1700else
1701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1702/* end confdefs.h. */
1703$4
1704#include <$2>
1705_ACEOF
1706if ac_fn_c_try_compile "$LINENO"; then :
1707 eval "$3=yes"
1708else
1709 eval "$3=no"
1710fi
1711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1712fi
1713eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715$as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
1718} # ac_fn_c_check_header_compile
1719
1720# ac_fn_c_try_link LINENO
1721# -----------------------
1722# Try to link conftest.$ac_ext, and return whether this succeeded.
1723ac_fn_c_try_link ()
1724{
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 rm -f conftest.$ac_objext conftest$ac_exeext
1727 if { { ac_try="$ac_link"
1728case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731esac
1732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733$as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>conftest.err
1735 ac_status=$?
1736 if test -s conftest.err; then
1737 grep -v '^ *+' conftest.err >conftest.er1
1738 cat conftest.er1 >&5
1739 mv -f conftest.er1 conftest.err
1740 fi
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } && {
1743 test -z "$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1745 } && test -s conftest$ac_exeext && {
1746 test "$cross_compiling" = yes ||
1747 test -x conftest$ac_exeext
1748 }; then :
1749 ac_retval=0
1750else
1751 $as_echo "$as_me: failed program was:" >&5
1752sed 's/^/| /' conftest.$ac_ext >&5
1753
1754 ac_retval=1
1755fi
1756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1758 # interfere with the next link command; also delete a directory that is
1759 # left behind by Apple's compiler. We do this before executing the actions.
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1762 as_fn_set_status $ac_retval
1763
1764} # ac_fn_c_try_link
1765
1766# ac_fn_c_check_func LINENO FUNC VAR
1767# ----------------------------------
1768# Tests whether FUNC exists, setting the cache variable VAR accordingly
1769ac_fn_c_check_func ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775 $as_echo_n "(cached) " >&6
1776else
1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1778/* end confdefs.h. */
1779/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1781#define $2 innocuous_$2
1782
1783/* System header to define __stub macros and hopefully few prototypes,
1784 which can conflict with char $2 (); below.
1785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1786 <limits.h> exists even on freestanding compilers. */
1787
1788#ifdef __STDC__
1789# include <limits.h>
1790#else
1791# include <assert.h>
1792#endif
1793
1794#undef $2
1795
1796/* Override any GCC internal prototype to avoid an error.
1797 Use char because int might match the return type of a GCC
1798 builtin and then its argument prototype would still apply. */
1799#ifdef __cplusplus
1800extern "C"
1801#endif
1802char $2 ();
1803/* The GNU C library defines this for functions which it implements
1804 to always fail with ENOSYS. Some functions are actually named
1805 something starting with __ and the normal name is an alias. */
1806#if defined __stub_$2 || defined __stub___$2
1807choke me
1808#endif
1809
1810int
1811main ()
1812{
1813return $2 ();
1814 ;
1815 return 0;
1816}
1817_ACEOF
1818if ac_fn_c_try_link "$LINENO"; then :
1819 eval "$3=yes"
1820else
1821 eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext \
1824 conftest$ac_exeext conftest.$ac_ext
1825fi
1826eval ac_res=\$$3
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828$as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830
1831} # ac_fn_c_check_func
1832
1833# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1834# -------------------------------------------------------
1835# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1836# the include files in INCLUDES and setting the cache variable VAR
1837# accordingly.
1838ac_fn_c_check_header_mongrel ()
1839{
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if eval \${$3+:} false; then :
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843$as_echo_n "checking for $2... " >&6; }
1844if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850else
1851 # Is the header compilable?
1852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1853$as_echo_n "checking $2 usability... " >&6; }
1854cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855/* end confdefs.h. */
1856$4
1857#include <$2>
1858_ACEOF
1859if ac_fn_c_try_compile "$LINENO"; then :
1860 ac_header_compiler=yes
1861else
1862 ac_header_compiler=no
1863fi
1864rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1866$as_echo "$ac_header_compiler" >&6; }
1867
1868# Is the header present?
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1870$as_echo_n "checking $2 presence... " >&6; }
1871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872/* end confdefs.h. */
1873#include <$2>
1874_ACEOF
1875if ac_fn_c_try_cpp "$LINENO"; then :
1876 ac_header_preproc=yes
1877else
1878 ac_header_preproc=no
1879fi
1880rm -f conftest.err conftest.i conftest.$ac_ext
1881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1882$as_echo "$ac_header_preproc" >&6; }
1883
1884# So? What about this header?
1885case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1886 yes:no: )
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1888$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1890$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1891 ;;
1892 no:yes:* )
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1894$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1896$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1898$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1900$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1902$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1903 ;;
1904esac
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
1907if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909else
1910 eval "$3=\$ac_header_compiler"
1911fi
1912eval ac_res=\$$3
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1914$as_echo "$ac_res" >&6; }
1915fi
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917
1918} # ac_fn_c_check_header_mongrel
1919
1920# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1921# ---------------------------------------------
1922# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1923# accordingly.
1924ac_fn_c_check_decl ()
1925{
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 as_decl_name=`echo $2|sed 's/ *(.*//'`
1928 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1930$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1931if eval \${$3+:} false; then :
1932 $as_echo_n "(cached) " >&6
1933else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935/* end confdefs.h. */
1936$4
1937int
1938main ()
1939{
1940#ifndef $as_decl_name
1941#ifdef __cplusplus
1942 (void) $as_decl_use;
1943#else
1944 (void) $as_decl_name;
1945#endif
1946#endif
1947
1948 ;
1949 return 0;
1950}
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953 eval "$3=yes"
1954else
1955 eval "$3=no"
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958fi
1959eval ac_res=\$$3
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961$as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963
1964} # ac_fn_c_check_decl
1965
1966# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1967# -------------------------------------------
1968# Tests whether TYPE exists after having included INCLUDES, setting cache
1969# variable VAR accordingly.
1970ac_fn_c_check_type ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977else
1978 eval "$3=no"
1979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h. */
1981$4
1982int
1983main ()
1984{
1985if (sizeof ($2))
1986 return 0;
1987 ;
1988 return 0;
1989}
1990_ACEOF
1991if ac_fn_c_try_compile "$LINENO"; then :
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993/* end confdefs.h. */
1994$4
1995int
1996main ()
1997{
1998if (sizeof (($2)))
1999 return 0;
2000 ;
2001 return 0;
2002}
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005
2006else
2007 eval "$3=yes"
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010fi
2011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012fi
2013eval ac_res=\$$3
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} # ac_fn_c_check_type
2019
2020# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021# ----------------------------------------------------
2022# Tries to find if the field MEMBER exists in type AGGR, after including
2023# INCLUDES, setting cache variable VAR accordingly.
2024ac_fn_c_check_member ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028$as_echo_n "checking for $2.$3... " >&6; }
2029if eval \${$4+:} false; then :
2030 $as_echo_n "(cached) " >&6
2031else
2032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2033/* end confdefs.h. */
2034$5
2035int
2036main ()
2037{
2038static $2 ac_aggr;
2039if (ac_aggr.$3)
2040return 0;
2041 ;
2042 return 0;
2043}
2044_ACEOF
2045if ac_fn_c_try_compile "$LINENO"; then :
2046 eval "$4=yes"
2047else
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050$5
2051int
2052main ()
2053{
2054static $2 ac_aggr;
2055if (sizeof ac_aggr.$3)
2056return 0;
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_compile "$LINENO"; then :
2062 eval "$4=yes"
2063else
2064 eval "$4=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2069fi
2070eval ac_res=\$$4
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072$as_echo "$ac_res" >&6; }
2073 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2074
2075} # ac_fn_c_check_member
2076cat >config.log <<_ACEOF
2077This file contains any messages produced by compilers while
2078running configure, to aid debugging if configure makes a mistake.
2079
2080It was created by rdesktop $as_me 1.8.3, which was
2081generated by GNU Autoconf 2.69. Invocation command line was
2082
2083 $ $0 $@
2084
2085_ACEOF
2086exec 5>>config.log
2087{
2088cat <<_ASUNAME
2089## --------- ##
2090## Platform. ##
2091## --------- ##
2092
2093hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2094uname -m = `(uname -m) 2>/dev/null || echo unknown`
2095uname -r = `(uname -r) 2>/dev/null || echo unknown`
2096uname -s = `(uname -s) 2>/dev/null || echo unknown`
2097uname -v = `(uname -v) 2>/dev/null || echo unknown`
2098
2099/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2100/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2101
2102/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2103/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2104/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2105/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2106/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2107/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2108/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2109
2110_ASUNAME
2111
2112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2113for as_dir in $PATH
2114do
2115 IFS=$as_save_IFS
2116 test -z "$as_dir" && as_dir=.
2117 $as_echo "PATH: $as_dir"
2118 done
2119IFS=$as_save_IFS
2120
2121} >&5
2122
2123cat >&5 <<_ACEOF
2124
2125
2126## ----------- ##
2127## Core tests. ##
2128## ----------- ##
2129
2130_ACEOF
2131
2132
2133# Keep a trace of the command line.
2134# Strip out --no-create and --no-recursion so they do not pile up.
2135# Strip out --silent because we don't want to record it for future runs.
2136# Also quote any args containing shell meta-characters.
2137# Make two passes to allow for proper duplicate-argument suppression.
2138ac_configure_args=
2139ac_configure_args0=
2140ac_configure_args1=
2141ac_must_keep_next=false
2142for ac_pass in 1 2
2143do
2144 for ac_arg
2145 do
2146 case $ac_arg in
2147 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2148 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2149 | -silent | --silent | --silen | --sile | --sil)
2150 continue ;;
2151 *\'*)
2152 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2153 esac
2154 case $ac_pass in
2155 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2156 2)
2157 as_fn_append ac_configure_args1 " '$ac_arg'"
2158 if test $ac_must_keep_next = true; then
2159 ac_must_keep_next=false # Got value, back to normal.
2160 else
2161 case $ac_arg in
2162 *=* | --config-cache | -C | -disable-* | --disable-* \
2163 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2164 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2165 | -with-* | --with-* | -without-* | --without-* | --x)
2166 case "$ac_configure_args0 " in
2167 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2168 esac
2169 ;;
2170 -* ) ac_must_keep_next=true ;;
2171 esac
2172 fi
2173 as_fn_append ac_configure_args " '$ac_arg'"
2174 ;;
2175 esac
2176 done
2177done
2178{ ac_configure_args0=; unset ac_configure_args0;}
2179{ ac_configure_args1=; unset ac_configure_args1;}
2180
2181# When interrupted or exit'd, cleanup temporary files, and complete
2182# config.log. We remove comments because anyway the quotes in there
2183# would cause problems or look ugly.
2184# WARNING: Use '\'' to represent an apostrophe within the trap.
2185# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2186trap 'exit_status=$?
2187 # Save into config.log some information that might help in debugging.
2188 {
2189 echo
2190
2191 $as_echo "## ---------------- ##
2192## Cache variables. ##
2193## ---------------- ##"
2194 echo
2195 # The following way of writing the cache mishandles newlines in values,
2196(
2197 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2198 eval ac_val=\$$ac_var
2199 case $ac_val in #(
2200 *${as_nl}*)
2201 case $ac_var in #(
2202 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2204 esac
2205 case $ac_var in #(
2206 _ | IFS | as_nl) ;; #(
2207 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2208 *) { eval $ac_var=; unset $ac_var;} ;;
2209 esac ;;
2210 esac
2211 done
2212 (set) 2>&1 |
2213 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2214 *${as_nl}ac_space=\ *)
2215 sed -n \
2216 "s/'\''/'\''\\\\'\'''\''/g;
2217 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2218 ;; #(
2219 *)
2220 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2221 ;;
2222 esac |
2223 sort
2224)
2225 echo
2226
2227 $as_echo "## ----------------- ##
2228## Output variables. ##
2229## ----------------- ##"
2230 echo
2231 for ac_var in $ac_subst_vars
2232 do
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
2238 done | sort
2239 echo
2240
2241 if test -n "$ac_subst_files"; then
2242 $as_echo "## ------------------- ##
2243## File substitutions. ##
2244## ------------------- ##"
2245 echo
2246 for ac_var in $ac_subst_files
2247 do
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2255 fi
2256
2257 if test -s confdefs.h; then
2258 $as_echo "## ----------- ##
2259## confdefs.h. ##
2260## ----------- ##"
2261 echo
2262 cat confdefs.h
2263 echo
2264 fi
2265 test "$ac_signal" != 0 &&
2266 $as_echo "$as_me: caught signal $ac_signal"
2267 $as_echo "$as_me: exit $exit_status"
2268 } >&5
2269 rm -f core *.core core.conftest.* &&
2270 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2271 exit $exit_status
2272' 0
2273for ac_signal in 1 2 13 15; do
2274 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2275done
2276ac_signal=0
2277
2278# confdefs.h avoids OS command line length limits that DEFS can exceed.
2279rm -f -r conftest* confdefs.h
2280
2281$as_echo "/* confdefs.h */" > confdefs.h
2282
2283# Predefined preprocessor variables.
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_NAME "$PACKAGE_NAME"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_VERSION "$PACKAGE_VERSION"
2295_ACEOF
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_STRING "$PACKAGE_STRING"
2299_ACEOF
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2303_ACEOF
2304
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_URL "$PACKAGE_URL"
2307_ACEOF
2308
2309
2310# Let the site file select an alternate cache file if it wants to.
2311# Prefer an explicitly selected file to automatically selected ones.
2312ac_site_file1=NONE
2313ac_site_file2=NONE
2314if test -n "$CONFIG_SITE"; then
2315 # We do not want a PATH search for config.site.
2316 case $CONFIG_SITE in #((
2317 -*) ac_site_file1=./$CONFIG_SITE;;
2318 */*) ac_site_file1=$CONFIG_SITE;;
2319 *) ac_site_file1=./$CONFIG_SITE;;
2320 esac
2321elif test "x$prefix" != xNONE; then
2322 ac_site_file1=$prefix/share/config.site
2323 ac_site_file2=$prefix/etc/config.site
2324else
2325 ac_site_file1=$ac_default_prefix/share/config.site
2326 ac_site_file2=$ac_default_prefix/etc/config.site
2327fi
2328for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2329do
2330 test "x$ac_site_file" = xNONE && continue
2331 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2333$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2334 sed 's/^/| /' "$ac_site_file" >&5
2335 . "$ac_site_file" \
2336 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338as_fn_error $? "failed to load site script $ac_site_file
2339See \`config.log' for more details" "$LINENO" 5; }
2340 fi
2341done
2342
2343if test -r "$cache_file"; then
2344 # Some versions of bash will fail to source /dev/null (special files
2345 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2346 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2348$as_echo "$as_me: loading cache $cache_file" >&6;}
2349 case $cache_file in
2350 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2351 *) . "./$cache_file";;
2352 esac
2353 fi
2354else
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2356$as_echo "$as_me: creating cache $cache_file" >&6;}
2357 >$cache_file
2358fi
2359
2360# Check that the precious variables saved in the cache have kept the same
2361# value.
2362ac_cache_corrupted=false
2363for ac_var in $ac_precious_vars; do
2364 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2365 eval ac_new_set=\$ac_env_${ac_var}_set
2366 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2367 eval ac_new_val=\$ac_env_${ac_var}_value
2368 case $ac_old_set,$ac_new_set in
2369 set,)
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2371$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2372 ac_cache_corrupted=: ;;
2373 ,set)
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2375$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2376 ac_cache_corrupted=: ;;
2377 ,);;
2378 *)
2379 if test "x$ac_old_val" != "x$ac_new_val"; then
2380 # differences in whitespace do not lead to failure.
2381 ac_old_val_w=`echo x $ac_old_val`
2382 ac_new_val_w=`echo x $ac_new_val`
2383 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2385$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2386 ac_cache_corrupted=:
2387 else
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2389$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2390 eval $ac_var=\$ac_old_val
2391 fi
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2393$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2395$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2396 fi;;
2397 esac
2398 # Pass precious variables to config.status.
2399 if test "$ac_new_set" = set; then
2400 case $ac_new_val in
2401 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2402 *) ac_arg=$ac_var=$ac_new_val ;;
2403 esac
2404 case " $ac_configure_args " in
2405 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2406 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2407 esac
2408 fi
2409done
2410if $ac_cache_corrupted; then
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2412$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2414$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2415 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2416fi
2417## -------------------- ##
2418## Main body of script. ##
2419## -------------------- ##
2420
2421ac_ext=c
2422ac_cpp='$CPP $CPPFLAGS'
2423ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2424ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2425ac_compiler_gnu=$ac_cv_c_compiler_gnu
2426
2427
2428
2429
2430
2431ac_aux_dir=
2432for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2433 if test -f "$ac_dir/install-sh"; then
2434 ac_aux_dir=$ac_dir
2435 ac_install_sh="$ac_aux_dir/install-sh -c"
2436 break
2437 elif test -f "$ac_dir/install.sh"; then
2438 ac_aux_dir=$ac_dir
2439 ac_install_sh="$ac_aux_dir/install.sh -c"
2440 break
2441 elif test -f "$ac_dir/shtool"; then
2442 ac_aux_dir=$ac_dir
2443 ac_install_sh="$ac_aux_dir/shtool install -c"
2444 break
2445 fi
2446done
2447if test -z "$ac_aux_dir"; then
2448 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2449fi
2450
2451# These three variables are undocumented and unsupported,
2452# and are intended to be withdrawn in a future Autoconf release.
2453# They can cause serious problems if a builder's source tree is in a directory
2454# whose full name contains unusual characters.
2455ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2456ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2457ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2458
2459
2460# Make sure we can run config.sub.
2461$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2462 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2463
2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2465$as_echo_n "checking build system type... " >&6; }
2466if ${ac_cv_build+:} false; then :
2467 $as_echo_n "(cached) " >&6
2468else
2469 ac_build_alias=$build_alias
2470test "x$ac_build_alias" = x &&
2471 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2472test "x$ac_build_alias" = x &&
2473 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2474ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2475 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2476
2477fi
2478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2479$as_echo "$ac_cv_build" >&6; }
2480case $ac_cv_build in
2481*-*-*) ;;
2482*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2483esac
2484build=$ac_cv_build
2485ac_save_IFS=$IFS; IFS='-'
2486set x $ac_cv_build
2487shift
2488build_cpu=$1
2489build_vendor=$2
2490shift; shift
2491# Remember, the first character of IFS is used to create $*,
2492# except with old shells:
2493build_os=$*
2494IFS=$ac_save_IFS
2495case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2496
2497
2498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2499$as_echo_n "checking host system type... " >&6; }
2500if ${ac_cv_host+:} false; then :
2501 $as_echo_n "(cached) " >&6
2502else
2503 if test "x$host_alias" = x; then
2504 ac_cv_host=$ac_cv_build
2505else
2506 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2507 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2508fi
2509
2510fi
2511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2512$as_echo "$ac_cv_host" >&6; }
2513case $ac_cv_host in
2514*-*-*) ;;
2515*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2516esac
2517host=$ac_cv_host
2518ac_save_IFS=$IFS; IFS='-'
2519set x $ac_cv_host
2520shift
2521host_cpu=$1
2522host_vendor=$2
2523shift; shift
2524# Remember, the first character of IFS is used to create $*,
2525# except with old shells:
2526host_os=$*
2527IFS=$ac_save_IFS
2528case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2529
2530
2531
2532ac_ext=c
2533ac_cpp='$CPP $CPPFLAGS'
2534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539set dummy ${ac_tool_prefix}gcc; ac_word=$2
2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541$as_echo_n "checking for $ac_word... " >&6; }
2542if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547else
2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549for as_dir in $PATH
2550do
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2558 fi
2559done
2560 done
2561IFS=$as_save_IFS
2562
2563fi
2564fi
2565CC=$ac_cv_prog_CC
2566if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568$as_echo "$CC" >&6; }
2569else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571$as_echo "no" >&6; }
2572fi
2573
2574
2575fi
2576if test -z "$ac_cv_prog_CC"; then
2577 ac_ct_CC=$CC
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579set dummy gcc; ac_word=$2
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581$as_echo_n "checking for $ac_word... " >&6; }
2582if ${ac_cv_prog_ac_ct_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584else
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587else
2588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589for as_dir in $PATH
2590do
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2598 fi
2599done
2600 done
2601IFS=$as_save_IFS
2602
2603fi
2604fi
2605ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606if test -n "$ac_ct_CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2608$as_echo "$ac_ct_CC" >&6; }
2609else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611$as_echo "no" >&6; }
2612fi
2613
2614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618yes:)
2619{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621ac_tool_warned=yes ;;
2622esac
2623 CC=$ac_ct_CC
2624 fi
2625else
2626 CC="$ac_cv_prog_CC"
2627fi
2628
2629if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632set dummy ${ac_tool_prefix}cc; ac_word=$2
2633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634$as_echo_n "checking for $ac_word... " >&6; }
2635if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640else
2641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642for as_dir in $PATH
2643do
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2651 fi
2652done
2653 done
2654IFS=$as_save_IFS
2655
2656fi
2657fi
2658CC=$ac_cv_prog_CC
2659if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661$as_echo "$CC" >&6; }
2662else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664$as_echo "no" >&6; }
2665fi
2666
2667
2668 fi
2669fi
2670if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672set dummy cc; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680else
2681 ac_prog_rejected=no
2682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683for as_dir in $PATH
2684do
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2692 fi
2693 ac_cv_prog_CC="cc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2696 fi
2697done
2698 done
2699IFS=$as_save_IFS
2700
2701if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2711 fi
2712fi
2713fi
2714fi
2715CC=$ac_cv_prog_CC
2716if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718$as_echo "$CC" >&6; }
2719else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721$as_echo "no" >&6; }
2722fi
2723
2724
2725fi
2726if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2729 do
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733$as_echo_n "checking for $ac_word... " >&6; }
2734if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739else
2740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741for as_dir in $PATH
2742do
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2750 fi
2751done
2752 done
2753IFS=$as_save_IFS
2754
2755fi
2756fi
2757CC=$ac_cv_prog_CC
2758if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760$as_echo "$CC" >&6; }
2761else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763$as_echo "no" >&6; }
2764fi
2765
2766
2767 test -n "$CC" && break
2768 done
2769fi
2770if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2773do
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775set dummy $ac_prog; ac_word=$2
2776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777$as_echo_n "checking for $ac_word... " >&6; }
2778if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783else
2784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785for as_dir in $PATH
2786do
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2794 fi
2795done
2796 done
2797IFS=$as_save_IFS
2798
2799fi
2800fi
2801ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804$as_echo "$ac_ct_CC" >&6; }
2805else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807$as_echo "no" >&6; }
2808fi
2809
2810
2811 test -n "$ac_ct_CC" && break
2812done
2813
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818yes:)
2819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823 CC=$ac_ct_CC
2824 fi
2825fi
2826
2827fi
2828
2829
2830test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832as_fn_error $? "no acceptable C compiler found in \$PATH
2833See \`config.log' for more details" "$LINENO" 5; }
2834
2835# Provide some information about the compiler.
2836$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2837set X $ac_compile
2838ac_compiler=$2
2839for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
2841case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844esac
2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846$as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2848 ac_status=$?
2849 if test -s conftest.err; then
2850 sed '10a\
2851... rest of stderr output deleted ...
2852 10q' conftest.err >conftest.er1
2853 cat conftest.er1 >&5
2854 fi
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858done
2859
2860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861/* end confdefs.h. */
2862
2863int
2864main ()
2865{
2866
2867 ;
2868 return 0;
2869}
2870_ACEOF
2871ac_clean_files_save=$ac_clean_files
2872ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2873# Try to create an executable without -o first, disregard a.out.
2874# It will help us diagnose broken compilers, and finding out an intuition
2875# of exeext.
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2877$as_echo_n "checking whether the C compiler works... " >&6; }
2878ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2879
2880# The possible output files:
2881ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2882
2883ac_rmfiles=
2884for ac_file in $ac_files
2885do
2886 case $ac_file in
2887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2889 esac
2890done
2891rm -f $ac_rmfiles
2892
2893if { { ac_try="$ac_link_default"
2894case "(($ac_try" in
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2897esac
2898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899$as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link_default") 2>&5
2901 ac_status=$?
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }; then :
2904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2905# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2906# in a Makefile. We should not override ac_cv_exeext if it was cached,
2907# so that the user can short-circuit this test for compilers unknown to
2908# Autoconf.
2909for ac_file in $ac_files ''
2910do
2911 test -f "$ac_file" || continue
2912 case $ac_file in
2913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2914 ;;
2915 [ab].out )
2916 # We found the default executable, but exeext='' is most
2917 # certainly right.
2918 break;;
2919 *.* )
2920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2921 then :; else
2922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2923 fi
2924 # We set ac_cv_exeext here because the later test for it is not
2925 # safe: cross compilers may not add the suffix if given an `-o'
2926 # argument, so we may need to know it at that point already.
2927 # Even if this section looks crufty: it has the advantage of
2928 # actually working.
2929 break;;
2930 * )
2931 break;;
2932 esac
2933done
2934test "$ac_cv_exeext" = no && ac_cv_exeext=
2935
2936else
2937 ac_file=''
2938fi
2939if test -z "$ac_file"; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941$as_echo "no" >&6; }
2942$as_echo "$as_me: failed program was:" >&5
2943sed 's/^/| /' conftest.$ac_ext >&5
2944
2945{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2947as_fn_error 77 "C compiler cannot create executables
2948See \`config.log' for more details" "$LINENO" 5; }
2949else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2951$as_echo "yes" >&6; }
2952fi
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2954$as_echo_n "checking for C compiler default output file name... " >&6; }
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2956$as_echo "$ac_file" >&6; }
2957ac_exeext=$ac_cv_exeext
2958
2959rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2960ac_clean_files=$ac_clean_files_save
2961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2962$as_echo_n "checking for suffix of executables... " >&6; }
2963if { { ac_try="$ac_link"
2964case "(($ac_try" in
2965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2966 *) ac_try_echo=$ac_try;;
2967esac
2968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2969$as_echo "$ac_try_echo"; } >&5
2970 (eval "$ac_link") 2>&5
2971 ac_status=$?
2972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2973 test $ac_status = 0; }; then :
2974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2975# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2976# work properly (i.e., refer to `conftest.exe'), while it won't with
2977# `rm'.
2978for ac_file in conftest.exe conftest conftest.*; do
2979 test -f "$ac_file" || continue
2980 case $ac_file in
2981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2983 break;;
2984 * ) break;;
2985 esac
2986done
2987else
2988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2990as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2991See \`config.log' for more details" "$LINENO" 5; }
2992fi
2993rm -f conftest conftest$ac_cv_exeext
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2995$as_echo "$ac_cv_exeext" >&6; }
2996
2997rm -f conftest.$ac_ext
2998EXEEXT=$ac_cv_exeext
2999ac_exeext=$EXEEXT
3000cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3001/* end confdefs.h. */
3002#include <stdio.h>
3003int
3004main ()
3005{
3006FILE *f = fopen ("conftest.out", "w");
3007 return ferror (f) || fclose (f) != 0;
3008
3009 ;
3010 return 0;
3011}
3012_ACEOF
3013ac_clean_files="$ac_clean_files conftest.out"
3014# Check that the compiler produces executables we can run. If not, either
3015# the compiler is broken, or we cross compile.
3016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3017$as_echo_n "checking whether we are cross compiling... " >&6; }
3018if test "$cross_compiling" != yes; then
3019 { { ac_try="$ac_link"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3025$as_echo "$ac_try_echo"; } >&5
3026 (eval "$ac_link") 2>&5
3027 ac_status=$?
3028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3029 test $ac_status = 0; }
3030 if { ac_try='./conftest$ac_cv_exeext'
3031 { { case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034esac
3035eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036$as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_try") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; }; then
3041 cross_compiling=no
3042 else
3043 if test "$cross_compiling" = maybe; then
3044 cross_compiling=yes
3045 else
3046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048as_fn_error $? "cannot run C compiled programs.
3049If you meant to cross compile, use \`--host'.
3050See \`config.log' for more details" "$LINENO" 5; }
3051 fi
3052 fi
3053fi
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3055$as_echo "$cross_compiling" >&6; }
3056
3057rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3058ac_clean_files=$ac_clean_files_save
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3060$as_echo_n "checking for suffix of object files... " >&6; }
3061if ${ac_cv_objext+:} false; then :
3062 $as_echo_n "(cached) " >&6
3063else
3064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3065/* end confdefs.h. */
3066
3067int
3068main ()
3069{
3070
3071 ;
3072 return 0;
3073}
3074_ACEOF
3075rm -f conftest.o conftest.obj
3076if { { ac_try="$ac_compile"
3077case "(($ac_try" in
3078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3079 *) ac_try_echo=$ac_try;;
3080esac
3081eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3082$as_echo "$ac_try_echo"; } >&5
3083 (eval "$ac_compile") 2>&5
3084 ac_status=$?
3085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3086 test $ac_status = 0; }; then :
3087 for ac_file in conftest.o conftest.obj conftest.*; do
3088 test -f "$ac_file" || continue;
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 break;;
3093 esac
3094done
3095else
3096 $as_echo "$as_me: failed program was:" >&5
3097sed 's/^/| /' conftest.$ac_ext >&5
3098
3099{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3100$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3101as_fn_error $? "cannot compute suffix of object files: cannot compile
3102See \`config.log' for more details" "$LINENO" 5; }
3103fi
3104rm -f conftest.$ac_cv_objext conftest.$ac_ext
3105fi
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3107$as_echo "$ac_cv_objext" >&6; }
3108OBJEXT=$ac_cv_objext
3109ac_objext=$OBJEXT
3110{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3111$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3112if ${ac_cv_c_compiler_gnu+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114else
3115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116/* end confdefs.h. */
3117
3118int
3119main ()
3120{
3121#ifndef __GNUC__
3122 choke me
3123#endif
3124
3125 ;
3126 return 0;
3127}
3128_ACEOF
3129if ac_fn_c_try_compile "$LINENO"; then :
3130 ac_compiler_gnu=yes
3131else
3132 ac_compiler_gnu=no
3133fi
3134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3135ac_cv_c_compiler_gnu=$ac_compiler_gnu
3136
3137fi
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3139$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3140if test $ac_compiler_gnu = yes; then
3141 GCC=yes
3142else
3143 GCC=
3144fi
3145ac_test_CFLAGS=${CFLAGS+set}
3146ac_save_CFLAGS=$CFLAGS
3147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3148$as_echo_n "checking whether $CC accepts -g... " >&6; }
3149if ${ac_cv_prog_cc_g+:} false; then :
3150 $as_echo_n "(cached) " >&6
3151else
3152 ac_save_c_werror_flag=$ac_c_werror_flag
3153 ac_c_werror_flag=yes
3154 ac_cv_prog_cc_g=no
3155 CFLAGS="-g"
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157/* end confdefs.h. */
3158
3159int
3160main ()
3161{
3162
3163 ;
3164 return 0;
3165}
3166_ACEOF
3167if ac_fn_c_try_compile "$LINENO"; then :
3168 ac_cv_prog_cc_g=yes
3169else
3170 CFLAGS=""
3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3172/* end confdefs.h. */
3173
3174int
3175main ()
3176{
3177
3178 ;
3179 return 0;
3180}
3181_ACEOF
3182if ac_fn_c_try_compile "$LINENO"; then :
3183
3184else
3185 ac_c_werror_flag=$ac_save_c_werror_flag
3186 CFLAGS="-g"
3187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3188/* end confdefs.h. */
3189
3190int
3191main ()
3192{
3193
3194 ;
3195 return 0;
3196}
3197_ACEOF
3198if ac_fn_c_try_compile "$LINENO"; then :
3199 ac_cv_prog_cc_g=yes
3200fi
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202fi
3203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204fi
3205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3206 ac_c_werror_flag=$ac_save_c_werror_flag
3207fi
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3209$as_echo "$ac_cv_prog_cc_g" >&6; }
3210if test "$ac_test_CFLAGS" = set; then
3211 CFLAGS=$ac_save_CFLAGS
3212elif test $ac_cv_prog_cc_g = yes; then
3213 if test "$GCC" = yes; then
3214 CFLAGS="-g -O2"
3215 else
3216 CFLAGS="-g"
3217 fi
3218else
3219 if test "$GCC" = yes; then
3220 CFLAGS="-O2"
3221 else
3222 CFLAGS=
3223 fi
3224fi
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3226$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3227if ${ac_cv_prog_cc_c89+:} false; then :
3228 $as_echo_n "(cached) " >&6
3229else
3230 ac_cv_prog_cc_c89=no
3231ac_save_CC=$CC
3232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3233/* end confdefs.h. */
3234#include <stdarg.h>
3235#include <stdio.h>
3236struct stat;
3237/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3238struct buf { int x; };
3239FILE * (*rcsopen) (struct buf *, struct stat *, int);
3240static char *e (p, i)
3241 char **p;
3242 int i;
3243{
3244 return p[i];
3245}
3246static char *f (char * (*g) (char **, int), char **p, ...)
3247{
3248 char *s;
3249 va_list v;
3250 va_start (v,p);
3251 s = g (p, va_arg (v,int));
3252 va_end (v);
3253 return s;
3254}
3255
3256/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3257 function prototypes and stuff, but not '\xHH' hex character constants.
3258 These don't provoke an error unfortunately, instead are silently treated
3259 as 'x'. The following induces an error, until -std is added to get
3260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3261 array size at least. It's necessary to write '\x00'==0 to get something
3262 that's true only with -std. */
3263int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3264
3265/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3266 inside strings and character constants. */
3267#define FOO(x) 'x'
3268int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3269
3270int test (int i, double x);
3271struct s1 {int (*f) (int a);};
3272struct s2 {int (*f) (double a);};
3273int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3274int argc;
3275char **argv;
3276int
3277main ()
3278{
3279return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3280 ;
3281 return 0;
3282}
3283_ACEOF
3284for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3286do
3287 CC="$ac_save_CC $ac_arg"
3288 if ac_fn_c_try_compile "$LINENO"; then :
3289 ac_cv_prog_cc_c89=$ac_arg
3290fi
3291rm -f core conftest.err conftest.$ac_objext
3292 test "x$ac_cv_prog_cc_c89" != "xno" && break
3293done
3294rm -f conftest.$ac_ext
3295CC=$ac_save_CC
3296
3297fi
3298# AC_CACHE_VAL
3299case "x$ac_cv_prog_cc_c89" in
3300 x)
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3302$as_echo "none needed" >&6; } ;;
3303 xno)
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3305$as_echo "unsupported" >&6; } ;;
3306 *)
3307 CC="$CC $ac_cv_prog_cc_c89"
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3309$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3310esac
3311if test "x$ac_cv_prog_cc_c89" != xno; then :
3312
3313fi
3314
3315ac_ext=c
3316ac_cpp='$CPP $CPPFLAGS'
3317ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3318ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3319ac_compiler_gnu=$ac_cv_c_compiler_gnu
3320
3321if test "$GCC" = yes; then
3322 CFLAGS="$CFLAGS -Wall"
3323fi
3324ac_ext=cpp
3325ac_cpp='$CXXCPP $CPPFLAGS'
3326ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3327ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3328ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3329if test -z "$CXX"; then
3330 if test -n "$CCC"; then
3331 CXX=$CCC
3332 else
3333 if test -n "$ac_tool_prefix"; then
3334 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3335 do
3336 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3337set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3339$as_echo_n "checking for $ac_word... " >&6; }
3340if ${ac_cv_prog_CXX+:} false; then :
3341 $as_echo_n "(cached) " >&6
3342else
3343 if test -n "$CXX"; then
3344 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3345else
3346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3347for as_dir in $PATH
3348do
3349 IFS=$as_save_IFS
3350 test -z "$as_dir" && as_dir=.
3351 for ac_exec_ext in '' $ac_executable_extensions; do
3352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3353 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3355 break 2
3356 fi
3357done
3358 done
3359IFS=$as_save_IFS
3360
3361fi
3362fi
3363CXX=$ac_cv_prog_CXX
3364if test -n "$CXX"; then
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3366$as_echo "$CXX" >&6; }
3367else
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3369$as_echo "no" >&6; }
3370fi
3371
3372
3373 test -n "$CXX" && break
3374 done
3375fi
3376if test -z "$CXX"; then
3377 ac_ct_CXX=$CXX
3378 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3379do
3380 # Extract the first word of "$ac_prog", so it can be a program name with args.
3381set dummy $ac_prog; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3385 $as_echo_n "(cached) " >&6
3386else
3387 if test -n "$ac_ct_CXX"; then
3388 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3389else
3390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391for as_dir in $PATH
3392do
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3397 ac_cv_prog_ac_ct_CXX="$ac_prog"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3400 fi
3401done
3402 done
3403IFS=$as_save_IFS
3404
3405fi
3406fi
3407ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3408if test -n "$ac_ct_CXX"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3410$as_echo "$ac_ct_CXX" >&6; }
3411else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413$as_echo "no" >&6; }
3414fi
3415
3416
3417 test -n "$ac_ct_CXX" && break
3418done
3419
3420 if test "x$ac_ct_CXX" = x; then
3421 CXX="g++"
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424yes:)
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427ac_tool_warned=yes ;;
3428esac
3429 CXX=$ac_ct_CXX
3430 fi
3431fi
3432
3433 fi
3434fi
3435# Provide some information about the compiler.
3436$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3437set X $ac_compile
3438ac_compiler=$2
3439for ac_option in --version -v -V -qversion; do
3440 { { ac_try="$ac_compiler $ac_option >&5"
3441case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444esac
3445eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3446$as_echo "$ac_try_echo"; } >&5
3447 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3448 ac_status=$?
3449 if test -s conftest.err; then
3450 sed '10a\
3451... rest of stderr output deleted ...
3452 10q' conftest.err >conftest.er1
3453 cat conftest.er1 >&5
3454 fi
3455 rm -f conftest.er1 conftest.err
3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }
3458done
3459
3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3461$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3462if ${ac_cv_cxx_compiler_gnu+:} false; then :
3463 $as_echo_n "(cached) " >&6
3464else
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466/* end confdefs.h. */
3467
3468int
3469main ()
3470{
3471#ifndef __GNUC__
3472 choke me
3473#endif
3474
3475 ;
3476 return 0;
3477}
3478_ACEOF
3479if ac_fn_cxx_try_compile "$LINENO"; then :
3480 ac_compiler_gnu=yes
3481else
3482 ac_compiler_gnu=no
3483fi
3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3486
3487fi
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3489$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3490if test $ac_compiler_gnu = yes; then
3491 GXX=yes
3492else
3493 GXX=
3494fi
3495ac_test_CXXFLAGS=${CXXFLAGS+set}
3496ac_save_CXXFLAGS=$CXXFLAGS
3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3498$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3499if ${ac_cv_prog_cxx_g+:} false; then :
3500 $as_echo_n "(cached) " >&6
3501else
3502 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3503 ac_cxx_werror_flag=yes
3504 ac_cv_prog_cxx_g=no
3505 CXXFLAGS="-g"
3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3507/* end confdefs.h. */
3508
3509int
3510main ()
3511{
3512
3513 ;
3514 return 0;
3515}
3516_ACEOF
3517if ac_fn_cxx_try_compile "$LINENO"; then :
3518 ac_cv_prog_cxx_g=yes
3519else
3520 CXXFLAGS=""
3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
3532if ac_fn_cxx_try_compile "$LINENO"; then :
3533
3534else
3535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3536 CXXFLAGS="-g"
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
3548if ac_fn_cxx_try_compile "$LINENO"; then :
3549 ac_cv_prog_cxx_g=yes
3550fi
3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3552fi
3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3554fi
3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3556 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3557fi
3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3559$as_echo "$ac_cv_prog_cxx_g" >&6; }
3560if test "$ac_test_CXXFLAGS" = set; then
3561 CXXFLAGS=$ac_save_CXXFLAGS
3562elif test $ac_cv_prog_cxx_g = yes; then
3563 if test "$GXX" = yes; then
3564 CXXFLAGS="-g -O2"
3565 else
3566 CXXFLAGS="-g"
3567 fi
3568else
3569 if test "$GXX" = yes; then
3570 CXXFLAGS="-O2"
3571 else
3572 CXXFLAGS=
3573 fi
3574fi
3575ac_ext=c
3576ac_cpp='$CPP $CPPFLAGS'
3577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
3581
3582# Find a good install program. We prefer a C program (faster),
3583# so one script is as good as another. But avoid the broken or
3584# incompatible versions:
3585# SysV /etc/install, /usr/sbin/install
3586# SunOS /usr/etc/install
3587# IRIX /sbin/install
3588# AIX /bin/install
3589# AmigaOS /C/install, which installs bootblocks on floppy discs
3590# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3591# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3592# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3593# OS/2's system install, which has a completely different semantic
3594# ./install, which can be erroneously created by make from ./install.sh.
3595# Reject install programs that cannot install multiple files.
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3597$as_echo_n "checking for a BSD-compatible install... " >&6; }
3598if test -z "$INSTALL"; then
3599if ${ac_cv_path_install+:} false; then :
3600 $as_echo_n "(cached) " >&6
3601else
3602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3603for as_dir in $PATH
3604do
3605 IFS=$as_save_IFS
3606 test -z "$as_dir" && as_dir=.
3607 # Account for people who put trailing slashes in PATH elements.
3608case $as_dir/ in #((
3609 ./ | .// | /[cC]/* | \
3610 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3611 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3612 /usr/ucb/* ) ;;
3613 *)
3614 # OSF1 and SCO ODT 3.0 have their own names for install.
3615 # Don't use installbsd from OSF since it installs stuff as root
3616 # by default.
3617 for ac_prog in ginstall scoinst install; do
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3620 if test $ac_prog = install &&
3621 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3622 # AIX install. It has an incompatible calling convention.
3623 :
3624 elif test $ac_prog = install &&
3625 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3626 # program-specific install script used by HP pwplus--don't use.
3627 :
3628 else
3629 rm -rf conftest.one conftest.two conftest.dir
3630 echo one > conftest.one
3631 echo two > conftest.two
3632 mkdir conftest.dir
3633 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3634 test -s conftest.one && test -s conftest.two &&
3635 test -s conftest.dir/conftest.one &&
3636 test -s conftest.dir/conftest.two
3637 then
3638 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3639 break 3
3640 fi
3641 fi
3642 fi
3643 done
3644 done
3645 ;;
3646esac
3647
3648 done
3649IFS=$as_save_IFS
3650
3651rm -rf conftest.one conftest.two conftest.dir
3652
3653fi
3654 if test "${ac_cv_path_install+set}" = set; then
3655 INSTALL=$ac_cv_path_install
3656 else
3657 # As a last resort, use the slow shell script. Don't cache a
3658 # value for INSTALL within a source directory, because that will
3659 # break other packages using the cache if that directory is
3660 # removed, or if the value is a relative name.
3661 INSTALL=$ac_install_sh
3662 fi
3663fi
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3665$as_echo "$INSTALL" >&6; }
3666
3667# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3668# It thinks the first close brace ends the variable substitution.
3669test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3670
3671test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3672
3673test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3674
3675ac_ext=c
3676ac_cpp='$CPP $CPPFLAGS'
3677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680
3681
3682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3688$as_echo_n "checking how to run the C preprocessor... " >&6; }
3689# On Suns, sometimes $CPP names a directory.
3690if test -n "$CPP" && test -d "$CPP"; then
3691 CPP=
3692fi
3693if test -z "$CPP"; then
3694 if ${ac_cv_prog_CPP+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696else
3697 # Double quotes because CPP needs to be expanded
3698 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3699 do
3700 ac_preproc_ok=false
3701for ac_c_preproc_warn_flag in '' yes
3702do
3703 # Use a header file that comes with gcc, so configuring glibc
3704 # with a fresh cross-compiler works.
3705 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706 # <limits.h> exists even on freestanding compilers.
3707 # On the NeXT, cc -E runs the code through the compiler's parser,
3708 # not just through cpp. "Syntax error" is here to catch this case.
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h. */
3711#ifdef __STDC__
3712# include <limits.h>
3713#else
3714# include <assert.h>
3715#endif
3716 Syntax error
3717_ACEOF
3718if ac_fn_c_try_cpp "$LINENO"; then :
3719
3720else
3721 # Broken: fails on valid input.
3722continue
3723fi
3724rm -f conftest.err conftest.i conftest.$ac_ext
3725
3726 # OK, works on sane cases. Now check whether nonexistent headers
3727 # can be detected and how.
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729/* end confdefs.h. */
3730#include <ac_nonexistent.h>
3731_ACEOF
3732if ac_fn_c_try_cpp "$LINENO"; then :
3733 # Broken: success on invalid input.
3734continue
3735else
3736 # Passes both tests.
3737ac_preproc_ok=:
3738break
3739fi
3740rm -f conftest.err conftest.i conftest.$ac_ext
3741
3742done
3743# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3744rm -f conftest.i conftest.err conftest.$ac_ext
3745if $ac_preproc_ok; then :
3746 break
3747fi
3748
3749 done
3750 ac_cv_prog_CPP=$CPP
3751
3752fi
3753 CPP=$ac_cv_prog_CPP
3754else
3755 ac_cv_prog_CPP=$CPP
3756fi
3757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3758$as_echo "$CPP" >&6; }
3759ac_preproc_ok=false
3760for ac_c_preproc_warn_flag in '' yes
3761do
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error" is here to catch this case.
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769/* end confdefs.h. */
3770#ifdef __STDC__
3771# include <limits.h>
3772#else
3773# include <assert.h>
3774#endif
3775 Syntax error
3776_ACEOF
3777if ac_fn_c_try_cpp "$LINENO"; then :
3778
3779else
3780 # Broken: fails on valid input.
3781continue
3782fi
3783rm -f conftest.err conftest.i conftest.$ac_ext
3784
3785 # OK, works on sane cases. Now check whether nonexistent headers
3786 # can be detected and how.
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788/* end confdefs.h. */
3789#include <ac_nonexistent.h>
3790_ACEOF
3791if ac_fn_c_try_cpp "$LINENO"; then :
3792 # Broken: success on invalid input.
3793continue
3794else
3795 # Passes both tests.
3796ac_preproc_ok=:
3797break
3798fi
3799rm -f conftest.err conftest.i conftest.$ac_ext
3800
3801done
3802# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3803rm -f conftest.i conftest.err conftest.$ac_ext
3804if $ac_preproc_ok; then :
3805
3806else
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3810See \`config.log' for more details" "$LINENO" 5; }
3811fi
3812
3813ac_ext=c
3814ac_cpp='$CPP $CPPFLAGS'
3815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_c_compiler_gnu
3818
3819
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3821$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3822if ${ac_cv_path_GREP+:} false; then :
3823 $as_echo_n "(cached) " >&6
3824else
3825 if test -z "$GREP"; then
3826 ac_path_GREP_found=false
3827 # Loop through the user's path and test for each of PROGNAME-LIST
3828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3829for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3830do
3831 IFS=$as_save_IFS
3832 test -z "$as_dir" && as_dir=.
3833 for ac_prog in grep ggrep; do
3834 for ac_exec_ext in '' $ac_executable_extensions; do
3835 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3836 as_fn_executable_p "$ac_path_GREP" || continue
3837# Check for GNU ac_path_GREP and select it if it is found.
3838 # Check for GNU $ac_path_GREP
3839case `"$ac_path_GREP" --version 2>&1` in
3840*GNU*)
3841 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3842*)
3843 ac_count=0
3844 $as_echo_n 0123456789 >"conftest.in"
3845 while :
3846 do
3847 cat "conftest.in" "conftest.in" >"conftest.tmp"
3848 mv "conftest.tmp" "conftest.in"
3849 cp "conftest.in" "conftest.nl"
3850 $as_echo 'GREP' >> "conftest.nl"
3851 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3852 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3853 as_fn_arith $ac_count + 1 && ac_count=$as_val
3854 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3855 # Best one so far, save it but keep looking for a better one
3856 ac_cv_path_GREP="$ac_path_GREP"
3857 ac_path_GREP_max=$ac_count
3858 fi
3859 # 10*(2^10) chars as input seems more than enough
3860 test $ac_count -gt 10 && break
3861 done
3862 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3863esac
3864
3865 $ac_path_GREP_found && break 3
3866 done
3867 done
3868 done
3869IFS=$as_save_IFS
3870 if test -z "$ac_cv_path_GREP"; then
3871 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3872 fi
3873else
3874 ac_cv_path_GREP=$GREP
3875fi
3876
3877fi
3878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3879$as_echo "$ac_cv_path_GREP" >&6; }
3880 GREP="$ac_cv_path_GREP"
3881
3882
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3884$as_echo_n "checking for egrep... " >&6; }
3885if ${ac_cv_path_EGREP+:} false; then :
3886 $as_echo_n "(cached) " >&6
3887else
3888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3889 then ac_cv_path_EGREP="$GREP -E"
3890 else
3891 if test -z "$EGREP"; then
3892 ac_path_EGREP_found=false
3893 # Loop through the user's path and test for each of PROGNAME-LIST
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3896do
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_prog in egrep; do
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3902 as_fn_executable_p "$ac_path_EGREP" || continue
3903# Check for GNU ac_path_EGREP and select it if it is found.
3904 # Check for GNU $ac_path_EGREP
3905case `"$ac_path_EGREP" --version 2>&1` in
3906*GNU*)
3907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3908*)
3909 ac_count=0
3910 $as_echo_n 0123456789 >"conftest.in"
3911 while :
3912 do
3913 cat "conftest.in" "conftest.in" >"conftest.tmp"
3914 mv "conftest.tmp" "conftest.in"
3915 cp "conftest.in" "conftest.nl"
3916 $as_echo 'EGREP' >> "conftest.nl"
3917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3919 as_fn_arith $ac_count + 1 && ac_count=$as_val
3920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3921 # Best one so far, save it but keep looking for a better one
3922 ac_cv_path_EGREP="$ac_path_EGREP"
3923 ac_path_EGREP_max=$ac_count
3924 fi
3925 # 10*(2^10) chars as input seems more than enough
3926 test $ac_count -gt 10 && break
3927 done
3928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3929esac
3930
3931 $ac_path_EGREP_found && break 3
3932 done
3933 done
3934 done
3935IFS=$as_save_IFS
3936 if test -z "$ac_cv_path_EGREP"; then
3937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3938 fi
3939else
3940 ac_cv_path_EGREP=$EGREP
3941fi
3942
3943 fi
3944fi
3945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3946$as_echo "$ac_cv_path_EGREP" >&6; }
3947 EGREP="$ac_cv_path_EGREP"
3948
3949
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3951$as_echo_n "checking for ANSI C header files... " >&6; }
3952if ${ac_cv_header_stdc+:} false; then :
3953 $as_echo_n "(cached) " >&6
3954else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956/* end confdefs.h. */
3957#include <stdlib.h>
3958#include <stdarg.h>
3959#include <string.h>
3960#include <float.h>
3961
3962int
3963main ()
3964{
3965
3966 ;
3967 return 0;
3968}
3969_ACEOF
3970if ac_fn_c_try_compile "$LINENO"; then :
3971 ac_cv_header_stdc=yes
3972else
3973 ac_cv_header_stdc=no
3974fi
3975rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976
3977if test $ac_cv_header_stdc = yes; then
3978 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980/* end confdefs.h. */
3981#include <string.h>
3982
3983_ACEOF
3984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985 $EGREP "memchr" >/dev/null 2>&1; then :
3986
3987else
3988 ac_cv_header_stdc=no
3989fi
3990rm -f conftest*
3991
3992fi
3993
3994if test $ac_cv_header_stdc = yes; then
3995 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997/* end confdefs.h. */
3998#include <stdlib.h>
3999
4000_ACEOF
4001if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4002 $EGREP "free" >/dev/null 2>&1; then :
4003
4004else
4005 ac_cv_header_stdc=no
4006fi
4007rm -f conftest*
4008
4009fi
4010
4011if test $ac_cv_header_stdc = yes; then
4012 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4013 if test "$cross_compiling" = yes; then :
4014 :
4015else
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017/* end confdefs.h. */
4018#include <ctype.h>
4019#include <stdlib.h>
4020#if ((' ' & 0x0FF) == 0x020)
4021# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4022# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4023#else
4024# define ISLOWER(c) \
4025 (('a' <= (c) && (c) <= 'i') \
4026 || ('j' <= (c) && (c) <= 'r') \
4027 || ('s' <= (c) && (c) <= 'z'))
4028# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4029#endif
4030
4031#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4032int
4033main ()
4034{
4035 int i;
4036 for (i = 0; i < 256; i++)
4037 if (XOR (islower (i), ISLOWER (i))
4038 || toupper (i) != TOUPPER (i))
4039 return 2;
4040 return 0;
4041}
4042_ACEOF
4043if ac_fn_c_try_run "$LINENO"; then :
4044
4045else
4046 ac_cv_header_stdc=no
4047fi
4048rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4049 conftest.$ac_objext conftest.beam conftest.$ac_ext
4050fi
4051
4052fi
4053fi
4054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4055$as_echo "$ac_cv_header_stdc" >&6; }
4056if test $ac_cv_header_stdc = yes; then
4057
4058$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4059
4060fi
4061
4062# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4063for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4064 inttypes.h stdint.h unistd.h
4065do :
4066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4067ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4068"
4069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4070 cat >>confdefs.h <<_ACEOF
4071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4072_ACEOF
4073
4074fi
4075
4076done
4077
4078
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4080$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4081if ${ac_cv_c_bigendian+:} false; then :
4082 $as_echo_n "(cached) " >&6
4083else
4084 ac_cv_c_bigendian=unknown
4085 # See if we're dealing with a universal compiler.
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h. */
4088#ifndef __APPLE_CC__
4089 not a universal capable compiler
4090 #endif
4091 typedef int dummy;
4092
4093_ACEOF
4094if ac_fn_c_try_compile "$LINENO"; then :
4095
4096 # Check for potential -arch flags. It is not universal unless
4097 # there are at least two -arch flags with different values.
4098 ac_arch=
4099 ac_prev=
4100 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4101 if test -n "$ac_prev"; then
4102 case $ac_word in
4103 i?86 | x86_64 | ppc | ppc64)
4104 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4105 ac_arch=$ac_word
4106 else
4107 ac_cv_c_bigendian=universal
4108 break
4109 fi
4110 ;;
4111 esac
4112 ac_prev=
4113 elif test "x$ac_word" = "x-arch"; then
4114 ac_prev=arch
4115 fi
4116 done
4117fi
4118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4119 if test $ac_cv_c_bigendian = unknown; then
4120 # See if sys/param.h defines the BYTE_ORDER macro.
4121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4122/* end confdefs.h. */
4123#include <sys/types.h>
4124 #include <sys/param.h>
4125
4126int
4127main ()
4128{
4129#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4130 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4131 && LITTLE_ENDIAN)
4132 bogus endian macros
4133 #endif
4134
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"; then :
4140 # It does; now see whether it defined to BIG_ENDIAN or not.
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h. */
4143#include <sys/types.h>
4144 #include <sys/param.h>
4145
4146int
4147main ()
4148{
4149#if BYTE_ORDER != BIG_ENDIAN
4150 not big endian
4151 #endif
4152
4153 ;
4154 return 0;
4155}
4156_ACEOF
4157if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_cv_c_bigendian=yes
4159else
4160 ac_cv_c_bigendian=no
4161fi
4162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4163fi
4164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4165 fi
4166 if test $ac_cv_c_bigendian = unknown; then
4167 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
4170#include <limits.h>
4171
4172int
4173main ()
4174{
4175#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4176 bogus endian macros
4177 #endif
4178
4179 ;
4180 return 0;
4181}
4182_ACEOF
4183if ac_fn_c_try_compile "$LINENO"; then :
4184 # It does; now see whether it defined to _BIG_ENDIAN or not.
4185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4186/* end confdefs.h. */
4187#include <limits.h>
4188
4189int
4190main ()
4191{
4192#ifndef _BIG_ENDIAN
4193 not big endian
4194 #endif
4195
4196 ;
4197 return 0;
4198}
4199_ACEOF
4200if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_c_bigendian=yes
4202else
4203 ac_cv_c_bigendian=no
4204fi
4205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206fi
4207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 fi
4209 if test $ac_cv_c_bigendian = unknown; then
4210 # Compile a test program.
4211 if test "$cross_compiling" = yes; then :
4212 # Try to guess by grepping values from an object file.
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h. */
4215short int ascii_mm[] =
4216 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4217 short int ascii_ii[] =
4218 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4219 int use_ascii (int i) {
4220 return ascii_mm[i] + ascii_ii[i];
4221 }
4222 short int ebcdic_ii[] =
4223 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4224 short int ebcdic_mm[] =
4225 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4226 int use_ebcdic (int i) {
4227 return ebcdic_mm[i] + ebcdic_ii[i];
4228 }
4229 extern int foo;
4230
4231int
4232main ()
4233{
4234return use_ascii (foo) == use_ebcdic (foo);
4235 ;
4236 return 0;
4237}
4238_ACEOF
4239if ac_fn_c_try_compile "$LINENO"; then :
4240 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
4241 ac_cv_c_bigendian=yes
4242 fi
4243 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4244 if test "$ac_cv_c_bigendian" = unknown; then
4245 ac_cv_c_bigendian=no
4246 else
4247 # finding both strings is unlikely to happen, but who knows?
4248 ac_cv_c_bigendian=unknown
4249 fi
4250 fi
4251fi
4252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4253else
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255/* end confdefs.h. */
4256$ac_includes_default
4257int
4258main ()
4259{
4260
4261 /* Are we little or big endian? From Harbison&Steele. */
4262 union
4263 {
4264 long int l;
4265 char c[sizeof (long int)];
4266 } u;
4267 u.l = 1;
4268 return u.c[sizeof (long int) - 1] == 1;
4269
4270 ;
4271 return 0;
4272}
4273_ACEOF
4274if ac_fn_c_try_run "$LINENO"; then :
4275 ac_cv_c_bigendian=no
4276else
4277 ac_cv_c_bigendian=yes
4278fi
4279rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4280 conftest.$ac_objext conftest.beam conftest.$ac_ext
4281fi
4282
4283 fi
4284fi
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4286$as_echo "$ac_cv_c_bigendian" >&6; }
4287 case $ac_cv_c_bigendian in #(
4288 yes)
4289 $as_echo "#define B_ENDIAN 1" >>confdefs.h
4290;; #(
4291 no)
4292 $as_echo "#define L_ENDIAN 1" >>confdefs.h
4293 ;; #(
4294 universal)
4295
4296$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4297
4298 ;; #(
4299 *)
4300 as_fn_error $? "unknown endianness
4301 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4302 esac
4303
4304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
4305$as_echo_n "checking for X... " >&6; }
4306
4307
4308# Check whether --with-x was given.
4309if test "${with_x+set}" = set; then :
4310 withval=$with_x;
4311fi
4312
4313# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
4314if test "x$with_x" = xno; then
4315 # The user explicitly disabled X.
4316 have_x=disabled
4317else
4318 case $x_includes,$x_libraries in #(
4319 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
4320 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
4321 $as_echo_n "(cached) " >&6
4322else
4323 # One or both of the vars are not set, and there is no cached value.
4324ac_x_includes=no ac_x_libraries=no
4325rm -f -r conftest.dir
4326if mkdir conftest.dir; then
4327 cd conftest.dir
4328 cat >Imakefile <<'_ACEOF'
4329incroot:
4330 @echo incroot='${INCROOT}'
4331usrlibdir:
4332 @echo usrlibdir='${USRLIBDIR}'
4333libdir:
4334 @echo libdir='${LIBDIR}'
4335_ACEOF
4336 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
4337 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4338 for ac_var in incroot usrlibdir libdir; do
4339 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
4340 done
4341 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
4342 for ac_extension in a so sl dylib la dll; do
4343 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
4344 test -f "$ac_im_libdir/libX11.$ac_extension"; then
4345 ac_im_usrlibdir=$ac_im_libdir; break
4346 fi
4347 done
4348 # Screen out bogus values from the imake configuration. They are
4349 # bogus both because they are the default anyway, and because
4350 # using them would break gcc on systems where it needs fixed includes.
4351 case $ac_im_incroot in
4352 /usr/include) ac_x_includes= ;;
4353 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
4354 esac
4355 case $ac_im_usrlibdir in
4356 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
4357 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
4358 esac
4359 fi
4360 cd ..
4361 rm -f -r conftest.dir
4362fi
4363
4364# Standard set of common directories for X headers.
4365# Check X11 before X11Rn because it is often a symlink to the current release.
4366ac_x_header_dirs='
4367/usr/X11/include
4368/usr/X11R7/include
4369/usr/X11R6/include
4370/usr/X11R5/include
4371/usr/X11R4/include
4372
4373/usr/include/X11
4374/usr/include/X11R7
4375/usr/include/X11R6
4376/usr/include/X11R5
4377/usr/include/X11R4
4378
4379/usr/local/X11/include
4380/usr/local/X11R7/include
4381/usr/local/X11R6/include
4382/usr/local/X11R5/include
4383/usr/local/X11R4/include
4384
4385/usr/local/include/X11
4386/usr/local/include/X11R7
4387/usr/local/include/X11R6
4388/usr/local/include/X11R5
4389/usr/local/include/X11R4
4390
4391/usr/X386/include
4392/usr/x386/include
4393/usr/XFree86/include/X11
4394
4395/usr/include
4396/usr/local/include
4397/usr/unsupported/include
4398/usr/athena/include
4399/usr/local/x11r5/include
4400/usr/lpp/Xamples/include
4401
4402/usr/openwin/include
4403/usr/openwin/share/include'
4404
4405if test "$ac_x_includes" = no; then
4406 # Guess where to find include files, by looking for Xlib.h.
4407 # First, try using that file with no special directory specified.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410#include <X11/Xlib.h>
4411_ACEOF
4412if ac_fn_c_try_cpp "$LINENO"; then :
4413 # We can compile using X headers with no special include directory.
4414ac_x_includes=
4415else
4416 for ac_dir in $ac_x_header_dirs; do
4417 if test -r "$ac_dir/X11/Xlib.h"; then
4418 ac_x_includes=$ac_dir
4419 break
4420 fi
4421done
4422fi
4423rm -f conftest.err conftest.i conftest.$ac_ext
4424fi # $ac_x_includes = no
4425
4426if test "$ac_x_libraries" = no; then
4427 # Check for the libraries.
4428 # See if we find them without any special options.
4429 # Don't add to $LIBS permanently.
4430 ac_save_LIBS=$LIBS
4431 LIBS="-lX11 $LIBS"
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433/* end confdefs.h. */
4434#include <X11/Xlib.h>
4435int
4436main ()
4437{
4438XrmInitialize ()
4439 ;
4440 return 0;
4441}
4442_ACEOF
4443if ac_fn_c_try_link "$LINENO"; then :
4444 LIBS=$ac_save_LIBS
4445# We can link X programs with no special library path.
4446ac_x_libraries=
4447else
4448 LIBS=$ac_save_LIBS
4449for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
4450do
4451 # Don't even attempt the hair of trying to link an X program!
4452 for ac_extension in a so sl dylib la dll; do
4453 if test -r "$ac_dir/libX11.$ac_extension"; then
4454 ac_x_libraries=$ac_dir
4455 break 2
4456 fi
4457 done
4458done
4459fi
4460rm -f core conftest.err conftest.$ac_objext \
4461 conftest$ac_exeext conftest.$ac_ext
4462fi # $ac_x_libraries = no
4463
4464case $ac_x_includes,$ac_x_libraries in #(
4465 no,* | *,no | *\'*)
4466 # Didn't find X, or a directory has "'" in its name.
4467 ac_cv_have_x="have_x=no";; #(
4468 *)
4469 # Record where we found X for the cache.
4470 ac_cv_have_x="have_x=yes\
4471 ac_x_includes='$ac_x_includes'\
4472 ac_x_libraries='$ac_x_libraries'"
4473esac
4474fi
4475;; #(
4476 *) have_x=yes;;
4477 esac
4478 eval "$ac_cv_have_x"
4479fi # $with_x != no
4480
4481if test "$have_x" != yes; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
4483$as_echo "$have_x" >&6; }
4484 no_x=yes
4485else
4486 # If each of the values was on the command line, it overrides each guess.
4487 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
4488 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
4489 # Update the cache value to reflect the command line values.
4490 ac_cv_have_x="have_x=yes\
4491 ac_x_includes='$x_includes'\
4492 ac_x_libraries='$x_libraries'"
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
4494$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
4495fi
4496
4497if test "$no_x" = yes; then
4498 # Not all programs may use this symbol, but it does not hurt to define it.
4499
4500$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
4501
4502 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
4503else
4504 if test -n "$x_includes"; then
4505 X_CFLAGS="$X_CFLAGS -I$x_includes"
4506 fi
4507
4508 # It would also be nice to do this for all -L options, not just this one.
4509 if test -n "$x_libraries"; then
4510 X_LIBS="$X_LIBS -L$x_libraries"
4511 # For Solaris; some versions of Sun CC require a space after -R and
4512 # others require no space. Words are not sufficient . . . .
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
4514$as_echo_n "checking whether -R must be followed by a space... " >&6; }
4515 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
4516 ac_xsave_c_werror_flag=$ac_c_werror_flag
4517 ac_c_werror_flag=yes
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519/* end confdefs.h. */
4520
4521int
4522main ()
4523{
4524
4525 ;
4526 return 0;
4527}
4528_ACEOF
4529if ac_fn_c_try_link "$LINENO"; then :
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531$as_echo "no" >&6; }
4532 X_LIBS="$X_LIBS -R$x_libraries"
4533else
4534 LIBS="$ac_xsave_LIBS -R $x_libraries"
4535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536/* end confdefs.h. */
4537
4538int
4539main ()
4540{
4541
4542 ;
4543 return 0;
4544}
4545_ACEOF
4546if ac_fn_c_try_link "$LINENO"; then :
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4548$as_echo "yes" >&6; }
4549 X_LIBS="$X_LIBS -R $x_libraries"
4550else
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
4552$as_echo "neither works" >&6; }
4553fi
4554rm -f core conftest.err conftest.$ac_objext \
4555 conftest$ac_exeext conftest.$ac_ext
4556fi
4557rm -f core conftest.err conftest.$ac_objext \
4558 conftest$ac_exeext conftest.$ac_ext
4559 ac_c_werror_flag=$ac_xsave_c_werror_flag
4560 LIBS=$ac_xsave_LIBS
4561 fi
4562
4563 # Check for system-dependent libraries X programs must link with.
4564 # Do this before checking for the system-independent R6 libraries
4565 # (-lICE), since we may need -lsocket or whatever for X linking.
4566
4567 if test "$ISC" = yes; then
4568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
4569 else
4570 # Martyn Johnson says this is needed for Ultrix, if the X
4571 # libraries were built with DECnet support. And Karl Berry says
4572 # the Alpha needs dnet_stub (dnet does not exist).
4573 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575/* end confdefs.h. */
4576
4577/* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4580#ifdef __cplusplus
4581extern "C"
4582#endif
4583char XOpenDisplay ();
4584int
4585main ()
4586{
4587return XOpenDisplay ();
4588 ;
4589 return 0;
4590}
4591_ACEOF
4592if ac_fn_c_try_link "$LINENO"; then :
4593
4594else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
4596$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
4597if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
4598 $as_echo_n "(cached) " >&6
4599else
4600 ac_check_lib_save_LIBS=$LIBS
4601LIBS="-ldnet $LIBS"
4602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4603/* end confdefs.h. */
4604
4605/* Override any GCC internal prototype to avoid an error.
4606 Use char because int might match the return type of a GCC
4607 builtin and then its argument prototype would still apply. */
4608#ifdef __cplusplus
4609extern "C"
4610#endif
4611char dnet_ntoa ();
4612int
4613main ()
4614{
4615return dnet_ntoa ();
4616 ;
4617 return 0;
4618}
4619_ACEOF
4620if ac_fn_c_try_link "$LINENO"; then :
4621 ac_cv_lib_dnet_dnet_ntoa=yes
4622else
4623 ac_cv_lib_dnet_dnet_ntoa=no
4624fi
4625rm -f core conftest.err conftest.$ac_objext \
4626 conftest$ac_exeext conftest.$ac_ext
4627LIBS=$ac_check_lib_save_LIBS
4628fi
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4630$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
4631if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
4632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4633fi
4634
4635 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
4637$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
4638if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
4639 $as_echo_n "(cached) " >&6
4640else
4641 ac_check_lib_save_LIBS=$LIBS
4642LIBS="-ldnet_stub $LIBS"
4643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644/* end confdefs.h. */
4645
4646/* Override any GCC internal prototype to avoid an error.
4647 Use char because int might match the return type of a GCC
4648 builtin and then its argument prototype would still apply. */
4649#ifdef __cplusplus
4650extern "C"
4651#endif
4652char dnet_ntoa ();
4653int
4654main ()
4655{
4656return dnet_ntoa ();
4657 ;
4658 return 0;
4659}
4660_ACEOF
4661if ac_fn_c_try_link "$LINENO"; then :
4662 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4663else
4664 ac_cv_lib_dnet_stub_dnet_ntoa=no
4665fi
4666rm -f core conftest.err conftest.$ac_objext \
4667 conftest$ac_exeext conftest.$ac_ext
4668LIBS=$ac_check_lib_save_LIBS
4669fi
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4671$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
4672if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
4673 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4674fi
4675
4676 fi
4677fi
4678rm -f core conftest.err conftest.$ac_objext \
4679 conftest$ac_exeext conftest.$ac_ext
4680 LIBS="$ac_xsave_LIBS"
4681
4682 # [email protected] says -lnsl (and -lsocket) are needed for his 386/AT,
4683 # to get the SysV transport functions.
4684 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4685 # needs -lnsl.
4686 # The nsl library prevents programs from opening the X display
4687 # on Irix 5.2, according to T.E. Dickey.
4688 # The functions gethostbyname, getservbyname, and inet_addr are
4689 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
4690 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
4691if test "x$ac_cv_func_gethostbyname" = xyes; then :
4692
4693fi
4694
4695 if test $ac_cv_func_gethostbyname = no; then
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
4697$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
4698if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
4699 $as_echo_n "(cached) " >&6
4700else
4701 ac_check_lib_save_LIBS=$LIBS
4702LIBS="-lnsl $LIBS"
4703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4704/* end confdefs.h. */
4705
4706/* Override any GCC internal prototype to avoid an error.
4707 Use char because int might match the return type of a GCC
4708 builtin and then its argument prototype would still apply. */
4709#ifdef __cplusplus
4710extern "C"
4711#endif
4712char gethostbyname ();
4713int
4714main ()
4715{
4716return gethostbyname ();
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721if ac_fn_c_try_link "$LINENO"; then :
4722 ac_cv_lib_nsl_gethostbyname=yes
4723else
4724 ac_cv_lib_nsl_gethostbyname=no
4725fi
4726rm -f core conftest.err conftest.$ac_objext \
4727 conftest$ac_exeext conftest.$ac_ext
4728LIBS=$ac_check_lib_save_LIBS
4729fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
4731$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
4732if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
4733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4734fi
4735
4736 if test $ac_cv_lib_nsl_gethostbyname = no; then
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
4738$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
4739if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741else
4742 ac_check_lib_save_LIBS=$LIBS
4743LIBS="-lbsd $LIBS"
4744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745/* end confdefs.h. */
4746
4747/* Override any GCC internal prototype to avoid an error.
4748 Use char because int might match the return type of a GCC
4749 builtin and then its argument prototype would still apply. */
4750#ifdef __cplusplus
4751extern "C"
4752#endif
4753char gethostbyname ();
4754int
4755main ()
4756{
4757return gethostbyname ();
4758 ;
4759 return 0;
4760}
4761_ACEOF
4762if ac_fn_c_try_link "$LINENO"; then :
4763 ac_cv_lib_bsd_gethostbyname=yes
4764else
4765 ac_cv_lib_bsd_gethostbyname=no
4766fi
4767rm -f core conftest.err conftest.$ac_objext \
4768 conftest$ac_exeext conftest.$ac_ext
4769LIBS=$ac_check_lib_save_LIBS
4770fi
4771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
4772$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
4773if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
4774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4775fi
4776
4777 fi
4778 fi
4779
4780 # [email protected] says without -lsocket,
4781 # socket/setsockopt and other routines are undefined under SCO ODT
4782 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4783 # on later versions), says Simon Leinen: it contains gethostby*
4784 # variants that don't use the name server (or something). -lsocket
4785 # must be given before -lnsl if both are needed. We assume that
4786 # if connect needs -lnsl, so does gethostbyname.
4787 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
4788if test "x$ac_cv_func_connect" = xyes; then :
4789
4790fi
4791
4792 if test $ac_cv_func_connect = no; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
4794$as_echo_n "checking for connect in -lsocket... " >&6; }
4795if ${ac_cv_lib_socket_connect+:} false; then :
4796 $as_echo_n "(cached) " >&6
4797else
4798 ac_check_lib_save_LIBS=$LIBS
4799LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4800cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801/* end confdefs.h. */
4802
4803/* Override any GCC internal prototype to avoid an error.
4804 Use char because int might match the return type of a GCC
4805 builtin and then its argument prototype would still apply. */
4806#ifdef __cplusplus
4807extern "C"
4808#endif
4809char connect ();
4810int
4811main ()
4812{
4813return connect ();
4814 ;
4815 return 0;
4816}
4817_ACEOF
4818if ac_fn_c_try_link "$LINENO"; then :
4819 ac_cv_lib_socket_connect=yes
4820else
4821 ac_cv_lib_socket_connect=no
4822fi
4823rm -f core conftest.err conftest.$ac_objext \
4824 conftest$ac_exeext conftest.$ac_ext
4825LIBS=$ac_check_lib_save_LIBS
4826fi
4827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
4828$as_echo "$ac_cv_lib_socket_connect" >&6; }
4829if test "x$ac_cv_lib_socket_connect" = xyes; then :
4830 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4831fi
4832
4833 fi
4834
4835 # Guillermo Gomez says -lposix is necessary on A/UX.
4836 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
4837if test "x$ac_cv_func_remove" = xyes; then :
4838
4839fi
4840
4841 if test $ac_cv_func_remove = no; then
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
4843$as_echo_n "checking for remove in -lposix... " >&6; }
4844if ${ac_cv_lib_posix_remove+:} false; then :
4845 $as_echo_n "(cached) " >&6
4846else
4847 ac_check_lib_save_LIBS=$LIBS
4848LIBS="-lposix $LIBS"
4849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850/* end confdefs.h. */
4851
4852/* Override any GCC internal prototype to avoid an error.
4853 Use char because int might match the return type of a GCC
4854 builtin and then its argument prototype would still apply. */
4855#ifdef __cplusplus
4856extern "C"
4857#endif
4858char remove ();
4859int
4860main ()
4861{
4862return remove ();
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867if ac_fn_c_try_link "$LINENO"; then :
4868 ac_cv_lib_posix_remove=yes
4869else
4870 ac_cv_lib_posix_remove=no
4871fi
4872rm -f core conftest.err conftest.$ac_objext \
4873 conftest$ac_exeext conftest.$ac_ext
4874LIBS=$ac_check_lib_save_LIBS
4875fi
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
4877$as_echo "$ac_cv_lib_posix_remove" >&6; }
4878if test "x$ac_cv_lib_posix_remove" = xyes; then :
4879 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4880fi
4881
4882 fi
4883
4884 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4885 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
4886if test "x$ac_cv_func_shmat" = xyes; then :
4887
4888fi
4889
4890 if test $ac_cv_func_shmat = no; then
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
4892$as_echo_n "checking for shmat in -lipc... " >&6; }
4893if ${ac_cv_lib_ipc_shmat+:} false; then :
4894 $as_echo_n "(cached) " >&6
4895else
4896 ac_check_lib_save_LIBS=$LIBS
4897LIBS="-lipc $LIBS"
4898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900
4901/* Override any GCC internal prototype to avoid an error.
4902 Use char because int might match the return type of a GCC
4903 builtin and then its argument prototype would still apply. */
4904#ifdef __cplusplus
4905extern "C"
4906#endif
4907char shmat ();
4908int
4909main ()
4910{
4911return shmat ();
4912 ;
4913 return 0;
4914}
4915_ACEOF
4916if ac_fn_c_try_link "$LINENO"; then :
4917 ac_cv_lib_ipc_shmat=yes
4918else
4919 ac_cv_lib_ipc_shmat=no
4920fi
4921rm -f core conftest.err conftest.$ac_objext \
4922 conftest$ac_exeext conftest.$ac_ext
4923LIBS=$ac_check_lib_save_LIBS
4924fi
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
4926$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
4927if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
4928 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4929fi
4930
4931 fi
4932 fi
4933
4934 # Check for libraries that X11R6 Xt/Xaw programs need.
4935 ac_save_LDFLAGS=$LDFLAGS
4936 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4937 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4938 # check for ICE first), but we must link in the order -lSM -lICE or
4939 # we get undefined symbols. So assume we have SM if we have ICE.
4940 # These have to be linked with before -lX11, unlike the other
4941 # libraries we check for below, so use a different variable.
4942 # John Interrante, Karl Berry
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
4944$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
4945if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
4946 $as_echo_n "(cached) " >&6
4947else
4948 ac_check_lib_save_LIBS=$LIBS
4949LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951/* end confdefs.h. */
4952
4953/* Override any GCC internal prototype to avoid an error.
4954 Use char because int might match the return type of a GCC
4955 builtin and then its argument prototype would still apply. */
4956#ifdef __cplusplus
4957extern "C"
4958#endif
4959char IceConnectionNumber ();
4960int
4961main ()
4962{
4963return IceConnectionNumber ();
4964 ;
4965 return 0;
4966}
4967_ACEOF
4968if ac_fn_c_try_link "$LINENO"; then :
4969 ac_cv_lib_ICE_IceConnectionNumber=yes
4970else
4971 ac_cv_lib_ICE_IceConnectionNumber=no
4972fi
4973rm -f core conftest.err conftest.$ac_objext \
4974 conftest$ac_exeext conftest.$ac_ext
4975LIBS=$ac_check_lib_save_LIBS
4976fi
4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4978$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
4979if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
4980 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4981fi
4982
4983 LDFLAGS=$ac_save_LDFLAGS
4984
4985fi
4986
4987if test "$no_x" = "yes"; then
4988 echo
4989 echo "ERROR: Could not find X Window System headers/libraries."
4990 if test -f /etc/debian_version; then
4991 echo "Probably you need to install the libx11-dev package."
4992 elif test -f /etc/redhat-release; then
4993 echo "Probably you need to install the libX11-devel package."
4994 fi
4995 echo "To specify paths manually, use the options --x-includes and --x-libraries."
4996 echo
4997 exit 1
4998fi
4999
5000if test -n "$ac_tool_prefix"; then
5001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5002set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if ${ac_cv_path_PKG_CONFIG+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007else
5008 case $PKG_CONFIG in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5011 ;;
5012 *)
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025 done
5026IFS=$as_save_IFS
5027
5028 ;;
5029esac
5030fi
5031PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5032if test -n "$PKG_CONFIG"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5034$as_echo "$PKG_CONFIG" >&6; }
5035else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037$as_echo "no" >&6; }
5038fi
5039
5040
5041fi
5042if test -z "$ac_cv_path_PKG_CONFIG"; then
5043 ac_pt_PKG_CONFIG=$PKG_CONFIG
5044 # Extract the first word of "pkg-config", so it can be a program name with args.
5045set dummy pkg-config; ac_word=$2
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047$as_echo_n "checking for $ac_word... " >&6; }
5048if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5049 $as_echo_n "(cached) " >&6
5050else
5051 case $ac_pt_PKG_CONFIG in
5052 [\\/]* | ?:[\\/]*)
5053 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5054 ;;
5055 *)
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057for as_dir in $PATH
5058do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067done
5068 done
5069IFS=$as_save_IFS
5070
5071 ;;
5072esac
5073fi
5074ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5075if test -n "$ac_pt_PKG_CONFIG"; then
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5077$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5078else
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5080$as_echo "no" >&6; }
5081fi
5082
5083 if test "x$ac_pt_PKG_CONFIG" = x; then
5084 PKG_CONFIG=""
5085 else
5086 case $cross_compiling:$ac_tool_warned in
5087yes:)
5088{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5089$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5090ac_tool_warned=yes ;;
5091esac
5092 PKG_CONFIG=$ac_pt_PKG_CONFIG
5093 fi
5094else
5095 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5096fi
5097
5098
5099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
5100$as_echo_n "checking for library containing socket... " >&6; }
5101if ${ac_cv_search_socket+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103else
5104 ac_func_search_save_LIBS=$LIBS
5105cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5106/* end confdefs.h. */
5107
5108/* Override any GCC internal prototype to avoid an error.
5109 Use char because int might match the return type of a GCC
5110 builtin and then its argument prototype would still apply. */
5111#ifdef __cplusplus
5112extern "C"
5113#endif
5114char socket ();
5115int
5116main ()
5117{
5118return socket ();
5119 ;
5120 return 0;
5121}
5122_ACEOF
5123for ac_lib in '' socket; do
5124 if test -z "$ac_lib"; then
5125 ac_res="none required"
5126 else
5127 ac_res=-l$ac_lib
5128 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5129 fi
5130 if ac_fn_c_try_link "$LINENO"; then :
5131 ac_cv_search_socket=$ac_res
5132fi
5133rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext
5135 if ${ac_cv_search_socket+:} false; then :
5136 break
5137fi
5138done
5139if ${ac_cv_search_socket+:} false; then :
5140
5141else
5142 ac_cv_search_socket=no
5143fi
5144rm conftest.$ac_ext
5145LIBS=$ac_func_search_save_LIBS
5146fi
5147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
5148$as_echo "$ac_cv_search_socket" >&6; }
5149ac_res=$ac_cv_search_socket
5150if test "$ac_res" != no; then :
5151 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5152
5153fi
5154
5155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
5156$as_echo_n "checking for library containing inet_aton... " >&6; }
5157if ${ac_cv_search_inet_aton+:} false; then :
5158 $as_echo_n "(cached) " >&6
5159else
5160 ac_func_search_save_LIBS=$LIBS
5161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162/* end confdefs.h. */
5163
5164/* Override any GCC internal prototype to avoid an error.
5165 Use char because int might match the return type of a GCC
5166 builtin and then its argument prototype would still apply. */
5167#ifdef __cplusplus
5168extern "C"
5169#endif
5170char inet_aton ();
5171int
5172main ()
5173{
5174return inet_aton ();
5175 ;
5176 return 0;
5177}
5178_ACEOF
5179for ac_lib in '' resolv; do
5180 if test -z "$ac_lib"; then
5181 ac_res="none required"
5182 else
5183 ac_res=-l$ac_lib
5184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5185 fi
5186 if ac_fn_c_try_link "$LINENO"; then :
5187 ac_cv_search_inet_aton=$ac_res
5188fi
5189rm -f core conftest.err conftest.$ac_objext \
5190 conftest$ac_exeext
5191 if ${ac_cv_search_inet_aton+:} false; then :
5192 break
5193fi
5194done
5195if ${ac_cv_search_inet_aton+:} false; then :
5196
5197else
5198 ac_cv_search_inet_aton=no
5199fi
5200rm conftest.$ac_ext
5201LIBS=$ac_func_search_save_LIBS
5202fi
5203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
5204$as_echo "$ac_cv_search_inet_aton" >&6; }
5205ac_res=$ac_cv_search_inet_aton
5206if test "$ac_res" != no; then :
5207 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5208
5209fi
5210
5211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5212$as_echo_n "checking for library containing clock_gettime... " >&6; }
5213if ${ac_cv_search_clock_gettime+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215else
5216 ac_func_search_save_LIBS=$LIBS
5217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5219
5220/* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5223#ifdef __cplusplus
5224extern "C"
5225#endif
5226char clock_gettime ();
5227int
5228main ()
5229{
5230return clock_gettime ();
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235for ac_lib in '' rt; do
5236 if test -z "$ac_lib"; then
5237 ac_res="none required"
5238 else
5239 ac_res=-l$ac_lib
5240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5241 fi
5242 if ac_fn_c_try_link "$LINENO"; then :
5243 ac_cv_search_clock_gettime=$ac_res
5244fi
5245rm -f core conftest.err conftest.$ac_objext \
5246 conftest$ac_exeext
5247 if ${ac_cv_search_clock_gettime+:} false; then :
5248 break
5249fi
5250done
5251if ${ac_cv_search_clock_gettime+:} false; then :
5252
5253else
5254 ac_cv_search_clock_gettime=no
5255fi
5256rm conftest.$ac_ext
5257LIBS=$ac_func_search_save_LIBS
5258fi
5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5260$as_echo "$ac_cv_search_clock_gettime" >&6; }
5261ac_res=$ac_cv_search_clock_gettime
5262if test "$ac_res" != no; then :
5263 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5264
5265fi
5266
5267
5268ac_fn_c_check_header_mongrel "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
5269if test "x$ac_cv_header_sys_select_h" = xyes; then :
5270 $as_echo "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
5271
5272fi
5273
5274
5275ac_fn_c_check_header_mongrel "$LINENO" "sys/modem.h" "ac_cv_header_sys_modem_h" "$ac_includes_default"
5276if test "x$ac_cv_header_sys_modem_h" = xyes; then :
5277 $as_echo "#define HAVE_SYS_MODEM_H 1" >>confdefs.h
5278
5279fi
5280
5281
5282ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
5283if test "x$ac_cv_header_sys_filio_h" = xyes; then :
5284 $as_echo "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
5285
5286fi
5287
5288
5289ac_fn_c_check_header_mongrel "$LINENO" "sys/strtio.h" "ac_cv_header_sys_strtio_h" "$ac_includes_default"
5290if test "x$ac_cv_header_sys_strtio_h" = xyes; then :
5291 $as_echo "#define HAVE_SYS_STRTIO_H 1" >>confdefs.h
5292
5293fi
5294
5295
5296ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5297if test "x$ac_cv_header_locale_h" = xyes; then :
5298 $as_echo "#define HAVE_LOCALE_H 1" >>confdefs.h
5299
5300fi
5301
5302
5303ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5304if test "x$ac_cv_header_langinfo_h" = xyes; then :
5305 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5306
5307fi
5308
5309
5310ac_fn_c_check_header_mongrel "$LINENO" "sysexits.h" "ac_cv_header_sysexits_h" "$ac_includes_default"
5311if test "x$ac_cv_header_sysexits_h" = xyes; then :
5312 $as_echo "#define HAVE_SYSEXITS_H 1" >>confdefs.h
5313
5314fi
5315
5316
5317
5318if test -n "$ac_tool_prefix"; then
5319 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5320set dummy ${ac_tool_prefix}strip; ac_word=$2
5321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5322$as_echo_n "checking for $ac_word... " >&6; }
5323if ${ac_cv_prog_STRIP+:} false; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 if test -n "$STRIP"; then
5327 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5328else
5329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330for as_dir in $PATH
5331do
5332 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2
5339 fi
5340done
5341 done
5342IFS=$as_save_IFS
5343
5344fi
5345fi
5346STRIP=$ac_cv_prog_STRIP
5347if test -n "$STRIP"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5349$as_echo "$STRIP" >&6; }
5350else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352$as_echo "no" >&6; }
5353fi
5354
5355
5356fi
5357if test -z "$ac_cv_prog_STRIP"; then
5358 ac_ct_STRIP=$STRIP
5359 # Extract the first word of "strip", so it can be a program name with args.
5360set dummy strip; ac_word=$2
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5362$as_echo_n "checking for $ac_word... " >&6; }
5363if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 if test -n "$ac_ct_STRIP"; then
5367 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5368else
5369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370for as_dir in $PATH
5371do
5372 IFS=$as_save_IFS
5373 test -z "$as_dir" && as_dir=.
5374 for ac_exec_ext in '' $ac_executable_extensions; do
5375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376 ac_cv_prog_ac_ct_STRIP="strip"
5377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378 break 2
5379 fi
5380done
5381 done
5382IFS=$as_save_IFS
5383
5384fi
5385fi
5386ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5387if test -n "$ac_ct_STRIP"; then
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5389$as_echo "$ac_ct_STRIP" >&6; }
5390else
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392$as_echo "no" >&6; }
5393fi
5394
5395 if test "x$ac_ct_STRIP" = x; then
5396 STRIP=":"
5397 else
5398 case $cross_compiling:$ac_tool_warned in
5399yes:)
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5401$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5402ac_tool_warned=yes ;;
5403esac
5404 STRIP=$ac_ct_STRIP
5405 fi
5406else
5407 STRIP="$ac_cv_prog_STRIP"
5408fi
5409
5410
5411
5412
5413#
5414# OpenSSL detection borrowed from stunnel
5415#
5416checkssldir() { :
5417 if test -f "$1/include/openssl/ssl.h"; then
5418 ssldir="$1"
5419 return 0
5420 fi
5421 return 1
5422}
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL directory" >&5
5424$as_echo_n "checking for OpenSSL directory... " >&6; }
5425
5426# Check whether --with-openssl was given.
5427if test "${with_openssl+set}" = set; then :
5428 withval=$with_openssl;
5429 checkssldir "$withval"
5430
5431else
5432
5433 for maindir in /usr/local /usr/lib /usr/pkg /usr /var/ssl /opt; do
5434 for dir in $maindir $maindir/openssl $maindir/ssl; do
5435 checkssldir $dir && break 2
5436 done
5437 done
5438
5439
5440fi
5441
5442if test -z "$ssldir"; then
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
5444$as_echo "Not found" >&6; }
5445 echo
5446 echo "ERROR: Could not find OpenSSL headers/libraries."
5447 if test -f /etc/debian_version; then
5448 echo "Probably you need to install the libssl-dev package."
5449 elif test -f /etc/redhat-release; then
5450 echo "Probably you need to install the openssl-devel package."
5451 fi
5452 echo "To specify a path manually, use the --with-openssl option."
5453 echo
5454 exit 1
5455fi
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssldir" >&5
5457$as_echo "$ssldir" >&6; }
5458
5459cat >>confdefs.h <<_ACEOF
5460#define ssldir "$ssldir"
5461_ACEOF
5462
5463
5464CFLAGS="$CFLAGS -I$ssldir/include"
5465# Check whether --enable-static-openssl was given.
5466if test "${enable_static_openssl+set}" = set; then :
5467 enableval=$enable_static_openssl; static_openssl=yes
5468else
5469 static_openssl=no
5470fi
5471
5472if test x"$static_openssl" = "xyes"; then
5473 # OpenSSL generally relies on libz
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing deflate" >&5
5475$as_echo_n "checking for library containing deflate... " >&6; }
5476if ${ac_cv_search_deflate+:} false; then :
5477 $as_echo_n "(cached) " >&6
5478else
5479 ac_func_search_save_LIBS=$LIBS
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char deflate ();
5490int
5491main ()
5492{
5493return deflate ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498for ac_lib in '' z; do
5499 if test -z "$ac_lib"; then
5500 ac_res="none required"
5501 else
5502 ac_res=-l$ac_lib
5503 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5504 fi
5505 if ac_fn_c_try_link "$LINENO"; then :
5506 ac_cv_search_deflate=$ac_res
5507fi
5508rm -f core conftest.err conftest.$ac_objext \
5509 conftest$ac_exeext
5510 if ${ac_cv_search_deflate+:} false; then :
5511 break
5512fi
5513done
5514if ${ac_cv_search_deflate+:} false; then :
5515
5516else
5517 ac_cv_search_deflate=no
5518fi
5519rm conftest.$ac_ext
5520LIBS=$ac_func_search_save_LIBS
5521fi
5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_deflate" >&5
5523$as_echo "$ac_cv_search_deflate" >&6; }
5524ac_res=$ac_cv_search_deflate
5525if test "$ac_res" != no; then :
5526 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5527
5528fi
5529
5530 LIBS="-L$ssldir/lib -L$ssldir/lib64 -Wl,-Bstatic -lssl -lcrypto -Wl,-Bdynamic $LIBS"
5531else
5532 LIBS="-L$ssldir/lib -L$ssldir/lib64 -lssl -lcrypto $LIBS"
5533
5534 #
5535 # target-specific stuff
5536 #
5537 case "$host" in
5538 *-*-solaris*)
5539 LDFLAGS="$LDFLAGS -R$ssldir/lib"
5540 ;;
5541 *-dec-osf*)
5542 LDFLAGS="$LDFLAGS -Wl,-rpath,$ssldir/lib"
5543 ;;
5544 esac
5545fi
5546
5547# Check whether --enable-credssp was given.
5548if test "${enable_credssp+set}" = set; then :
5549 enableval=$enable_credssp;
5550fi
5551
5552# Check whether --enable-static-gssglue was given.
5553if test "${enable_static_gssglue+set}" = set; then :
5554 enableval=$enable_static_gssglue; static_gssglue=yes
5555else
5556 static_gssglue=no
5557fi
5558
5559
5560
5561
5562
5563
5564
5565
5566if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5569set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571$as_echo_n "checking for $ac_word... " >&6; }
5572if ${ac_cv_path_PKG_CONFIG+:} false; then :
5573 $as_echo_n "(cached) " >&6
5574else
5575 case $PKG_CONFIG in
5576 [\\/]* | ?:[\\/]*)
5577 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5578 ;;
5579 *)
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581for as_dir in $PATH
5582do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591done
5592 done
5593IFS=$as_save_IFS
5594
5595 ;;
5596esac
5597fi
5598PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5599if test -n "$PKG_CONFIG"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5601$as_echo "$PKG_CONFIG" >&6; }
5602else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604$as_echo "no" >&6; }
5605fi
5606
5607
5608fi
5609if test -z "$ac_cv_path_PKG_CONFIG"; then
5610 ac_pt_PKG_CONFIG=$PKG_CONFIG
5611 # Extract the first word of "pkg-config", so it can be a program name with args.
5612set dummy pkg-config; ac_word=$2
5613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614$as_echo_n "checking for $ac_word... " >&6; }
5615if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617else
5618 case $ac_pt_PKG_CONFIG in
5619 [\\/]* | ?:[\\/]*)
5620 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5621 ;;
5622 *)
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
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_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5633 fi
5634done
5635 done
5636IFS=$as_save_IFS
5637
5638 ;;
5639esac
5640fi
5641ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5642if test -n "$ac_pt_PKG_CONFIG"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5644$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5645else
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647$as_echo "no" >&6; }
5648fi
5649
5650 if test "x$ac_pt_PKG_CONFIG" = x; then
5651 PKG_CONFIG=""
5652 else
5653 case $cross_compiling:$ac_tool_warned in
5654yes:)
5655{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657ac_tool_warned=yes ;;
5658esac
5659 PKG_CONFIG=$ac_pt_PKG_CONFIG
5660 fi
5661else
5662 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5663fi
5664
5665fi
5666if test -n "$PKG_CONFIG"; then
5667 _pkg_min_version=0.9.0
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5669$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5670 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5672$as_echo "yes" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675$as_echo "no" >&6; }
5676 PKG_CONFIG=""
5677 fi
5678fi
5679if test "x$enable_credssp" != "xno"; then :
5680
5681 if test -n "$PKG_CONFIG"; then
5682
5683pkg_failed=no
5684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSSGLUE" >&5
5685$as_echo_n "checking for GSSGLUE... " >&6; }
5686
5687if test -n "$GSSGLUE_CFLAGS"; then
5688 pkg_cv_GSSGLUE_CFLAGS="$GSSGLUE_CFLAGS"
5689 elif test -n "$PKG_CONFIG"; then
5690 if test -n "$PKG_CONFIG" && \
5691 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
5692 ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
5693 ac_status=$?
5694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5695 test $ac_status = 0; }; then
5696 pkg_cv_GSSGLUE_CFLAGS=`$PKG_CONFIG --cflags "libgssglue" 2>/dev/null`
5697 test "x$?" != "x0" && pkg_failed=yes
5698else
5699 pkg_failed=yes
5700fi
5701 else
5702 pkg_failed=untried
5703fi
5704if test -n "$GSSGLUE_LIBS"; then
5705 pkg_cv_GSSGLUE_LIBS="$GSSGLUE_LIBS"
5706 elif test -n "$PKG_CONFIG"; then
5707 if test -n "$PKG_CONFIG" && \
5708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgssglue\""; } >&5
5709 ($PKG_CONFIG --exists --print-errors "libgssglue") 2>&5
5710 ac_status=$?
5711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5712 test $ac_status = 0; }; then
5713 pkg_cv_GSSGLUE_LIBS=`$PKG_CONFIG --libs "libgssglue" 2>/dev/null`
5714 test "x$?" != "x0" && pkg_failed=yes
5715else
5716 pkg_failed=yes
5717fi
5718 else
5719 pkg_failed=untried
5720fi
5721
5722
5723
5724if test $pkg_failed = yes; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726$as_echo "no" >&6; }
5727
5728if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5729 _pkg_short_errors_supported=yes
5730else
5731 _pkg_short_errors_supported=no
5732fi
5733 if test $_pkg_short_errors_supported = yes; then
5734 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgssglue" 2>&1`
5735 else
5736 GSSGLUE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgssglue" 2>&1`
5737 fi
5738 # Put the nasty error message in config.log where it belongs
5739 echo "$GSSGLUE_PKG_ERRORS" >&5
5740
5741 WITH_CREDSSP=0
5742elif test $pkg_failed = untried; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744$as_echo "no" >&6; }
5745 WITH_CREDSSP=0
5746else
5747 GSSGLUE_CFLAGS=$pkg_cv_GSSGLUE_CFLAGS
5748 GSSGLUE_LIBS=$pkg_cv_GSSGLUE_LIBS
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5750$as_echo "yes" >&6; }
5751 WITH_CREDSSP=1
5752fi
5753 fi
5754
5755 if test x"$WITH_CREDSSP" = "x1"; then
5756 CREDSSPOBJ="cssp.o"
5757 CFLAGS="$CFLAGS $GSSGLUE_CFLAGS"
5758
5759 if test "x$static_gssglue" != "xno"; then :
5760
5761 LIBS="$LIBS -Wl,-Bstatic -lgssglue -Wl,-Bdynamic"
5762
5763else
5764
5765 LIBS="$LIBS -lgssglue"
5766
5767fi
5768
5769 $as_echo "#define WITH_CREDSSP 1" >>confdefs.h
5770
5771 else
5772 echo
5773 echo "CredSSP support requires libgssglue, install the dependency"
5774 echo "or disable the feature using --disable-credssp."
5775 echo
5776 exit 1
5777 fi
5778
5779fi
5780
5781
5782# xrandr
5783if test -n "$PKG_CONFIG"; then
5784
5785pkg_failed=no
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRANDR" >&5
5787$as_echo_n "checking for XRANDR... " >&6; }
5788
5789if test -n "$XRANDR_CFLAGS"; then
5790 pkg_cv_XRANDR_CFLAGS="$XRANDR_CFLAGS"
5791 elif test -n "$PKG_CONFIG"; then
5792 if test -n "$PKG_CONFIG" && \
5793 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
5794 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
5795 ac_status=$?
5796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5797 test $ac_status = 0; }; then
5798 pkg_cv_XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr" 2>/dev/null`
5799 test "x$?" != "x0" && pkg_failed=yes
5800else
5801 pkg_failed=yes
5802fi
5803 else
5804 pkg_failed=untried
5805fi
5806if test -n "$XRANDR_LIBS"; then
5807 pkg_cv_XRANDR_LIBS="$XRANDR_LIBS"
5808 elif test -n "$PKG_CONFIG"; then
5809 if test -n "$PKG_CONFIG" && \
5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrandr\""; } >&5
5811 ($PKG_CONFIG --exists --print-errors "xrandr") 2>&5
5812 ac_status=$?
5813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5814 test $ac_status = 0; }; then
5815 pkg_cv_XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr" 2>/dev/null`
5816 test "x$?" != "x0" && pkg_failed=yes
5817else
5818 pkg_failed=yes
5819fi
5820 else
5821 pkg_failed=untried
5822fi
5823
5824
5825
5826if test $pkg_failed = yes; then
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828$as_echo "no" >&6; }
5829
5830if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5831 _pkg_short_errors_supported=yes
5832else
5833 _pkg_short_errors_supported=no
5834fi
5835 if test $_pkg_short_errors_supported = yes; then
5836 XRANDR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xrandr" 2>&1`
5837 else
5838 XRANDR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xrandr" 2>&1`
5839 fi
5840 # Put the nasty error message in config.log where it belongs
5841 echo "$XRANDR_PKG_ERRORS" >&5
5842
5843 HAVE_XRANDR=0
5844elif test $pkg_failed = untried; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5846$as_echo "no" >&6; }
5847 HAVE_XRANDR=0
5848else
5849 XRANDR_CFLAGS=$pkg_cv_XRANDR_CFLAGS
5850 XRANDR_LIBS=$pkg_cv_XRANDR_LIBS
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5852$as_echo "yes" >&6; }
5853 HAVE_XRANDR=1
5854fi
5855fi
5856if test x"$HAVE_XRANDR" = "x1"; then
5857 CFLAGS="$CFLAGS $XRANDR_CFLAGS"
5858 LIBS="$LIBS $XRANDR_LIBS"
5859 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
5860
5861fi
5862
5863# Check whether --enable-smartcard was given.
5864if test "${enable_smartcard+set}" = set; then :
5865 enableval=$enable_smartcard;
5866fi
5867
5868if test "x$enable_smartcard" != "xno"; then :
5869
5870 case "$OSTYPE" in
5871 darwin*)
5872 ac_fn_c_check_header_mongrel "$LINENO" "PCSC/pcsclite.h" "ac_cv_header_PCSC_pcsclite_h" "$ac_includes_default"
5873if test "x$ac_cv_header_PCSC_pcsclite_h" = xyes; then :
5874 WITH_SCARD=1
5875else
5876 WITH_SCARD=0
5877fi
5878
5879
5880 PCSCLITE_CFLAGS=""
5881 PCSCLITE_LIBS="-framework PCSC"
5882 ;;
5883 *)
5884 if test -n "$PKG_CONFIG"; then
5885
5886pkg_failed=no
5887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCSCLITE" >&5
5888$as_echo_n "checking for PCSCLITE... " >&6; }
5889
5890if test -n "$PCSCLITE_CFLAGS"; then
5891 pkg_cv_PCSCLITE_CFLAGS="$PCSCLITE_CFLAGS"
5892 elif test -n "$PKG_CONFIG"; then
5893 if test -n "$PKG_CONFIG" && \
5894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
5895 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
5896 ac_status=$?
5897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5898 test $ac_status = 0; }; then
5899 pkg_cv_PCSCLITE_CFLAGS=`$PKG_CONFIG --cflags "libpcsclite" 2>/dev/null`
5900 test "x$?" != "x0" && pkg_failed=yes
5901else
5902 pkg_failed=yes
5903fi
5904 else
5905 pkg_failed=untried
5906fi
5907if test -n "$PCSCLITE_LIBS"; then
5908 pkg_cv_PCSCLITE_LIBS="$PCSCLITE_LIBS"
5909 elif test -n "$PKG_CONFIG"; then
5910 if test -n "$PKG_CONFIG" && \
5911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcsclite\""; } >&5
5912 ($PKG_CONFIG --exists --print-errors "libpcsclite") 2>&5
5913 ac_status=$?
5914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5915 test $ac_status = 0; }; then
5916 pkg_cv_PCSCLITE_LIBS=`$PKG_CONFIG --libs "libpcsclite" 2>/dev/null`
5917 test "x$?" != "x0" && pkg_failed=yes
5918else
5919 pkg_failed=yes
5920fi
5921 else
5922 pkg_failed=untried
5923fi
5924
5925
5926
5927if test $pkg_failed = yes; then
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5929$as_echo "no" >&6; }
5930
5931if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5932 _pkg_short_errors_supported=yes
5933else
5934 _pkg_short_errors_supported=no
5935fi
5936 if test $_pkg_short_errors_supported = yes; then
5937 PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcsclite" 2>&1`
5938 else
5939 PCSCLITE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcsclite" 2>&1`
5940 fi
5941 # Put the nasty error message in config.log where it belongs
5942 echo "$PCSCLITE_PKG_ERRORS" >&5
5943
5944 WITH_SCARD=0
5945elif test $pkg_failed = untried; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947$as_echo "no" >&6; }
5948 WITH_SCARD=0
5949else
5950 PCSCLITE_CFLAGS=$pkg_cv_PCSCLITE_CFLAGS
5951 PCSCLITE_LIBS=$pkg_cv_PCSCLITE_LIBS
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5953$as_echo "yes" >&6; }
5954 WITH_SCARD=1
5955fi
5956 fi
5957 ;;
5958 esac
5959
5960 if test x"$WITH_SCARD" = "x1"; then
5961 SCARDOBJ="scard.o"
5962 CFLAGS="$CFLAGS $PCSCLITE_CFLAGS"
5963 LIBS="$LIBS $PCSCLITE_LIBS"
5964 $as_echo "#define WITH_SCARD 1" >>confdefs.h
5965
5966 else
5967 echo
5968 echo "SmartCard support requires PCSC, install the dependency"
5969 echo "or disable the feature using --disable-smartcard."
5970 echo
5971 exit 1
5972 fi
5973
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for old version of PCSC" >&5
5975$as_echo_n "checking for old version of PCSC... " >&6; }
5976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5977/* end confdefs.h. */
5978
5979 #include <stdlib.h>
5980 #ifdef __APPLE__
5981 #include <PCSC/wintypes.h>
5982 #include <PCSC/winscard.h>
5983 #else
5984 #include <winscard.h>
5985 #endif
5986
5987int
5988main ()
5989{
5990SCardControl(NULL, NULL, 0, NULL, NULL);
5991 ;
5992 return 0;
5993}
5994_ACEOF
5995if ac_fn_c_try_link "$LINENO"; then :
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5997$as_echo "yes" >&6; }
5998$as_echo "#define WITH_PCSC120 1" >>confdefs.h
5999
6000else
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6002$as_echo "no" >&6; }
6003fi
6004rm -f core conftest.err conftest.$ac_objext \
6005 conftest$ac_exeext conftest.$ac_ext
6006
6007fi
6008
6009
6010#
6011# Alignment
6012#
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if architecture needs alignment" >&5
6014$as_echo_n "checking if architecture needs alignment... " >&6; }
6015if test "$cross_compiling" = yes; then :
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming yes" >&5
6017$as_echo "assuming yes" >&6; }
6018 $as_echo "#define NEED_ALIGN 1" >>confdefs.h
6019
6020else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022/* end confdefs.h. */
6023
6024#include <stdlib.h>
6025#include <signal.h>
6026int main(int argc, char **argv)
6027{
6028 unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
6029 signal(SIGBUS, exit);
6030 signal(SIGABRT, exit);
6031 signal(SIGSEGV, exit);
6032 if (*((unsigned int *)(test + 1)) != 0x55443322 && *((unsigned int *)(test + 1)) != 0x22334455) {
6033 return 1;
6034 }
6035 return 0;
6036}
6037_ACEOF
6038if ac_fn_c_try_run "$LINENO"; then :
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041else
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6043$as_echo "yes" >&6; }
6044 $as_echo "#define NEED_ALIGN 1" >>confdefs.h
6045
6046fi
6047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6048 conftest.$ac_objext conftest.beam conftest.$ac_ext
6049fi
6050
6051
6052#
6053# linux/compiler.h
6054#
6055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if linux/compiler.h is required" >&5
6056$as_echo_n "checking if linux/compiler.h is required... " >&6; }
6057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058/* end confdefs.h. */
6059
6060#include <linux/compiler.h>
6061
6062int
6063main ()
6064{
6065
6066 ;
6067 return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6072$as_echo "yes" >&6; }
6073 $as_echo "#define VBOX_WITH_LINUX_COMPILER_H 1" >>confdefs.h
6074
6075else
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080
6081
6082#
6083# EGD
6084#
6085
6086# Check whether --with-egd-socket was given.
6087if test "${with_egd_socket+set}" = set; then :
6088 withval=$with_egd_socket; EGD_SOCKET="$withval"
6089else
6090 EGD_SOCKET="/var/run/egd-pool"
6091
6092fi
6093
6094cat >>confdefs.h <<_ACEOF
6095#define EGD_SOCKET "$EGD_SOCKET"
6096_ACEOF
6097
6098
6099
6100#
6101# rdp2vnc
6102#
6103vncserverconfig=libvncserver-config
6104
6105# Check whether --with-libvncserver-config was given.
6106if test "${with_libvncserver_config+set}" = set; then :
6107 withval=$with_libvncserver_config; vncserverconfig="$withval"
6108
6109fi
6110
6111
6112# Check whether --with-libvncserver was given.
6113if test "${with_libvncserver+set}" = set; then :
6114 withval=$with_libvncserver;
6115 VNCINC=`$vncserverconfig --cflags`
6116
6117 LDVNC=`$vncserverconfig --libs`
6118
6119 VNCLINK=`$vncserverconfig --link`
6120
6121 RDP2VNCTARGET="rdp2vnc"
6122
6123
6124
6125fi
6126
6127
6128#
6129# sound
6130#
6131
6132sound="yes"
6133
6134# Check whether --with-sound was given.
6135if test "${with_sound+set}" = set; then :
6136 withval=$with_sound;
6137 sound="$withval"
6138
6139fi
6140
6141
6142ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
6143if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
6144 HAVE_OSS=1
6145else
6146 HAVE_OSS=0
6147fi
6148
6149
6150ac_fn_c_check_header_mongrel "$LINENO" "dmedia/audio.h" "ac_cv_header_dmedia_audio_h" "$ac_includes_default"
6151if test "x$ac_cv_header_dmedia_audio_h" = xyes; then :
6152 HAVE_SGI=1
6153else
6154 HAVE_SGI=0
6155fi
6156
6157
6158ac_fn_c_check_header_mongrel "$LINENO" "sys/audioio.h" "ac_cv_header_sys_audioio_h" "$ac_includes_default"
6159if test "x$ac_cv_header_sys_audioio_h" = xyes; then :
6160 HAVE_SUN=1
6161else
6162 HAVE_SUN=0
6163fi
6164
6165
6166
6167# Check whether --enable-static-libsamplerate was given.
6168if test "${enable_static_libsamplerate+set}" = set; then :
6169 enableval=$enable_static_libsamplerate; static_libsamplerate=yes
6170else
6171 static_libsamplerate=no
6172fi
6173
6174
6175if test -n "$PKG_CONFIG"; then
6176
6177pkg_failed=no
6178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBAO" >&5
6179$as_echo_n "checking for LIBAO... " >&6; }
6180
6181if test -n "$LIBAO_CFLAGS"; then
6182 pkg_cv_LIBAO_CFLAGS="$LIBAO_CFLAGS"
6183 elif test -n "$PKG_CONFIG"; then
6184 if test -n "$PKG_CONFIG" && \
6185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
6186 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
6187 ac_status=$?
6188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6189 test $ac_status = 0; }; then
6190 pkg_cv_LIBAO_CFLAGS=`$PKG_CONFIG --cflags "ao" 2>/dev/null`
6191 test "x$?" != "x0" && pkg_failed=yes
6192else
6193 pkg_failed=yes
6194fi
6195 else
6196 pkg_failed=untried
6197fi
6198if test -n "$LIBAO_LIBS"; then
6199 pkg_cv_LIBAO_LIBS="$LIBAO_LIBS"
6200 elif test -n "$PKG_CONFIG"; then
6201 if test -n "$PKG_CONFIG" && \
6202 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ao\""; } >&5
6203 ($PKG_CONFIG --exists --print-errors "ao") 2>&5
6204 ac_status=$?
6205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6206 test $ac_status = 0; }; then
6207 pkg_cv_LIBAO_LIBS=`$PKG_CONFIG --libs "ao" 2>/dev/null`
6208 test "x$?" != "x0" && pkg_failed=yes
6209else
6210 pkg_failed=yes
6211fi
6212 else
6213 pkg_failed=untried
6214fi
6215
6216
6217
6218if test $pkg_failed = yes; then
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220$as_echo "no" >&6; }
6221
6222if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6223 _pkg_short_errors_supported=yes
6224else
6225 _pkg_short_errors_supported=no
6226fi
6227 if test $_pkg_short_errors_supported = yes; then
6228 LIBAO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ao" 2>&1`
6229 else
6230 LIBAO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ao" 2>&1`
6231 fi
6232 # Put the nasty error message in config.log where it belongs
6233 echo "$LIBAO_PKG_ERRORS" >&5
6234
6235 HAVE_LIBAO=0
6236elif test $pkg_failed = untried; then
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6238$as_echo "no" >&6; }
6239 HAVE_LIBAO=0
6240else
6241 LIBAO_CFLAGS=$pkg_cv_LIBAO_CFLAGS
6242 LIBAO_LIBS=$pkg_cv_LIBAO_LIBS
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6244$as_echo "yes" >&6; }
6245 HAVE_LIBAO=1
6246fi
6247
6248pkg_failed=no
6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
6250$as_echo_n "checking for ALSA... " >&6; }
6251
6252if test -n "$ALSA_CFLAGS"; then
6253 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
6254 elif test -n "$PKG_CONFIG"; then
6255 if test -n "$PKG_CONFIG" && \
6256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
6257 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6258 ac_status=$?
6259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6260 test $ac_status = 0; }; then
6261 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
6262 test "x$?" != "x0" && pkg_failed=yes
6263else
6264 pkg_failed=yes
6265fi
6266 else
6267 pkg_failed=untried
6268fi
6269if test -n "$ALSA_LIBS"; then
6270 pkg_cv_ALSA_LIBS="$ALSA_LIBS"
6271 elif test -n "$PKG_CONFIG"; then
6272 if test -n "$PKG_CONFIG" && \
6273 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
6274 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
6275 ac_status=$?
6276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277 test $ac_status = 0; }; then
6278 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
6279 test "x$?" != "x0" && pkg_failed=yes
6280else
6281 pkg_failed=yes
6282fi
6283 else
6284 pkg_failed=untried
6285fi
6286
6287
6288
6289if test $pkg_failed = yes; then
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6291$as_echo "no" >&6; }
6292
6293if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6294 _pkg_short_errors_supported=yes
6295else
6296 _pkg_short_errors_supported=no
6297fi
6298 if test $_pkg_short_errors_supported = yes; then
6299 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "alsa" 2>&1`
6300 else
6301 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "alsa" 2>&1`
6302 fi
6303 # Put the nasty error message in config.log where it belongs
6304 echo "$ALSA_PKG_ERRORS" >&5
6305
6306 HAVE_ALSA=0
6307elif test $pkg_failed = untried; then
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6309$as_echo "no" >&6; }
6310 HAVE_ALSA=0
6311else
6312 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
6313 ALSA_LIBS=$pkg_cv_ALSA_LIBS
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6315$as_echo "yes" >&6; }
6316 HAVE_ALSA=1
6317fi
6318
6319pkg_failed=no
6320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBSAMPLERATE" >&5
6321$as_echo_n "checking for LIBSAMPLERATE... " >&6; }
6322
6323if test -n "$LIBSAMPLERATE_CFLAGS"; then
6324 pkg_cv_LIBSAMPLERATE_CFLAGS="$LIBSAMPLERATE_CFLAGS"
6325 elif test -n "$PKG_CONFIG"; then
6326 if test -n "$PKG_CONFIG" && \
6327 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
6328 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
6329 ac_status=$?
6330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6331 test $ac_status = 0; }; then
6332 pkg_cv_LIBSAMPLERATE_CFLAGS=`$PKG_CONFIG --cflags "samplerate" 2>/dev/null`
6333 test "x$?" != "x0" && pkg_failed=yes
6334else
6335 pkg_failed=yes
6336fi
6337 else
6338 pkg_failed=untried
6339fi
6340if test -n "$LIBSAMPLERATE_LIBS"; then
6341 pkg_cv_LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS"
6342 elif test -n "$PKG_CONFIG"; then
6343 if test -n "$PKG_CONFIG" && \
6344 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"samplerate\""; } >&5
6345 ($PKG_CONFIG --exists --print-errors "samplerate") 2>&5
6346 ac_status=$?
6347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6348 test $ac_status = 0; }; then
6349 pkg_cv_LIBSAMPLERATE_LIBS=`$PKG_CONFIG --libs "samplerate" 2>/dev/null`
6350 test "x$?" != "x0" && pkg_failed=yes
6351else
6352 pkg_failed=yes
6353fi
6354 else
6355 pkg_failed=untried
6356fi
6357
6358
6359
6360if test $pkg_failed = yes; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362$as_echo "no" >&6; }
6363
6364if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6365 _pkg_short_errors_supported=yes
6366else
6367 _pkg_short_errors_supported=no
6368fi
6369 if test $_pkg_short_errors_supported = yes; then
6370 LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "samplerate" 2>&1`
6371 else
6372 LIBSAMPLERATE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "samplerate" 2>&1`
6373 fi
6374 # Put the nasty error message in config.log where it belongs
6375 echo "$LIBSAMPLERATE_PKG_ERRORS" >&5
6376
6377 HAVE_LIBSAMPLERATE=0
6378elif test $pkg_failed = untried; then
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
6381 HAVE_LIBSAMPLERATE=0
6382else
6383 LIBSAMPLERATE_CFLAGS=$pkg_cv_LIBSAMPLERATE_CFLAGS
6384 LIBSAMPLERATE_LIBS=$pkg_cv_LIBSAMPLERATE_LIBS
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6386$as_echo "yes" >&6; }
6387 HAVE_LIBSAMPLERATE=1
6388fi
6389 if test x"$HAVE_LIBSAMPLERATE" = "x1"; then
6390 $as_echo "#define HAVE_LIBSAMPLERATE 1" >>confdefs.h
6391
6392 if test x"$static_libsamplerate" = "xyes"; then
6393 _libsamplerate_libdir=`$PKG_CONFIG --errors-to-stdout --variable=libdir samplerate`
6394 LIBSAMPLERATE_LIBS="$_libsamplerate_libdir""/libsamplerate.a"
6395 LIBSAMPLERATE_LIBS="$LIBSAMPLERATE_LIBS -lm"
6396 fi
6397 fi
6398fi
6399
6400if test "$sound" != "no"; then
6401 SOUNDOBJ="$SOUNDOBJ rdpsnd.o rdpsnd_dsp.o"
6402 CFLAGS="$CFLAGS $LIBSAMPLERATE_CFLAGS"
6403 LIBS="$LIBS $LIBSAMPLERATE_LIBS"
6404 $as_echo "#define WITH_RDPSND 1" >>confdefs.h
6405
6406fi
6407
6408case $sound in
6409 yes)
6410 if test x"$HAVE_OSS" = "x1"; then
6411 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
6412 $as_echo "#define RDPSND_OSS 1" >>confdefs.h
6413
6414 fi
6415
6416 if test x"$HAVE_SGI" = "x1"; then
6417 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
6418 LIBS="$LIBS -laudio"
6419 $as_echo "#define RDPSND_SGI 1" >>confdefs.h
6420
6421 fi
6422
6423 if test x"$HAVE_SUN" = "x1"; then
6424 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
6425 $as_echo "#define RDPSND_SUN 1" >>confdefs.h
6426
6427 fi
6428
6429 if test x"$HAVE_ALSA" = "x1"; then
6430 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
6431 CFLAGS="$CFLAGS $ALSA_CFLAGS"
6432 LIBS="$LIBS $ALSA_LIBS"
6433 $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
6434
6435 fi
6436
6437 if test x"$HAVE_LIBAO" = "x1"; then
6438 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
6439 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
6440 LIBS="$LIBS $LIBAO_LIBS"
6441 $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
6442
6443 fi
6444
6445 ;;
6446
6447 oss)
6448 if test x"$HAVE_OSS" = "x1"; then
6449 SOUNDOBJ="$SOUNDOBJ rdpsnd_oss.o"
6450 $as_echo "#define RDPSND_OSS 1" >>confdefs.h
6451
6452 else
6453 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
6454 fi
6455 ;;
6456
6457 sgi)
6458 if test x"$HAVE_SGI" = "x1"; then
6459 SOUNDOBJ="$SOUNDOBJ rdpsnd_sgi.o"
6460 LIBS="$LIBS -laudio"
6461 $as_echo "#define RDPSND_SGI 1" >>confdefs.h
6462
6463 else
6464 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
6465 fi
6466 ;;
6467
6468 sun)
6469 if test x"$HAVE_SUN" = "x1"; then
6470 SOUNDOBJ="$SOUNDOBJ rdpsnd_sun.o"
6471 $as_echo "#define RDPSND_SUN 1" >>confdefs.h
6472
6473 else
6474 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
6475 fi
6476 ;;
6477
6478 alsa)
6479 if test x"$HAVE_ALSA" = "x1"; then
6480 SOUNDOBJ="$SOUNDOBJ rdpsnd_alsa.o"
6481 CFLAGS="$CFLAGS $ALSA_CFLAGS"
6482 LIBS="$LIBS $ALSA_LIBS"
6483 $as_echo "#define RDPSND_ALSA 1" >>confdefs.h
6484
6485 else
6486 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
6487 fi
6488 ;;
6489
6490 libao)
6491 if test x"$HAVE_LIBAO" = "x1"; then
6492 SOUNDOBJ="$SOUNDOBJ rdpsnd_libao.o"
6493 CFLAGS="$CFLAGS $LIBAO_CFLAGS"
6494 LIBS="$LIBS $LIBAO_LIBS"
6495 $as_echo "#define RDPSND_LIBAO 1" >>confdefs.h
6496
6497 else
6498 as_fn_error $? "Selected sound system is not available." "$LINENO" 5
6499 fi
6500 ;;
6501
6502 no)
6503 ;;
6504
6505 *)
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sound support disabled" >&5
6507$as_echo "$as_me: WARNING: sound support disabled" >&2;}
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&5
6509$as_echo "$as_me: WARNING: Currently supported systems are Open Sound System (oss), SGI AL (sgi), Sun/BSD (sun), ALSA (alsa) and libao" >&2;}
6510 ;;
6511esac
6512
6513
6514
6515#
6516# dirfd
6517#
6518
6519
6520
6521
6522
6523 ac_header_dirent=no
6524for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6525 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6527$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6528if eval \${$as_ac_Header+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530else
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532/* end confdefs.h. */
6533#include <sys/types.h>
6534#include <$ac_hdr>
6535
6536int
6537main ()
6538{
6539if ((DIR *) 0)
6540return 0;
6541 ;
6542 return 0;
6543}
6544_ACEOF
6545if ac_fn_c_try_compile "$LINENO"; then :
6546 eval "$as_ac_Header=yes"
6547else
6548 eval "$as_ac_Header=no"
6549fi
6550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551fi
6552eval ac_res=\$$as_ac_Header
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6554$as_echo "$ac_res" >&6; }
6555if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6556 cat >>confdefs.h <<_ACEOF
6557#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6558_ACEOF
6559
6560ac_header_dirent=$ac_hdr; break
6561fi
6562
6563done
6564# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6565if test $ac_header_dirent = dirent.h; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6567$as_echo_n "checking for library containing opendir... " >&6; }
6568if ${ac_cv_search_opendir+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570else
6571 ac_func_search_save_LIBS=$LIBS
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
6574
6575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
6577 builtin and then its argument prototype would still apply. */
6578#ifdef __cplusplus
6579extern "C"
6580#endif
6581char opendir ();
6582int
6583main ()
6584{
6585return opendir ();
6586 ;
6587 return 0;
6588}
6589_ACEOF
6590for ac_lib in '' dir; do
6591 if test -z "$ac_lib"; then
6592 ac_res="none required"
6593 else
6594 ac_res=-l$ac_lib
6595 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6596 fi
6597 if ac_fn_c_try_link "$LINENO"; then :
6598 ac_cv_search_opendir=$ac_res
6599fi
6600rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext
6602 if ${ac_cv_search_opendir+:} false; then :
6603 break
6604fi
6605done
6606if ${ac_cv_search_opendir+:} false; then :
6607
6608else
6609 ac_cv_search_opendir=no
6610fi
6611rm conftest.$ac_ext
6612LIBS=$ac_func_search_save_LIBS
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6615$as_echo "$ac_cv_search_opendir" >&6; }
6616ac_res=$ac_cv_search_opendir
6617if test "$ac_res" != no; then :
6618 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6619
6620fi
6621
6622else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6624$as_echo_n "checking for library containing opendir... " >&6; }
6625if ${ac_cv_search_opendir+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627else
6628 ac_func_search_save_LIBS=$LIBS
6629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6630/* end confdefs.h. */
6631
6632/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */
6635#ifdef __cplusplus
6636extern "C"
6637#endif
6638char opendir ();
6639int
6640main ()
6641{
6642return opendir ();
6643 ;
6644 return 0;
6645}
6646_ACEOF
6647for ac_lib in '' x; do
6648 if test -z "$ac_lib"; then
6649 ac_res="none required"
6650 else
6651 ac_res=-l$ac_lib
6652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6653 fi
6654 if ac_fn_c_try_link "$LINENO"; then :
6655 ac_cv_search_opendir=$ac_res
6656fi
6657rm -f core conftest.err conftest.$ac_objext \
6658 conftest$ac_exeext
6659 if ${ac_cv_search_opendir+:} false; then :
6660 break
6661fi
6662done
6663if ${ac_cv_search_opendir+:} false; then :
6664
6665else
6666 ac_cv_search_opendir=no
6667fi
6668rm conftest.$ac_ext
6669LIBS=$ac_func_search_save_LIBS
6670fi
6671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6672$as_echo "$ac_cv_search_opendir" >&6; }
6673ac_res=$ac_cv_search_opendir
6674if test "$ac_res" != no; then :
6675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676
6677fi
6678
6679fi
6680
6681 dirfd_headers='
6682#if HAVE_DIRENT_H
6683# include <dirent.h>
6684#else /* not HAVE_DIRENT_H */
6685# define dirent direct
6686# if HAVE_SYS_NDIR_H
6687# include <sys/ndir.h>
6688# endif /* HAVE_SYS_NDIR_H */
6689# if HAVE_SYS_DIR_H
6690# include <sys/dir.h>
6691# endif /* HAVE_SYS_DIR_H */
6692# if HAVE_NDIR_H
6693# include <ndir.h>
6694# endif /* HAVE_NDIR_H */
6695#endif /* HAVE_DIRENT_H */
6696'
6697 for ac_func in dirfd
6698do :
6699 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
6700if test "x$ac_cv_func_dirfd" = xyes; then :
6701 cat >>confdefs.h <<_ACEOF
6702#define HAVE_DIRFD 1
6703_ACEOF
6704
6705fi
6706done
6707
6708 ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "$dirfd_headers
6709"
6710if test "x$ac_cv_have_decl_dirfd" = xyes; then :
6711 ac_have_decl=1
6712else
6713 ac_have_decl=0
6714fi
6715
6716cat >>confdefs.h <<_ACEOF
6717#define HAVE_DECL_DIRFD $ac_have_decl
6718_ACEOF
6719
6720
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
6722$as_echo_n "checking whether dirfd is a macro... " >&6; }
6723if ${jm_cv_func_dirfd_macro+:} false; then :
6724 $as_echo_n "(cached) " >&6
6725else
6726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6727/* end confdefs.h. */
6728$dirfd_headers
6729#ifdef dirfd
6730 dirent_header_defines_dirfd
6731#endif
6732_ACEOF
6733if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6734 $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then :
6735 jm_cv_func_dirfd_macro=yes
6736else
6737 jm_cv_func_dirfd_macro=no
6738fi
6739rm -f conftest*
6740
6741fi
6742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_cv_func_dirfd_macro" >&5
6743$as_echo "$jm_cv_func_dirfd_macro" >&6; }
6744
6745 # Use the replacement only if we have no function, macro,
6746 # or declaration with that name.
6747 if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$jm_cv_func_dirfd_macro \
6748 = no,no,no; then
6749 ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
6750if test "x$ac_cv_func_dirfd" = xyes; then :
6751 $as_echo "#define HAVE_DIRFD 1" >>confdefs.h
6752
6753else
6754 case " $LIBOBJS " in
6755 *" dirfd.$ac_objext "* ) ;;
6756 *) LIBOBJS="$LIBOBJS dirfd.$ac_objext"
6757 ;;
6758esac
6759
6760fi
6761
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
6764$as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
6765if ${gl_cv_sys_dir_fd_member_name+:} false; then :
6766 $as_echo_n "(cached) " >&6
6767else
6768
6769 dirfd_save_CFLAGS=$CFLAGS
6770 for ac_expr in d_fd dd_fd; do
6771
6772 CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
6773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6774/* end confdefs.h. */
6775$dirfd_headers
6776
6777int
6778main ()
6779{
6780DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
6781 ;
6782 return 0;
6783}
6784_ACEOF
6785if ac_fn_c_try_compile "$LINENO"; then :
6786 dir_fd_found=yes
6787
6788fi
6789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6790 CFLAGS=$dirfd_save_CFLAGS
6791 test "$dir_fd_found" = yes && break
6792 done
6793 test "$dir_fd_found" = yes || ac_expr=no_such_member
6794
6795 gl_cv_sys_dir_fd_member_name=$ac_expr
6796
6797
6798fi
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
6800$as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
6801 if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
6802
6803cat >>confdefs.h <<_ACEOF
6804#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
6805_ACEOF
6806
6807 fi
6808
6809 fi
6810
6811
6812#
6813# iconv
6814#
6815
6816
6817
6818
6819
6820
6821
6822# Check whether --with-libiconv-prefix was given.
6823if test "${with_libiconv_prefix+set}" = set; then :
6824 withval=$with_libiconv_prefix;
6825 for dir in `echo "$withval" | tr : ' '`; do
6826 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
6827 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
6828 done
6829
6830fi
6831
6832 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
6833if test "x$ac_cv_header_iconv_h" = xyes; then :
6834 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
6835
6836fi
6837
6838
6839
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6841$as_echo_n "checking for iconv... " >&6; }
6842if ${am_cv_func_iconv+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844else
6845
6846 am_cv_func_iconv="no, consider installing GNU libiconv"
6847 am_cv_lib_iconv=no
6848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6849/* end confdefs.h. */
6850#include <stdlib.h>
6851#include <iconv.h>
6852int
6853main ()
6854{
6855iconv_t cd = iconv_open("","");
6856 iconv(cd,NULL,NULL,NULL,NULL);
6857 iconv_close(cd);
6858 ;
6859 return 0;
6860}
6861_ACEOF
6862if ac_fn_c_try_link "$LINENO"; then :
6863 am_cv_func_iconv=yes
6864fi
6865rm -f core conftest.err conftest.$ac_objext \
6866 conftest$ac_exeext conftest.$ac_ext
6867 if test "$am_cv_func_iconv" != yes; then
6868 am_save_LIBS="$LIBS"
6869 LIBS="$LIBS -liconv"
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871/* end confdefs.h. */
6872#include <stdlib.h>
6873#include <iconv.h>
6874int
6875main ()
6876{
6877iconv_t cd = iconv_open("","");
6878 iconv(cd,NULL,NULL,NULL,NULL);
6879 iconv_close(cd);
6880 ;
6881 return 0;
6882}
6883_ACEOF
6884if ac_fn_c_try_link "$LINENO"; then :
6885 am_cv_lib_iconv=yes
6886 am_cv_func_iconv=yes
6887fi
6888rm -f core conftest.err conftest.$ac_objext \
6889 conftest$ac_exeext conftest.$ac_ext
6890 LIBS="$am_save_LIBS"
6891 fi
6892
6893fi
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6895$as_echo "$am_cv_func_iconv" >&6; }
6896 if test "$am_cv_func_iconv" = yes; then
6897
6898$as_echo "#define HAVE_ICONV 1" >>confdefs.h
6899
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
6901$as_echo_n "checking for iconv declaration... " >&6; }
6902 if ${am_cv_proto_iconv+:} false; then :
6903 $as_echo_n "(cached) " >&6
6904else
6905
6906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6907/* end confdefs.h. */
6908
6909#include <stdlib.h>
6910#include <iconv.h>
6911extern
6912#ifdef __cplusplus
6913"C"
6914#endif
6915#if defined(__STDC__) || defined(__cplusplus)
6916size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6917#else
6918size_t iconv();
6919#endif
6920
6921int
6922main ()
6923{
6924
6925 ;
6926 return 0;
6927}
6928_ACEOF
6929if ac_fn_c_try_compile "$LINENO"; then :
6930 am_cv_proto_iconv_arg1=""
6931else
6932 am_cv_proto_iconv_arg1="const"
6933fi
6934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6935 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6936fi
6937
6938 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
6940 }$am_cv_proto_iconv" >&5
6941$as_echo "${ac_t:-
6942 }$am_cv_proto_iconv" >&6; }
6943
6944cat >>confdefs.h <<_ACEOF
6945#define ICONV_CONST $am_cv_proto_iconv_arg1
6946_ACEOF
6947
6948 fi
6949 LIBICONV=
6950 if test "$am_cv_lib_iconv" = yes; then
6951 LIBICONV="-liconv"
6952 fi
6953
6954
6955LIBS="$LIBS $LIBICONV"
6956
6957#
6958# socklen_t
6959# from curl
6960
6961
6962
6963
6964 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
6965#include <sys/socket.h>
6966"
6967if test "x$ac_cv_type_socklen_t" = xyes; then :
6968
6969else
6970
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
6972$as_echo_n "checking for socklen_t equivalent... " >&6; }
6973 if ${socklen_t_cv_equiv+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975else
6976
6977 # Systems have either "struct sockaddr *" or
6978 # "void *" as the second argument to getpeername
6979 socklen_t_cv_equiv=
6980 for arg2 in "struct sockaddr" void; do
6981 for t in int size_t unsigned long "unsigned long"; do
6982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983/* end confdefs.h. */
6984
6985 #include <sys/types.h>
6986 #include <sys/socket.h>
6987
6988 int getpeername (int, $arg2 *, $t *);
6989
6990int
6991main ()
6992{
6993
6994 $t len;
6995 getpeername(0,0,&len);
6996
6997 ;
6998 return 0;
6999}
7000_ACEOF
7001if ac_fn_c_try_compile "$LINENO"; then :
7002
7003 socklen_t_cv_equiv="$t"
7004 break
7005
7006fi
7007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7008 done
7009 done
7010
7011 if test "x$socklen_t_cv_equiv" = x; then
7012 as_fn_error $? "Cannot find a type to use in place of socklen_t" "$LINENO" 5
7013 fi
7014
7015fi
7016
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $socklen_t_cv_equiv" >&5
7018$as_echo "$socklen_t_cv_equiv" >&6; }
7019
7020cat >>confdefs.h <<_ACEOF
7021#define socklen_t $socklen_t_cv_equiv
7022_ACEOF
7023
7024fi
7025
7026
7027
7028#
7029# statfs stuff
7030#
7031for ac_header in sys/vfs.h
7032do :
7033 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
7034if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
7035 cat >>confdefs.h <<_ACEOF
7036#define HAVE_SYS_VFS_H 1
7037_ACEOF
7038
7039fi
7040
7041done
7042
7043for ac_header in sys/statvfs.h
7044do :
7045 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
7046if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
7047 cat >>confdefs.h <<_ACEOF
7048#define HAVE_SYS_STATVFS_H 1
7049_ACEOF
7050
7051fi
7052
7053done
7054
7055for ac_header in sys/statfs.h
7056do :
7057 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
7058if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
7059 cat >>confdefs.h <<_ACEOF
7060#define HAVE_SYS_STATFS_H 1
7061_ACEOF
7062
7063fi
7064
7065done
7066
7067for ac_header in sys/param.h
7068do :
7069 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
7070if test "x$ac_cv_header_sys_param_h" = xyes; then :
7071 cat >>confdefs.h <<_ACEOF
7072#define HAVE_SYS_PARAM_H 1
7073_ACEOF
7074
7075fi
7076
7077done
7078
7079
7080mount_includes="\
7081 $ac_includes_default
7082 #if HAVE_SYS_PARAM_H
7083 # include <sys/param.h>
7084 #endif
7085 "
7086
7087for ac_header in sys/mount.h
7088do :
7089 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$mount_includes
7090"
7091if test "x$ac_cv_header_sys_mount_h" = xyes; then :
7092 cat >>confdefs.h <<_ACEOF
7093#define HAVE_SYS_MOUNT_H 1
7094_ACEOF
7095
7096fi
7097
7098done
7099
7100
7101#################################################
7102# these tests are taken from the GNU fileutils package
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem space usage..." >&5
7104$as_echo "$as_me: checking how to get filesystem space usage..." >&6;}
7105space=no
7106
7107# Test for statvfs64.
7108if test $space = no; then
7109 # SVR4
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs64 function (SVR4)" >&5
7111$as_echo_n "checking statvfs64 function (SVR4)... " >&6; }
7112if ${fu_cv_sys_stat_statvfs64+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114else
7115 if test "$cross_compiling" = yes; then :
7116 fu_cv_sys_stat_statvfs64=cross
7117else
7118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7119/* end confdefs.h. */
7120
7121#if defined(HAVE_UNISTD_H)
7122#include <unistd.h>
7123#endif
7124#include <sys/types.h>
7125#include <sys/statvfs.h>
7126 main ()
7127 {
7128 struct statvfs64 fsd;
7129 exit (statvfs64 (".", &fsd));
7130 }
7131_ACEOF
7132if ac_fn_c_try_run "$LINENO"; then :
7133 fu_cv_sys_stat_statvfs64=yes
7134else
7135 fu_cv_sys_stat_statvfs64=no
7136fi
7137rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7138 conftest.$ac_objext conftest.beam conftest.$ac_ext
7139fi
7140
7141fi
7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5
7143$as_echo "$fu_cv_sys_stat_statvfs64" >&6; }
7144 if test $fu_cv_sys_stat_statvfs64 = yes; then
7145 space=yes
7146
7147$as_echo "#define STAT_STATVFS64 1" >>confdefs.h
7148
7149 fi
7150fi
7151
7152# Perform only the link test since it seems there are no variants of the
7153# statvfs function. This check is more than just AC_CHECK_FUNCS(statvfs)
7154# because that got a false positive on SCO OSR5. Adding the declaration
7155# of a `struct statvfs' causes this test to fail (as it should) on such
7156# systems. That system is reported to work fine with STAT_STATFS4 which
7157# is what it gets when this test fails.
7158if test $space = no; then
7159 # SVR4
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking statvfs function (SVR4)" >&5
7161$as_echo_n "checking statvfs function (SVR4)... " >&6; }
7162if ${fu_cv_sys_stat_statvfs+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164else
7165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166/* end confdefs.h. */
7167#include <sys/types.h>
7168#include <sys/statvfs.h>
7169int
7170main ()
7171{
7172struct statvfs fsd; statvfs (0, &fsd);
7173 ;
7174 return 0;
7175}
7176_ACEOF
7177if ac_fn_c_try_link "$LINENO"; then :
7178 fu_cv_sys_stat_statvfs=yes
7179else
7180 fu_cv_sys_stat_statvfs=no
7181fi
7182rm -f core conftest.err conftest.$ac_objext \
7183 conftest$ac_exeext conftest.$ac_ext
7184fi
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5
7186$as_echo "$fu_cv_sys_stat_statvfs" >&6; }
7187 if test $fu_cv_sys_stat_statvfs = yes; then
7188 space=yes
7189
7190$as_echo "#define STAT_STATVFS 1" >>confdefs.h
7191
7192 fi
7193fi
7194
7195if test $space = no; then
7196 # DEC Alpha running OSF/1
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5
7198$as_echo_n "checking for 3-argument statfs function (DEC OSF/1)... " >&6; }
7199 if ${fu_cv_sys_stat_statfs3_osf1+:} false; then :
7200 $as_echo_n "(cached) " >&6
7201else
7202 if test "$cross_compiling" = yes; then :
7203 fu_cv_sys_stat_statfs3_osf1=no
7204else
7205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7206/* end confdefs.h. */
7207
7208#include <sys/param.h>
7209#include <sys/types.h>
7210#include <sys/mount.h>
7211 main ()
7212 {
7213 struct statfs fsd;
7214 fsd.f_fsize = 0;
7215 exit (statfs (".", &fsd, sizeof (struct statfs)));
7216 }
7217_ACEOF
7218if ac_fn_c_try_run "$LINENO"; then :
7219 fu_cv_sys_stat_statfs3_osf1=yes
7220else
7221 fu_cv_sys_stat_statfs3_osf1=no
7222fi
7223rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7224 conftest.$ac_objext conftest.beam conftest.$ac_ext
7225fi
7226
7227fi
7228
7229
7230
7231#C_MSG_RESULT($fu_cv_sys_stat_statfs3_osf1)
7232 if test $fu_cv_sys_stat_statfs3_osf1 = yes; then
7233 space=yes
7234
7235$as_echo "#define STAT_STATFS3_OSF1 1" >>confdefs.h
7236
7237 fi
7238fi
7239
7240if test $space = no; then
7241# AIX
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)" >&5
7243$as_echo_n "checking for two-argument statfs with statfs.bsize member (AIX, 4.3BSD)... " >&6; }
7244 if ${fu_cv_sys_stat_statfs2_bsize+:} false; then :
7245 $as_echo_n "(cached) " >&6
7246else
7247 if test "$cross_compiling" = yes; then :
7248 fu_cv_sys_stat_statfs2_bsize=no
7249else
7250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7251/* end confdefs.h. */
7252
7253#ifdef HAVE_SYS_PARAM_H
7254#include <sys/param.h>
7255#endif
7256#ifdef HAVE_SYS_MOUNT_H
7257#include <sys/mount.h>
7258#endif
7259#ifdef HAVE_SYS_VFS_H
7260#include <sys/vfs.h>
7261#endif
7262 main ()
7263 {
7264 struct statfs fsd;
7265 fsd.f_bsize = 0;
7266 exit (statfs (".", &fsd));
7267 }
7268_ACEOF
7269if ac_fn_c_try_run "$LINENO"; then :
7270 fu_cv_sys_stat_statfs2_bsize=yes
7271else
7272 fu_cv_sys_stat_statfs2_bsize=no
7273fi
7274rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7275 conftest.$ac_objext conftest.beam conftest.$ac_ext
7276fi
7277
7278fi
7279
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5
7281$as_echo "$fu_cv_sys_stat_statfs2_bsize" >&6; }
7282 if test $fu_cv_sys_stat_statfs2_bsize = yes; then
7283 space=yes
7284
7285$as_echo "#define STAT_STATFS2_BSIZE 1" >>confdefs.h
7286
7287 fi
7288fi
7289
7290if test $space = no; then
7291# SVR3
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (AIX-3.2.5, SVR3)" >&5
7293$as_echo_n "checking for four-argument statfs (AIX-3.2.5, SVR3)... " >&6; }
7294 if ${fu_cv_sys_stat_statfs4+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296else
7297 if test "$cross_compiling" = yes; then :
7298 fu_cv_sys_stat_statfs4=no
7299else
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h. */
7302#include <sys/types.h>
7303#include <sys/statfs.h>
7304 main ()
7305 {
7306 struct statfs fsd;
7307 exit (statfs (".", &fsd, sizeof fsd, 0));
7308 }
7309_ACEOF
7310if ac_fn_c_try_run "$LINENO"; then :
7311 fu_cv_sys_stat_statfs4=yes
7312else
7313 fu_cv_sys_stat_statfs4=no
7314fi
7315rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7316 conftest.$ac_objext conftest.beam conftest.$ac_ext
7317fi
7318
7319fi
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5
7322$as_echo "$fu_cv_sys_stat_statfs4" >&6; }
7323 if test $fu_cv_sys_stat_statfs4 = yes; then
7324 space=yes
7325
7326$as_echo "#define STAT_STATFS4 1" >>confdefs.h
7327
7328 fi
7329fi
7330
7331if test $space = no; then
7332# 4.4BSD and NetBSD
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)" >&5
7334$as_echo_n "checking for two-argument statfs with statfs.fsize member (4.4BSD and NetBSD)... " >&6; }
7335 if ${fu_cv_sys_stat_statfs2_fsize+:} false; then :
7336 $as_echo_n "(cached) " >&6
7337else
7338 if test "$cross_compiling" = yes; then :
7339 fu_cv_sys_stat_statfs2_fsize=no
7340else
7341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7342/* end confdefs.h. */
7343#include <sys/types.h>
7344#ifdef HAVE_SYS_PARAM_H
7345#include <sys/param.h>
7346#endif
7347#ifdef HAVE_SYS_MOUNT_H
7348#include <sys/mount.h>
7349#endif
7350 main ()
7351 {
7352 struct statfs fsd;
7353 fsd.f_fsize = 0;
7354 exit (statfs (".", &fsd));
7355 }
7356_ACEOF
7357if ac_fn_c_try_run "$LINENO"; then :
7358 fu_cv_sys_stat_statfs2_fsize=yes
7359else
7360 fu_cv_sys_stat_statfs2_fsize=no
7361fi
7362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7363 conftest.$ac_objext conftest.beam conftest.$ac_ext
7364fi
7365
7366fi
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5
7369$as_echo "$fu_cv_sys_stat_statfs2_fsize" >&6; }
7370 if test $fu_cv_sys_stat_statfs2_fsize = yes; then
7371 space=yes
7372
7373$as_echo "#define STAT_STATFS2_FSIZE 1" >>confdefs.h
7374
7375 fi
7376fi
7377
7378if test $space = no; then
7379 # Ultrix
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with struct fs_data (Ultrix)" >&5
7381$as_echo_n "checking for two-argument statfs with struct fs_data (Ultrix)... " >&6; }
7382 if ${fu_cv_sys_stat_fs_data+:} false; then :
7383 $as_echo_n "(cached) " >&6
7384else
7385 if test "$cross_compiling" = yes; then :
7386 fu_cv_sys_stat_fs_data=no
7387else
7388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389/* end confdefs.h. */
7390#include <sys/types.h>
7391#ifdef HAVE_SYS_PARAM_H
7392#include <sys/param.h>
7393#endif
7394#ifdef HAVE_SYS_MOUNT_H
7395#include <sys/mount.h>
7396#endif
7397#ifdef HAVE_SYS_FS_TYPES_H
7398#include <sys/fs_types.h>
7399#endif
7400 main ()
7401 {
7402 struct fs_data fsd;
7403 /* Ultrix's statfs returns 1 for success,
7404 0 for not mounted, -1 for failure. */
7405 exit (statfs (".", &fsd) != 1);
7406 }
7407_ACEOF
7408if ac_fn_c_try_run "$LINENO"; then :
7409 fu_cv_sys_stat_fs_data=yes
7410else
7411 fu_cv_sys_stat_fs_data=no
7412fi
7413rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7414 conftest.$ac_objext conftest.beam conftest.$ac_ext
7415fi
7416
7417fi
7418
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_fs_data" >&5
7420$as_echo "$fu_cv_sys_stat_fs_data" >&6; }
7421 if test $fu_cv_sys_stat_fs_data = yes; then
7422 space=yes
7423
7424$as_echo "#define STAT_STATFS2_FS_DATA 1" >>confdefs.h
7425
7426 fi
7427fi
7428
7429 statxfs_includes="\
7430$ac_includes_default
7431#if HAVE_SYS_STATVFS_H
7432# include <sys/statvfs.h>
7433#endif
7434#if HAVE_SYS_VFS_H
7435# include <sys/vfs.h>
7436#endif
7437#if !HAVE_SYS_STATVFS_H && !HAVE_SYS_VFS_H
7438# if HAVE_SYS_MOUNT_H && HAVE_SYS_PARAM_H
7439/* NetBSD 1.5.2 needs these, for the declaration of struct statfs. */
7440# include <sys/param.h>
7441# include <sys/mount.h>
7442# elif HAVE_NETINET_IN_H && HAVE_NFS_NFS_CLNT_H && HAVE_NFS_VFS_H
7443/* Ultrix 4.4 needs these for the declaration of struct statfs. */
7444# include <netinet/in.h>
7445# include <nfs/nfs_clnt.h>
7446# include <nfs/vfs.h>
7447# endif
7448#endif
7449"
7450
7451ac_fn_c_check_member "$LINENO" "struct statfs" "f_namemax" "ac_cv_member_struct_statfs_f_namemax" "$statxfs_includes
7452"
7453if test "x$ac_cv_member_struct_statfs_f_namemax" = xyes; then :
7454
7455cat >>confdefs.h <<_ACEOF
7456#define HAVE_STRUCT_STATFS_F_NAMEMAX 1
7457_ACEOF
7458
7459
7460fi
7461
7462ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statxfs_includes
7463"
7464if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes; then :
7465
7466cat >>confdefs.h <<_ACEOF
7467#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1
7468_ACEOF
7469
7470
7471fi
7472
7473ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statxfs_includes
7474"
7475if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
7476
7477cat >>confdefs.h <<_ACEOF
7478#define HAVE_STRUCT_STATFS_F_NAMELEN 1
7479_ACEOF
7480
7481
7482fi
7483
7484ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namelen" "ac_cv_member_struct_statvfs_f_namelen" "$statxfs_includes
7485"
7486if test "x$ac_cv_member_struct_statvfs_f_namelen" = xyes; then :
7487
7488cat >>confdefs.h <<_ACEOF
7489#define HAVE_STRUCT_STATVFS_F_NAMELEN 1
7490_ACEOF
7491
7492
7493fi
7494
7495
7496#
7497# Large file support
7498#
7499# Check whether --enable-largefile was given.
7500if test "${enable_largefile+set}" = set; then :
7501 enableval=$enable_largefile;
7502fi
7503
7504if test "$enable_largefile" != no; then
7505
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7507$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7508if ${ac_cv_sys_largefile_CC+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510else
7511 ac_cv_sys_largefile_CC=no
7512 if test "$GCC" != yes; then
7513 ac_save_CC=$CC
7514 while :; do
7515 # IRIX 6.2 and later do not support large files by default,
7516 # so use the C compiler's -n32 option if that helps.
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518/* end confdefs.h. */
7519#include <sys/types.h>
7520 /* Check that off_t can represent 2**63 - 1 correctly.
7521 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7522 since some C++ compilers masquerading as C compilers
7523 incorrectly reject 9223372036854775807. */
7524#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7525 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7526 && LARGE_OFF_T % 2147483647 == 1)
7527 ? 1 : -1];
7528int
7529main ()
7530{
7531
7532 ;
7533 return 0;
7534}
7535_ACEOF
7536 if ac_fn_c_try_compile "$LINENO"; then :
7537 break
7538fi
7539rm -f core conftest.err conftest.$ac_objext
7540 CC="$CC -n32"
7541 if ac_fn_c_try_compile "$LINENO"; then :
7542 ac_cv_sys_largefile_CC=' -n32'; break
7543fi
7544rm -f core conftest.err conftest.$ac_objext
7545 break
7546 done
7547 CC=$ac_save_CC
7548 rm -f conftest.$ac_ext
7549 fi
7550fi
7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7552$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7553 if test "$ac_cv_sys_largefile_CC" != no; then
7554 CC=$CC$ac_cv_sys_largefile_CC
7555 fi
7556
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7558$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7559if ${ac_cv_sys_file_offset_bits+:} false; then :
7560 $as_echo_n "(cached) " >&6
7561else
7562 while :; do
7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564/* end confdefs.h. */
7565#include <sys/types.h>
7566 /* Check that off_t can represent 2**63 - 1 correctly.
7567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7568 since some C++ compilers masquerading as C compilers
7569 incorrectly reject 9223372036854775807. */
7570#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7571 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7572 && LARGE_OFF_T % 2147483647 == 1)
7573 ? 1 : -1];
7574int
7575main ()
7576{
7577
7578 ;
7579 return 0;
7580}
7581_ACEOF
7582if ac_fn_c_try_compile "$LINENO"; then :
7583 ac_cv_sys_file_offset_bits=no; break
7584fi
7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587/* end confdefs.h. */
7588#define _FILE_OFFSET_BITS 64
7589#include <sys/types.h>
7590 /* Check that off_t can represent 2**63 - 1 correctly.
7591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7592 since some C++ compilers masquerading as C compilers
7593 incorrectly reject 9223372036854775807. */
7594#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7596 && LARGE_OFF_T % 2147483647 == 1)
7597 ? 1 : -1];
7598int
7599main ()
7600{
7601
7602 ;
7603 return 0;
7604}
7605_ACEOF
7606if ac_fn_c_try_compile "$LINENO"; then :
7607 ac_cv_sys_file_offset_bits=64; break
7608fi
7609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7610 ac_cv_sys_file_offset_bits=unknown
7611 break
7612done
7613fi
7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7615$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7616case $ac_cv_sys_file_offset_bits in #(
7617 no | unknown) ;;
7618 *)
7619cat >>confdefs.h <<_ACEOF
7620#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7621_ACEOF
7622;;
7623esac
7624rm -rf conftest*
7625 if test $ac_cv_sys_file_offset_bits = unknown; then
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7627$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7628if ${ac_cv_sys_large_files+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630else
7631 while :; do
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633/* end confdefs.h. */
7634#include <sys/types.h>
7635 /* Check that off_t can represent 2**63 - 1 correctly.
7636 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7637 since some C++ compilers masquerading as C compilers
7638 incorrectly reject 9223372036854775807. */
7639#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7640 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7641 && LARGE_OFF_T % 2147483647 == 1)
7642 ? 1 : -1];
7643int
7644main ()
7645{
7646
7647 ;
7648 return 0;
7649}
7650_ACEOF
7651if ac_fn_c_try_compile "$LINENO"; then :
7652 ac_cv_sys_large_files=no; break
7653fi
7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656/* end confdefs.h. */
7657#define _LARGE_FILES 1
7658#include <sys/types.h>
7659 /* Check that off_t can represent 2**63 - 1 correctly.
7660 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7661 since some C++ compilers masquerading as C compilers
7662 incorrectly reject 9223372036854775807. */
7663#define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7664 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7665 && LARGE_OFF_T % 2147483647 == 1)
7666 ? 1 : -1];
7667int
7668main ()
7669{
7670
7671 ;
7672 return 0;
7673}
7674_ACEOF
7675if ac_fn_c_try_compile "$LINENO"; then :
7676 ac_cv_sys_large_files=1; break
7677fi
7678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 ac_cv_sys_large_files=unknown
7680 break
7681done
7682fi
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7684$as_echo "$ac_cv_sys_large_files" >&6; }
7685case $ac_cv_sys_large_files in #(
7686 no | unknown) ;;
7687 *)
7688cat >>confdefs.h <<_ACEOF
7689#define _LARGE_FILES $ac_cv_sys_large_files
7690_ACEOF
7691;;
7692esac
7693rm -rf conftest*
7694 fi
7695
7696
7697fi
7698
7699
7700#
7701# mntent
7702#
7703ac_fn_c_check_header_mongrel "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
7704if test "x$ac_cv_header_mntent_h" = xyes; then :
7705 $as_echo "#define HAVE_MNTENT_H 1" >>confdefs.h
7706
7707fi
7708
7709
7710for ac_func in setmntent
7711do :
7712 ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
7713if test "x$ac_cv_func_setmntent" = xyes; then :
7714 cat >>confdefs.h <<_ACEOF
7715#define HAVE_SETMNTENT 1
7716_ACEOF
7717
7718fi
7719done
7720
7721
7722#
7723# IPv6
7724#
7725
7726# Check whether --with-ipv6 was given.
7727if test "${with_ipv6+set}" = set; then :
7728 withval=$with_ipv6;
7729 if test $withval != "no";
7730 then
7731 $as_echo "#define IPv6 1" >>confdefs.h
7732
7733 fi
7734
7735fi
7736
7737
7738
7739#
7740# debugging
7741#
7742
7743# Check whether --with-debug was given.
7744if test "${with_debug+set}" = set; then :
7745 withval=$with_debug;
7746 if test $withval != "no";
7747 then
7748 $as_echo "#define WITH_DEBUG 1" >>confdefs.h
7749
7750 fi
7751
7752fi
7753
7754
7755
7756# Check whether --with-debug-kbd was given.
7757if test "${with_debug_kbd+set}" = set; then :
7758 withval=$with_debug_kbd;
7759 if test $withval != "no";
7760 then
7761 $as_echo "#define WITH_DEBUG_KBD 1" >>confdefs.h
7762
7763 fi
7764
7765fi
7766
7767
7768
7769# Check whether --with-debug-rdp5 was given.
7770if test "${with_debug_rdp5+set}" = set; then :
7771 withval=$with_debug_rdp5;
7772 if test $withval != "no";
7773 then
7774 $as_echo "#define WITH_DEBUG_RDP5 1" >>confdefs.h
7775
7776 fi
7777
7778fi
7779
7780
7781
7782# Check whether --with-debug-clipboard was given.
7783if test "${with_debug_clipboard+set}" = set; then :
7784 withval=$with_debug_clipboard;
7785 if test $withval != "no";
7786 then
7787 $as_echo "#define WITH_DEBUG_CLIPBOARD 1" >>confdefs.h
7788
7789 fi
7790
7791fi
7792
7793
7794
7795# Check whether --with-debug-sound was given.
7796if test "${with_debug_sound+set}" = set; then :
7797 withval=$with_debug_sound;
7798 if test $withval != "no";
7799 then
7800 $as_echo "#define WITH_DEBUG_SOUND 1" >>confdefs.h
7801
7802 fi
7803
7804fi
7805
7806
7807
7808# Check whether --with-debug-channel was given.
7809if test "${with_debug_channel+set}" = set; then :
7810 withval=$with_debug_channel;
7811 if test $withval != "no";
7812 then
7813 $as_echo "#define WITH_DEBUG_CHANNEL 1" >>confdefs.h
7814
7815 fi
7816
7817fi
7818
7819
7820
7821# Check whether --with-debug-seamless was given.
7822if test "${with_debug_seamless+set}" = set; then :
7823 withval=$with_debug_seamless;
7824 if test $withval != "no";
7825 then
7826 $as_echo "#define WITH_DEBUG_SEAMLESS 1" >>confdefs.h
7827
7828 fi
7829
7830fi
7831
7832
7833
7834# Check whether --with-debug-smartcard was given.
7835if test "${with_debug_smartcard+set}" = set; then :
7836 withval=$with_debug_smartcard;
7837 if test $withval != "no";
7838 then
7839 if test x"$WITH_SCARD" = "x1"; then
7840 $as_echo "#define WITH_DEBUG_SCARD 1" >>confdefs.h
7841
7842 fi
7843 fi
7844
7845fi
7846
7847
7848
7849# Check whether --with-debug-credssp was given.
7850if test "${with_debug_credssp+set}" = set; then :
7851 withval=$with_debug_credssp;
7852 if test $withval != "no";
7853 then
7854 if test x"$WITH_CREDSSP" = "x1"; then
7855 $as_echo "#define WITH_DEBUG_CREDSSP 1" >>confdefs.h
7856
7857 fi
7858 fi
7859
7860fi
7861
7862
7863#
7864# target-specific stuff
7865#
7866case "$host" in
7867*-*-hpux*)
7868 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED"
7869 ;;
7870*-*-irix6.5*)
7871 LIBS="-L$ssldir/lib32 $LIBS"
7872 CFLAGS="$CFLAGS -D__SGI_IRIX__"
7873 ;;
7874esac
7875
7876ac_config_files="$ac_config_files Makefile"
7877
7878cat >confcache <<\_ACEOF
7879# This file is a shell script that caches the results of configure
7880# tests run on this system so they can be shared between configure
7881# scripts and configure runs, see configure's option --config-cache.
7882# It is not useful on other systems. If it contains results you don't
7883# want to keep, you may remove or edit it.
7884#
7885# config.status only pays attention to the cache file if you give it
7886# the --recheck option to rerun configure.
7887#
7888# `ac_cv_env_foo' variables (set or unset) will be overridden when
7889# loading this file, other *unset* `ac_cv_foo' will be assigned the
7890# following values.
7891
7892_ACEOF
7893
7894# The following way of writing the cache mishandles newlines in values,
7895# but we know of no workaround that is simple, portable, and efficient.
7896# So, we kill variables containing newlines.
7897# Ultrix sh set writes to stderr and can't be redirected directly,
7898# and sets the high bit in the cache file unless we assign to the vars.
7899(
7900 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7901 eval ac_val=\$$ac_var
7902 case $ac_val in #(
7903 *${as_nl}*)
7904 case $ac_var in #(
7905 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7906$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7907 esac
7908 case $ac_var in #(
7909 _ | IFS | as_nl) ;; #(
7910 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7911 *) { eval $ac_var=; unset $ac_var;} ;;
7912 esac ;;
7913 esac
7914 done
7915
7916 (set) 2>&1 |
7917 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7918 *${as_nl}ac_space=\ *)
7919 # `set' does not quote correctly, so add quotes: double-quote
7920 # substitution turns \\\\ into \\, and sed turns \\ into \.
7921 sed -n \
7922 "s/'/'\\\\''/g;
7923 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7924 ;; #(
7925 *)
7926 # `set' quotes correctly as required by POSIX, so do not add quotes.
7927 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7928 ;;
7929 esac |
7930 sort
7931) |
7932 sed '
7933 /^ac_cv_env_/b end
7934 t clear
7935 :clear
7936 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7937 t end
7938 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7939 :end' >>confcache
7940if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7941 if test -w "$cache_file"; then
7942 if test "x$cache_file" != "x/dev/null"; then
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7944$as_echo "$as_me: updating cache $cache_file" >&6;}
7945 if test ! -f "$cache_file" || test -h "$cache_file"; then
7946 cat confcache >"$cache_file"
7947 else
7948 case $cache_file in #(
7949 */* | ?:*)
7950 mv -f confcache "$cache_file"$$ &&
7951 mv -f "$cache_file"$$ "$cache_file" ;; #(
7952 *)
7953 mv -f confcache "$cache_file" ;;
7954 esac
7955 fi
7956 fi
7957 else
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7959$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7960 fi
7961fi
7962rm -f confcache
7963
7964test "x$prefix" = xNONE && prefix=$ac_default_prefix
7965# Let make expand exec_prefix.
7966test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7967
7968# Transform confdefs.h into DEFS.
7969# Protect against shell expansion while executing Makefile rules.
7970# Protect against Makefile macro expansion.
7971#
7972# If the first sed substitution is executed (which looks for macros that
7973# take arguments), then branch to the quote section. Otherwise,
7974# look for a macro that doesn't take arguments.
7975ac_script='
7976:mline
7977/\\$/{
7978 N
7979 s,\\\n,,
7980 b mline
7981}
7982t clear
7983:clear
7984s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
7985t quote
7986s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
7987t quote
7988b any
7989:quote
7990s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
7991s/\[/\\&/g
7992s/\]/\\&/g
7993s/\$/$$/g
7994H
7995:any
7996${
7997 g
7998 s/^\n//
7999 s/\n/ /g
8000 p
8001}
8002'
8003DEFS=`sed -n "$ac_script" confdefs.h`
8004
8005
8006ac_libobjs=
8007ac_ltlibobjs=
8008U=
8009for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8010 # 1. Remove the extension, and $U if already installed.
8011 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8012 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8013 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8014 # will be set to the directory where LIBOBJS objects are built.
8015 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8016 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8017done
8018LIBOBJS=$ac_libobjs
8019
8020LTLIBOBJS=$ac_ltlibobjs
8021
8022
8023
8024
8025: "${CONFIG_STATUS=./config.status}"
8026ac_write_fail=0
8027ac_clean_files_save=$ac_clean_files
8028ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8029{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8030$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8031as_write_fail=0
8032cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8033#! $SHELL
8034# Generated by $as_me.
8035# Run this file to recreate the current configuration.
8036# Compiler output produced by configure, useful for debugging
8037# configure, is in config.log if it exists.
8038
8039debug=false
8040ac_cs_recheck=false
8041ac_cs_silent=false
8042
8043SHELL=\${CONFIG_SHELL-$SHELL}
8044export SHELL
8045_ASEOF
8046cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8047## -------------------- ##
8048## M4sh Initialization. ##
8049## -------------------- ##
8050
8051# Be more Bourne compatible
8052DUALCASE=1; export DUALCASE # for MKS sh
8053if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8054 emulate sh
8055 NULLCMD=:
8056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8057 # is contrary to our usage. Disable this feature.
8058 alias -g '${1+"$@"}'='"$@"'
8059 setopt NO_GLOB_SUBST
8060else
8061 case `(set -o) 2>/dev/null` in #(
8062 *posix*) :
8063 set -o posix ;; #(
8064 *) :
8065 ;;
8066esac
8067fi
8068
8069
8070as_nl='
8071'
8072export as_nl
8073# Printing a long string crashes Solaris 7 /usr/bin/printf.
8074as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8075as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8076as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8077# Prefer a ksh shell builtin over an external printf program on Solaris,
8078# but without wasting forks for bash or zsh.
8079if test -z "$BASH_VERSION$ZSH_VERSION" \
8080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8081 as_echo='print -r --'
8082 as_echo_n='print -rn --'
8083elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8084 as_echo='printf %s\n'
8085 as_echo_n='printf %s'
8086else
8087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8088 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8089 as_echo_n='/usr/ucb/echo -n'
8090 else
8091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8092 as_echo_n_body='eval
8093 arg=$1;
8094 case $arg in #(
8095 *"$as_nl"*)
8096 expr "X$arg" : "X\\(.*\\)$as_nl";
8097 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8098 esac;
8099 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8100 '
8101 export as_echo_n_body
8102 as_echo_n='sh -c $as_echo_n_body as_echo'
8103 fi
8104 export as_echo_body
8105 as_echo='sh -c $as_echo_body as_echo'
8106fi
8107
8108# The user is always right.
8109if test "${PATH_SEPARATOR+set}" != set; then
8110 PATH_SEPARATOR=:
8111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8113 PATH_SEPARATOR=';'
8114 }
8115fi
8116
8117
8118# IFS
8119# We need space, tab and new line, in precisely that order. Quoting is
8120# there to prevent editors from complaining about space-tab.
8121# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8122# splitting by setting IFS to empty value.)
8123IFS=" "" $as_nl"
8124
8125# Find who we are. Look in the path if we contain no directory separator.
8126as_myself=
8127case $0 in #((
8128 *[\\/]* ) as_myself=$0 ;;
8129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8130for as_dir in $PATH
8131do
8132 IFS=$as_save_IFS
8133 test -z "$as_dir" && as_dir=.
8134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8135 done
8136IFS=$as_save_IFS
8137
8138 ;;
8139esac
8140# We did not find ourselves, most probably we were run as `sh COMMAND'
8141# in which case we are not to be found in the path.
8142if test "x$as_myself" = x; then
8143 as_myself=$0
8144fi
8145if test ! -f "$as_myself"; then
8146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8147 exit 1
8148fi
8149
8150# Unset variables that we do not need and which cause bugs (e.g. in
8151# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8152# suppresses any "Segmentation fault" message there. '((' could
8153# trigger a bug in pdksh 5.2.14.
8154for as_var in BASH_ENV ENV MAIL MAILPATH
8155do eval test x\${$as_var+set} = xset \
8156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8157done
8158PS1='$ '
8159PS2='> '
8160PS4='+ '
8161
8162# NLS nuisances.
8163LC_ALL=C
8164export LC_ALL
8165LANGUAGE=C
8166export LANGUAGE
8167
8168# CDPATH.
8169(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8170
8171
8172# as_fn_error STATUS ERROR [LINENO LOG_FD]
8173# ----------------------------------------
8174# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8175# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8176# script with STATUS, using 1 if that was 0.
8177as_fn_error ()
8178{
8179 as_status=$1; test $as_status -eq 0 && as_status=1
8180 if test "$4"; then
8181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8183 fi
8184 $as_echo "$as_me: error: $2" >&2
8185 as_fn_exit $as_status
8186} # as_fn_error
8187
8188
8189# as_fn_set_status STATUS
8190# -----------------------
8191# Set $? to STATUS, without forking.
8192as_fn_set_status ()
8193{
8194 return $1
8195} # as_fn_set_status
8196
8197# as_fn_exit STATUS
8198# -----------------
8199# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8200as_fn_exit ()
8201{
8202 set +e
8203 as_fn_set_status $1
8204 exit $1
8205} # as_fn_exit
8206
8207# as_fn_unset VAR
8208# ---------------
8209# Portably unset VAR.
8210as_fn_unset ()
8211{
8212 { eval $1=; unset $1;}
8213}
8214as_unset=as_fn_unset
8215# as_fn_append VAR VALUE
8216# ----------------------
8217# Append the text in VALUE to the end of the definition contained in VAR. Take
8218# advantage of any shell optimizations that allow amortized linear growth over
8219# repeated appends, instead of the typical quadratic growth present in naive
8220# implementations.
8221if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8222 eval 'as_fn_append ()
8223 {
8224 eval $1+=\$2
8225 }'
8226else
8227 as_fn_append ()
8228 {
8229 eval $1=\$$1\$2
8230 }
8231fi # as_fn_append
8232
8233# as_fn_arith ARG...
8234# ------------------
8235# Perform arithmetic evaluation on the ARGs, and store the result in the
8236# global $as_val. Take advantage of shells that can avoid forks. The arguments
8237# must be portable across $(()) and expr.
8238if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8239 eval 'as_fn_arith ()
8240 {
8241 as_val=$(( $* ))
8242 }'
8243else
8244 as_fn_arith ()
8245 {
8246 as_val=`expr "$@" || test $? -eq 1`
8247 }
8248fi # as_fn_arith
8249
8250
8251if expr a : '\(a\)' >/dev/null 2>&1 &&
8252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8253 as_expr=expr
8254else
8255 as_expr=false
8256fi
8257
8258if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8259 as_basename=basename
8260else
8261 as_basename=false
8262fi
8263
8264if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8265 as_dirname=dirname
8266else
8267 as_dirname=false
8268fi
8269
8270as_me=`$as_basename -- "$0" ||
8271$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8272 X"$0" : 'X\(//\)$' \| \
8273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8274$as_echo X/"$0" |
8275 sed '/^.*\/\([^/][^/]*\)\/*$/{
8276 s//\1/
8277 q
8278 }
8279 /^X\/\(\/\/\)$/{
8280 s//\1/
8281 q
8282 }
8283 /^X\/\(\/\).*/{
8284 s//\1/
8285 q
8286 }
8287 s/.*/./; q'`
8288
8289# Avoid depending upon Character Ranges.
8290as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8291as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8292as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8293as_cr_digits='0123456789'
8294as_cr_alnum=$as_cr_Letters$as_cr_digits
8295
8296ECHO_C= ECHO_N= ECHO_T=
8297case `echo -n x` in #(((((
8298-n*)
8299 case `echo 'xy\c'` in
8300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8301 xy) ECHO_C='\c';;
8302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8303 ECHO_T=' ';;
8304 esac;;
8305*)
8306 ECHO_N='-n';;
8307esac
8308
8309rm -f conf$$ conf$$.exe conf$$.file
8310if test -d conf$$.dir; then
8311 rm -f conf$$.dir/conf$$.file
8312else
8313 rm -f conf$$.dir
8314 mkdir conf$$.dir 2>/dev/null
8315fi
8316if (echo >conf$$.file) 2>/dev/null; then
8317 if ln -s conf$$.file conf$$ 2>/dev/null; then
8318 as_ln_s='ln -s'
8319 # ... but there are two gotchas:
8320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8322 # In both cases, we have to default to `cp -pR'.
8323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8324 as_ln_s='cp -pR'
8325 elif ln conf$$.file conf$$ 2>/dev/null; then
8326 as_ln_s=ln
8327 else
8328 as_ln_s='cp -pR'
8329 fi
8330else
8331 as_ln_s='cp -pR'
8332fi
8333rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8334rmdir conf$$.dir 2>/dev/null
8335
8336
8337# as_fn_mkdir_p
8338# -------------
8339# Create "$as_dir" as a directory, including parents if necessary.
8340as_fn_mkdir_p ()
8341{
8342
8343 case $as_dir in #(
8344 -*) as_dir=./$as_dir;;
8345 esac
8346 test -d "$as_dir" || eval $as_mkdir_p || {
8347 as_dirs=
8348 while :; do
8349 case $as_dir in #(
8350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8351 *) as_qdir=$as_dir;;
8352 esac
8353 as_dirs="'$as_qdir' $as_dirs"
8354 as_dir=`$as_dirname -- "$as_dir" ||
8355$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8356 X"$as_dir" : 'X\(//\)[^/]' \| \
8357 X"$as_dir" : 'X\(//\)$' \| \
8358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8359$as_echo X"$as_dir" |
8360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8361 s//\1/
8362 q
8363 }
8364 /^X\(\/\/\)[^/].*/{
8365 s//\1/
8366 q
8367 }
8368 /^X\(\/\/\)$/{
8369 s//\1/
8370 q
8371 }
8372 /^X\(\/\).*/{
8373 s//\1/
8374 q
8375 }
8376 s/.*/./; q'`
8377 test -d "$as_dir" && break
8378 done
8379 test -z "$as_dirs" || eval "mkdir $as_dirs"
8380 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8381
8382
8383} # as_fn_mkdir_p
8384if mkdir -p . 2>/dev/null; then
8385 as_mkdir_p='mkdir -p "$as_dir"'
8386else
8387 test -d ./-p && rmdir ./-p
8388 as_mkdir_p=false
8389fi
8390
8391
8392# as_fn_executable_p FILE
8393# -----------------------
8394# Test if FILE is an executable regular file.
8395as_fn_executable_p ()
8396{
8397 test -f "$1" && test -x "$1"
8398} # as_fn_executable_p
8399as_test_x='test -x'
8400as_executable_p=as_fn_executable_p
8401
8402# Sed expression to map a string onto a valid CPP name.
8403as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8404
8405# Sed expression to map a string onto a valid variable name.
8406as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8407
8408
8409exec 6>&1
8410## ----------------------------------- ##
8411## Main body of $CONFIG_STATUS script. ##
8412## ----------------------------------- ##
8413_ASEOF
8414test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8415
8416cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8417# Save the log message, to keep $0 and so on meaningful, and to
8418# report actual input values of CONFIG_FILES etc. instead of their
8419# values after options handling.
8420ac_log="
8421This file was extended by rdesktop $as_me 1.8.3, which was
8422generated by GNU Autoconf 2.69. Invocation command line was
8423
8424 CONFIG_FILES = $CONFIG_FILES
8425 CONFIG_HEADERS = $CONFIG_HEADERS
8426 CONFIG_LINKS = $CONFIG_LINKS
8427 CONFIG_COMMANDS = $CONFIG_COMMANDS
8428 $ $0 $@
8429
8430on `(hostname || uname -n) 2>/dev/null | sed 1q`
8431"
8432
8433_ACEOF
8434
8435case $ac_config_files in *"
8436"*) set x $ac_config_files; shift; ac_config_files=$*;;
8437esac
8438
8439
8440
8441cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8442# Files that config.status was made for.
8443config_files="$ac_config_files"
8444
8445_ACEOF
8446
8447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8448ac_cs_usage="\
8449\`$as_me' instantiates files and other configuration actions
8450from templates according to the current configuration. Unless the files
8451and actions are specified as TAGs, all are instantiated by default.
8452
8453Usage: $0 [OPTION]... [TAG]...
8454
8455 -h, --help print this help, then exit
8456 -V, --version print version number and configuration settings, then exit
8457 --config print configuration, then exit
8458 -q, --quiet, --silent
8459 do not print progress messages
8460 -d, --debug don't remove temporary files
8461 --recheck update $as_me by reconfiguring in the same conditions
8462 --file=FILE[:TEMPLATE]
8463 instantiate the configuration file FILE
8464
8465Configuration files:
8466$config_files
8467
8468Report bugs to the package provider."
8469
8470_ACEOF
8471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8472ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8473ac_cs_version="\\
8474rdesktop config.status 1.8.3
8475configured by $0, generated by GNU Autoconf 2.69,
8476 with options \\"\$ac_cs_config\\"
8477
8478Copyright (C) 2012 Free Software Foundation, Inc.
8479This config.status script is free software; the Free Software Foundation
8480gives unlimited permission to copy, distribute and modify it."
8481
8482ac_pwd='$ac_pwd'
8483srcdir='$srcdir'
8484INSTALL='$INSTALL'
8485test -n "\$AWK" || AWK=awk
8486_ACEOF
8487
8488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8489# The default lists apply if the user does not specify any file.
8490ac_need_defaults=:
8491while test $# != 0
8492do
8493 case $1 in
8494 --*=?*)
8495 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8496 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8497 ac_shift=:
8498 ;;
8499 --*=)
8500 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8501 ac_optarg=
8502 ac_shift=:
8503 ;;
8504 *)
8505 ac_option=$1
8506 ac_optarg=$2
8507 ac_shift=shift
8508 ;;
8509 esac
8510
8511 case $ac_option in
8512 # Handling of the options.
8513 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8514 ac_cs_recheck=: ;;
8515 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8516 $as_echo "$ac_cs_version"; exit ;;
8517 --config | --confi | --conf | --con | --co | --c )
8518 $as_echo "$ac_cs_config"; exit ;;
8519 --debug | --debu | --deb | --de | --d | -d )
8520 debug=: ;;
8521 --file | --fil | --fi | --f )
8522 $ac_shift
8523 case $ac_optarg in
8524 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8525 '') as_fn_error $? "missing file argument" ;;
8526 esac
8527 as_fn_append CONFIG_FILES " '$ac_optarg'"
8528 ac_need_defaults=false;;
8529 --he | --h | --help | --hel | -h )
8530 $as_echo "$ac_cs_usage"; exit ;;
8531 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8532 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8533 ac_cs_silent=: ;;
8534
8535 # This is an error.
8536 -*) as_fn_error $? "unrecognized option: \`$1'
8537Try \`$0 --help' for more information." ;;
8538
8539 *) as_fn_append ac_config_targets " $1"
8540 ac_need_defaults=false ;;
8541
8542 esac
8543 shift
8544done
8545
8546ac_configure_extra_args=
8547
8548if $ac_cs_silent; then
8549 exec 6>/dev/null
8550 ac_configure_extra_args="$ac_configure_extra_args --silent"
8551fi
8552
8553_ACEOF
8554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8555if \$ac_cs_recheck; then
8556 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8557 shift
8558 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8559 CONFIG_SHELL='$SHELL'
8560 export CONFIG_SHELL
8561 exec "\$@"
8562fi
8563
8564_ACEOF
8565cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8566exec 5>>config.log
8567{
8568 echo
8569 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8570## Running $as_me. ##
8571_ASBOX
8572 $as_echo "$ac_log"
8573} >&5
8574
8575_ACEOF
8576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8577_ACEOF
8578
8579cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8580
8581# Handling of arguments.
8582for ac_config_target in $ac_config_targets
8583do
8584 case $ac_config_target in
8585 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8586
8587 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8588 esac
8589done
8590
8591
8592# If the user did not use the arguments to specify the items to instantiate,
8593# then the envvar interface is used. Set only those that are not.
8594# We use the long form for the default assignment because of an extremely
8595# bizarre bug on SunOS 4.1.3.
8596if $ac_need_defaults; then
8597 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8598fi
8599
8600# Have a temporary directory for convenience. Make it in the build tree
8601# simply because there is no reason against having it here, and in addition,
8602# creating and moving files from /tmp can sometimes cause problems.
8603# Hook for its removal unless debugging.
8604# Note that there is a small window in which the directory will not be cleaned:
8605# after its creation but before its name has been assigned to `$tmp'.
8606$debug ||
8607{
8608 tmp= ac_tmp=
8609 trap 'exit_status=$?
8610 : "${ac_tmp:=$tmp}"
8611 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8612' 0
8613 trap 'as_fn_exit 1' 1 2 13 15
8614}
8615# Create a (secure) tmp directory for tmp files.
8616
8617{
8618 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8619 test -d "$tmp"
8620} ||
8621{
8622 tmp=./conf$$-$RANDOM
8623 (umask 077 && mkdir "$tmp")
8624} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8625ac_tmp=$tmp
8626
8627# Set up the scripts for CONFIG_FILES section.
8628# No need to generate them if there are no CONFIG_FILES.
8629# This happens for instance with `./config.status config.h'.
8630if test -n "$CONFIG_FILES"; then
8631
8632
8633ac_cr=`echo X | tr X '\015'`
8634# On cygwin, bash can eat \r inside `` if the user requested igncr.
8635# But we know of no other shell where ac_cr would be empty at this
8636# point, so we can use a bashism as a fallback.
8637if test "x$ac_cr" = x; then
8638 eval ac_cr=\$\'\\r\'
8639fi
8640ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8641if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8642 ac_cs_awk_cr='\\r'
8643else
8644 ac_cs_awk_cr=$ac_cr
8645fi
8646
8647echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8648_ACEOF
8649
8650
8651{
8652 echo "cat >conf$$subs.awk <<_ACEOF" &&
8653 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8654 echo "_ACEOF"
8655} >conf$$subs.sh ||
8656 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8657ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8658ac_delim='%!_!# '
8659for ac_last_try in false false false false false :; do
8660 . ./conf$$subs.sh ||
8661 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8662
8663 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8664 if test $ac_delim_n = $ac_delim_num; then
8665 break
8666 elif $ac_last_try; then
8667 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8668 else
8669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8670 fi
8671done
8672rm -f conf$$subs.sh
8673
8674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8675cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8676_ACEOF
8677sed -n '
8678h
8679s/^/S["/; s/!.*/"]=/
8680p
8681g
8682s/^[^!]*!//
8683:repl
8684t repl
8685s/'"$ac_delim"'$//
8686t delim
8687:nl
8688h
8689s/\(.\{148\}\)..*/\1/
8690t more1
8691s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8692p
8693n
8694b repl
8695:more1
8696s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8697p
8698g
8699s/.\{148\}//
8700t nl
8701:delim
8702h
8703s/\(.\{148\}\)..*/\1/
8704t more2
8705s/["\\]/\\&/g; s/^/"/; s/$/"/
8706p
8707b
8708:more2
8709s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8710p
8711g
8712s/.\{148\}//
8713t delim
8714' <conf$$subs.awk | sed '
8715/^[^""]/{
8716 N
8717 s/\n//
8718}
8719' >>$CONFIG_STATUS || ac_write_fail=1
8720rm -f conf$$subs.awk
8721cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8722_ACAWK
8723cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8724 for (key in S) S_is_set[key] = 1
8725 FS = ""
8726
8727}
8728{
8729 line = $ 0
8730 nfields = split(line, field, "@")
8731 substed = 0
8732 len = length(field[1])
8733 for (i = 2; i < nfields; i++) {
8734 key = field[i]
8735 keylen = length(key)
8736 if (S_is_set[key]) {
8737 value = S[key]
8738 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8739 len += length(value) + length(field[++i])
8740 substed = 1
8741 } else
8742 len += 1 + keylen
8743 }
8744
8745 print line
8746}
8747
8748_ACAWK
8749_ACEOF
8750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8751if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8752 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8753else
8754 cat
8755fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8756 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8757_ACEOF
8758
8759# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8760# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8761# trailing colons and then remove the whole line if VPATH becomes empty
8762# (actually we leave an empty line to preserve line numbers).
8763if test "x$srcdir" = x.; then
8764 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8765h
8766s///
8767s/^/:/
8768s/[ ]*$/:/
8769s/:\$(srcdir):/:/g
8770s/:\${srcdir}:/:/g
8771s/:@srcdir@:/:/g
8772s/^:*//
8773s/:*$//
8774x
8775s/\(=[ ]*\).*/\1/
8776G
8777s/\n//
8778s/^[^=]*=[ ]*$//
8779}'
8780fi
8781
8782cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8783fi # test -n "$CONFIG_FILES"
8784
8785
8786eval set X " :F $CONFIG_FILES "
8787shift
8788for ac_tag
8789do
8790 case $ac_tag in
8791 :[FHLC]) ac_mode=$ac_tag; continue;;
8792 esac
8793 case $ac_mode$ac_tag in
8794 :[FHL]*:*);;
8795 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8796 :[FH]-) ac_tag=-:-;;
8797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8798 esac
8799 ac_save_IFS=$IFS
8800 IFS=:
8801 set x $ac_tag
8802 IFS=$ac_save_IFS
8803 shift
8804 ac_file=$1
8805 shift
8806
8807 case $ac_mode in
8808 :L) ac_source=$1;;
8809 :[FH])
8810 ac_file_inputs=
8811 for ac_f
8812 do
8813 case $ac_f in
8814 -) ac_f="$ac_tmp/stdin";;
8815 *) # Look for the file first in the build tree, then in the source tree
8816 # (if the path is not absolute). The absolute path cannot be DOS-style,
8817 # because $ac_f cannot contain `:'.
8818 test -f "$ac_f" ||
8819 case $ac_f in
8820 [\\/$]*) false;;
8821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8822 esac ||
8823 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8824 esac
8825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8826 as_fn_append ac_file_inputs " '$ac_f'"
8827 done
8828
8829 # Let's still pretend it is `configure' which instantiates (i.e., don't
8830 # use $as_me), people would be surprised to read:
8831 # /* config.h. Generated by config.status. */
8832 configure_input='Generated from '`
8833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8834 `' by configure.'
8835 if test x"$ac_file" != x-; then
8836 configure_input="$ac_file. $configure_input"
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8838$as_echo "$as_me: creating $ac_file" >&6;}
8839 fi
8840 # Neutralize special characters interpreted by sed in replacement strings.
8841 case $configure_input in #(
8842 *\&* | *\|* | *\\* )
8843 ac_sed_conf_input=`$as_echo "$configure_input" |
8844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8845 *) ac_sed_conf_input=$configure_input;;
8846 esac
8847
8848 case $ac_tag in
8849 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8851 esac
8852 ;;
8853 esac
8854
8855 ac_dir=`$as_dirname -- "$ac_file" ||
8856$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8857 X"$ac_file" : 'X\(//\)[^/]' \| \
8858 X"$ac_file" : 'X\(//\)$' \| \
8859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8860$as_echo X"$ac_file" |
8861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8862 s//\1/
8863 q
8864 }
8865 /^X\(\/\/\)[^/].*/{
8866 s//\1/
8867 q
8868 }
8869 /^X\(\/\/\)$/{
8870 s//\1/
8871 q
8872 }
8873 /^X\(\/\).*/{
8874 s//\1/
8875 q
8876 }
8877 s/.*/./; q'`
8878 as_dir="$ac_dir"; as_fn_mkdir_p
8879 ac_builddir=.
8880
8881case "$ac_dir" in
8882.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8883*)
8884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8885 # A ".." for each directory in $ac_dir_suffix.
8886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8887 case $ac_top_builddir_sub in
8888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8890 esac ;;
8891esac
8892ac_abs_top_builddir=$ac_pwd
8893ac_abs_builddir=$ac_pwd$ac_dir_suffix
8894# for backward compatibility:
8895ac_top_builddir=$ac_top_build_prefix
8896
8897case $srcdir in
8898 .) # We are building in place.
8899 ac_srcdir=.
8900 ac_top_srcdir=$ac_top_builddir_sub
8901 ac_abs_top_srcdir=$ac_pwd ;;
8902 [\\/]* | ?:[\\/]* ) # Absolute name.
8903 ac_srcdir=$srcdir$ac_dir_suffix;
8904 ac_top_srcdir=$srcdir
8905 ac_abs_top_srcdir=$srcdir ;;
8906 *) # Relative name.
8907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8908 ac_top_srcdir=$ac_top_build_prefix$srcdir
8909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8910esac
8911ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8912
8913
8914 case $ac_mode in
8915 :F)
8916 #
8917 # CONFIG_FILE
8918 #
8919
8920 case $INSTALL in
8921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8923 esac
8924_ACEOF
8925
8926cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8927# If the template does not know about datarootdir, expand it.
8928# FIXME: This hack should be removed a few years after 2.60.
8929ac_datarootdir_hack=; ac_datarootdir_seen=
8930ac_sed_dataroot='
8931/datarootdir/ {
8932 p
8933 q
8934}
8935/@datadir@/p
8936/@docdir@/p
8937/@infodir@/p
8938/@localedir@/p
8939/@mandir@/p'
8940case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8941*datarootdir*) ac_datarootdir_seen=yes;;
8942*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8944$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8945_ACEOF
8946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8947 ac_datarootdir_hack='
8948 s&@datadir@&$datadir&g
8949 s&@docdir@&$docdir&g
8950 s&@infodir@&$infodir&g
8951 s&@localedir@&$localedir&g
8952 s&@mandir@&$mandir&g
8953 s&\\\${datarootdir}&$datarootdir&g' ;;
8954esac
8955_ACEOF
8956
8957# Neutralize VPATH when `$srcdir' = `.'.
8958# Shell code in configure.ac might set extrasub.
8959# FIXME: do we really want to maintain this feature?
8960cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8961ac_sed_extra="$ac_vpsub
8962$extrasub
8963_ACEOF
8964cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8965:t
8966/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8967s|@configure_input@|$ac_sed_conf_input|;t t
8968s&@top_builddir@&$ac_top_builddir_sub&;t t
8969s&@top_build_prefix@&$ac_top_build_prefix&;t t
8970s&@srcdir@&$ac_srcdir&;t t
8971s&@abs_srcdir@&$ac_abs_srcdir&;t t
8972s&@top_srcdir@&$ac_top_srcdir&;t t
8973s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8974s&@builddir@&$ac_builddir&;t t
8975s&@abs_builddir@&$ac_abs_builddir&;t t
8976s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8977s&@INSTALL@&$ac_INSTALL&;t t
8978$ac_datarootdir_hack
8979"
8980eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8981 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8982
8983test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8984 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8985 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8986 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8988which seems to be undefined. Please make sure it is defined" >&5
8989$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8990which seems to be undefined. Please make sure it is defined" >&2;}
8991
8992 rm -f "$ac_tmp/stdin"
8993 case $ac_file in
8994 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8995 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8996 esac \
8997 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8998 ;;
8999
9000
9001
9002 esac
9003
9004done # for ac_tag
9005
9006
9007as_fn_exit 0
9008_ACEOF
9009ac_clean_files=$ac_clean_files_save
9010
9011test $ac_write_fail = 0 ||
9012 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9013
9014
9015# configure is writing to config.log, and then calls config.status.
9016# config.status does its own redirection, appending to config.log.
9017# Unfortunately, on DOS this fails, as config.log is still kept open
9018# by configure, so config.status won't be able to write to it; its
9019# output is simply discarded. So we exec the FD to /dev/null,
9020# effectively closing config.log, so it can be properly (re)opened and
9021# appended to by config.status. When coming back to configure, we
9022# need to make the FD available again.
9023if test "$no_create" != yes; then
9024 ac_cs_success=:
9025 ac_config_status_args=
9026 test "$silent" = yes &&
9027 ac_config_status_args="$ac_config_status_args --quiet"
9028 exec 5>/dev/null
9029 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9030 exec 5>>config.log
9031 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9032 # would make configure fail if this is the last instruction.
9033 $ac_cs_success || as_fn_exit 1
9034fi
9035if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9037$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9038fi
9039
9040
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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