VirtualBox

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

Last change on this file since 55121 was 55121, checked in by vboxsync, 10 years ago

rdesktop 1.8.3 unmodified

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

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