VirtualBox

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

Last change on this file since 34918 was 32472, checked in by vboxsync, 14 years ago

RDP/client: use sysfs for USB device enumeration and switch to using real iprt

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