blob: bd609b3b334c8c0b4ef031fcbde052e7d09cc592 [file] [log] [blame]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003# Generated by GNU Autoconf 2.61.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
12
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000021 setopt NO_GLOB_SUBST
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000022else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000027fi
28
29
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000030
31
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000032# PATH needs CR
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000059
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000080IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000081
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000112 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000226 case $as_dir in
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000227 /*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
253
254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000442 sed '
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000447 N
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000450 t loop
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000451 s/-\n.*//
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000452 ' >$as_me.lineno &&
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000453 chmod +x "$as_me.lineno" ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000461 # Exit status is that of the last command.
462 exit
463}
464
465
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000481esac
482
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000505 as_ln_s='cp -p'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541fi
542as_executable_p=$as_test_x
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000551
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000552exec 7<&0 </dev/null 6>&1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000559#
560# Initializations.
561#
562ac_default_prefix=/usr/local
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000563ac_clean_files=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000564ac_config_libobj_dir=.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000565LIBOBJS=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +0000579ac_unique_file="vncviewer/vncviewer.cxx"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000583#ifdef HAVE_SYS_TYPES_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000584# include <sys/types.h>
585#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000586#ifdef HAVE_SYS_STAT_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000587# include <sys/stat.h>
588#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000589#ifdef STDC_HEADERS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000590# include <stdlib.h>
591# include <stddef.h>
592#else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000593# ifdef HAVE_STDLIB_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000594# include <stdlib.h>
595# endif
596#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000603#ifdef HAVE_STRINGS_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000604# include <strings.h>
605#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000606#ifdef HAVE_INTTYPES_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000607# include <inttypes.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000608#endif
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000609#ifdef HAVE_STDINT_H
610# include <stdint.h>
611#endif
612#ifdef HAVE_UNISTD_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000613# include <unistd.h>
614#endif"
615
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653PACKAGE
654VERSION
655CC
656CFLAGS
657LDFLAGS
658CPPFLAGS
659ac_ct_CC
660EXEEXT
661OBJEXT
662CXX
663CXXFLAGS
664ac_ct_CXX
665RANLIB
666SET_MAKE
667MITSHM_DEFINE
668CL_LIB
669DMEDIA_LIB
670XMKMF
671CXXCPP
672X_CFLAGS
673X_PRE_LIBS
674X_LIBS
675X_EXTRA_LIBS
676ZLIB_DIR
677ZLIB_INCLUDE
678ZLIB_LIB
679JPEG_DIR
680JPEG_INCLUDE
681JPEG_LIB
682VNCCONFIG_DIR
683XTEST_DEFINE
684XTEST_LIB
685READDISPLAY_DEFINE
686INET_LIB
687INSTALL_PROGRAM
688INSTALL_SCRIPT
689INSTALL_DATA
690MKINSTALLDIRS
691USE_NLS
692MSGFMT
693GMSGFMT
694XGETTEXT
695MSGMERGE
696build
697build_cpu
698build_vendor
699build_os
700host
701host_cpu
702host_vendor
703host_os
704GREP
705EGREP
706ALLOCA
707GLIBC21
708HAVE_POSIX_PRINTF
709HAVE_ASPRINTF
710HAVE_SNPRINTF
711HAVE_WPRINTF
712LIBICONV
713LTLIBICONV
714INTLBISON
715BUILD_INCLUDED_LIBINTL
716USE_INCLUDED_LIBINTL
717CATOBJEXT
718DATADIRNAME
719INSTOBJEXT
720GENCAT
721INTLOBJS
722INTL_LIBTOOL_SUFFIX_PREFIX
723INTLLIBS
724LIBINTL
725LTLIBINTL
726POSUB
727LIBOBJS
728LTLIBOBJS'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000729ac_subst_files=''
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000730 ac_precious_vars='build_alias
731host_alias
732target_alias
733CC
734CFLAGS
735LDFLAGS
736LIBS
737CPPFLAGS
738CXX
739CXXFLAGS
740CCC
741XMKMF
742CXXCPP'
743
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000744
745# Initialize some variables set by options.
746ac_init_help=
747ac_init_version=false
748# The variables have the same names as the options, with
749# dashes changed to underlines.
750cache_file=/dev/null
751exec_prefix=NONE
752no_create=
753no_recursion=
754prefix=NONE
755program_prefix=NONE
756program_suffix=NONE
757program_transform_name=s,x,x,
758silent=
759site=
760srcdir=
761verbose=
762x_includes=NONE
763x_libraries=NONE
764
765# Installation directory options.
766# These are left unexpanded so users can "make install exec_prefix=/foo"
767# and all the variables that are supposed to be based on exec_prefix
768# by default will actually change.
769# Use braces instead of parens because sh, perl, etc. also accept them.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000770# (The list follows the same order as the GNU Coding Standards.)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000771bindir='${exec_prefix}/bin'
772sbindir='${exec_prefix}/sbin'
773libexecdir='${exec_prefix}/libexec'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000774datarootdir='${prefix}/share'
775datadir='${datarootdir}'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000776sysconfdir='${prefix}/etc'
777sharedstatedir='${prefix}/com'
778localstatedir='${prefix}/var'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000779includedir='${prefix}/include'
780oldincludedir='/usr/include'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000781docdir='${datarootdir}/doc/${PACKAGE}'
782infodir='${datarootdir}/info'
783htmldir='${docdir}'
784dvidir='${docdir}'
785pdfdir='${docdir}'
786psdir='${docdir}'
787libdir='${exec_prefix}/lib'
788localedir='${datarootdir}/locale'
789mandir='${datarootdir}/man'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000790
791ac_prev=
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000792ac_dashdash=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000793for ac_option
794do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000797 eval $ac_prev=\$ac_option
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000798 ac_prev=
799 continue
800 fi
801
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000833 -datadir | --datadir | --datadi | --datad)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000834 ac_prev=datadir ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000836 datadir=$ac_optarg ;;
837
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000933 -localstatedir | --localstatedir | --localstatedi | --localstated \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000934 | --localstate | --localstat | --localsta | --localst | --locals)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +0000937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +0000938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001108 eval $ac_envvar=\$ac_optarg
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120done
1121
1122if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126fi
1127
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001128# Be sure to have absolute directory names.
1129for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001133do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001134 eval ac_val=\$$ac_var
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001135 case $ac_val in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001138 esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001141done
1142
1143# There might be people who depend on the old broken behavior: `$host'
1144# used to hold the argument of --host etc.
1145# FIXME: To remove some day.
1146build=$build_alias
1147host=$host_alias
1148target=$target_alias
1149
1150# FIXME: To remove some day.
1151if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159fi
1160
1161ac_tool_prefix=
1162test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164test "$silent" = yes && exec 6>/dev/null
1165
1166
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001167ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168ac_ls_di=`ls -di .` &&
1169ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001177# Find the source files, if location was not specified.
1178if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001182$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001186echo X"$0" |
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001204 srcdir=$ac_confdir
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001205 if test ! -r "$srcdir/$ac_unique_file"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001206 srcdir=..
1207 fi
1208else
1209 ac_srcdir_defaulted=no
1210fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001211if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001214 { (exit 1); exit 1; }; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001215fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001216ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001219 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001220 pwd)`
1221# When building in place, set srcdir=.
1222if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224fi
1225# Remove unnecessary trailing slashes from srcdir.
1226# Double slashes in file names in object file debugging info
1227# mess up M-x gdb in Emacs.
1228case $srcdir in
1229*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230esac
1231for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236done
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001237
1238#
1239# Report the --help message.
1240#
1241if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245\`configure' configures this package to adapt to many kinds of systems.
1246
1247Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252Defaults for the options are specified in brackets.
1253
1254Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001265Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271By default, \`make install' will install all the files in
1272\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274for instance \`--prefix=\$HOME'.
1275
1276For better control, use the options below.
1277
1278Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001298_ACEOF
1299
1300 cat <<\_ACEOF
1301
1302X features:
1303 --x-includes=DIR X include files are in DIR
1304 --x-libraries=DIR X library files are in DIR
1305
1306System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309_ACEOF
1310fi
1311
1312if test -n "$ac_init_help"; then
1313
1314 cat <<\_ACEOF
1315
1316Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-vncconfig build the vncconfig utility (assumed by default),
1320 use --disable-vncconfig to skip building vncconfig
1321 --disable-nls do not use Native Language Support
1322 --disable-rpath do not hardcode runtime library paths
1323
1324Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --with-x use the X Window System
1328 --with-installed-zlib use the version of zlib which is installed on the
1329 system instead of the one distributed with VNC
1330 --with-installed-jpeg use the version of jpeg which is installed on the
1331 system instead of the one distributed with VNC
1332 --with-gnu-ld assume the C compiler uses GNU ld default=no
1333 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1334 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1335 --with-included-gettext use the GNU gettext library included here
1336 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1337 --without-libintl-prefix don't search for libintl in includedir and libdir
1338
1339Some influential environment variables:
1340 CC C compiler command
1341 CFLAGS C compiler flags
1342 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1343 nonstandard directory <lib dir>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001344 LIBS libraries to pass to the linker, e.g. -l<library>
1345 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1346 you have headers in a nonstandard directory <include dir>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001347 CXX C++ compiler command
1348 CXXFLAGS C++ compiler flags
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001349 XMKMF Path to xmkmf, Makefile generator for X Window System
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001350 CXXCPP C++ preprocessor
1351
1352Use these variables to override the choices made by `configure' or to help
1353it to find libraries and programs with nonstandard names/locations.
1354
1355_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001356ac_status=$?
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001357fi
1358
1359if test "$ac_init_help" = "recursive"; then
1360 # If there are subdirs, report their specific --help.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001361 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001362 test -d "$ac_dir" || continue
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001363 ac_builddir=.
1364
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001365case "$ac_dir" in
1366.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1367*)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001368 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001369 # A ".." for each directory in $ac_dir_suffix.
1370 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1371 case $ac_top_builddir_sub in
1372 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1373 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1374 esac ;;
1375esac
1376ac_abs_top_builddir=$ac_pwd
1377ac_abs_builddir=$ac_pwd$ac_dir_suffix
1378# for backward compatibility:
1379ac_top_builddir=$ac_top_build_prefix
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001380
1381case $srcdir in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001382 .) # We are building in place.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001383 ac_srcdir=.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001384 ac_top_srcdir=$ac_top_builddir_sub
1385 ac_abs_top_srcdir=$ac_pwd ;;
1386 [\\/]* | ?:[\\/]* ) # Absolute name.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001387 ac_srcdir=$srcdir$ac_dir_suffix;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001388 ac_top_srcdir=$srcdir
1389 ac_abs_top_srcdir=$srcdir ;;
1390 *) # Relative name.
1391 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1392 ac_top_srcdir=$ac_top_build_prefix$srcdir
1393 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001394esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001395ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001396
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001397 cd "$ac_dir" || { ac_status=$?; continue; }
1398 # Check for guested configure.
1399 if test -f "$ac_srcdir/configure.gnu"; then
1400 echo &&
1401 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1402 elif test -f "$ac_srcdir/configure"; then
1403 echo &&
1404 $SHELL "$ac_srcdir/configure" --help=recursive
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001405 else
1406 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001407 fi || ac_status=$?
1408 cd "$ac_pwd" || { ac_status=$?; break; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001409 done
1410fi
1411
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001412test -n "$ac_init_help" && exit $ac_status
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001413if $ac_init_version; then
1414 cat <<\_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001415configure
1416generated by GNU Autoconf 2.61
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001417
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001418Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14192002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001420This configure script is free software; the Free Software Foundation
1421gives unlimited permission to copy, distribute and modify it.
1422_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001423 exit
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001424fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001425cat >config.log <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001426This file contains any messages produced by compilers while
1427running configure, to aid debugging if configure makes a mistake.
1428
1429It was created by $as_me, which was
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001430generated by GNU Autoconf 2.61. Invocation command line was
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001431
1432 $ $0 $@
1433
1434_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001435exec 5>>config.log
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001436{
1437cat <<_ASUNAME
1438## --------- ##
1439## Platform. ##
1440## --------- ##
1441
1442hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1443uname -m = `(uname -m) 2>/dev/null || echo unknown`
1444uname -r = `(uname -r) 2>/dev/null || echo unknown`
1445uname -s = `(uname -s) 2>/dev/null || echo unknown`
1446uname -v = `(uname -v) 2>/dev/null || echo unknown`
1447
1448/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1449/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1450
1451/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1452/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1453/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001454/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001455/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1456/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1457/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1458
1459_ASUNAME
1460
1461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1462for as_dir in $PATH
1463do
1464 IFS=$as_save_IFS
1465 test -z "$as_dir" && as_dir=.
1466 echo "PATH: $as_dir"
1467done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001468IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001469
1470} >&5
1471
1472cat >&5 <<_ACEOF
1473
1474
1475## ----------- ##
1476## Core tests. ##
1477## ----------- ##
1478
1479_ACEOF
1480
1481
1482# Keep a trace of the command line.
1483# Strip out --no-create and --no-recursion so they do not pile up.
1484# Strip out --silent because we don't want to record it for future runs.
1485# Also quote any args containing shell meta-characters.
1486# Make two passes to allow for proper duplicate-argument suppression.
1487ac_configure_args=
1488ac_configure_args0=
1489ac_configure_args1=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001490ac_must_keep_next=false
1491for ac_pass in 1 2
1492do
1493 for ac_arg
1494 do
1495 case $ac_arg in
1496 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1497 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1498 | -silent | --silent | --silen | --sile | --sil)
1499 continue ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001500 *\'*)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001501 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1502 esac
1503 case $ac_pass in
1504 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1505 2)
1506 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1507 if test $ac_must_keep_next = true; then
1508 ac_must_keep_next=false # Got value, back to normal.
1509 else
1510 case $ac_arg in
1511 *=* | --config-cache | -C | -disable-* | --disable-* \
1512 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1513 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1514 | -with-* | --with-* | -without-* | --without-* | --x)
1515 case "$ac_configure_args0 " in
1516 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1517 esac
1518 ;;
1519 -* ) ac_must_keep_next=true ;;
1520 esac
1521 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001522 ac_configure_args="$ac_configure_args '$ac_arg'"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001523 ;;
1524 esac
1525 done
1526done
1527$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1528$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1529
1530# When interrupted or exit'd, cleanup temporary files, and complete
1531# config.log. We remove comments because anyway the quotes in there
1532# would cause problems or look ugly.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001533# WARNING: Use '\'' to represent an apostrophe within the trap.
1534# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001535trap 'exit_status=$?
1536 # Save into config.log some information that might help in debugging.
1537 {
1538 echo
1539
1540 cat <<\_ASBOX
1541## ---------------- ##
1542## Cache variables. ##
1543## ---------------- ##
1544_ASBOX
1545 echo
1546 # The following way of writing the cache mishandles newlines in values,
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001547(
1548 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1549 eval ac_val=\$$ac_var
1550 case $ac_val in #(
1551 *${as_nl}*)
1552 case $ac_var in #(
1553 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1554echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1555 esac
1556 case $ac_var in #(
1557 _ | IFS | as_nl) ;; #(
1558 *) $as_unset $ac_var ;;
1559 esac ;;
1560 esac
1561 done
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001562 (set) 2>&1 |
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001563 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1564 *${as_nl}ac_space=\ *)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001565 sed -n \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001566 "s/'\''/'\''\\\\'\'''\''/g;
1567 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1568 ;; #(
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001569 *)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001570 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001571 ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001572 esac |
1573 sort
1574)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001575 echo
1576
1577 cat <<\_ASBOX
1578## ----------------- ##
1579## Output variables. ##
1580## ----------------- ##
1581_ASBOX
1582 echo
1583 for ac_var in $ac_subst_vars
1584 do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001585 eval ac_val=\$$ac_var
1586 case $ac_val in
1587 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1588 esac
1589 echo "$ac_var='\''$ac_val'\''"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001590 done | sort
1591 echo
1592
1593 if test -n "$ac_subst_files"; then
1594 cat <<\_ASBOX
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001595## ------------------- ##
1596## File substitutions. ##
1597## ------------------- ##
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001598_ASBOX
1599 echo
1600 for ac_var in $ac_subst_files
1601 do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001602 eval ac_val=\$$ac_var
1603 case $ac_val in
1604 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1605 esac
1606 echo "$ac_var='\''$ac_val'\''"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001607 done | sort
1608 echo
1609 fi
1610
1611 if test -s confdefs.h; then
1612 cat <<\_ASBOX
1613## ----------- ##
1614## confdefs.h. ##
1615## ----------- ##
1616_ASBOX
1617 echo
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001618 cat confdefs.h
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001619 echo
1620 fi
1621 test "$ac_signal" != 0 &&
1622 echo "$as_me: caught signal $ac_signal"
1623 echo "$as_me: exit $exit_status"
1624 } >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001625 rm -f core *.core core.conftest.* &&
1626 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001627 exit $exit_status
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001628' 0
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001629for ac_signal in 1 2 13 15; do
1630 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1631done
1632ac_signal=0
1633
1634# confdefs.h avoids OS command line length limits that DEFS can exceed.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001635rm -f -r conftest* confdefs.h
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001636
1637# Predefined preprocessor variables.
1638
1639cat >>confdefs.h <<_ACEOF
1640#define PACKAGE_NAME "$PACKAGE_NAME"
1641_ACEOF
1642
1643
1644cat >>confdefs.h <<_ACEOF
1645#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1646_ACEOF
1647
1648
1649cat >>confdefs.h <<_ACEOF
1650#define PACKAGE_VERSION "$PACKAGE_VERSION"
1651_ACEOF
1652
1653
1654cat >>confdefs.h <<_ACEOF
1655#define PACKAGE_STRING "$PACKAGE_STRING"
1656_ACEOF
1657
1658
1659cat >>confdefs.h <<_ACEOF
1660#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1661_ACEOF
1662
1663
1664# Let the site file select an alternate cache file if it wants to.
1665# Prefer explicitly selected file to automatically selected ones.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001666if test -n "$CONFIG_SITE"; then
1667 set x "$CONFIG_SITE"
1668elif test "x$prefix" != xNONE; then
1669 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1670else
1671 set x "$ac_default_prefix/share/config.site" \
1672 "$ac_default_prefix/etc/config.site"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001673fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001674shift
1675for ac_site_file
1676do
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001677 if test -r "$ac_site_file"; then
1678 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1679echo "$as_me: loading site script $ac_site_file" >&6;}
1680 sed 's/^/| /' "$ac_site_file" >&5
1681 . "$ac_site_file"
1682 fi
1683done
1684
1685if test -r "$cache_file"; then
1686 # Some versions of bash will fail to source /dev/null (special
1687 # files actually), so we avoid doing that.
1688 if test -f "$cache_file"; then
1689 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1690echo "$as_me: loading cache $cache_file" >&6;}
1691 case $cache_file in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1693 *) . "./$cache_file";;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001694 esac
1695 fi
1696else
1697 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1698echo "$as_me: creating cache $cache_file" >&6;}
1699 >$cache_file
1700fi
1701
1702# Check that the precious variables saved in the cache have kept the same
1703# value.
1704ac_cache_corrupted=false
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001705for ac_var in $ac_precious_vars; do
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1707 eval ac_new_set=\$ac_env_${ac_var}_set
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1709 eval ac_new_val=\$ac_env_${ac_var}_value
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001710 case $ac_old_set,$ac_new_set in
1711 set,)
1712 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1713echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1714 ac_cache_corrupted=: ;;
1715 ,set)
1716 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1717echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1718 ac_cache_corrupted=: ;;
1719 ,);;
1720 *)
1721 if test "x$ac_old_val" != "x$ac_new_val"; then
1722 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1723echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1724 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1725echo "$as_me: former value: $ac_old_val" >&2;}
1726 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1727echo "$as_me: current value: $ac_new_val" >&2;}
1728 ac_cache_corrupted=:
1729 fi;;
1730 esac
1731 # Pass precious variables to config.status.
1732 if test "$ac_new_set" = set; then
1733 case $ac_new_val in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001734 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001735 *) ac_arg=$ac_var=$ac_new_val ;;
1736 esac
1737 case " $ac_configure_args " in
1738 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1739 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1740 esac
1741 fi
1742done
1743if $ac_cache_corrupted; then
1744 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1745echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1746 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1747echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1748 { (exit 1); exit 1; }; }
1749fi
1750
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001767ac_ext=c
1768ac_cpp='$CPP $CPPFLAGS'
1769ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1770ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1771ac_compiler_gnu=$ac_cv_c_compiler_gnu
1772
1773
1774
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001775PACKAGE=tightvnc
1776VERSION=1.5.0
1777cat >>confdefs.h <<_ACEOF
1778#define PACKAGE "$PACKAGE"
1779_ACEOF
1780
1781cat >>confdefs.h <<_ACEOF
1782#define VERSION "$VERSION"
1783_ACEOF
1784
1785
1786
1787
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00001788echo "configuring common..."
1789(cd ../common; ./configure $*)
1790echo "...done configuring common"
1791
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001792ac_cv_prog_cc_g=no
1793ac_cv_prog_cxx_g=no
1794
1795ac_ext=c
1796ac_cpp='$CPP $CPPFLAGS'
1797ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1798ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1799ac_compiler_gnu=$ac_cv_c_compiler_gnu
1800if test -n "$ac_tool_prefix"; then
1801 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1802set dummy ${ac_tool_prefix}gcc; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001803{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1804echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001805if test "${ac_cv_prog_CC+set}" = set; then
1806 echo $ECHO_N "(cached) $ECHO_C" >&6
1807else
1808 if test -n "$CC"; then
1809 ac_cv_prog_CC="$CC" # Let the user override the test.
1810else
1811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1812for as_dir in $PATH
1813do
1814 IFS=$as_save_IFS
1815 test -z "$as_dir" && as_dir=.
1816 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001818 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820 break 2
1821 fi
1822done
1823done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001824IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001825
1826fi
1827fi
1828CC=$ac_cv_prog_CC
1829if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001830 { echo "$as_me:$LINENO: result: $CC" >&5
1831echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001832else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001833 { echo "$as_me:$LINENO: result: no" >&5
1834echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001835fi
1836
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001837
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001838fi
1839if test -z "$ac_cv_prog_CC"; then
1840 ac_ct_CC=$CC
1841 # Extract the first word of "gcc", so it can be a program name with args.
1842set dummy gcc; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001843{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001845if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1846 echo $ECHO_N "(cached) $ECHO_C" >&6
1847else
1848 if test -n "$ac_ct_CC"; then
1849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1850else
1851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1852for as_dir in $PATH
1853do
1854 IFS=$as_save_IFS
1855 test -z "$as_dir" && as_dir=.
1856 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001858 ac_cv_prog_ac_ct_CC="gcc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1861 fi
1862done
1863done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001864IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001865
1866fi
1867fi
1868ac_ct_CC=$ac_cv_prog_ac_ct_CC
1869if test -n "$ac_ct_CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001870 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1871echo "${ECHO_T}$ac_ct_CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001872else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001873 { echo "$as_me:$LINENO: result: no" >&5
1874echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001875fi
1876
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001877 if test "x$ac_ct_CC" = x; then
1878 CC=""
1879 else
1880 case $cross_compiling:$ac_tool_warned in
1881yes:)
1882{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
1883whose name does not start with the host triplet. If you think this
1884configuration is useful to you, please write to autoconf@gnu.org." >&5
1885echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
1886whose name does not start with the host triplet. If you think this
1887configuration is useful to you, please write to autoconf@gnu.org." >&2;}
1888ac_tool_warned=yes ;;
1889esac
1890 CC=$ac_ct_CC
1891 fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001892else
1893 CC="$ac_cv_prog_CC"
1894fi
1895
1896if test -z "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001897 if test -n "$ac_tool_prefix"; then
1898 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001899set dummy ${ac_tool_prefix}cc; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001902if test "${ac_cv_prog_CC+set}" = set; then
1903 echo $ECHO_N "(cached) $ECHO_C" >&6
1904else
1905 if test -n "$CC"; then
1906 ac_cv_prog_CC="$CC" # Let the user override the test.
1907else
1908as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909for as_dir in $PATH
1910do
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001915 ac_cv_prog_CC="${ac_tool_prefix}cc"
1916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1917 break 2
1918 fi
1919done
1920done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001921IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001922
1923fi
1924fi
1925CC=$ac_cv_prog_CC
1926if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001927 { echo "$as_me:$LINENO: result: $CC" >&5
1928echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001929else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001930 { echo "$as_me:$LINENO: result: no" >&5
1931echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001932fi
1933
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001934
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001935 fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001936fi
1937if test -z "$CC"; then
1938 # Extract the first word of "cc", so it can be a program name with args.
1939set dummy cc; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001940{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001942if test "${ac_cv_prog_CC+set}" = set; then
1943 echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945 if test -n "$CC"; then
1946 ac_cv_prog_CC="$CC" # Let the user override the test.
1947else
1948 ac_prog_rejected=no
1949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1950for as_dir in $PATH
1951do
1952 IFS=$as_save_IFS
1953 test -z "$as_dir" && as_dir=.
1954 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001956 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1957 ac_prog_rejected=yes
1958 continue
1959 fi
1960 ac_cv_prog_CC="cc"
1961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1962 break 2
1963 fi
1964done
1965done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001966IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001967
1968if test $ac_prog_rejected = yes; then
1969 # We found a bogon in the path, so make sure we never use it.
1970 set dummy $ac_cv_prog_CC
1971 shift
1972 if test $# != 0; then
1973 # We chose a different compiler from the bogus one.
1974 # However, it has the same basename, so the bogon will be chosen
1975 # first if we set CC to just the basename; use the full file name.
1976 shift
1977 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1978 fi
1979fi
1980fi
1981fi
1982CC=$ac_cv_prog_CC
1983if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001984 { echo "$as_me:$LINENO: result: $CC" >&5
1985echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001986else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001987 { echo "$as_me:$LINENO: result: no" >&5
1988echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001989fi
1990
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001991
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001992fi
1993if test -z "$CC"; then
1994 if test -n "$ac_tool_prefix"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001995 for ac_prog in cl.exe
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00001996 do
1997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1998set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00001999{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002001if test "${ac_cv_prog_CC+set}" = set; then
2002 echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004 if test -n "$CC"; then
2005 ac_cv_prog_CC="$CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010 IFS=$as_save_IFS
2011 test -z "$as_dir" && as_dir=.
2012 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002014 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016 break 2
2017 fi
2018done
2019done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002020IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002021
2022fi
2023fi
2024CC=$ac_cv_prog_CC
2025if test -n "$CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002026 { echo "$as_me:$LINENO: result: $CC" >&5
2027echo "${ECHO_T}$CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002028else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002029 { echo "$as_me:$LINENO: result: no" >&5
2030echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002031fi
2032
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002033
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002034 test -n "$CC" && break
2035 done
2036fi
2037if test -z "$CC"; then
2038 ac_ct_CC=$CC
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002039 for ac_prog in cl.exe
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002040do
2041 # Extract the first word of "$ac_prog", so it can be a program name with args.
2042set dummy $ac_prog; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002043{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002045if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047else
2048 if test -n "$ac_ct_CC"; then
2049 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2050else
2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052for as_dir in $PATH
2053do
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002058 ac_cv_prog_ac_ct_CC="$ac_prog"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2061 fi
2062done
2063done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002064IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002065
2066fi
2067fi
2068ac_ct_CC=$ac_cv_prog_ac_ct_CC
2069if test -n "$ac_ct_CC"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002070 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2071echo "${ECHO_T}$ac_ct_CC" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002072else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002073 { echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002075fi
2076
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002077
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002078 test -n "$ac_ct_CC" && break
2079done
2080
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002081 if test "x$ac_ct_CC" = x; then
2082 CC=""
2083 else
2084 case $cross_compiling:$ac_tool_warned in
2085yes:)
2086{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2087whose name does not start with the host triplet. If you think this
2088configuration is useful to you, please write to autoconf@gnu.org." >&5
2089echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2090whose name does not start with the host triplet. If you think this
2091configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2092ac_tool_warned=yes ;;
2093esac
2094 CC=$ac_ct_CC
2095 fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002096fi
2097
2098fi
2099
2100
2101test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102See \`config.log' for more details." >&5
2103echo "$as_me: error: no acceptable C compiler found in \$PATH
2104See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2106
2107# Provide some information about the compiler.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002108echo "$as_me:$LINENO: checking for C compiler version" >&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002109ac_compiler=`set X $ac_compile; echo $2`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002110{ (ac_try="$ac_compiler --version >&5"
2111case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114esac
2115eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler --version >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002117 ac_status=$?
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002120{ (ac_try="$ac_compiler -v >&5"
2121case "(($ac_try" in
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2124esac
2125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -v >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002127 ac_status=$?
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002130{ (ac_try="$ac_compiler -V >&5"
2131case "(($ac_try" in
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2134esac
2135eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler -V >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002137 ac_status=$?
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2140
2141cat >conftest.$ac_ext <<_ACEOF
2142/* confdefs.h. */
2143_ACEOF
2144cat confdefs.h >>conftest.$ac_ext
2145cat >>conftest.$ac_ext <<_ACEOF
2146/* end confdefs.h. */
2147
2148int
2149main ()
2150{
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156ac_clean_files_save=$ac_clean_files
2157ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158# Try to create an executable without -o first, disregard a.out.
2159# It will help us diagnose broken compilers, and finding out an intuition
2160# of exeext.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002161{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002163ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002164#
2165# List of possible output files, starting from the most likely.
2166# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2167# only as a last resort. b.out is created by i960 compilers.
2168ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2169#
2170# The IRIX 6 linker writes into existing files which may not be
2171# executable, retaining their permissions. Remove them first so a
2172# subsequent execution test works.
2173ac_rmfiles=
2174for ac_file in $ac_files
2175do
2176 case $ac_file in
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2179 esac
2180done
2181rm -f $ac_rmfiles
2182
2183if { (ac_try="$ac_link_default"
2184case "(($ac_try" in
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2187esac
2188eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_link_default") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002190 ac_status=$?
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195# in a Makefile. We should not override ac_cv_exeext if it was cached,
2196# so that the user can short-circuit this test for compilers unknown to
2197# Autoconf.
2198for ac_file in $ac_files ''
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002199do
2200 test -f "$ac_file" || continue
2201 case $ac_file in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002203 ;;
2204 [ab].out )
2205 # We found the default executable, but exeext='' is most
2206 # certainly right.
2207 break;;
2208 *.* )
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2210 then :; else
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2212 fi
2213 # We set ac_cv_exeext here because the later test for it is not
2214 # safe: cross compilers may not add the suffix if given an `-o'
2215 # argument, so we may need to know it at that point already.
2216 # Even if this section looks crufty: it has the advantage of
2217 # actually working.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002218 break;;
2219 * )
2220 break;;
2221 esac
2222done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002223test "$ac_cv_exeext" = no && ac_cv_exeext=
2224
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002225else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002226 ac_file=''
2227fi
2228
2229{ echo "$as_me:$LINENO: result: $ac_file" >&5
2230echo "${ECHO_T}$ac_file" >&6; }
2231if test -z "$ac_file"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002232 echo "$as_me: failed program was:" >&5
2233sed 's/^/| /' conftest.$ac_ext >&5
2234
2235{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2236See \`config.log' for more details." >&5
2237echo "$as_me: error: C compiler cannot create executables
2238See \`config.log' for more details." >&2;}
2239 { (exit 77); exit 77; }; }
2240fi
2241
2242ac_exeext=$ac_cv_exeext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002243
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002244# Check that the compiler produces executables we can run. If not, either
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002245# the compiler is broken, or we cross compile.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002246{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2247echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002248# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2249# If not cross compiling, check that we can run a simple program.
2250if test "$cross_compiling" != yes; then
2251 if { ac_try='./$ac_file'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002252 { (case "(($ac_try" in
2253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2254 *) ac_try_echo=$ac_try;;
2255esac
2256eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2257 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002258 ac_status=$?
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); }; }; then
2261 cross_compiling=no
2262 else
2263 if test "$cross_compiling" = maybe; then
2264 cross_compiling=yes
2265 else
2266 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2267If you meant to cross compile, use \`--host'.
2268See \`config.log' for more details." >&5
2269echo "$as_me: error: cannot run C compiled programs.
2270If you meant to cross compile, use \`--host'.
2271See \`config.log' for more details." >&2;}
2272 { (exit 1); exit 1; }; }
2273 fi
2274 fi
2275fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002276{ echo "$as_me:$LINENO: result: yes" >&5
2277echo "${ECHO_T}yes" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002278
2279rm -f a.out a.exe conftest$ac_cv_exeext b.out
2280ac_clean_files=$ac_clean_files_save
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002281# Check that the compiler produces executables we can run. If not, either
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002282# the compiler is broken, or we cross compile.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002283{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2284echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2285{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2286echo "${ECHO_T}$cross_compiling" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002287
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002288{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2289echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2290if { (ac_try="$ac_link"
2291case "(($ac_try" in
2292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2293 *) ac_try_echo=$ac_try;;
2294esac
2295eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2296 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002297 ac_status=$?
2298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2299 (exit $ac_status); }; then
2300 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2301# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2302# work properly (i.e., refer to `conftest.exe'), while it won't with
2303# `rm'.
2304for ac_file in conftest.exe conftest conftest.*; do
2305 test -f "$ac_file" || continue
2306 case $ac_file in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002307 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002308 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002309 break;;
2310 * ) break;;
2311 esac
2312done
2313else
2314 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2315See \`config.log' for more details." >&5
2316echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2317See \`config.log' for more details." >&2;}
2318 { (exit 1); exit 1; }; }
2319fi
2320
2321rm -f conftest$ac_cv_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002322{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2323echo "${ECHO_T}$ac_cv_exeext" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002324
2325rm -f conftest.$ac_ext
2326EXEEXT=$ac_cv_exeext
2327ac_exeext=$EXEEXT
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002328{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2329echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002330if test "${ac_cv_objext+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2332else
2333 cat >conftest.$ac_ext <<_ACEOF
2334/* confdefs.h. */
2335_ACEOF
2336cat confdefs.h >>conftest.$ac_ext
2337cat >>conftest.$ac_ext <<_ACEOF
2338/* end confdefs.h. */
2339
2340int
2341main ()
2342{
2343
2344 ;
2345 return 0;
2346}
2347_ACEOF
2348rm -f conftest.o conftest.obj
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002349if { (ac_try="$ac_compile"
2350case "(($ac_try" in
2351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352 *) ac_try_echo=$ac_try;;
2353esac
2354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2355 (eval "$ac_compile") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002359 for ac_file in conftest.o conftest.obj conftest.*; do
2360 test -f "$ac_file" || continue;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002361 case $ac_file in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002363 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 break;;
2365 esac
2366done
2367else
2368 echo "$as_me: failed program was:" >&5
2369sed 's/^/| /' conftest.$ac_ext >&5
2370
2371{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2372See \`config.log' for more details." >&5
2373echo "$as_me: error: cannot compute suffix of object files: cannot compile
2374See \`config.log' for more details." >&2;}
2375 { (exit 1); exit 1; }; }
2376fi
2377
2378rm -f conftest.$ac_cv_objext conftest.$ac_ext
2379fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002380{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2381echo "${ECHO_T}$ac_cv_objext" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002382OBJEXT=$ac_cv_objext
2383ac_objext=$OBJEXT
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002384{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2385echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002386if test "${ac_cv_c_compiler_gnu+set}" = set; then
2387 echo $ECHO_N "(cached) $ECHO_C" >&6
2388else
2389 cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h. */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h. */
2395
2396int
2397main ()
2398{
2399#ifndef __GNUC__
2400 choke me
2401#endif
2402
2403 ;
2404 return 0;
2405}
2406_ACEOF
2407rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002408if { (ac_try="$ac_compile"
2409case "(($ac_try" in
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2412esac
2413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2414 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002415 ac_status=$?
2416 grep -v '^ *+' conftest.er1 >conftest.err
2417 rm -f conftest.er1
2418 cat conftest.err >&5
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002420 (exit $ac_status); } && {
2421 test -z "$ac_c_werror_flag" ||
2422 test ! -s conftest.err
2423 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002424 ac_compiler_gnu=yes
2425else
2426 echo "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
2428
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002429 ac_compiler_gnu=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002430fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002431
2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002433ac_cv_c_compiler_gnu=$ac_compiler_gnu
2434
2435fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002436{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2437echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002438GCC=`test $ac_compiler_gnu = yes && echo yes`
2439ac_test_CFLAGS=${CFLAGS+set}
2440ac_save_CFLAGS=$CFLAGS
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002441{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2442echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002443if test "${ac_cv_prog_cc_g+set}" = set; then
2444 echo $ECHO_N "(cached) $ECHO_C" >&6
2445else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002446 ac_save_c_werror_flag=$ac_c_werror_flag
2447 ac_c_werror_flag=yes
2448 ac_cv_prog_cc_g=no
2449 CFLAGS="-g"
2450 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002451/* confdefs.h. */
2452_ACEOF
2453cat confdefs.h >>conftest.$ac_ext
2454cat >>conftest.$ac_ext <<_ACEOF
2455/* end confdefs.h. */
2456
2457int
2458main ()
2459{
2460
2461 ;
2462 return 0;
2463}
2464_ACEOF
2465rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002466if { (ac_try="$ac_compile"
2467case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2470esac
2471eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002473 ac_status=$?
2474 grep -v '^ *+' conftest.er1 >conftest.err
2475 rm -f conftest.er1
2476 cat conftest.err >&5
2477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002478 (exit $ac_status); } && {
2479 test -z "$ac_c_werror_flag" ||
2480 test ! -s conftest.err
2481 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002482 ac_cv_prog_cc_g=yes
2483else
2484 echo "$as_me: failed program was:" >&5
2485sed 's/^/| /' conftest.$ac_ext >&5
2486
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002487 CFLAGS=""
2488 cat >conftest.$ac_ext <<_ACEOF
2489/* confdefs.h. */
2490_ACEOF
2491cat confdefs.h >>conftest.$ac_ext
2492cat >>conftest.$ac_ext <<_ACEOF
2493/* end confdefs.h. */
2494
2495int
2496main ()
2497{
2498
2499 ;
2500 return 0;
2501}
2502_ACEOF
2503rm -f conftest.$ac_objext
2504if { (ac_try="$ac_compile"
2505case "(($ac_try" in
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2508esac
2509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2511 ac_status=$?
2512 grep -v '^ *+' conftest.er1 >conftest.err
2513 rm -f conftest.er1
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } && {
2517 test -z "$ac_c_werror_flag" ||
2518 test ! -s conftest.err
2519 } && test -s conftest.$ac_objext; then
2520 :
2521else
2522 echo "$as_me: failed program was:" >&5
2523sed 's/^/| /' conftest.$ac_ext >&5
2524
2525 ac_c_werror_flag=$ac_save_c_werror_flag
2526 CFLAGS="-g"
2527 cat >conftest.$ac_ext <<_ACEOF
2528/* confdefs.h. */
2529_ACEOF
2530cat confdefs.h >>conftest.$ac_ext
2531cat >>conftest.$ac_ext <<_ACEOF
2532/* end confdefs.h. */
2533
2534int
2535main ()
2536{
2537
2538 ;
2539 return 0;
2540}
2541_ACEOF
2542rm -f conftest.$ac_objext
2543if { (ac_try="$ac_compile"
2544case "(($ac_try" in
2545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2546 *) ac_try_echo=$ac_try;;
2547esac
2548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2549 (eval "$ac_compile") 2>conftest.er1
2550 ac_status=$?
2551 grep -v '^ *+' conftest.er1 >conftest.err
2552 rm -f conftest.er1
2553 cat conftest.err >&5
2554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555 (exit $ac_status); } && {
2556 test -z "$ac_c_werror_flag" ||
2557 test ! -s conftest.err
2558 } && test -s conftest.$ac_objext; then
2559 ac_cv_prog_cc_g=yes
2560else
2561 echo "$as_me: failed program was:" >&5
2562sed 's/^/| /' conftest.$ac_ext >&5
2563
2564
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002565fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002566
2567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002568fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002569
2570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571fi
2572
2573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 ac_c_werror_flag=$ac_save_c_werror_flag
2575fi
2576{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2577echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002578if test "$ac_test_CFLAGS" = set; then
2579 CFLAGS=$ac_save_CFLAGS
2580elif test $ac_cv_prog_cc_g = yes; then
2581 if test "$GCC" = yes; then
2582 CFLAGS="-g -O2"
2583 else
2584 CFLAGS="-g"
2585 fi
2586else
2587 if test "$GCC" = yes; then
2588 CFLAGS="-O2"
2589 else
2590 CFLAGS=
2591 fi
2592fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002593{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2594echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2595if test "${ac_cv_prog_cc_c89+set}" = set; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002598 ac_cv_prog_cc_c89=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002599ac_save_CC=$CC
2600cat >conftest.$ac_ext <<_ACEOF
2601/* confdefs.h. */
2602_ACEOF
2603cat confdefs.h >>conftest.$ac_ext
2604cat >>conftest.$ac_ext <<_ACEOF
2605/* end confdefs.h. */
2606#include <stdarg.h>
2607#include <stdio.h>
2608#include <sys/types.h>
2609#include <sys/stat.h>
2610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2611struct buf { int x; };
2612FILE * (*rcsopen) (struct buf *, struct stat *, int);
2613static char *e (p, i)
2614 char **p;
2615 int i;
2616{
2617 return p[i];
2618}
2619static char *f (char * (*g) (char **, int), char **p, ...)
2620{
2621 char *s;
2622 va_list v;
2623 va_start (v,p);
2624 s = g (p, va_arg (v,int));
2625 va_end (v);
2626 return s;
2627}
2628
2629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2630 function prototypes and stuff, but not '\xHH' hex character constants.
2631 These don't provoke an error unfortunately, instead are silently treated
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002632 as 'x'. The following induces an error, until -std is added to get
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2634 array size at least. It's necessary to write '\x00'==0 to get something
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002635 that's true only with -std. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002636int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2637
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2639 inside strings and character constants. */
2640#define FOO(x) 'x'
2641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2642
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002643int test (int i, double x);
2644struct s1 {int (*f) (int a);};
2645struct s2 {int (*f) (double a);};
2646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2647int argc;
2648char **argv;
2649int
2650main ()
2651{
2652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2653 ;
2654 return 0;
2655}
2656_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002659do
2660 CC="$ac_save_CC $ac_arg"
2661 rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002662if { (ac_try="$ac_compile"
2663case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666esac
2667eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002669 ac_status=$?
2670 grep -v '^ *+' conftest.er1 >conftest.err
2671 rm -f conftest.er1
2672 cat conftest.err >&5
2673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002674 (exit $ac_status); } && {
2675 test -z "$ac_c_werror_flag" ||
2676 test ! -s conftest.err
2677 } && test -s conftest.$ac_objext; then
2678 ac_cv_prog_cc_c89=$ac_arg
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002679else
2680 echo "$as_me: failed program was:" >&5
2681sed 's/^/| /' conftest.$ac_ext >&5
2682
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002683
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002684fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002685
2686rm -f core conftest.err conftest.$ac_objext
2687 test "x$ac_cv_prog_cc_c89" != "xno" && break
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002688done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002689rm -f conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002690CC=$ac_save_CC
2691
2692fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002693# AC_CACHE_VAL
2694case "x$ac_cv_prog_cc_c89" in
2695 x)
2696 { echo "$as_me:$LINENO: result: none needed" >&5
2697echo "${ECHO_T}none needed" >&6; } ;;
2698 xno)
2699 { echo "$as_me:$LINENO: result: unsupported" >&5
2700echo "${ECHO_T}unsupported" >&6; } ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002701 *)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002702 CC="$CC $ac_cv_prog_cc_c89"
2703 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2704echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002705esac
2706
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002707
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002708ac_ext=c
2709ac_cpp='$CPP $CPPFLAGS'
2710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_c_compiler_gnu
2713
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002714ac_ext=cpp
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002715ac_cpp='$CXXCPP $CPPFLAGS'
2716ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2717ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2718ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002719if test -z "$CXX"; then
2720 if test -n "$CCC"; then
2721 CXX=$CCC
2722 else
2723 if test -n "$ac_tool_prefix"; then
2724 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002725 do
2726 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2727set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002728{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002730if test "${ac_cv_prog_CXX+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2732else
2733 if test -n "$CXX"; then
2734 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2735else
2736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737for as_dir in $PATH
2738do
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002743 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2746 fi
2747done
2748done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002749IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002750
2751fi
2752fi
2753CXX=$ac_cv_prog_CXX
2754if test -n "$CXX"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002755 { echo "$as_me:$LINENO: result: $CXX" >&5
2756echo "${ECHO_T}$CXX" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002757else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002758 { echo "$as_me:$LINENO: result: no" >&5
2759echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002760fi
2761
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002762
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002763 test -n "$CXX" && break
2764 done
2765fi
2766if test -z "$CXX"; then
2767 ac_ct_CXX=$CXX
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002768 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002769do
2770 # Extract the first word of "$ac_prog", so it can be a program name with args.
2771set dummy $ac_prog; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002772{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2773echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002774if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2775 echo $ECHO_N "(cached) $ECHO_C" >&6
2776else
2777 if test -n "$ac_ct_CXX"; then
2778 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2779else
2780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781for as_dir in $PATH
2782do
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002787 ac_cv_prog_ac_ct_CXX="$ac_prog"
2788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2790 fi
2791done
2792done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002793IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002794
2795fi
2796fi
2797ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2798if test -n "$ac_ct_CXX"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002799 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2800echo "${ECHO_T}$ac_ct_CXX" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002801else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002802 { echo "$as_me:$LINENO: result: no" >&5
2803echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002804fi
2805
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002806
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002807 test -n "$ac_ct_CXX" && break
2808done
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002809
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002810 if test "x$ac_ct_CXX" = x; then
2811 CXX="g++"
2812 else
2813 case $cross_compiling:$ac_tool_warned in
2814yes:)
2815{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2816whose name does not start with the host triplet. If you think this
2817configuration is useful to you, please write to autoconf@gnu.org." >&5
2818echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2819whose name does not start with the host triplet. If you think this
2820configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2821ac_tool_warned=yes ;;
2822esac
2823 CXX=$ac_ct_CXX
2824 fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002825fi
2826
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002827 fi
2828fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002829# Provide some information about the compiler.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002830echo "$as_me:$LINENO: checking for C++ compiler version" >&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002831ac_compiler=`set X $ac_compile; echo $2`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002832{ (ac_try="$ac_compiler --version >&5"
2833case "(($ac_try" in
2834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2835 *) ac_try_echo=$ac_try;;
2836esac
2837eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2838 (eval "$ac_compiler --version >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002842{ (ac_try="$ac_compiler -v >&5"
2843case "(($ac_try" in
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2846esac
2847eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_compiler -v >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002849 ac_status=$?
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002852{ (ac_try="$ac_compiler -V >&5"
2853case "(($ac_try" in
2854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2855 *) ac_try_echo=$ac_try;;
2856esac
2857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2858 (eval "$ac_compiler -V >&5") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002859 ac_status=$?
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002863{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2864echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002865if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867else
2868 cat >conftest.$ac_ext <<_ACEOF
2869/* confdefs.h. */
2870_ACEOF
2871cat confdefs.h >>conftest.$ac_ext
2872cat >>conftest.$ac_ext <<_ACEOF
2873/* end confdefs.h. */
2874
2875int
2876main ()
2877{
2878#ifndef __GNUC__
2879 choke me
2880#endif
2881
2882 ;
2883 return 0;
2884}
2885_ACEOF
2886rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002887if { (ac_try="$ac_compile"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002899 (exit $ac_status); } && {
2900 test -z "$ac_cxx_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002903 ac_compiler_gnu=yes
2904else
2905 echo "$as_me: failed program was:" >&5
2906sed 's/^/| /' conftest.$ac_ext >&5
2907
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002908 ac_compiler_gnu=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002909fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002910
2911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002912ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2913
2914fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002915{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2916echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002917GXX=`test $ac_compiler_gnu = yes && echo yes`
2918ac_test_CXXFLAGS=${CXXFLAGS+set}
2919ac_save_CXXFLAGS=$CXXFLAGS
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002920{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2921echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002922if test "${ac_cv_prog_cxx_g+set}" = set; then
2923 echo $ECHO_N "(cached) $ECHO_C" >&6
2924else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002925 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2926 ac_cxx_werror_flag=yes
2927 ac_cv_prog_cxx_g=no
2928 CXXFLAGS="-g"
2929 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002930/* confdefs.h. */
2931_ACEOF
2932cat confdefs.h >>conftest.$ac_ext
2933cat >>conftest.$ac_ext <<_ACEOF
2934/* end confdefs.h. */
2935
2936int
2937main ()
2938{
2939
2940 ;
2941 return 0;
2942}
2943_ACEOF
2944rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002945if { (ac_try="$ac_compile"
2946case "(($ac_try" in
2947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2948 *) ac_try_echo=$ac_try;;
2949esac
2950eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2951 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002952 ac_status=$?
2953 grep -v '^ *+' conftest.er1 >conftest.err
2954 rm -f conftest.er1
2955 cat conftest.err >&5
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002957 (exit $ac_status); } && {
2958 test -z "$ac_cxx_werror_flag" ||
2959 test ! -s conftest.err
2960 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00002961 ac_cv_prog_cxx_g=yes
2962else
2963 echo "$as_me: failed program was:" >&5
2964sed 's/^/| /' conftest.$ac_ext >&5
2965
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00002966 CXXFLAGS=""
2967 cat >conftest.$ac_ext <<_ACEOF
2968/* confdefs.h. */
2969_ACEOF
2970cat confdefs.h >>conftest.$ac_ext
2971cat >>conftest.$ac_ext <<_ACEOF
2972/* end confdefs.h. */
2973
2974int
2975main ()
2976{
2977
2978 ;
2979 return 0;
2980}
2981_ACEOF
2982rm -f conftest.$ac_objext
2983if { (ac_try="$ac_compile"
2984case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987esac
2988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } && {
2996 test -z "$ac_cxx_werror_flag" ||
2997 test ! -s conftest.err
2998 } && test -s conftest.$ac_objext; then
2999 :
3000else
3001 echo "$as_me: failed program was:" >&5
3002sed 's/^/| /' conftest.$ac_ext >&5
3003
3004 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3005 CXXFLAGS="-g"
3006 cat >conftest.$ac_ext <<_ACEOF
3007/* confdefs.h. */
3008_ACEOF
3009cat confdefs.h >>conftest.$ac_ext
3010cat >>conftest.$ac_ext <<_ACEOF
3011/* end confdefs.h. */
3012
3013int
3014main ()
3015{
3016
3017 ;
3018 return 0;
3019}
3020_ACEOF
3021rm -f conftest.$ac_objext
3022if { (ac_try="$ac_compile"
3023case "(($ac_try" in
3024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3026esac
3027eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compile") 2>conftest.er1
3029 ac_status=$?
3030 grep -v '^ *+' conftest.er1 >conftest.err
3031 rm -f conftest.er1
3032 cat conftest.err >&5
3033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034 (exit $ac_status); } && {
3035 test -z "$ac_cxx_werror_flag" ||
3036 test ! -s conftest.err
3037 } && test -s conftest.$ac_objext; then
3038 ac_cv_prog_cxx_g=yes
3039else
3040 echo "$as_me: failed program was:" >&5
3041sed 's/^/| /' conftest.$ac_ext >&5
3042
3043
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003044fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003045
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003047fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003048
3049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3050fi
3051
3052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3053 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3054fi
3055{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3056echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003057if test "$ac_test_CXXFLAGS" = set; then
3058 CXXFLAGS=$ac_save_CXXFLAGS
3059elif test $ac_cv_prog_cxx_g = yes; then
3060 if test "$GXX" = yes; then
3061 CXXFLAGS="-g -O2"
3062 else
3063 CXXFLAGS="-g"
3064 fi
3065else
3066 if test "$GXX" = yes; then
3067 CXXFLAGS="-O2"
3068 else
3069 CXXFLAGS=
3070 fi
3071fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003072ac_ext=c
3073ac_cpp='$CPP $CPPFLAGS'
3074ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3075ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3076ac_compiler_gnu=$ac_cv_c_compiler_gnu
3077
3078if test -n "$ac_tool_prefix"; then
3079 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3080set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003081{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3082echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003083if test "${ac_cv_prog_RANLIB+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3085else
3086 if test -n "$RANLIB"; then
3087 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003096 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003102IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003103
3104fi
3105fi
3106RANLIB=$ac_cv_prog_RANLIB
3107if test -n "$RANLIB"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003108 { echo "$as_me:$LINENO: result: $RANLIB" >&5
3109echo "${ECHO_T}$RANLIB" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003110else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003111 { echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003113fi
3114
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003115
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003116fi
3117if test -z "$ac_cv_prog_RANLIB"; then
3118 ac_ct_RANLIB=$RANLIB
3119 # Extract the first word of "ranlib", so it can be a program name with args.
3120set dummy ranlib; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003121{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3122echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003123if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3124 echo $ECHO_N "(cached) $ECHO_C" >&6
3125else
3126 if test -n "$ac_ct_RANLIB"; then
3127 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3128else
3129as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130for as_dir in $PATH
3131do
3132 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003136 ac_cv_prog_ac_ct_RANLIB="ranlib"
3137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2
3139 fi
3140done
3141done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003142IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003143
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003144fi
3145fi
3146ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3147if test -n "$ac_ct_RANLIB"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003148 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3149echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003150else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003151 { echo "$as_me:$LINENO: result: no" >&5
3152echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003153fi
3154
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003155 if test "x$ac_ct_RANLIB" = x; then
3156 RANLIB=":"
3157 else
3158 case $cross_compiling:$ac_tool_warned in
3159yes:)
3160{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3161whose name does not start with the host triplet. If you think this
3162configuration is useful to you, please write to autoconf@gnu.org." >&5
3163echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3164whose name does not start with the host triplet. If you think this
3165configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3166ac_tool_warned=yes ;;
3167esac
3168 RANLIB=$ac_ct_RANLIB
3169 fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003170else
3171 RANLIB="$ac_cv_prog_RANLIB"
3172fi
3173
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003174{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3175echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
3176set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3177if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003178 echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180 cat >conftest.make <<\_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003181SHELL = /bin/sh
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003182all:
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003183 @echo '@@@%%%=$(MAKE)=@@@%%%'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003184_ACEOF
3185# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003186case `${MAKE-make} -f conftest.make 2>/dev/null` in
3187 *@@@%%%=?*=@@@%%%*)
3188 eval ac_cv_prog_make_${ac_make}_set=yes;;
3189 *)
3190 eval ac_cv_prog_make_${ac_make}_set=no;;
3191esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003192rm -f conftest.make
3193fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003194if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3195 { echo "$as_me:$LINENO: result: yes" >&5
3196echo "${ECHO_T}yes" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003197 SET_MAKE=
3198else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003199 { echo "$as_me:$LINENO: result: no" >&5
3200echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003201 SET_MAKE="MAKE=${MAKE-make}"
3202fi
3203
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003204ac_ext=cpp
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003205ac_cpp='$CXXCPP $CPPFLAGS'
3206ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3207ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3208ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3209
3210
3211case "`(uname -sr) 2>/dev/null`" in
3212"SunOS 5"*)
3213 SOLARIS=yes
3214 USE_MITSHM=yes
3215 USE_SUN_OVL=yes
3216 ;;
3217"Linux"*)
3218 LINUX=yes
3219 USE_MITSHM=yes
3220 ;;
3221"IRIX 6"*)
3222 X_LIBS="-L/usr/lib32"
3223 USE_MITSHM=yes
3224 USE_READDISPLAY=yes
3225 ;;
3226"LynxOS 2"*)
3227 SJLJ_EXCEPTIONS=yes
3228 ;;
3229esac
3230
3231if test "$USE_MITSHM" = yes; then
3232 MITSHM_DEFINE="-DHAVE_MITSHM"
3233fi
3234
3235
3236if test "$GCC" = yes; then
3237 CFLAGS="$CFLAGS -Wall"
3238 if test "$SOLARIS" = yes; then
3239 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
3240 fi
3241fi
3242if test "$GXX" = yes; then
3243 CXXFLAGS="$CXXFLAGS -Wall"
3244 if test "$SOLARIS" = yes; then
3245 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -fpermissive"
3246 fi
3247 if test "$SJLJ_EXCEPTIONS" = yes; then
3248 CXXFLAGS="$CXXFLAGS -fsjlj-exceptions"
3249 fi
3250fi
3251
3252
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003253{ echo "$as_me:$LINENO: checking for clQuerySchemeFromName in -lcl" >&5
3254echo $ECHO_N "checking for clQuerySchemeFromName in -lcl... $ECHO_C" >&6; }
3255if test "${ac_cv_lib_cl_clQuerySchemeFromName+set}" = set; then
3256 echo $ECHO_N "(cached) $ECHO_C" >&6
3257else
3258 ac_check_lib_save_LIBS=$LIBS
3259LIBS="-lcl $LIBS"
3260cat >conftest.$ac_ext <<_ACEOF
3261/* confdefs.h. */
3262_ACEOF
3263cat confdefs.h >>conftest.$ac_ext
3264cat >>conftest.$ac_ext <<_ACEOF
3265/* end confdefs.h. */
3266
3267/* Override any GCC internal prototype to avoid an error.
3268 Use char because int might match the return type of a GCC
3269 builtin and then its argument prototype would still apply. */
3270#ifdef __cplusplus
3271extern "C"
3272#endif
3273char clQuerySchemeFromName ();
3274int
3275main ()
3276{
3277return clQuerySchemeFromName ();
3278 ;
3279 return 0;
3280}
3281_ACEOF
3282rm -f conftest.$ac_objext conftest$ac_exeext
3283if { (ac_try="$ac_link"
3284case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287esac
3288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3289 (eval "$ac_link") 2>conftest.er1
3290 ac_status=$?
3291 grep -v '^ *+' conftest.er1 >conftest.err
3292 rm -f conftest.er1
3293 cat conftest.err >&5
3294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3295 (exit $ac_status); } && {
3296 test -z "$ac_cxx_werror_flag" ||
3297 test ! -s conftest.err
3298 } && test -s conftest$ac_exeext &&
3299 $as_test_x conftest$ac_exeext; then
3300 ac_cv_lib_cl_clQuerySchemeFromName=yes
3301else
3302 echo "$as_me: failed program was:" >&5
3303sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 ac_cv_lib_cl_clQuerySchemeFromName=no
3306fi
3307
3308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3309 conftest$ac_exeext conftest.$ac_ext
3310LIBS=$ac_check_lib_save_LIBS
3311fi
3312{ echo "$as_me:$LINENO: result: $ac_cv_lib_cl_clQuerySchemeFromName" >&5
3313echo "${ECHO_T}$ac_cv_lib_cl_clQuerySchemeFromName" >&6; }
3314if test $ac_cv_lib_cl_clQuerySchemeFromName = yes; then
3315 cat >>confdefs.h <<\_ACEOF
3316#define HAVE_CL 1
3317_ACEOF
3318
3319 CL_LIB=-lcl
3320fi
3321
3322
3323
3324{ echo "$as_me:$LINENO: checking for dmICCreate in -ldmedia" >&5
3325echo $ECHO_N "checking for dmICCreate in -ldmedia... $ECHO_C" >&6; }
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003326if test "${ac_cv_lib_dmedia_dmICCreate+set}" = set; then
3327 echo $ECHO_N "(cached) $ECHO_C" >&6
3328else
3329 ac_check_lib_save_LIBS=$LIBS
3330LIBS="-ldmedia $LIBS"
3331cat >conftest.$ac_ext <<_ACEOF
3332/* confdefs.h. */
3333_ACEOF
3334cat confdefs.h >>conftest.$ac_ext
3335cat >>conftest.$ac_ext <<_ACEOF
3336/* end confdefs.h. */
3337
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003338/* Override any GCC internal prototype to avoid an error.
3339 Use char because int might match the return type of a GCC
3340 builtin and then its argument prototype would still apply. */
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003341#ifdef __cplusplus
3342extern "C"
3343#endif
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003344char dmICCreate ();
3345int
3346main ()
3347{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003348return dmICCreate ();
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003349 ;
3350 return 0;
3351}
3352_ACEOF
3353rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003354if { (ac_try="$ac_link"
3355case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358esac
3359eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3360 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003361 ac_status=$?
3362 grep -v '^ *+' conftest.er1 >conftest.err
3363 rm -f conftest.er1
3364 cat conftest.err >&5
3365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003366 (exit $ac_status); } && {
3367 test -z "$ac_cxx_werror_flag" ||
3368 test ! -s conftest.err
3369 } && test -s conftest$ac_exeext &&
3370 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003371 ac_cv_lib_dmedia_dmICCreate=yes
3372else
3373 echo "$as_me: failed program was:" >&5
3374sed 's/^/| /' conftest.$ac_ext >&5
3375
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003376 ac_cv_lib_dmedia_dmICCreate=no
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003377fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003378
3379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003380 conftest$ac_exeext conftest.$ac_ext
3381LIBS=$ac_check_lib_save_LIBS
3382fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003383{ echo "$as_me:$LINENO: result: $ac_cv_lib_dmedia_dmICCreate" >&5
3384echo "${ECHO_T}$ac_cv_lib_dmedia_dmICCreate" >&6; }
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003385if test $ac_cv_lib_dmedia_dmICCreate = yes; then
3386 cat >>confdefs.h <<\_ACEOF
3387#define HAVE_DMEDIA 1
3388_ACEOF
3389
3390 DMEDIA_LIB=-ldmedia
3391fi
3392
3393
3394
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003395ac_ext=cpp
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003396ac_cpp='$CXXCPP $CPPFLAGS'
3397ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3398ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3399ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003400{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3401echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003402if test -z "$CXXCPP"; then
3403 if test "${ac_cv_prog_CXXCPP+set}" = set; then
3404 echo $ECHO_N "(cached) $ECHO_C" >&6
3405else
3406 # Double quotes because CXXCPP needs to be expanded
3407 for CXXCPP in "$CXX -E" "/lib/cpp"
3408 do
3409 ac_preproc_ok=false
3410for ac_cxx_preproc_warn_flag in '' yes
3411do
3412 # Use a header file that comes with gcc, so configuring glibc
3413 # with a fresh cross-compiler works.
3414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3415 # <limits.h> exists even on freestanding compilers.
3416 # On the NeXT, cc -E runs the code through the compiler's parser,
3417 # not just through cpp. "Syntax error" is here to catch this case.
3418 cat >conftest.$ac_ext <<_ACEOF
3419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
3424#ifdef __STDC__
3425# include <limits.h>
3426#else
3427# include <assert.h>
3428#endif
3429 Syntax error
3430_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003431if { (ac_try="$ac_cpp conftest.$ac_ext"
3432case "(($ac_try" in
3433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3435esac
3436eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003438 ac_status=$?
3439 grep -v '^ *+' conftest.er1 >conftest.err
3440 rm -f conftest.er1
3441 cat conftest.err >&5
3442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003443 (exit $ac_status); } >/dev/null && {
3444 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3445 test ! -s conftest.err
3446 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003447 :
3448else
3449 echo "$as_me: failed program was:" >&5
3450sed 's/^/| /' conftest.$ac_ext >&5
3451
3452 # Broken: fails on valid input.
3453continue
3454fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003455
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003456rm -f conftest.err conftest.$ac_ext
3457
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003458 # OK, works on sane cases. Now check whether nonexistent headers
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003459 # can be detected and how.
3460 cat >conftest.$ac_ext <<_ACEOF
3461/* confdefs.h. */
3462_ACEOF
3463cat confdefs.h >>conftest.$ac_ext
3464cat >>conftest.$ac_ext <<_ACEOF
3465/* end confdefs.h. */
3466#include <ac_nonexistent.h>
3467_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003468if { (ac_try="$ac_cpp conftest.$ac_ext"
3469case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472esac
3473eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003484 # Broken: success on invalid input.
3485continue
3486else
3487 echo "$as_me: failed program was:" >&5
3488sed 's/^/| /' conftest.$ac_ext >&5
3489
3490 # Passes both tests.
3491ac_preproc_ok=:
3492break
3493fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003494
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003495rm -f conftest.err conftest.$ac_ext
3496
3497done
3498# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3499rm -f conftest.err conftest.$ac_ext
3500if $ac_preproc_ok; then
3501 break
3502fi
3503
3504 done
3505 ac_cv_prog_CXXCPP=$CXXCPP
3506
3507fi
3508 CXXCPP=$ac_cv_prog_CXXCPP
3509else
3510 ac_cv_prog_CXXCPP=$CXXCPP
3511fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003512{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
3513echo "${ECHO_T}$CXXCPP" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003514ac_preproc_ok=false
3515for ac_cxx_preproc_warn_flag in '' yes
3516do
3517 # Use a header file that comes with gcc, so configuring glibc
3518 # with a fresh cross-compiler works.
3519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3520 # <limits.h> exists even on freestanding compilers.
3521 # On the NeXT, cc -E runs the code through the compiler's parser,
3522 # not just through cpp. "Syntax error" is here to catch this case.
3523 cat >conftest.$ac_ext <<_ACEOF
3524/* confdefs.h. */
3525_ACEOF
3526cat confdefs.h >>conftest.$ac_ext
3527cat >>conftest.$ac_ext <<_ACEOF
3528/* end confdefs.h. */
3529#ifdef __STDC__
3530# include <limits.h>
3531#else
3532# include <assert.h>
3533#endif
3534 Syntax error
3535_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003536if { (ac_try="$ac_cpp conftest.$ac_ext"
3537case "(($ac_try" in
3538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3540esac
3541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003548 (exit $ac_status); } >/dev/null && {
3549 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3550 test ! -s conftest.err
3551 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003552 :
3553else
3554 echo "$as_me: failed program was:" >&5
3555sed 's/^/| /' conftest.$ac_ext >&5
3556
3557 # Broken: fails on valid input.
3558continue
3559fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003560
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003561rm -f conftest.err conftest.$ac_ext
3562
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003563 # OK, works on sane cases. Now check whether nonexistent headers
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003564 # can be detected and how.
3565 cat >conftest.$ac_ext <<_ACEOF
3566/* confdefs.h. */
3567_ACEOF
3568cat confdefs.h >>conftest.$ac_ext
3569cat >>conftest.$ac_ext <<_ACEOF
3570/* end confdefs.h. */
3571#include <ac_nonexistent.h>
3572_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003573if { (ac_try="$ac_cpp conftest.$ac_ext"
3574case "(($ac_try" in
3575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3576 *) ac_try_echo=$ac_try;;
3577esac
3578eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003580 ac_status=$?
3581 grep -v '^ *+' conftest.er1 >conftest.err
3582 rm -f conftest.er1
3583 cat conftest.err >&5
3584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003585 (exit $ac_status); } >/dev/null && {
3586 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3587 test ! -s conftest.err
3588 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003589 # Broken: success on invalid input.
3590continue
3591else
3592 echo "$as_me: failed program was:" >&5
3593sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 # Passes both tests.
3596ac_preproc_ok=:
3597break
3598fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003599
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003600rm -f conftest.err conftest.$ac_ext
3601
3602done
3603# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3604rm -f conftest.err conftest.$ac_ext
3605if $ac_preproc_ok; then
3606 :
3607else
3608 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3609See \`config.log' for more details." >&5
3610echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3611See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }
3613fi
3614
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003615ac_ext=cpp
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003616ac_cpp='$CXXCPP $CPPFLAGS'
3617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3620
3621
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003622{ echo "$as_me:$LINENO: checking for X" >&5
3623echo $ECHO_N "checking for X... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003624
3625
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003626# Check whether --with-x was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003627if test "${with_x+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003628 withval=$with_x;
3629fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003630
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003631# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3632if test "x$with_x" = xno; then
3633 # The user explicitly disabled X.
3634 have_x=disabled
3635else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003636 case $x_includes,$x_libraries in #(
3637 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
3638echo "$as_me: error: Cannot use X directory names containing '" >&2;}
3639 { (exit 1); exit 1; }; };; #(
3640 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003641 echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643 # One or both of the vars are not set, and there is no cached value.
3644ac_x_includes=no ac_x_libraries=no
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003645rm -f -r conftest.dir
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003646if mkdir conftest.dir; then
3647 cd conftest.dir
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003648 cat >Imakefile <<'_ACEOF'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003649incroot:
3650 @echo incroot='${INCROOT}'
3651usrlibdir:
3652 @echo usrlibdir='${USRLIBDIR}'
3653libdir:
3654 @echo libdir='${LIBDIR}'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003655_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003656 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003657 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003658 for ac_var in incroot usrlibdir libdir; do
3659 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
3660 done
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003661 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3662 for ac_extension in a so sl; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003663 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
3664 test -f "$ac_im_libdir/libX11.$ac_extension"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003665 ac_im_usrlibdir=$ac_im_libdir; break
3666 fi
3667 done
3668 # Screen out bogus values from the imake configuration. They are
3669 # bogus both because they are the default anyway, and because
3670 # using them would break gcc on systems where it needs fixed includes.
3671 case $ac_im_incroot in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003672 /usr/include) ac_x_includes= ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003673 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3674 esac
3675 case $ac_im_usrlibdir in
3676 /usr/lib | /lib) ;;
3677 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3678 esac
3679 fi
3680 cd ..
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003681 rm -f -r conftest.dir
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003682fi
3683
3684# Standard set of common directories for X headers.
3685# Check X11 before X11Rn because it is often a symlink to the current release.
3686ac_x_header_dirs='
3687/usr/X11/include
3688/usr/X11R6/include
3689/usr/X11R5/include
3690/usr/X11R4/include
3691
3692/usr/include/X11
3693/usr/include/X11R6
3694/usr/include/X11R5
3695/usr/include/X11R4
3696
3697/usr/local/X11/include
3698/usr/local/X11R6/include
3699/usr/local/X11R5/include
3700/usr/local/X11R4/include
3701
3702/usr/local/include/X11
3703/usr/local/include/X11R6
3704/usr/local/include/X11R5
3705/usr/local/include/X11R4
3706
3707/usr/X386/include
3708/usr/x386/include
3709/usr/XFree86/include/X11
3710
3711/usr/include
3712/usr/local/include
3713/usr/unsupported/include
3714/usr/athena/include
3715/usr/local/x11r5/include
3716/usr/lpp/Xamples/include
3717
3718/usr/openwin/include
3719/usr/openwin/share/include'
3720
3721if test "$ac_x_includes" = no; then
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003722 # Guess where to find include files, by looking for Xlib.h.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003723 # First, try using that file with no special directory specified.
3724 cat >conftest.$ac_ext <<_ACEOF
3725/* confdefs.h. */
3726_ACEOF
3727cat confdefs.h >>conftest.$ac_ext
3728cat >>conftest.$ac_ext <<_ACEOF
3729/* end confdefs.h. */
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003730#include <X11/Xlib.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003731_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003732if { (ac_try="$ac_cpp conftest.$ac_ext"
3733case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736esac
3737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003739 ac_status=$?
3740 grep -v '^ *+' conftest.er1 >conftest.err
3741 rm -f conftest.er1
3742 cat conftest.err >&5
3743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003744 (exit $ac_status); } >/dev/null && {
3745 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
3746 test ! -s conftest.err
3747 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003748 # We can compile using X headers with no special include directory.
3749ac_x_includes=
3750else
3751 echo "$as_me: failed program was:" >&5
3752sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 for ac_dir in $ac_x_header_dirs; do
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003755 if test -r "$ac_dir/X11/Xlib.h"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003756 ac_x_includes=$ac_dir
3757 break
3758 fi
3759done
3760fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003761
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003762rm -f conftest.err conftest.$ac_ext
3763fi # $ac_x_includes = no
3764
3765if test "$ac_x_libraries" = no; then
3766 # Check for the libraries.
3767 # See if we find them without any special options.
3768 # Don't add to $LIBS permanently.
3769 ac_save_LIBS=$LIBS
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003770 LIBS="-lX11 $LIBS"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003771 cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h. */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h. */
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003777#include <X11/Xlib.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003778int
3779main ()
3780{
Constantin Kaplinskya8748812007-09-05 09:29:06 +00003781XrmInitialize ()
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003782 ;
3783 return 0;
3784}
3785_ACEOF
3786rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003787if { (ac_try="$ac_link"
3788case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791esac
3792eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3793 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003794 ac_status=$?
3795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
3798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003799 (exit $ac_status); } && {
3800 test -z "$ac_cxx_werror_flag" ||
3801 test ! -s conftest.err
3802 } && test -s conftest$ac_exeext &&
3803 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003804 LIBS=$ac_save_LIBS
3805# We can link X programs with no special library path.
3806ac_x_libraries=
3807else
3808 echo "$as_me: failed program was:" >&5
3809sed 's/^/| /' conftest.$ac_ext >&5
3810
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003811 LIBS=$ac_save_LIBS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003812for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3813do
3814 # Don't even attempt the hair of trying to link an X program!
3815 for ac_extension in a so sl; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003816 if test -r "$ac_dir/libX11.$ac_extension"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003817 ac_x_libraries=$ac_dir
3818 break 2
3819 fi
3820 done
3821done
3822fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003823
3824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003825 conftest$ac_exeext conftest.$ac_ext
3826fi # $ac_x_libraries = no
3827
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003828case $ac_x_includes,$ac_x_libraries in #(
3829 no,* | *,no | *\'*)
3830 # Didn't find X, or a directory has "'" in its name.
3831 ac_cv_have_x="have_x=no";; #(
3832 *)
3833 # Record where we found X for the cache.
3834 ac_cv_have_x="have_x=yes\
3835 ac_x_includes='$ac_x_includes'\
3836 ac_x_libraries='$ac_x_libraries'"
3837esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003838fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003839;; #(
3840 *) have_x=yes;;
3841 esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003842 eval "$ac_cv_have_x"
3843fi # $with_x != no
3844
3845if test "$have_x" != yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003846 { echo "$as_me:$LINENO: result: $have_x" >&5
3847echo "${ECHO_T}$have_x" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003848 no_x=yes
3849else
3850 # If each of the values was on the command line, it overrides each guess.
3851 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3852 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3853 # Update the cache value to reflect the command line values.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003854 ac_cv_have_x="have_x=yes\
3855 ac_x_includes='$x_includes'\
3856 ac_x_libraries='$x_libraries'"
3857 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3858echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003859fi
3860
3861if test "$no_x" = yes; then
3862 # Not all programs may use this symbol, but it does not hurt to define it.
3863
3864cat >>confdefs.h <<\_ACEOF
3865#define X_DISPLAY_MISSING 1
3866_ACEOF
3867
3868 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3869else
3870 if test -n "$x_includes"; then
3871 X_CFLAGS="$X_CFLAGS -I$x_includes"
3872 fi
3873
3874 # It would also be nice to do this for all -L options, not just this one.
3875 if test -n "$x_libraries"; then
3876 X_LIBS="$X_LIBS -L$x_libraries"
3877 # For Solaris; some versions of Sun CC require a space after -R and
3878 # others require no space. Words are not sufficient . . . .
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003879 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3880echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
3881 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3882 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
3883 ac_cxx_werror_flag=yes
3884 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003885/* confdefs.h. */
3886_ACEOF
3887cat confdefs.h >>conftest.$ac_ext
3888cat >>conftest.$ac_ext <<_ACEOF
3889/* end confdefs.h. */
3890
3891int
3892main ()
3893{
3894
3895 ;
3896 return 0;
3897}
3898_ACEOF
3899rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003900if { (ac_try="$ac_link"
3901case "(($ac_try" in
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3904esac
3905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003907 ac_status=$?
3908 grep -v '^ *+' conftest.er1 >conftest.err
3909 rm -f conftest.er1
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003912 (exit $ac_status); } && {
3913 test -z "$ac_cxx_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest$ac_exeext &&
3916 $as_test_x conftest$ac_exeext; then
3917 { echo "$as_me:$LINENO: result: no" >&5
3918echo "${ECHO_T}no" >&6; }
3919 X_LIBS="$X_LIBS -R$x_libraries"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003924 LIBS="$ac_xsave_LIBS -R $x_libraries"
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003925 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931
3932int
3933main ()
3934{
3935
3936 ;
3937 return 0;
3938}
3939_ACEOF
3940rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003941if { (ac_try="$ac_link"
3942case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945esac
3946eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3947 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003948 ac_status=$?
3949 grep -v '^ *+' conftest.er1 >conftest.err
3950 rm -f conftest.er1
3951 cat conftest.err >&5
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003953 (exit $ac_status); } && {
3954 test -z "$ac_cxx_werror_flag" ||
3955 test ! -s conftest.err
3956 } && test -s conftest$ac_exeext &&
3957 $as_test_x conftest$ac_exeext; then
3958 { echo "$as_me:$LINENO: result: yes" >&5
3959echo "${ECHO_T}yes" >&6; }
3960 X_LIBS="$X_LIBS -R $x_libraries"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003961else
3962 echo "$as_me: failed program was:" >&5
3963sed 's/^/| /' conftest.$ac_ext >&5
3964
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003965 { echo "$as_me:$LINENO: result: neither works" >&5
3966echo "${ECHO_T}neither works" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003967fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003968
3969rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003970 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003971fi
3972
3973rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3974 conftest$ac_exeext conftest.$ac_ext
3975 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
3976 LIBS=$ac_xsave_LIBS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00003977 fi
3978
3979 # Check for system-dependent libraries X programs must link with.
3980 # Do this before checking for the system-independent R6 libraries
3981 # (-lICE), since we may need -lsocket or whatever for X linking.
3982
3983 if test "$ISC" = yes; then
3984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3985 else
3986 # Martyn Johnson says this is needed for Ultrix, if the X
3987 # libraries were built with DECnet support. And Karl Berry says
3988 # the Alpha needs dnet_stub (dnet does not exist).
3989 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3990 cat >conftest.$ac_ext <<_ACEOF
3991/* confdefs.h. */
3992_ACEOF
3993cat confdefs.h >>conftest.$ac_ext
3994cat >>conftest.$ac_ext <<_ACEOF
3995/* end confdefs.h. */
3996
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00003997/* Override any GCC internal prototype to avoid an error.
3998 Use char because int might match the return type of a GCC
3999 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004000#ifdef __cplusplus
4001extern "C"
4002#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004003char XOpenDisplay ();
4004int
4005main ()
4006{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004007return XOpenDisplay ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004008 ;
4009 return 0;
4010}
4011_ACEOF
4012rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004013if { (ac_try="$ac_link"
4014case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017esac
4018eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004025 (exit $ac_status); } && {
4026 test -z "$ac_cxx_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest$ac_exeext &&
4029 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004030 :
4031else
4032 echo "$as_me: failed program was:" >&5
4033sed 's/^/| /' conftest.$ac_ext >&5
4034
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004035 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
4036echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004037if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
4038 echo $ECHO_N "(cached) $ECHO_C" >&6
4039else
4040 ac_check_lib_save_LIBS=$LIBS
4041LIBS="-ldnet $LIBS"
4042cat >conftest.$ac_ext <<_ACEOF
4043/* confdefs.h. */
4044_ACEOF
4045cat confdefs.h >>conftest.$ac_ext
4046cat >>conftest.$ac_ext <<_ACEOF
4047/* end confdefs.h. */
4048
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004049/* Override any GCC internal prototype to avoid an error.
4050 Use char because int might match the return type of a GCC
4051 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004052#ifdef __cplusplus
4053extern "C"
4054#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004055char dnet_ntoa ();
4056int
4057main ()
4058{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004059return dnet_ntoa ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004060 ;
4061 return 0;
4062}
4063_ACEOF
4064rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004065if { (ac_try="$ac_link"
4066case "(($ac_try" in
4067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4068 *) ac_try_echo=$ac_try;;
4069esac
4070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4071 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004072 ac_status=$?
4073 grep -v '^ *+' conftest.er1 >conftest.err
4074 rm -f conftest.er1
4075 cat conftest.err >&5
4076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004077 (exit $ac_status); } && {
4078 test -z "$ac_cxx_werror_flag" ||
4079 test ! -s conftest.err
4080 } && test -s conftest$ac_exeext &&
4081 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004082 ac_cv_lib_dnet_dnet_ntoa=yes
4083else
4084 echo "$as_me: failed program was:" >&5
4085sed 's/^/| /' conftest.$ac_ext >&5
4086
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004087 ac_cv_lib_dnet_dnet_ntoa=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004088fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004089
4090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004091 conftest$ac_exeext conftest.$ac_ext
4092LIBS=$ac_check_lib_save_LIBS
4093fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004094{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
4095echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004096if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
4097 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
4098fi
4099
4100 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004101 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
4102echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004103if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
4104 echo $ECHO_N "(cached) $ECHO_C" >&6
4105else
4106 ac_check_lib_save_LIBS=$LIBS
4107LIBS="-ldnet_stub $LIBS"
4108cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004115/* Override any GCC internal prototype to avoid an error.
4116 Use char because int might match the return type of a GCC
4117 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004118#ifdef __cplusplus
4119extern "C"
4120#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004121char dnet_ntoa ();
4122int
4123main ()
4124{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004125return dnet_ntoa ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004126 ;
4127 return 0;
4128}
4129_ACEOF
4130rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004131if { (ac_try="$ac_link"
4132case "(($ac_try" in
4133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4134 *) ac_try_echo=$ac_try;;
4135esac
4136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4137 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004138 ac_status=$?
4139 grep -v '^ *+' conftest.er1 >conftest.err
4140 rm -f conftest.er1
4141 cat conftest.err >&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004143 (exit $ac_status); } && {
4144 test -z "$ac_cxx_werror_flag" ||
4145 test ! -s conftest.err
4146 } && test -s conftest$ac_exeext &&
4147 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004148 ac_cv_lib_dnet_stub_dnet_ntoa=yes
4149else
4150 echo "$as_me: failed program was:" >&5
4151sed 's/^/| /' conftest.$ac_ext >&5
4152
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004153 ac_cv_lib_dnet_stub_dnet_ntoa=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004154fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004155
4156rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004157 conftest$ac_exeext conftest.$ac_ext
4158LIBS=$ac_check_lib_save_LIBS
4159fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004160{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
4161echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004162if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
4163 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
4164fi
4165
4166 fi
4167fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004168
4169rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004170 conftest$ac_exeext conftest.$ac_ext
4171 LIBS="$ac_xsave_LIBS"
4172
4173 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
4174 # to get the SysV transport functions.
4175 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
4176 # needs -lnsl.
4177 # The nsl library prevents programs from opening the X display
4178 # on Irix 5.2, according to T.E. Dickey.
4179 # The functions gethostbyname, getservbyname, and inet_addr are
4180 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004181 { echo "$as_me:$LINENO: checking for gethostbyname" >&5
4182echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004183if test "${ac_cv_func_gethostbyname+set}" = set; then
4184 echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186 cat >conftest.$ac_ext <<_ACEOF
4187/* confdefs.h. */
4188_ACEOF
4189cat confdefs.h >>conftest.$ac_ext
4190cat >>conftest.$ac_ext <<_ACEOF
4191/* end confdefs.h. */
4192/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4194#define gethostbyname innocuous_gethostbyname
4195
4196/* System header to define __stub macros and hopefully few prototypes,
4197 which can conflict with char gethostbyname (); below.
4198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199 <limits.h> exists even on freestanding compilers. */
4200
4201#ifdef __STDC__
4202# include <limits.h>
4203#else
4204# include <assert.h>
4205#endif
4206
4207#undef gethostbyname
4208
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004209/* Override any GCC internal prototype to avoid an error.
4210 Use char because int might match the return type of a GCC
4211 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004212#ifdef __cplusplus
4213extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004214#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004215char gethostbyname ();
4216/* The GNU C library defines this for functions which it implements
4217 to always fail with ENOSYS. Some functions are actually named
4218 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004219#if defined __stub_gethostbyname || defined __stub___gethostbyname
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004220choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004221#endif
4222
4223int
4224main ()
4225{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004226return gethostbyname ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004227 ;
4228 return 0;
4229}
4230_ACEOF
4231rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004232if { (ac_try="$ac_link"
4233case "(($ac_try" in
4234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4235 *) ac_try_echo=$ac_try;;
4236esac
4237eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4238 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004239 ac_status=$?
4240 grep -v '^ *+' conftest.er1 >conftest.err
4241 rm -f conftest.er1
4242 cat conftest.err >&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004244 (exit $ac_status); } && {
4245 test -z "$ac_cxx_werror_flag" ||
4246 test ! -s conftest.err
4247 } && test -s conftest$ac_exeext &&
4248 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004249 ac_cv_func_gethostbyname=yes
4250else
4251 echo "$as_me: failed program was:" >&5
4252sed 's/^/| /' conftest.$ac_ext >&5
4253
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004254 ac_cv_func_gethostbyname=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004255fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004256
4257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004258 conftest$ac_exeext conftest.$ac_ext
4259fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004260{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4261echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004262
4263 if test $ac_cv_func_gethostbyname = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004264 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4265echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004266if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4267 echo $ECHO_N "(cached) $ECHO_C" >&6
4268else
4269 ac_check_lib_save_LIBS=$LIBS
4270LIBS="-lnsl $LIBS"
4271cat >conftest.$ac_ext <<_ACEOF
4272/* confdefs.h. */
4273_ACEOF
4274cat confdefs.h >>conftest.$ac_ext
4275cat >>conftest.$ac_ext <<_ACEOF
4276/* end confdefs.h. */
4277
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004278/* Override any GCC internal prototype to avoid an error.
4279 Use char because int might match the return type of a GCC
4280 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004281#ifdef __cplusplus
4282extern "C"
4283#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004284char gethostbyname ();
4285int
4286main ()
4287{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004288return gethostbyname ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004289 ;
4290 return 0;
4291}
4292_ACEOF
4293rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004294if { (ac_try="$ac_link"
4295case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298esac
4299eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4300 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004301 ac_status=$?
4302 grep -v '^ *+' conftest.er1 >conftest.err
4303 rm -f conftest.er1
4304 cat conftest.err >&5
4305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004306 (exit $ac_status); } && {
4307 test -z "$ac_cxx_werror_flag" ||
4308 test ! -s conftest.err
4309 } && test -s conftest$ac_exeext &&
4310 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004311 ac_cv_lib_nsl_gethostbyname=yes
4312else
4313 echo "$as_me: failed program was:" >&5
4314sed 's/^/| /' conftest.$ac_ext >&5
4315
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004316 ac_cv_lib_nsl_gethostbyname=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004317fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004318
4319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004320 conftest$ac_exeext conftest.$ac_ext
4321LIBS=$ac_check_lib_save_LIBS
4322fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004323{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
4324echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004325if test $ac_cv_lib_nsl_gethostbyname = yes; then
4326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4327fi
4328
4329 if test $ac_cv_lib_nsl_gethostbyname = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004330 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4331echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004332if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334else
4335 ac_check_lib_save_LIBS=$LIBS
4336LIBS="-lbsd $LIBS"
4337cat >conftest.$ac_ext <<_ACEOF
4338/* confdefs.h. */
4339_ACEOF
4340cat confdefs.h >>conftest.$ac_ext
4341cat >>conftest.$ac_ext <<_ACEOF
4342/* end confdefs.h. */
4343
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004344/* Override any GCC internal prototype to avoid an error.
4345 Use char because int might match the return type of a GCC
4346 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004347#ifdef __cplusplus
4348extern "C"
4349#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004350char gethostbyname ();
4351int
4352main ()
4353{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004354return gethostbyname ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004355 ;
4356 return 0;
4357}
4358_ACEOF
4359rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004360if { (ac_try="$ac_link"
4361case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4364esac
4365eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004367 ac_status=$?
4368 grep -v '^ *+' conftest.er1 >conftest.err
4369 rm -f conftest.er1
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004372 (exit $ac_status); } && {
4373 test -z "$ac_cxx_werror_flag" ||
4374 test ! -s conftest.err
4375 } && test -s conftest$ac_exeext &&
4376 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004377 ac_cv_lib_bsd_gethostbyname=yes
4378else
4379 echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004382 ac_cv_lib_bsd_gethostbyname=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004383fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004384
4385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004386 conftest$ac_exeext conftest.$ac_ext
4387LIBS=$ac_check_lib_save_LIBS
4388fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004389{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4390echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004391if test $ac_cv_lib_bsd_gethostbyname = yes; then
4392 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4393fi
4394
4395 fi
4396 fi
4397
4398 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4399 # socket/setsockopt and other routines are undefined under SCO ODT
4400 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4401 # on later versions), says Simon Leinen: it contains gethostby*
4402 # variants that don't use the name server (or something). -lsocket
4403 # must be given before -lnsl if both are needed. We assume that
4404 # if connect needs -lnsl, so does gethostbyname.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004405 { echo "$as_me:$LINENO: checking for connect" >&5
4406echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004407if test "${ac_cv_func_connect+set}" = set; then
4408 echo $ECHO_N "(cached) $ECHO_C" >&6
4409else
4410 cat >conftest.$ac_ext <<_ACEOF
4411/* confdefs.h. */
4412_ACEOF
4413cat confdefs.h >>conftest.$ac_ext
4414cat >>conftest.$ac_ext <<_ACEOF
4415/* end confdefs.h. */
4416/* Define connect to an innocuous variant, in case <limits.h> declares connect.
4417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4418#define connect innocuous_connect
4419
4420/* System header to define __stub macros and hopefully few prototypes,
4421 which can conflict with char connect (); below.
4422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4423 <limits.h> exists even on freestanding compilers. */
4424
4425#ifdef __STDC__
4426# include <limits.h>
4427#else
4428# include <assert.h>
4429#endif
4430
4431#undef connect
4432
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004433/* Override any GCC internal prototype to avoid an error.
4434 Use char because int might match the return type of a GCC
4435 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004436#ifdef __cplusplus
4437extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004438#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004439char connect ();
4440/* The GNU C library defines this for functions which it implements
4441 to always fail with ENOSYS. Some functions are actually named
4442 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004443#if defined __stub_connect || defined __stub___connect
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004444choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004445#endif
4446
4447int
4448main ()
4449{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004450return connect ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004451 ;
4452 return 0;
4453}
4454_ACEOF
4455rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004456if { (ac_try="$ac_link"
4457case "(($ac_try" in
4458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4459 *) ac_try_echo=$ac_try;;
4460esac
4461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4462 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004468 (exit $ac_status); } && {
4469 test -z "$ac_cxx_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest$ac_exeext &&
4472 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004473 ac_cv_func_connect=yes
4474else
4475 echo "$as_me: failed program was:" >&5
4476sed 's/^/| /' conftest.$ac_ext >&5
4477
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004478 ac_cv_func_connect=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004479fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004480
4481rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004482 conftest$ac_exeext conftest.$ac_ext
4483fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004484{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4485echo "${ECHO_T}$ac_cv_func_connect" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004486
4487 if test $ac_cv_func_connect = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004488 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4489echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004490if test "${ac_cv_lib_socket_connect+set}" = set; then
4491 echo $ECHO_N "(cached) $ECHO_C" >&6
4492else
4493 ac_check_lib_save_LIBS=$LIBS
4494LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4495cat >conftest.$ac_ext <<_ACEOF
4496/* confdefs.h. */
4497_ACEOF
4498cat confdefs.h >>conftest.$ac_ext
4499cat >>conftest.$ac_ext <<_ACEOF
4500/* end confdefs.h. */
4501
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004502/* Override any GCC internal prototype to avoid an error.
4503 Use char because int might match the return type of a GCC
4504 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004505#ifdef __cplusplus
4506extern "C"
4507#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004508char connect ();
4509int
4510main ()
4511{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004512return connect ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004513 ;
4514 return 0;
4515}
4516_ACEOF
4517rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004518if { (ac_try="$ac_link"
4519case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522esac
4523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004530 (exit $ac_status); } && {
4531 test -z "$ac_cxx_werror_flag" ||
4532 test ! -s conftest.err
4533 } && test -s conftest$ac_exeext &&
4534 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004535 ac_cv_lib_socket_connect=yes
4536else
4537 echo "$as_me: failed program was:" >&5
4538sed 's/^/| /' conftest.$ac_ext >&5
4539
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004540 ac_cv_lib_socket_connect=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004541fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004542
4543rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004544 conftest$ac_exeext conftest.$ac_ext
4545LIBS=$ac_check_lib_save_LIBS
4546fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004547{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4548echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004549if test $ac_cv_lib_socket_connect = yes; then
4550 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4551fi
4552
4553 fi
4554
4555 # Guillermo Gomez says -lposix is necessary on A/UX.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004556 { echo "$as_me:$LINENO: checking for remove" >&5
4557echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004558if test "${ac_cv_func_remove+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4560else
4561 cat >conftest.$ac_ext <<_ACEOF
4562/* confdefs.h. */
4563_ACEOF
4564cat confdefs.h >>conftest.$ac_ext
4565cat >>conftest.$ac_ext <<_ACEOF
4566/* end confdefs.h. */
4567/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4569#define remove innocuous_remove
4570
4571/* System header to define __stub macros and hopefully few prototypes,
4572 which can conflict with char remove (); below.
4573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4574 <limits.h> exists even on freestanding compilers. */
4575
4576#ifdef __STDC__
4577# include <limits.h>
4578#else
4579# include <assert.h>
4580#endif
4581
4582#undef remove
4583
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004584/* Override any GCC internal prototype to avoid an error.
4585 Use char because int might match the return type of a GCC
4586 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004587#ifdef __cplusplus
4588extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004589#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004590char remove ();
4591/* The GNU C library defines this for functions which it implements
4592 to always fail with ENOSYS. Some functions are actually named
4593 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004594#if defined __stub_remove || defined __stub___remove
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004595choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004596#endif
4597
4598int
4599main ()
4600{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004601return remove ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004607if { (ac_try="$ac_link"
4608case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611esac
4612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004619 (exit $ac_status); } && {
4620 test -z "$ac_cxx_werror_flag" ||
4621 test ! -s conftest.err
4622 } && test -s conftest$ac_exeext &&
4623 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004624 ac_cv_func_remove=yes
4625else
4626 echo "$as_me: failed program was:" >&5
4627sed 's/^/| /' conftest.$ac_ext >&5
4628
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004629 ac_cv_func_remove=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004630fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004631
4632rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004633 conftest$ac_exeext conftest.$ac_ext
4634fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004635{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4636echo "${ECHO_T}$ac_cv_func_remove" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004637
4638 if test $ac_cv_func_remove = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004639 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4640echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004641if test "${ac_cv_lib_posix_remove+set}" = set; then
4642 echo $ECHO_N "(cached) $ECHO_C" >&6
4643else
4644 ac_check_lib_save_LIBS=$LIBS
4645LIBS="-lposix $LIBS"
4646cat >conftest.$ac_ext <<_ACEOF
4647/* confdefs.h. */
4648_ACEOF
4649cat confdefs.h >>conftest.$ac_ext
4650cat >>conftest.$ac_ext <<_ACEOF
4651/* end confdefs.h. */
4652
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004653/* Override any GCC internal prototype to avoid an error.
4654 Use char because int might match the return type of a GCC
4655 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004656#ifdef __cplusplus
4657extern "C"
4658#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004659char remove ();
4660int
4661main ()
4662{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004663return remove ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004664 ;
4665 return 0;
4666}
4667_ACEOF
4668rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004669if { (ac_try="$ac_link"
4670case "(($ac_try" in
4671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4673esac
4674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004676 ac_status=$?
4677 grep -v '^ *+' conftest.er1 >conftest.err
4678 rm -f conftest.er1
4679 cat conftest.err >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004681 (exit $ac_status); } && {
4682 test -z "$ac_cxx_werror_flag" ||
4683 test ! -s conftest.err
4684 } && test -s conftest$ac_exeext &&
4685 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004686 ac_cv_lib_posix_remove=yes
4687else
4688 echo "$as_me: failed program was:" >&5
4689sed 's/^/| /' conftest.$ac_ext >&5
4690
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004691 ac_cv_lib_posix_remove=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004692fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004693
4694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004695 conftest$ac_exeext conftest.$ac_ext
4696LIBS=$ac_check_lib_save_LIBS
4697fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004698{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4699echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004700if test $ac_cv_lib_posix_remove = yes; then
4701 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4702fi
4703
4704 fi
4705
4706 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004707 { echo "$as_me:$LINENO: checking for shmat" >&5
4708echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004709if test "${ac_cv_func_shmat+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711else
4712 cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h. */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h. */
4718/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4720#define shmat innocuous_shmat
4721
4722/* System header to define __stub macros and hopefully few prototypes,
4723 which can conflict with char shmat (); below.
4724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4725 <limits.h> exists even on freestanding compilers. */
4726
4727#ifdef __STDC__
4728# include <limits.h>
4729#else
4730# include <assert.h>
4731#endif
4732
4733#undef shmat
4734
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004735/* Override any GCC internal prototype to avoid an error.
4736 Use char because int might match the return type of a GCC
4737 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004738#ifdef __cplusplus
4739extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004740#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004741char shmat ();
4742/* The GNU C library defines this for functions which it implements
4743 to always fail with ENOSYS. Some functions are actually named
4744 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004745#if defined __stub_shmat || defined __stub___shmat
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004746choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004747#endif
4748
4749int
4750main ()
4751{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004752return shmat ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004753 ;
4754 return 0;
4755}
4756_ACEOF
4757rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004758if { (ac_try="$ac_link"
4759case "(($ac_try" in
4760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4761 *) ac_try_echo=$ac_try;;
4762esac
4763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4764 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004765 ac_status=$?
4766 grep -v '^ *+' conftest.er1 >conftest.err
4767 rm -f conftest.er1
4768 cat conftest.err >&5
4769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004770 (exit $ac_status); } && {
4771 test -z "$ac_cxx_werror_flag" ||
4772 test ! -s conftest.err
4773 } && test -s conftest$ac_exeext &&
4774 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004775 ac_cv_func_shmat=yes
4776else
4777 echo "$as_me: failed program was:" >&5
4778sed 's/^/| /' conftest.$ac_ext >&5
4779
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004780 ac_cv_func_shmat=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004781fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004782
4783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004784 conftest$ac_exeext conftest.$ac_ext
4785fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004786{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4787echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004788
4789 if test $ac_cv_func_shmat = no; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004790 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4791echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004792if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4793 echo $ECHO_N "(cached) $ECHO_C" >&6
4794else
4795 ac_check_lib_save_LIBS=$LIBS
4796LIBS="-lipc $LIBS"
4797cat >conftest.$ac_ext <<_ACEOF
4798/* confdefs.h. */
4799_ACEOF
4800cat confdefs.h >>conftest.$ac_ext
4801cat >>conftest.$ac_ext <<_ACEOF
4802/* end confdefs.h. */
4803
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004804/* Override any GCC internal prototype to avoid an error.
4805 Use char because int might match the return type of a GCC
4806 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004807#ifdef __cplusplus
4808extern "C"
4809#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004810char shmat ();
4811int
4812main ()
4813{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004814return shmat ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004815 ;
4816 return 0;
4817}
4818_ACEOF
4819rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004820if { (ac_try="$ac_link"
4821case "(($ac_try" in
4822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4823 *) ac_try_echo=$ac_try;;
4824esac
4825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4826 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004827 ac_status=$?
4828 grep -v '^ *+' conftest.er1 >conftest.err
4829 rm -f conftest.er1
4830 cat conftest.err >&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004832 (exit $ac_status); } && {
4833 test -z "$ac_cxx_werror_flag" ||
4834 test ! -s conftest.err
4835 } && test -s conftest$ac_exeext &&
4836 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004837 ac_cv_lib_ipc_shmat=yes
4838else
4839 echo "$as_me: failed program was:" >&5
4840sed 's/^/| /' conftest.$ac_ext >&5
4841
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004842 ac_cv_lib_ipc_shmat=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004843fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004844
4845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004846 conftest$ac_exeext conftest.$ac_ext
4847LIBS=$ac_check_lib_save_LIBS
4848fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004849{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4850echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004851if test $ac_cv_lib_ipc_shmat = yes; then
4852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4853fi
4854
4855 fi
4856 fi
4857
4858 # Check for libraries that X11R6 Xt/Xaw programs need.
4859 ac_save_LDFLAGS=$LDFLAGS
4860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4862 # check for ICE first), but we must link in the order -lSM -lICE or
4863 # we get undefined symbols. So assume we have SM if we have ICE.
4864 # These have to be linked with before -lX11, unlike the other
4865 # libraries we check for below, so use a different variable.
4866 # John Interrante, Karl Berry
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004867 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4868echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004869if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4870 echo $ECHO_N "(cached) $ECHO_C" >&6
4871else
4872 ac_check_lib_save_LIBS=$LIBS
4873LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4874cat >conftest.$ac_ext <<_ACEOF
4875/* confdefs.h. */
4876_ACEOF
4877cat confdefs.h >>conftest.$ac_ext
4878cat >>conftest.$ac_ext <<_ACEOF
4879/* end confdefs.h. */
4880
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004881/* Override any GCC internal prototype to avoid an error.
4882 Use char because int might match the return type of a GCC
4883 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004884#ifdef __cplusplus
4885extern "C"
4886#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004887char IceConnectionNumber ();
4888int
4889main ()
4890{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004891return IceConnectionNumber ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004892 ;
4893 return 0;
4894}
4895_ACEOF
4896rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004897if { (ac_try="$ac_link"
4898case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901esac
4902eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004909 (exit $ac_status); } && {
4910 test -z "$ac_cxx_werror_flag" ||
4911 test ! -s conftest.err
4912 } && test -s conftest$ac_exeext &&
4913 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004914 ac_cv_lib_ICE_IceConnectionNumber=yes
4915else
4916 echo "$as_me: failed program was:" >&5
4917sed 's/^/| /' conftest.$ac_ext >&5
4918
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004919 ac_cv_lib_ICE_IceConnectionNumber=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004920fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004921
4922rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004923 conftest$ac_exeext conftest.$ac_ext
4924LIBS=$ac_check_lib_save_LIBS
4925fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004926{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4927echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004928if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4929 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4930fi
4931
4932 LDFLAGS=$ac_save_LDFLAGS
4933
4934fi
4935
4936
4937
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004938# Check whether --with-installed-zlib was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004939if test "${with_installed_zlib+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004940 withval=$with_installed_zlib;
4941fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004942
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004943
4944if test "$with_installed_zlib" = yes; then
4945 echo "using installed zlib"
4946 ZLIB_LIB=-lz
4947else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004948 ZLIB_DIR='$(COMMON)/zlib'
4949 ZLIB_INCLUDE='-I$(COMMON)/zlib'
4950 ZLIB_LIB='$(COMMON)/zlib/libz.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004951fi
4952
4953
4954
4955
4956
4957
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004958# Check whether --with-installed-jpeg was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004959if test "${with_installed_jpeg+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004960 withval=$with_installed_jpeg;
4961fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004962
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004963
4964if test "$with_installed_jpeg" = yes; then
4965 echo "using installed jpeg"
4966 JPEG_LIB=-ljpeg
4967else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004968 JPEG_DIR='$(COMMON)/jpeg/build'
4969 JPEG_INCLUDE='-I$(COMMON)/jpeg'
4970 JPEG_LIB='$(COMMON)/jpeg/build/libjpeg.a'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004971fi
4972
4973
4974
4975
4976
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004977# Check whether --enable-vncconfig was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004978if test "${enable_vncconfig+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004979 enableval=$enable_vncconfig;
4980fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004981
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004982if test "$enable_vncconfig" = no; then
4983 echo "vncconfig utility will not be built"
4984 VNCCONFIG_DIR=
4985else
Constantin Kaplinsky97ac5552006-06-02 04:13:14 +00004986 VNCCONFIG_DIR='vncconfig'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004987fi
4988
4989
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00004990{ echo "$as_me:$LINENO: checking for XTestGrabControl in -lXtst" >&5
4991echo $ECHO_N "checking for XTestGrabControl in -lXtst... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00004992if test "${ac_cv_lib_Xtst_XTestGrabControl+set}" = set; then
4993 echo $ECHO_N "(cached) $ECHO_C" >&6
4994else
4995 ac_check_lib_save_LIBS=$LIBS
4996LIBS="-lXtst "$X_LIBS" -lXext -lX11 $LIBS"
4997cat >conftest.$ac_ext <<_ACEOF
4998/* confdefs.h. */
4999_ACEOF
5000cat confdefs.h >>conftest.$ac_ext
5001cat >>conftest.$ac_ext <<_ACEOF
5002/* end confdefs.h. */
5003
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005004/* Override any GCC internal prototype to avoid an error.
5005 Use char because int might match the return type of a GCC
5006 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005007#ifdef __cplusplus
5008extern "C"
5009#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005010char XTestGrabControl ();
5011int
5012main ()
5013{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005014return XTestGrabControl ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005015 ;
5016 return 0;
5017}
5018_ACEOF
5019rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005020if { (ac_try="$ac_link"
5021case "(($ac_try" in
5022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5023 *) ac_try_echo=$ac_try;;
5024esac
5025eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5026 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005027 ac_status=$?
5028 grep -v '^ *+' conftest.er1 >conftest.err
5029 rm -f conftest.er1
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005032 (exit $ac_status); } && {
5033 test -z "$ac_cxx_werror_flag" ||
5034 test ! -s conftest.err
5035 } && test -s conftest$ac_exeext &&
5036 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005037 ac_cv_lib_Xtst_XTestGrabControl=yes
5038else
5039 echo "$as_me: failed program was:" >&5
5040sed 's/^/| /' conftest.$ac_ext >&5
5041
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005042 ac_cv_lib_Xtst_XTestGrabControl=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005043fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005044
5045rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005046 conftest$ac_exeext conftest.$ac_ext
5047LIBS=$ac_check_lib_save_LIBS
5048fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005049{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
5050echo "${ECHO_T}$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005051if test $ac_cv_lib_Xtst_XTestGrabControl = yes; then
5052 USE_XTEST=yes
5053else
5054 USE_XTEST=
5055fi
5056
5057if test "$USE_XTEST" = yes; then
5058 XTEST_DEFINE='-DHAVE_XTEST'
5059 XTEST_LIB=-lXtst
5060else
5061 echo Warning: No XTest extension, building x0vncserver view-only
5062 XTEST_DEFINE=
5063 XTEST_LIB=
5064fi
5065
5066
5067
5068if test "$USE_READDISPLAY" = yes; then
5069 READDISPLAY_DEFINE='-DHAVE_READDISPLAY'
5070elif test "$USE_SUN_OVL" = yes; then
5071 READDISPLAY_DEFINE='-DHAVE_SUN_OVL'
5072else
5073 READDISPLAY_DEFINE=
5074fi
5075
5076
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005077
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005078ac_ext=c
5079ac_cpp='$CPP $CPPFLAGS'
5080ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082ac_compiler_gnu=$ac_cv_c_compiler_gnu
5083
5084
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005085{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
5086echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005087if test "${ac_cv_func_gethostbyname+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090 cat >conftest.$ac_ext <<_ACEOF
5091/* confdefs.h. */
5092_ACEOF
5093cat confdefs.h >>conftest.$ac_ext
5094cat >>conftest.$ac_ext <<_ACEOF
5095/* end confdefs.h. */
5096/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5098#define gethostbyname innocuous_gethostbyname
5099
5100/* System header to define __stub macros and hopefully few prototypes,
5101 which can conflict with char gethostbyname (); below.
5102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5103 <limits.h> exists even on freestanding compilers. */
5104
5105#ifdef __STDC__
5106# include <limits.h>
5107#else
5108# include <assert.h>
5109#endif
5110
5111#undef gethostbyname
5112
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005113/* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005116#ifdef __cplusplus
5117extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005118#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005119char gethostbyname ();
5120/* The GNU C library defines this for functions which it implements
5121 to always fail with ENOSYS. Some functions are actually named
5122 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005123#if defined __stub_gethostbyname || defined __stub___gethostbyname
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005124choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005125#endif
5126
5127int
5128main ()
5129{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005130return gethostbyname ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005131 ;
5132 return 0;
5133}
5134_ACEOF
5135rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005136if { (ac_try="$ac_link"
5137case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5140esac
5141eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5142 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest$ac_exeext &&
5152 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005153 ac_cv_func_gethostbyname=yes
5154else
5155 echo "$as_me: failed program was:" >&5
5156sed 's/^/| /' conftest.$ac_ext >&5
5157
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005158 ac_cv_func_gethostbyname=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005159fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005160
5161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005162 conftest$ac_exeext conftest.$ac_ext
5163fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005164{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5165echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005166if test $ac_cv_func_gethostbyname = yes; then
5167 INET_LIB_REQ=
5168else
5169 INET_LIB_REQ=yes
5170fi
5171
5172if test "$INET_LIB_REQ" = yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005173 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5174echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005175if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5176 echo $ECHO_N "(cached) $ECHO_C" >&6
5177else
5178 ac_check_lib_save_LIBS=$LIBS
5179LIBS="-lbsd $LIBS"
5180cat >conftest.$ac_ext <<_ACEOF
5181/* confdefs.h. */
5182_ACEOF
5183cat confdefs.h >>conftest.$ac_ext
5184cat >>conftest.$ac_ext <<_ACEOF
5185/* end confdefs.h. */
5186
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005187/* Override any GCC internal prototype to avoid an error.
5188 Use char because int might match the return type of a GCC
5189 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005190#ifdef __cplusplus
5191extern "C"
5192#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005193char gethostbyname ();
5194int
5195main ()
5196{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005197return gethostbyname ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005198 ;
5199 return 0;
5200}
5201_ACEOF
5202rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005203if { (ac_try="$ac_link"
5204case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207esac
5208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005210 ac_status=$?
5211 grep -v '^ *+' conftest.er1 >conftest.err
5212 rm -f conftest.er1
5213 cat conftest.err >&5
5214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005215 (exit $ac_status); } && {
5216 test -z "$ac_c_werror_flag" ||
5217 test ! -s conftest.err
5218 } && test -s conftest$ac_exeext &&
5219 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005220 ac_cv_lib_bsd_gethostbyname=yes
5221else
5222 echo "$as_me: failed program was:" >&5
5223sed 's/^/| /' conftest.$ac_ext >&5
5224
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005225 ac_cv_lib_bsd_gethostbyname=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005226fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005227
5228rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005229 conftest$ac_exeext conftest.$ac_ext
5230LIBS=$ac_check_lib_save_LIBS
5231fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005232{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
5233echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005234if test $ac_cv_lib_bsd_gethostbyname = yes; then
5235 INET_LIB=-lbsd
5236else
5237 INET_LIB=
5238fi
5239
5240fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005241ac_ext=cpp
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005242ac_cpp='$CXXCPP $CPPFLAGS'
5243ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5244ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5245ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5246
5247
5248
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005249ac_aux_dir=
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005250for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5251 if test -f "$ac_dir/install-sh"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005252 ac_aux_dir=$ac_dir
5253 ac_install_sh="$ac_aux_dir/install-sh -c"
5254 break
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005255 elif test -f "$ac_dir/install.sh"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005256 ac_aux_dir=$ac_dir
5257 ac_install_sh="$ac_aux_dir/install.sh -c"
5258 break
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005259 elif test -f "$ac_dir/shtool"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005260 ac_aux_dir=$ac_dir
5261 ac_install_sh="$ac_aux_dir/shtool install -c"
5262 break
5263 fi
5264done
5265if test -z "$ac_aux_dir"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5267echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005268 { (exit 1); exit 1; }; }
5269fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005270
5271# These three variables are undocumented and unsupported,
5272# and are intended to be withdrawn in a future Autoconf release.
5273# They can cause serious problems if a builder's source tree is in a directory
5274# whose full name contains unusual characters.
5275ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
5276ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
5277ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
5278
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005279
5280# Find a good install program. We prefer a C program (faster),
5281# so one script is as good as another. But avoid the broken or
5282# incompatible versions:
5283# SysV /etc/install, /usr/sbin/install
5284# SunOS /usr/etc/install
5285# IRIX /sbin/install
5286# AIX /bin/install
5287# AmigaOS /C/install, which installs bootblocks on floppy discs
5288# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5289# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5290# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5291# OS/2's system install, which has a completely different semantic
5292# ./install, which can be erroneously created by make from ./install.sh.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005293{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5294echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005295if test -z "$INSTALL"; then
5296if test "${ac_cv_path_install+set}" = set; then
5297 echo $ECHO_N "(cached) $ECHO_C" >&6
5298else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300for as_dir in $PATH
5301do
5302 IFS=$as_save_IFS
5303 test -z "$as_dir" && as_dir=.
5304 # Account for people who put trailing slashes in PATH elements.
5305case $as_dir/ in
5306 ./ | .// | /cC/* | \
5307 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5308 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5309 /usr/ucb/* ) ;;
5310 *)
5311 # OSF1 and SCO ODT 3.0 have their own names for install.
5312 # Don't use installbsd from OSF since it installs stuff as root
5313 # by default.
5314 for ac_prog in ginstall scoinst install; do
5315 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005316 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005317 if test $ac_prog = install &&
5318 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5319 # AIX install. It has an incompatible calling convention.
5320 :
5321 elif test $ac_prog = install &&
5322 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5323 # program-specific install script used by HP pwplus--don't use.
5324 :
5325 else
5326 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5327 break 3
5328 fi
5329 fi
5330 done
5331 done
5332 ;;
5333esac
5334done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005335IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005336
5337
5338fi
5339 if test "${ac_cv_path_install+set}" = set; then
5340 INSTALL=$ac_cv_path_install
5341 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005342 # As a last resort, use the slow shell script. Don't cache a
5343 # value for INSTALL within a source directory, because that will
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005344 # break other packages using the cache if that directory is
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005345 # removed, or if the value is a relative name.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005346 INSTALL=$ac_install_sh
5347 fi
5348fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005349{ echo "$as_me:$LINENO: result: $INSTALL" >&5
5350echo "${ECHO_T}$INSTALL" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005351
5352# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5353# It thinks the first close brace ends the variable substitution.
5354test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5355
5356test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5357
5358test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5359
5360
5361 MKINSTALLDIRS=
5362 if test -n "$ac_aux_dir"; then
5363 case "$ac_aux_dir" in
5364 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
5365 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
5366 esac
5367 fi
5368 if test -z "$MKINSTALLDIRS"; then
5369 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5370 fi
5371
5372
5373
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005374 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
5375echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
5376 # Check whether --enable-nls was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005377if test "${enable_nls+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005378 enableval=$enable_nls; USE_NLS=$enableval
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005379else
5380 USE_NLS=yes
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005381fi
5382
5383 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
5384echo "${ECHO_T}$USE_NLS" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005385
5386
5387
5388
5389
5390
5391# Prepare PATH_SEPARATOR.
5392# The user is always right.
5393if test "${PATH_SEPARATOR+set}" != set; then
5394 echo "#! /bin/sh" >conf$$.sh
5395 echo "exit 0" >>conf$$.sh
5396 chmod +x conf$$.sh
5397 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5398 PATH_SEPARATOR=';'
5399 else
5400 PATH_SEPARATOR=:
5401 fi
5402 rm -f conf$$.sh
5403fi
5404
5405# Find out how to test for executable files. Don't use a zero-byte file,
5406# as systems may use methods other than mode bits to determine executability.
5407cat >conf$$.file <<_ASEOF
5408#! /bin/sh
5409exit 0
5410_ASEOF
5411chmod +x conf$$.file
5412if test -x conf$$.file >/dev/null 2>&1; then
5413 ac_executable_p="test -x"
5414else
5415 ac_executable_p="test -f"
5416fi
5417rm -f conf$$.file
5418
5419# Extract the first word of "msgfmt", so it can be a program name with args.
5420set dummy msgfmt; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005421{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5422echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005423if test "${ac_cv_path_MSGFMT+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5425else
5426 case "$MSGFMT" in
5427 [\\/]* | ?:[\\/]*)
5428 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5429 ;;
5430 *)
5431 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5432 for ac_dir in $PATH; do
5433 IFS="$ac_save_IFS"
5434 test -z "$ac_dir" && ac_dir=.
5435 for ac_exec_ext in '' $ac_executable_extensions; do
5436 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5437 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
5438 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5439 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5440 break 2
5441 fi
5442 fi
5443 done
5444 done
5445 IFS="$ac_save_IFS"
5446 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5447 ;;
5448esac
5449fi
5450MSGFMT="$ac_cv_path_MSGFMT"
5451if test "$MSGFMT" != ":"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005452 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
5453echo "${ECHO_T}$MSGFMT" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005454else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005455 { echo "$as_me:$LINENO: result: no" >&5
5456echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005457fi
5458
5459 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5460set dummy gmsgfmt; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005461{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5462echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005463if test "${ac_cv_path_GMSGFMT+set}" = set; then
5464 echo $ECHO_N "(cached) $ECHO_C" >&6
5465else
5466 case $GMSGFMT in
5467 [\\/]* | ?:[\\/]*)
5468 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5469 ;;
5470 *)
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472for as_dir in $PATH
5473do
5474 IFS=$as_save_IFS
5475 test -z "$as_dir" && as_dir=.
5476 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005478 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5480 break 2
5481 fi
5482done
5483done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005484IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005485
5486 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5487 ;;
5488esac
5489fi
5490GMSGFMT=$ac_cv_path_GMSGFMT
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005491if test -n "$GMSGFMT"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005492 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
5493echo "${ECHO_T}$GMSGFMT" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005494else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005495 { echo "$as_me:$LINENO: result: no" >&5
5496echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005497fi
5498
5499
5500
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005501
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005502# Prepare PATH_SEPARATOR.
5503# The user is always right.
5504if test "${PATH_SEPARATOR+set}" != set; then
5505 echo "#! /bin/sh" >conf$$.sh
5506 echo "exit 0" >>conf$$.sh
5507 chmod +x conf$$.sh
5508 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5509 PATH_SEPARATOR=';'
5510 else
5511 PATH_SEPARATOR=:
5512 fi
5513 rm -f conf$$.sh
5514fi
5515
5516# Find out how to test for executable files. Don't use a zero-byte file,
5517# as systems may use methods other than mode bits to determine executability.
5518cat >conf$$.file <<_ASEOF
5519#! /bin/sh
5520exit 0
5521_ASEOF
5522chmod +x conf$$.file
5523if test -x conf$$.file >/dev/null 2>&1; then
5524 ac_executable_p="test -x"
5525else
5526 ac_executable_p="test -f"
5527fi
5528rm -f conf$$.file
5529
5530# Extract the first word of "xgettext", so it can be a program name with args.
5531set dummy xgettext; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005532{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5533echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005534if test "${ac_cv_path_XGETTEXT+set}" = set; then
5535 echo $ECHO_N "(cached) $ECHO_C" >&6
5536else
5537 case "$XGETTEXT" in
5538 [\\/]* | ?:[\\/]*)
5539 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5540 ;;
5541 *)
5542 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5543 for ac_dir in $PATH; do
5544 IFS="$ac_save_IFS"
5545 test -z "$ac_dir" && ac_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5548 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5549 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5550 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5551 break 2
5552 fi
5553 fi
5554 done
5555 done
5556 IFS="$ac_save_IFS"
5557 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5558 ;;
5559esac
5560fi
5561XGETTEXT="$ac_cv_path_XGETTEXT"
5562if test "$XGETTEXT" != ":"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005563 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
5564echo "${ECHO_T}$XGETTEXT" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005565else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005566 { echo "$as_me:$LINENO: result: no" >&5
5567echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005568fi
5569
5570 rm -f messages.po
5571
5572
5573# Prepare PATH_SEPARATOR.
5574# The user is always right.
5575if test "${PATH_SEPARATOR+set}" != set; then
5576 echo "#! /bin/sh" >conf$$.sh
5577 echo "exit 0" >>conf$$.sh
5578 chmod +x conf$$.sh
5579 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5580 PATH_SEPARATOR=';'
5581 else
5582 PATH_SEPARATOR=:
5583 fi
5584 rm -f conf$$.sh
5585fi
5586
5587# Find out how to test for executable files. Don't use a zero-byte file,
5588# as systems may use methods other than mode bits to determine executability.
5589cat >conf$$.file <<_ASEOF
5590#! /bin/sh
5591exit 0
5592_ASEOF
5593chmod +x conf$$.file
5594if test -x conf$$.file >/dev/null 2>&1; then
5595 ac_executable_p="test -x"
5596else
5597 ac_executable_p="test -f"
5598fi
5599rm -f conf$$.file
5600
5601# Extract the first word of "msgmerge", so it can be a program name with args.
5602set dummy msgmerge; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005603{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005605if test "${ac_cv_path_MSGMERGE+set}" = set; then
5606 echo $ECHO_N "(cached) $ECHO_C" >&6
5607else
5608 case "$MSGMERGE" in
5609 [\\/]* | ?:[\\/]*)
5610 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5611 ;;
5612 *)
5613 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5614 for ac_dir in $PATH; do
5615 IFS="$ac_save_IFS"
5616 test -z "$ac_dir" && ac_dir=.
5617 for ac_exec_ext in '' $ac_executable_extensions; do
5618 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5619 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
5620 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5621 break 2
5622 fi
5623 fi
5624 done
5625 done
5626 IFS="$ac_save_IFS"
5627 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5628 ;;
5629esac
5630fi
5631MSGMERGE="$ac_cv_path_MSGMERGE"
5632if test "$MSGMERGE" != ":"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005633 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
5634echo "${ECHO_T}$MSGMERGE" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005635else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005636 { echo "$as_me:$LINENO: result: no" >&5
5637echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005638fi
5639
5640
5641 if test "$GMSGFMT" != ":"; then
5642 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
5643 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5644 : ;
5645 else
5646 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005647 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
5648echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005649 GMSGFMT=":"
5650 fi
5651 fi
5652
5653 if test "$XGETTEXT" != ":"; then
5654 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
5655 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5656 : ;
5657 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005658 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
5659echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005660 XGETTEXT=":"
5661 fi
5662 rm -f messages.po
5663 fi
5664
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005665 ac_config_commands="$ac_config_commands default-1"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005666
5667
5668# Make sure we can run config.sub.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005669$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5670 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5671echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005672 { (exit 1); exit 1; }; }
5673
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005674{ echo "$as_me:$LINENO: checking build system type" >&5
5675echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005676if test "${ac_cv_build+set}" = set; then
5677 echo $ECHO_N "(cached) $ECHO_C" >&6
5678else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005679 ac_build_alias=$build_alias
5680test "x$ac_build_alias" = x &&
5681 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5682test "x$ac_build_alias" = x &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005683 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5684echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5685 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005686ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5687 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5688echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005689 { (exit 1); exit 1; }; }
5690
5691fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005692{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5693echo "${ECHO_T}$ac_cv_build" >&6; }
5694case $ac_cv_build in
5695*-*-*) ;;
5696*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5697echo "$as_me: error: invalid value of canonical build" >&2;}
5698 { (exit 1); exit 1; }; };;
5699esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005700build=$ac_cv_build
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005701ac_save_IFS=$IFS; IFS='-'
5702set x $ac_cv_build
5703shift
5704build_cpu=$1
5705build_vendor=$2
5706shift; shift
5707# Remember, the first character of IFS is used to create $*,
5708# except with old shells:
5709build_os=$*
5710IFS=$ac_save_IFS
5711case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005712
5713
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005714{ echo "$as_me:$LINENO: checking host system type" >&5
5715echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005716if test "${ac_cv_host+set}" = set; then
5717 echo $ECHO_N "(cached) $ECHO_C" >&6
5718else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005719 if test "x$host_alias" = x; then
5720 ac_cv_host=$ac_cv_build
5721else
5722 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5723 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5724echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005725 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005726fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005727
5728fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005729{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5730echo "${ECHO_T}$ac_cv_host" >&6; }
5731case $ac_cv_host in
5732*-*-*) ;;
5733*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5734echo "$as_me: error: invalid value of canonical host" >&2;}
5735 { (exit 1); exit 1; }; };;
5736esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005737host=$ac_cv_host
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005738ac_save_IFS=$IFS; IFS='-'
5739set x $ac_cv_host
5740shift
5741host_cpu=$1
5742host_vendor=$2
5743shift; shift
5744# Remember, the first character of IFS is used to create $*,
5745# except with old shells:
5746host_os=$*
5747IFS=$ac_save_IFS
5748case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005749
5750
5751
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005752 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
5753echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005754if test "${ac_cv_lib_cposix_strerror+set}" = set; then
5755 echo $ECHO_N "(cached) $ECHO_C" >&6
5756else
5757 ac_check_lib_save_LIBS=$LIBS
5758LIBS="-lcposix $LIBS"
5759cat >conftest.$ac_ext <<_ACEOF
5760/* confdefs.h. */
5761_ACEOF
5762cat confdefs.h >>conftest.$ac_ext
5763cat >>conftest.$ac_ext <<_ACEOF
5764/* end confdefs.h. */
5765
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005766/* Override any GCC internal prototype to avoid an error.
5767 Use char because int might match the return type of a GCC
5768 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005769#ifdef __cplusplus
5770extern "C"
5771#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005772char strerror ();
5773int
5774main ()
5775{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005776return strerror ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005777 ;
5778 return 0;
5779}
5780_ACEOF
5781rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005782if { (ac_try="$ac_link"
5783case "(($ac_try" in
5784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5785 *) ac_try_echo=$ac_try;;
5786esac
5787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5788 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005789 ac_status=$?
5790 grep -v '^ *+' conftest.er1 >conftest.err
5791 rm -f conftest.er1
5792 cat conftest.err >&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005794 (exit $ac_status); } && {
5795 test -z "$ac_cxx_werror_flag" ||
5796 test ! -s conftest.err
5797 } && test -s conftest$ac_exeext &&
5798 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005799 ac_cv_lib_cposix_strerror=yes
5800else
5801 echo "$as_me: failed program was:" >&5
5802sed 's/^/| /' conftest.$ac_ext >&5
5803
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005804 ac_cv_lib_cposix_strerror=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005805fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005806
5807rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005808 conftest$ac_exeext conftest.$ac_ext
5809LIBS=$ac_check_lib_save_LIBS
5810fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005811{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
5812echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005813if test $ac_cv_lib_cposix_strerror = yes; then
5814 LIBS="$LIBS -lcposix"
5815fi
5816
5817
5818
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005819{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5820echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5821if test "${ac_cv_path_GREP+set}" = set; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005822 echo $ECHO_N "(cached) $ECHO_C" >&6
5823else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005824 # Extract the first word of "grep ggrep" to use in msg output
5825if test -z "$GREP"; then
5826set dummy grep ggrep; ac_prog_name=$2
5827if test "${ac_cv_path_GREP+set}" = set; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829else
5830 ac_path_GREP_found=false
5831# Loop through the user's path and test for each of PROGNAME-LIST
5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5833for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5834do
5835 IFS=$as_save_IFS
5836 test -z "$as_dir" && as_dir=.
5837 for ac_prog in grep ggrep; do
5838 for ac_exec_ext in '' $ac_executable_extensions; do
5839 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5840 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5841 # Check for GNU ac_path_GREP and select it if it is found.
5842 # Check for GNU $ac_path_GREP
5843case `"$ac_path_GREP" --version 2>&1` in
5844*GNU*)
5845 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5846*)
5847 ac_count=0
5848 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5849 while :
5850 do
5851 cat "conftest.in" "conftest.in" >"conftest.tmp"
5852 mv "conftest.tmp" "conftest.in"
5853 cp "conftest.in" "conftest.nl"
5854 echo 'GREP' >> "conftest.nl"
5855 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5856 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5857 ac_count=`expr $ac_count + 1`
5858 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5859 # Best one so far, save it but keep looking for a better one
5860 ac_cv_path_GREP="$ac_path_GREP"
5861 ac_path_GREP_max=$ac_count
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005862 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005863 # 10*(2^10) chars as input seems more than enough
5864 test $ac_count -gt 10 && break
5865 done
5866 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5867esac
5868
5869
5870 $ac_path_GREP_found && break 3
5871 done
5872done
5873
5874done
5875IFS=$as_save_IFS
5876
5877
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005878fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005879
5880GREP="$ac_cv_path_GREP"
5881if test -z "$GREP"; then
5882 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5883echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5884 { (exit 1); exit 1; }; }
5885fi
5886
5887else
5888 ac_cv_path_GREP=$GREP
5889fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005890
5891
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00005892fi
5893{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5894echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5895 GREP="$ac_cv_path_GREP"
5896
5897
5898{ echo "$as_me:$LINENO: checking for egrep" >&5
5899echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5900if test "${ac_cv_path_EGREP+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902else
5903 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5904 then ac_cv_path_EGREP="$GREP -E"
5905 else
5906 # Extract the first word of "egrep" to use in msg output
5907if test -z "$EGREP"; then
5908set dummy egrep; ac_prog_name=$2
5909if test "${ac_cv_path_EGREP+set}" = set; then
5910 echo $ECHO_N "(cached) $ECHO_C" >&6
5911else
5912 ac_path_EGREP_found=false
5913# Loop through the user's path and test for each of PROGNAME-LIST
5914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5915for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5916do
5917 IFS=$as_save_IFS
5918 test -z "$as_dir" && as_dir=.
5919 for ac_prog in egrep; do
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5922 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5923 # Check for GNU ac_path_EGREP and select it if it is found.
5924 # Check for GNU $ac_path_EGREP
5925case `"$ac_path_EGREP" --version 2>&1` in
5926*GNU*)
5927 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5928*)
5929 ac_count=0
5930 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5931 while :
5932 do
5933 cat "conftest.in" "conftest.in" >"conftest.tmp"
5934 mv "conftest.tmp" "conftest.in"
5935 cp "conftest.in" "conftest.nl"
5936 echo 'EGREP' >> "conftest.nl"
5937 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5938 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5939 ac_count=`expr $ac_count + 1`
5940 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5941 # Best one so far, save it but keep looking for a better one
5942 ac_cv_path_EGREP="$ac_path_EGREP"
5943 ac_path_EGREP_max=$ac_count
5944 fi
5945 # 10*(2^10) chars as input seems more than enough
5946 test $ac_count -gt 10 && break
5947 done
5948 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5949esac
5950
5951
5952 $ac_path_EGREP_found && break 3
5953 done
5954done
5955
5956done
5957IFS=$as_save_IFS
5958
5959
5960fi
5961
5962EGREP="$ac_cv_path_EGREP"
5963if test -z "$EGREP"; then
5964 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5965echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5966 { (exit 1); exit 1; }; }
5967fi
5968
5969else
5970 ac_cv_path_EGREP=$EGREP
5971fi
5972
5973
5974 fi
5975fi
5976{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5977echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5978 EGREP="$ac_cv_path_EGREP"
5979
5980
5981{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5982echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00005983if test "${ac_cv_header_stdc+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985else
5986 cat >conftest.$ac_ext <<_ACEOF
5987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
5992#include <stdlib.h>
5993#include <stdarg.h>
5994#include <string.h>
5995#include <float.h>
5996
5997int
5998main ()
5999{
6000
6001 ;
6002 return 0;
6003}
6004_ACEOF
6005rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006006if { (ac_try="$ac_compile"
6007case "(($ac_try" in
6008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6009 *) ac_try_echo=$ac_try;;
6010esac
6011eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006013 ac_status=$?
6014 grep -v '^ *+' conftest.er1 >conftest.err
6015 rm -f conftest.er1
6016 cat conftest.err >&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006018 (exit $ac_status); } && {
6019 test -z "$ac_cxx_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006022 ac_cv_header_stdc=yes
6023else
6024 echo "$as_me: failed program was:" >&5
6025sed 's/^/| /' conftest.$ac_ext >&5
6026
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006027 ac_cv_header_stdc=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006028fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006029
6030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006031
6032if test $ac_cv_header_stdc = yes; then
6033 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6034 cat >conftest.$ac_ext <<_ACEOF
6035/* confdefs.h. */
6036_ACEOF
6037cat confdefs.h >>conftest.$ac_ext
6038cat >>conftest.$ac_ext <<_ACEOF
6039/* end confdefs.h. */
6040#include <string.h>
6041
6042_ACEOF
6043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then
6045 :
6046else
6047 ac_cv_header_stdc=no
6048fi
6049rm -f conftest*
6050
6051fi
6052
6053if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat >conftest.$ac_ext <<_ACEOF
6056/* confdefs.h. */
6057_ACEOF
6058cat confdefs.h >>conftest.$ac_ext
6059cat >>conftest.$ac_ext <<_ACEOF
6060/* end confdefs.h. */
6061#include <stdlib.h>
6062
6063_ACEOF
6064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6065 $EGREP "free" >/dev/null 2>&1; then
6066 :
6067else
6068 ac_cv_header_stdc=no
6069fi
6070rm -f conftest*
6071
6072fi
6073
6074if test $ac_cv_header_stdc = yes; then
6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6076 if test "$cross_compiling" = yes; then
6077 :
6078else
6079 cat >conftest.$ac_ext <<_ACEOF
6080/* confdefs.h. */
6081_ACEOF
6082cat confdefs.h >>conftest.$ac_ext
6083cat >>conftest.$ac_ext <<_ACEOF
6084/* end confdefs.h. */
6085#include <ctype.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006086#include <stdlib.h>
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006087#if ((' ' & 0x0FF) == 0x020)
6088# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6089# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6090#else
6091# define ISLOWER(c) \
6092 (('a' <= (c) && (c) <= 'i') \
6093 || ('j' <= (c) && (c) <= 'r') \
6094 || ('s' <= (c) && (c) <= 'z'))
6095# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6096#endif
6097
6098#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6099int
6100main ()
6101{
6102 int i;
6103 for (i = 0; i < 256; i++)
6104 if (XOR (islower (i), ISLOWER (i))
6105 || toupper (i) != TOUPPER (i))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006106 return 2;
6107 return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006108}
6109_ACEOF
6110rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006111if { (ac_try="$ac_link"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006121 { (case "(($ac_try" in
6122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6123 *) ac_try_echo=$ac_try;;
6124esac
6125eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6126 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006127 ac_status=$?
6128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6129 (exit $ac_status); }; }; then
6130 :
6131else
6132 echo "$as_me: program exited with status $ac_status" >&5
6133echo "$as_me: failed program was:" >&5
6134sed 's/^/| /' conftest.$ac_ext >&5
6135
6136( exit $ac_status )
6137ac_cv_header_stdc=no
6138fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006139rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6140fi
6141
6142
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006143fi
6144fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006145{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6146echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006147if test $ac_cv_header_stdc = yes; then
6148
6149cat >>confdefs.h <<\_ACEOF
6150#define STDC_HEADERS 1
6151_ACEOF
6152
6153fi
6154
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006155{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6156echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006157if test "${ac_cv_c_const+set}" = set; then
6158 echo $ECHO_N "(cached) $ECHO_C" >&6
6159else
6160 cat >conftest.$ac_ext <<_ACEOF
6161/* confdefs.h. */
6162_ACEOF
6163cat confdefs.h >>conftest.$ac_ext
6164cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */
6166
6167int
6168main ()
6169{
6170/* FIXME: Include the comments suggested by Paul. */
6171#ifndef __cplusplus
6172 /* Ultrix mips cc rejects this. */
6173 typedef int charset[2];
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006174 const charset cs;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006175 /* SunOS 4.1.1 cc rejects this. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006176 char const *const *pcpcc;
6177 char **ppc;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006178 /* NEC SVR4.0.2 mips cc rejects this. */
6179 struct point {int x, y;};
6180 static struct point const zero = {0,0};
6181 /* AIX XL C 1.02.0.0 rejects this.
6182 It does not let you subtract one const X* pointer from another in
6183 an arm of an if-expression whose if-part is not a constant
6184 expression */
6185 const char *g = "string";
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006186 pcpcc = &g + (g ? g-g : 0);
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006187 /* HPUX 7.0 cc rejects these. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006188 ++pcpcc;
6189 ppc = (char**) pcpcc;
6190 pcpcc = (char const *const *) ppc;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006191 { /* SCO 3.2v4 cc rejects this. */
6192 char *t;
6193 char const *s = 0 ? (char *) 0 : (char const *) 0;
6194
6195 *t++ = 0;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006196 if (s) return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006197 }
6198 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6199 int x[] = {25, 17};
6200 const int *foo = &x[0];
6201 ++foo;
6202 }
6203 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6204 typedef const int *iptr;
6205 iptr p = 0;
6206 ++p;
6207 }
6208 { /* AIX XL C 1.02.0.0 rejects this saying
6209 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6210 struct s { int j; const int *ap[3]; };
6211 struct s *b; b->j = 5;
6212 }
6213 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6214 const int foo = 10;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006215 if (!foo) return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006216 }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006217 return !cs[0] && !zero.x;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006218#endif
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006225if { (ac_try="$ac_compile"
6226case "(($ac_try" in
6227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228 *) ac_try_echo=$ac_try;;
6229esac
6230eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6231 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006232 ac_status=$?
6233 grep -v '^ *+' conftest.er1 >conftest.err
6234 rm -f conftest.er1
6235 cat conftest.err >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006237 (exit $ac_status); } && {
6238 test -z "$ac_cxx_werror_flag" ||
6239 test ! -s conftest.err
6240 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006241 ac_cv_c_const=yes
6242else
6243 echo "$as_me: failed program was:" >&5
6244sed 's/^/| /' conftest.$ac_ext >&5
6245
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006246 ac_cv_c_const=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006247fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006248
6249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006250fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006251{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6252echo "${ECHO_T}$ac_cv_c_const" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006253if test $ac_cv_c_const = no; then
6254
6255cat >>confdefs.h <<\_ACEOF
6256#define const
6257_ACEOF
6258
6259fi
6260
6261
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006262 { echo "$as_me:$LINENO: checking for signed" >&5
6263echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006264if test "${bh_cv_c_signed+set}" = set; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266else
6267 cat >conftest.$ac_ext <<_ACEOF
6268/* confdefs.h. */
6269_ACEOF
6270cat confdefs.h >>conftest.$ac_ext
6271cat >>conftest.$ac_ext <<_ACEOF
6272/* end confdefs.h. */
6273
6274int
6275main ()
6276{
6277signed char x;
6278 ;
6279 return 0;
6280}
6281_ACEOF
6282rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006283if { (ac_try="$ac_compile"
6284case "(($ac_try" in
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6287esac
6288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6289 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006290 ac_status=$?
6291 grep -v '^ *+' conftest.er1 >conftest.err
6292 rm -f conftest.er1
6293 cat conftest.err >&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006295 (exit $ac_status); } && {
6296 test -z "$ac_cxx_werror_flag" ||
6297 test ! -s conftest.err
6298 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006299 bh_cv_c_signed=yes
6300else
6301 echo "$as_me: failed program was:" >&5
6302sed 's/^/| /' conftest.$ac_ext >&5
6303
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006304 bh_cv_c_signed=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006305fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006306
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006308fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006309{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
6310echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006311 if test $bh_cv_c_signed = no; then
6312
6313cat >>confdefs.h <<\_ACEOF
6314#define signed
6315_ACEOF
6316
6317 fi
6318
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006319{ echo "$as_me:$LINENO: checking for inline" >&5
6320echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006321if test "${ac_cv_c_inline+set}" = set; then
6322 echo $ECHO_N "(cached) $ECHO_C" >&6
6323else
6324 ac_cv_c_inline=no
6325for ac_kw in inline __inline__ __inline; do
6326 cat >conftest.$ac_ext <<_ACEOF
6327/* confdefs.h. */
6328_ACEOF
6329cat confdefs.h >>conftest.$ac_ext
6330cat >>conftest.$ac_ext <<_ACEOF
6331/* end confdefs.h. */
6332#ifndef __cplusplus
6333typedef int foo_t;
6334static $ac_kw foo_t static_foo () {return 0; }
6335$ac_kw foo_t foo () {return 0; }
6336#endif
6337
6338_ACEOF
6339rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006340if { (ac_try="$ac_compile"
6341case "(($ac_try" in
6342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343 *) ac_try_echo=$ac_try;;
6344esac
6345eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006347 ac_status=$?
6348 grep -v '^ *+' conftest.er1 >conftest.err
6349 rm -f conftest.er1
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006352 (exit $ac_status); } && {
6353 test -z "$ac_cxx_werror_flag" ||
6354 test ! -s conftest.err
6355 } && test -s conftest.$ac_objext; then
6356 ac_cv_c_inline=$ac_kw
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006357else
6358 echo "$as_me: failed program was:" >&5
6359sed 's/^/| /' conftest.$ac_ext >&5
6360
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006361
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006362fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006363
6364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 test "$ac_cv_c_inline" != no && break
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006366done
6367
6368fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006369{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6370echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006371
6372
6373case $ac_cv_c_inline in
6374 inline | yes) ;;
6375 *)
6376 case $ac_cv_c_inline in
6377 no) ac_val=;;
6378 *) ac_val=$ac_cv_c_inline;;
6379 esac
6380 cat >>confdefs.h <<_ACEOF
6381#ifndef __cplusplus
6382#define inline $ac_val
6383#endif
6384_ACEOF
6385 ;;
6386esac
6387
6388# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6399 inttypes.h stdint.h unistd.h
6400do
6401as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006402{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6404if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006405 echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407 cat >conftest.$ac_ext <<_ACEOF
6408/* confdefs.h. */
6409_ACEOF
6410cat confdefs.h >>conftest.$ac_ext
6411cat >>conftest.$ac_ext <<_ACEOF
6412/* end confdefs.h. */
6413$ac_includes_default
6414
6415#include <$ac_header>
6416_ACEOF
6417rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006418if { (ac_try="$ac_compile"
6419case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422esac
6423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006430 (exit $ac_status); } && {
6431 test -z "$ac_cxx_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006434 eval "$as_ac_Header=yes"
6435else
6436 echo "$as_me: failed program was:" >&5
6437sed 's/^/| /' conftest.$ac_ext >&5
6438
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006439 eval "$as_ac_Header=no"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006440fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006441
6442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006443fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006444ac_res=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006447if test `eval echo '${'$as_ac_Header'}'` = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6450_ACEOF
6451
6452fi
6453
6454done
6455
6456
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006457{ echo "$as_me:$LINENO: checking for off_t" >&5
6458echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006459if test "${ac_cv_type_off_t+set}" = set; then
6460 echo $ECHO_N "(cached) $ECHO_C" >&6
6461else
6462 cat >conftest.$ac_ext <<_ACEOF
6463/* confdefs.h. */
6464_ACEOF
6465cat confdefs.h >>conftest.$ac_ext
6466cat >>conftest.$ac_ext <<_ACEOF
6467/* end confdefs.h. */
6468$ac_includes_default
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006469typedef off_t ac__type_new_;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006470int
6471main ()
6472{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006473if ((ac__type_new_ *) 0)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006474 return 0;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006475if (sizeof (ac__type_new_))
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006476 return 0;
6477 ;
6478 return 0;
6479}
6480_ACEOF
6481rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006482if { (ac_try="$ac_compile"
6483case "(($ac_try" in
6484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6485 *) ac_try_echo=$ac_try;;
6486esac
6487eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006489 ac_status=$?
6490 grep -v '^ *+' conftest.er1 >conftest.err
6491 rm -f conftest.er1
6492 cat conftest.err >&5
6493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006494 (exit $ac_status); } && {
6495 test -z "$ac_cxx_werror_flag" ||
6496 test ! -s conftest.err
6497 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006498 ac_cv_type_off_t=yes
6499else
6500 echo "$as_me: failed program was:" >&5
6501sed 's/^/| /' conftest.$ac_ext >&5
6502
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006503 ac_cv_type_off_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006504fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006505
6506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006507fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006508{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6509echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006510if test $ac_cv_type_off_t = yes; then
6511 :
6512else
6513
6514cat >>confdefs.h <<_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006515#define off_t long int
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006516_ACEOF
6517
6518fi
6519
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006520{ echo "$as_me:$LINENO: checking for size_t" >&5
6521echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006522if test "${ac_cv_type_size_t+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525 cat >conftest.$ac_ext <<_ACEOF
6526/* confdefs.h. */
6527_ACEOF
6528cat confdefs.h >>conftest.$ac_ext
6529cat >>conftest.$ac_ext <<_ACEOF
6530/* end confdefs.h. */
6531$ac_includes_default
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006532typedef size_t ac__type_new_;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006533int
6534main ()
6535{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006536if ((ac__type_new_ *) 0)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006537 return 0;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006538if (sizeof (ac__type_new_))
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006539 return 0;
6540 ;
6541 return 0;
6542}
6543_ACEOF
6544rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006545if { (ac_try="$ac_compile"
6546case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549esac
6550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006557 (exit $ac_status); } && {
6558 test -z "$ac_cxx_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006561 ac_cv_type_size_t=yes
6562else
6563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006566 ac_cv_type_size_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006567fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006568
6569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006570fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006571{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
6572echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006573if test $ac_cv_type_size_t = yes; then
6574 :
6575else
6576
6577cat >>confdefs.h <<_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006578#define size_t unsigned int
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006579_ACEOF
6580
6581fi
6582
6583
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006584 { echo "$as_me:$LINENO: checking for long long" >&5
6585echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006586if test "${ac_cv_type_long_long+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6588else
6589 cat >conftest.$ac_ext <<_ACEOF
6590/* confdefs.h. */
6591_ACEOF
6592cat confdefs.h >>conftest.$ac_ext
6593cat >>conftest.$ac_ext <<_ACEOF
6594/* end confdefs.h. */
6595long long ll = 1LL; int i = 63;
6596int
6597main ()
6598{
6599long long llmax = (long long) -1;
6600 return ll << i | ll >> i | llmax / ll | llmax % ll;
6601 ;
6602 return 0;
6603}
6604_ACEOF
6605rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006606if { (ac_try="$ac_link"
6607case "(($ac_try" in
6608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609 *) ac_try_echo=$ac_try;;
6610esac
6611eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6612 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006613 ac_status=$?
6614 grep -v '^ *+' conftest.er1 >conftest.err
6615 rm -f conftest.er1
6616 cat conftest.err >&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006618 (exit $ac_status); } && {
6619 test -z "$ac_cxx_werror_flag" ||
6620 test ! -s conftest.err
6621 } && test -s conftest$ac_exeext &&
6622 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006623 ac_cv_type_long_long=yes
6624else
6625 echo "$as_me: failed program was:" >&5
6626sed 's/^/| /' conftest.$ac_ext >&5
6627
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006628 ac_cv_type_long_long=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006629fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006630
6631rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006632 conftest$ac_exeext conftest.$ac_ext
6633fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006634{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
6635echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006636 if test $ac_cv_type_long_long = yes; then
6637
6638cat >>confdefs.h <<\_ACEOF
6639#define HAVE_LONG_LONG 1
6640_ACEOF
6641
6642 fi
6643
6644
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006645 { echo "$as_me:$LINENO: checking for long double" >&5
6646echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006647if test "${gt_cv_c_long_double+set}" = set; then
6648 echo $ECHO_N "(cached) $ECHO_C" >&6
6649else
6650 if test "$GCC" = yes; then
6651 gt_cv_c_long_double=yes
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654/* confdefs.h. */
6655_ACEOF
6656cat confdefs.h >>conftest.$ac_ext
6657cat >>conftest.$ac_ext <<_ACEOF
6658/* end confdefs.h. */
6659
6660 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
6661 long double foo = 0.0;
6662 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
6663 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
6664
6665int
6666main ()
6667{
6668
6669 ;
6670 return 0;
6671}
6672_ACEOF
6673rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006674if { (ac_try="$ac_compile"
6675case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678esac
6679eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006686 (exit $ac_status); } && {
6687 test -z "$ac_cxx_werror_flag" ||
6688 test ! -s conftest.err
6689 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006690 gt_cv_c_long_double=yes
6691else
6692 echo "$as_me: failed program was:" >&5
6693sed 's/^/| /' conftest.$ac_ext >&5
6694
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006695 gt_cv_c_long_double=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006696fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006697
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006699 fi
6700fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006701{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
6702echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006703 if test $gt_cv_c_long_double = yes; then
6704
6705cat >>confdefs.h <<\_ACEOF
6706#define HAVE_LONG_DOUBLE 1
6707_ACEOF
6708
6709 fi
6710
6711
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006712 { echo "$as_me:$LINENO: checking for wchar_t" >&5
6713echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006714if test "${gt_cv_c_wchar_t+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716else
6717 cat >conftest.$ac_ext <<_ACEOF
6718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
6723#include <stddef.h>
6724 wchar_t foo = (wchar_t)'\0';
6725int
6726main ()
6727{
6728
6729 ;
6730 return 0;
6731}
6732_ACEOF
6733rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006734if { (ac_try="$ac_compile"
6735case "(($ac_try" in
6736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6737 *) ac_try_echo=$ac_try;;
6738esac
6739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6740 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006741 ac_status=$?
6742 grep -v '^ *+' conftest.er1 >conftest.err
6743 rm -f conftest.er1
6744 cat conftest.err >&5
6745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006746 (exit $ac_status); } && {
6747 test -z "$ac_cxx_werror_flag" ||
6748 test ! -s conftest.err
6749 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006750 gt_cv_c_wchar_t=yes
6751else
6752 echo "$as_me: failed program was:" >&5
6753sed 's/^/| /' conftest.$ac_ext >&5
6754
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006755 gt_cv_c_wchar_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006756fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006757
6758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006759fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006760{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
6761echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006762 if test $gt_cv_c_wchar_t = yes; then
6763
6764cat >>confdefs.h <<\_ACEOF
6765#define HAVE_WCHAR_T 1
6766_ACEOF
6767
6768 fi
6769
6770
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006771 { echo "$as_me:$LINENO: checking for wint_t" >&5
6772echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006773if test "${gt_cv_c_wint_t+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775else
6776 cat >conftest.$ac_ext <<_ACEOF
6777/* confdefs.h. */
6778_ACEOF
6779cat confdefs.h >>conftest.$ac_ext
6780cat >>conftest.$ac_ext <<_ACEOF
6781/* end confdefs.h. */
6782#include <wchar.h>
6783 wint_t foo = (wchar_t)'\0';
6784int
6785main ()
6786{
6787
6788 ;
6789 return 0;
6790}
6791_ACEOF
6792rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006793if { (ac_try="$ac_compile"
6794case "(($ac_try" in
6795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6796 *) ac_try_echo=$ac_try;;
6797esac
6798eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6799 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006800 ac_status=$?
6801 grep -v '^ *+' conftest.er1 >conftest.err
6802 rm -f conftest.er1
6803 cat conftest.err >&5
6804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006805 (exit $ac_status); } && {
6806 test -z "$ac_cxx_werror_flag" ||
6807 test ! -s conftest.err
6808 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006809 gt_cv_c_wint_t=yes
6810else
6811 echo "$as_me: failed program was:" >&5
6812sed 's/^/| /' conftest.$ac_ext >&5
6813
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006814 gt_cv_c_wint_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006815fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006816
6817rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006818fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006819{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
6820echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006821 if test $gt_cv_c_wint_t = yes; then
6822
6823cat >>confdefs.h <<\_ACEOF
6824#define HAVE_WINT_T 1
6825_ACEOF
6826
6827 fi
6828
6829
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006830 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6831echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006832if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6834else
6835 cat >conftest.$ac_ext <<_ACEOF
6836/* confdefs.h. */
6837_ACEOF
6838cat confdefs.h >>conftest.$ac_ext
6839cat >>conftest.$ac_ext <<_ACEOF
6840/* end confdefs.h. */
6841#include <sys/types.h>
6842#include <inttypes.h>
6843int
6844main ()
6845{
6846uintmax_t i = (uintmax_t) -1;
6847 ;
6848 return 0;
6849}
6850_ACEOF
6851rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006852if { (ac_try="$ac_compile"
6853case "(($ac_try" in
6854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6855 *) ac_try_echo=$ac_try;;
6856esac
6857eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6858 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006859 ac_status=$?
6860 grep -v '^ *+' conftest.er1 >conftest.err
6861 rm -f conftest.er1
6862 cat conftest.err >&5
6863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006864 (exit $ac_status); } && {
6865 test -z "$ac_cxx_werror_flag" ||
6866 test ! -s conftest.err
6867 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006868 jm_ac_cv_header_inttypes_h=yes
6869else
6870 echo "$as_me: failed program was:" >&5
6871sed 's/^/| /' conftest.$ac_ext >&5
6872
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006873 jm_ac_cv_header_inttypes_h=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006874fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006875
6876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006877fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006878{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
6879echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006880 if test $jm_ac_cv_header_inttypes_h = yes; then
6881
6882cat >>confdefs.h <<_ACEOF
6883#define HAVE_INTTYPES_H_WITH_UINTMAX 1
6884_ACEOF
6885
6886 fi
6887
6888
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006889 { echo "$as_me:$LINENO: checking for stdint.h" >&5
6890echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006891if test "${jm_ac_cv_header_stdint_h+set}" = set; then
6892 echo $ECHO_N "(cached) $ECHO_C" >&6
6893else
6894 cat >conftest.$ac_ext <<_ACEOF
6895/* confdefs.h. */
6896_ACEOF
6897cat confdefs.h >>conftest.$ac_ext
6898cat >>conftest.$ac_ext <<_ACEOF
6899/* end confdefs.h. */
6900#include <sys/types.h>
6901#include <stdint.h>
6902int
6903main ()
6904{
6905uintmax_t i = (uintmax_t) -1;
6906 ;
6907 return 0;
6908}
6909_ACEOF
6910rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006911if { (ac_try="$ac_compile"
6912case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915esac
6916eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006923 (exit $ac_status); } && {
6924 test -z "$ac_cxx_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006927 jm_ac_cv_header_stdint_h=yes
6928else
6929 echo "$as_me: failed program was:" >&5
6930sed 's/^/| /' conftest.$ac_ext >&5
6931
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006932 jm_ac_cv_header_stdint_h=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006933fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006934
6935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006936fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006937{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
6938echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006939 if test $jm_ac_cv_header_stdint_h = yes; then
6940
6941cat >>confdefs.h <<_ACEOF
6942#define HAVE_STDINT_H_WITH_UINTMAX 1
6943_ACEOF
6944
6945 fi
6946
6947
6948
6949
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006950 { echo "$as_me:$LINENO: checking for intmax_t" >&5
6951echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006952if test "${gt_cv_c_intmax_t+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961
6962#include <stddef.h>
6963#include <stdlib.h>
6964#if HAVE_STDINT_H_WITH_UINTMAX
6965#include <stdint.h>
6966#endif
6967#if HAVE_INTTYPES_H_WITH_UINTMAX
6968#include <inttypes.h>
6969#endif
6970
6971int
6972main ()
6973{
6974intmax_t x = -1;
6975 ;
6976 return 0;
6977}
6978_ACEOF
6979rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006980if { (ac_try="$ac_compile"
6981case "(($ac_try" in
6982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6984esac
6985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006987 ac_status=$?
6988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00006992 (exit $ac_status); } && {
6993 test -z "$ac_cxx_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00006996 gt_cv_c_intmax_t=yes
6997else
6998 echo "$as_me: failed program was:" >&5
6999sed 's/^/| /' conftest.$ac_ext >&5
7000
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007001 gt_cv_c_intmax_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007002fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007003
7004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007005fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007006{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
7007echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007008 if test $gt_cv_c_intmax_t = yes; then
7009
7010cat >>confdefs.h <<\_ACEOF
7011#define HAVE_INTMAX_T 1
7012_ACEOF
7013
7014 fi
7015
7016
7017
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007018 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
7019echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007020if test "${gt_cv_func_printf_posix+set}" = set; then
7021 echo $ECHO_N "(cached) $ECHO_C" >&6
7022else
7023
7024 if test "$cross_compiling" = yes; then
7025
7026 cat >conftest.$ac_ext <<_ACEOF
7027/* confdefs.h. */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h. */
7032
7033#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
7034 notposix
7035#endif
7036
7037_ACEOF
7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7039 $EGREP "notposix" >/dev/null 2>&1; then
7040 gt_cv_func_printf_posix="guessing no"
7041else
7042 gt_cv_func_printf_posix="guessing yes"
7043fi
7044rm -f conftest*
7045
7046
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054
7055#include <stdio.h>
7056#include <string.h>
7057/* The string "%2$d %1$d", with dollar characters protected from the shell's
7058 dollar expansion (possibly an autoconf bug). */
7059static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
7060static char buf[100];
7061int main ()
7062{
7063 sprintf (buf, format, 33, 55);
7064 return (strcmp (buf, "55 33") != 0);
7065}
7066_ACEOF
7067rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007068if { (ac_try="$ac_link"
7069case "(($ac_try" in
7070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7072esac
7073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007075 ac_status=$?
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007078 { (case "(($ac_try" in
7079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7080 *) ac_try_echo=$ac_try;;
7081esac
7082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007084 ac_status=$?
7085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7086 (exit $ac_status); }; }; then
7087 gt_cv_func_printf_posix=yes
7088else
7089 echo "$as_me: program exited with status $ac_status" >&5
7090echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093( exit $ac_status )
7094gt_cv_func_printf_posix=no
7095fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007096rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007097fi
7098
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007099
7100
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007101fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007102{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
7103echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007104 case $gt_cv_func_printf_posix in
7105 *yes)
7106
7107cat >>confdefs.h <<\_ACEOF
7108#define HAVE_POSIX_PRINTF 1
7109_ACEOF
7110
7111 ;;
7112 esac
7113
7114# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7115# for constant arguments. Useless!
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007116{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
7117echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007118if test "${ac_cv_working_alloca_h+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120else
7121 cat >conftest.$ac_ext <<_ACEOF
7122/* confdefs.h. */
7123_ACEOF
7124cat confdefs.h >>conftest.$ac_ext
7125cat >>conftest.$ac_ext <<_ACEOF
7126/* end confdefs.h. */
7127#include <alloca.h>
7128int
7129main ()
7130{
7131char *p = (char *) alloca (2 * sizeof (int));
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007132 if (p) return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007133 ;
7134 return 0;
7135}
7136_ACEOF
7137rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007138if { (ac_try="$ac_link"
7139case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142esac
7143eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007150 (exit $ac_status); } && {
7151 test -z "$ac_cxx_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest$ac_exeext &&
7154 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007155 ac_cv_working_alloca_h=yes
7156else
7157 echo "$as_me: failed program was:" >&5
7158sed 's/^/| /' conftest.$ac_ext >&5
7159
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007160 ac_cv_working_alloca_h=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007161fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007162
7163rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007164 conftest$ac_exeext conftest.$ac_ext
7165fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007166{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
7167echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007168if test $ac_cv_working_alloca_h = yes; then
7169
7170cat >>confdefs.h <<\_ACEOF
7171#define HAVE_ALLOCA_H 1
7172_ACEOF
7173
7174fi
7175
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007176{ echo "$as_me:$LINENO: checking for alloca" >&5
7177echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007178if test "${ac_cv_func_alloca_works+set}" = set; then
7179 echo $ECHO_N "(cached) $ECHO_C" >&6
7180else
7181 cat >conftest.$ac_ext <<_ACEOF
7182/* confdefs.h. */
7183_ACEOF
7184cat confdefs.h >>conftest.$ac_ext
7185cat >>conftest.$ac_ext <<_ACEOF
7186/* end confdefs.h. */
7187#ifdef __GNUC__
7188# define alloca __builtin_alloca
7189#else
7190# ifdef _MSC_VER
7191# include <malloc.h>
7192# define alloca _alloca
7193# else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007194# ifdef HAVE_ALLOCA_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007195# include <alloca.h>
7196# else
7197# ifdef _AIX
7198 #pragma alloca
7199# else
7200# ifndef alloca /* predefined by HP cc +Olibcalls */
7201char *alloca ();
7202# endif
7203# endif
7204# endif
7205# endif
7206#endif
7207
7208int
7209main ()
7210{
7211char *p = (char *) alloca (1);
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007212 if (p) return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007213 ;
7214 return 0;
7215}
7216_ACEOF
7217rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007218if { (ac_try="$ac_link"
7219case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222esac
7223eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007230 (exit $ac_status); } && {
7231 test -z "$ac_cxx_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest$ac_exeext &&
7234 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007235 ac_cv_func_alloca_works=yes
7236else
7237 echo "$as_me: failed program was:" >&5
7238sed 's/^/| /' conftest.$ac_ext >&5
7239
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007240 ac_cv_func_alloca_works=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007241fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007242
7243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007244 conftest$ac_exeext conftest.$ac_ext
7245fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007246{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
7247echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007248
7249if test $ac_cv_func_alloca_works = yes; then
7250
7251cat >>confdefs.h <<\_ACEOF
7252#define HAVE_ALLOCA 1
7253_ACEOF
7254
7255else
7256 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7257# that cause trouble. Some versions do not even contain alloca or
7258# contain a buggy version. If you still want to use their alloca,
7259# use ar to extract alloca.o from them instead of compiling alloca.c.
7260
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007261ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007262
7263cat >>confdefs.h <<\_ACEOF
7264#define C_ALLOCA 1
7265_ACEOF
7266
7267
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007268{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
7269echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007270if test "${ac_cv_os_cray+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7272else
7273 cat >conftest.$ac_ext <<_ACEOF
7274/* confdefs.h. */
7275_ACEOF
7276cat confdefs.h >>conftest.$ac_ext
7277cat >>conftest.$ac_ext <<_ACEOF
7278/* end confdefs.h. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007279#if defined CRAY && ! defined CRAY2
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007280webecray
7281#else
7282wenotbecray
7283#endif
7284
7285_ACEOF
7286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7287 $EGREP "webecray" >/dev/null 2>&1; then
7288 ac_cv_os_cray=yes
7289else
7290 ac_cv_os_cray=no
7291fi
7292rm -f conftest*
7293
7294fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007295{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
7296echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007297if test $ac_cv_os_cray = yes; then
7298 for ac_func in _getb67 GETB67 getb67; do
7299 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007300{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7301echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7302if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007303 echo $ECHO_N "(cached) $ECHO_C" >&6
7304else
7305 cat >conftest.$ac_ext <<_ACEOF
7306/* confdefs.h. */
7307_ACEOF
7308cat confdefs.h >>conftest.$ac_ext
7309cat >>conftest.$ac_ext <<_ACEOF
7310/* end confdefs.h. */
7311/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7313#define $ac_func innocuous_$ac_func
7314
7315/* System header to define __stub macros and hopefully few prototypes,
7316 which can conflict with char $ac_func (); below.
7317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7318 <limits.h> exists even on freestanding compilers. */
7319
7320#ifdef __STDC__
7321# include <limits.h>
7322#else
7323# include <assert.h>
7324#endif
7325
7326#undef $ac_func
7327
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007328/* Override any GCC internal prototype to avoid an error.
7329 Use char because int might match the return type of a GCC
7330 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007331#ifdef __cplusplus
7332extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007333#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007334char $ac_func ();
7335/* The GNU C library defines this for functions which it implements
7336 to always fail with ENOSYS. Some functions are actually named
7337 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007338#if defined __stub_$ac_func || defined __stub___$ac_func
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007339choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007340#endif
7341
7342int
7343main ()
7344{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007345return $ac_func ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007346 ;
7347 return 0;
7348}
7349_ACEOF
7350rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007351if { (ac_try="$ac_link"
7352case "(($ac_try" in
7353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354 *) ac_try_echo=$ac_try;;
7355esac
7356eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007358 ac_status=$?
7359 grep -v '^ *+' conftest.er1 >conftest.err
7360 rm -f conftest.er1
7361 cat conftest.err >&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007363 (exit $ac_status); } && {
7364 test -z "$ac_cxx_werror_flag" ||
7365 test ! -s conftest.err
7366 } && test -s conftest$ac_exeext &&
7367 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007368 eval "$as_ac_var=yes"
7369else
7370 echo "$as_me: failed program was:" >&5
7371sed 's/^/| /' conftest.$ac_ext >&5
7372
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007373 eval "$as_ac_var=no"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007374fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007375
7376rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007377 conftest$ac_exeext conftest.$ac_ext
7378fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007379ac_res=`eval echo '${'$as_ac_var'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007382if test `eval echo '${'$as_ac_var'}'` = yes; then
7383
7384cat >>confdefs.h <<_ACEOF
7385#define CRAY_STACKSEG_END $ac_func
7386_ACEOF
7387
7388 break
7389fi
7390
7391 done
7392fi
7393
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007394{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
7395echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007396if test "${ac_cv_c_stack_direction+set}" = set; then
7397 echo $ECHO_N "(cached) $ECHO_C" >&6
7398else
7399 if test "$cross_compiling" = yes; then
7400 ac_cv_c_stack_direction=0
7401else
7402 cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007408$ac_includes_default
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007409int
7410find_stack_direction ()
7411{
7412 static char *addr = 0;
7413 auto char dummy;
7414 if (addr == 0)
7415 {
7416 addr = &dummy;
7417 return find_stack_direction ();
7418 }
7419 else
7420 return (&dummy > addr) ? 1 : -1;
7421}
7422
7423int
7424main ()
7425{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007426 return find_stack_direction () < 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007427}
7428_ACEOF
7429rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007430if { (ac_try="$ac_link"
7431case "(($ac_try" in
7432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7433 *) ac_try_echo=$ac_try;;
7434esac
7435eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7436 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007437 ac_status=$?
7438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007440 { (case "(($ac_try" in
7441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7442 *) ac_try_echo=$ac_try;;
7443esac
7444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7445 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007446 ac_status=$?
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); }; }; then
7449 ac_cv_c_stack_direction=1
7450else
7451 echo "$as_me: program exited with status $ac_status" >&5
7452echo "$as_me: failed program was:" >&5
7453sed 's/^/| /' conftest.$ac_ext >&5
7454
7455( exit $ac_status )
7456ac_cv_c_stack_direction=-1
7457fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007458rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007459fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007460
7461
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007462fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007463{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
7464echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007465
7466cat >>confdefs.h <<_ACEOF
7467#define STACK_DIRECTION $ac_cv_c_stack_direction
7468_ACEOF
7469
7470
7471fi
7472
7473
7474
7475for ac_header in stdlib.h unistd.h
7476do
7477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007478if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7481if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007482 echo $ECHO_N "(cached) $ECHO_C" >&6
7483fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007484ac_res=`eval echo '${'$as_ac_Header'}'`
7485 { echo "$as_me:$LINENO: result: $ac_res" >&5
7486echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007487else
7488 # Is the header compilable?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007489{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007491cat >conftest.$ac_ext <<_ACEOF
7492/* confdefs.h. */
7493_ACEOF
7494cat confdefs.h >>conftest.$ac_ext
7495cat >>conftest.$ac_ext <<_ACEOF
7496/* end confdefs.h. */
7497$ac_includes_default
7498#include <$ac_header>
7499_ACEOF
7500rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007501if { (ac_try="$ac_compile"
7502case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505esac
7506eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007508 ac_status=$?
7509 grep -v '^ *+' conftest.er1 >conftest.err
7510 rm -f conftest.er1
7511 cat conftest.err >&5
7512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007513 (exit $ac_status); } && {
7514 test -z "$ac_cxx_werror_flag" ||
7515 test ! -s conftest.err
7516 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007517 ac_header_compiler=yes
7518else
7519 echo "$as_me: failed program was:" >&5
7520sed 's/^/| /' conftest.$ac_ext >&5
7521
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007522 ac_header_compiler=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007523fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007524
7525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7526{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7527echo "${ECHO_T}$ac_header_compiler" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007528
7529# Is the header present?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007530{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7531echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007532cat >conftest.$ac_ext <<_ACEOF
7533/* confdefs.h. */
7534_ACEOF
7535cat confdefs.h >>conftest.$ac_ext
7536cat >>conftest.$ac_ext <<_ACEOF
7537/* end confdefs.h. */
7538#include <$ac_header>
7539_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007540if { (ac_try="$ac_cpp conftest.$ac_ext"
7541case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544esac
7545eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007547 ac_status=$?
7548 grep -v '^ *+' conftest.er1 >conftest.err
7549 rm -f conftest.er1
7550 cat conftest.err >&5
7551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007552 (exit $ac_status); } >/dev/null && {
7553 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7554 test ! -s conftest.err
7555 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007556 ac_header_preproc=yes
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
7561 ac_header_preproc=no
7562fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007563
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007564rm -f conftest.err conftest.$ac_ext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007565{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7566echo "${ECHO_T}$ac_header_preproc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007567
7568# So? What about this header?
7569case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7570 yes:no: )
7571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7572echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7574echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7575 ac_header_preproc=yes
7576 ;;
7577 no:yes:* )
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7579echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7581echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7583echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7585echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7587echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7589echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007590
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007591 ;;
7592esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007593{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7594echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7595if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007596 echo $ECHO_N "(cached) $ECHO_C" >&6
7597else
7598 eval "$as_ac_Header=\$ac_header_preproc"
7599fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007600ac_res=`eval echo '${'$as_ac_Header'}'`
7601 { echo "$as_me:$LINENO: result: $ac_res" >&5
7602echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007603
7604fi
7605if test `eval echo '${'$as_ac_Header'}'` = yes; then
7606 cat >>confdefs.h <<_ACEOF
7607#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7608_ACEOF
7609
7610fi
7611
7612done
7613
7614
7615for ac_func in getpagesize
7616do
7617as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007618{ echo "$as_me:$LINENO: checking for $ac_func" >&5
7619echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7620if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622else
7623 cat >conftest.$ac_ext <<_ACEOF
7624/* confdefs.h. */
7625_ACEOF
7626cat confdefs.h >>conftest.$ac_ext
7627cat >>conftest.$ac_ext <<_ACEOF
7628/* end confdefs.h. */
7629/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7631#define $ac_func innocuous_$ac_func
7632
7633/* System header to define __stub macros and hopefully few prototypes,
7634 which can conflict with char $ac_func (); below.
7635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7636 <limits.h> exists even on freestanding compilers. */
7637
7638#ifdef __STDC__
7639# include <limits.h>
7640#else
7641# include <assert.h>
7642#endif
7643
7644#undef $ac_func
7645
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007646/* Override any GCC internal prototype to avoid an error.
7647 Use char because int might match the return type of a GCC
7648 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007649#ifdef __cplusplus
7650extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007651#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007652char $ac_func ();
7653/* The GNU C library defines this for functions which it implements
7654 to always fail with ENOSYS. Some functions are actually named
7655 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007656#if defined __stub_$ac_func || defined __stub___$ac_func
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007657choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007658#endif
7659
7660int
7661main ()
7662{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007663return $ac_func ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007664 ;
7665 return 0;
7666}
7667_ACEOF
7668rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007669if { (ac_try="$ac_link"
7670case "(($ac_try" in
7671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7673esac
7674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007681 (exit $ac_status); } && {
7682 test -z "$ac_cxx_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest$ac_exeext &&
7685 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007686 eval "$as_ac_var=yes"
7687else
7688 echo "$as_me: failed program was:" >&5
7689sed 's/^/| /' conftest.$ac_ext >&5
7690
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007691 eval "$as_ac_var=no"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007692fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007693
7694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007695 conftest$ac_exeext conftest.$ac_ext
7696fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007697ac_res=`eval echo '${'$as_ac_var'}'`
7698 { echo "$as_me:$LINENO: result: $ac_res" >&5
7699echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007700if test `eval echo '${'$as_ac_var'}'` = yes; then
7701 cat >>confdefs.h <<_ACEOF
7702#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7703_ACEOF
7704
7705fi
7706done
7707
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007708{ echo "$as_me:$LINENO: checking for working mmap" >&5
7709echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007710if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712else
7713 if test "$cross_compiling" = yes; then
7714 ac_cv_func_mmap_fixed_mapped=no
7715else
7716 cat >conftest.$ac_ext <<_ACEOF
7717/* confdefs.h. */
7718_ACEOF
7719cat confdefs.h >>conftest.$ac_ext
7720cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */
7722$ac_includes_default
7723/* malloc might have been renamed as rpl_malloc. */
7724#undef malloc
7725
7726/* Thanks to Mike Haertel and Jim Avera for this test.
7727 Here is a matrix of mmap possibilities:
7728 mmap private not fixed
7729 mmap private fixed at somewhere currently unmapped
7730 mmap private fixed at somewhere already mapped
7731 mmap shared not fixed
7732 mmap shared fixed at somewhere currently unmapped
7733 mmap shared fixed at somewhere already mapped
7734 For private mappings, we should verify that changes cannot be read()
7735 back from the file, nor mmap's back from the file at a different
7736 address. (There have been systems where private was not correctly
7737 implemented like the infamous i386 svr4.0, and systems where the
7738 VM page cache was not coherent with the file system buffer cache
7739 like early versions of FreeBSD and possibly contemporary NetBSD.)
7740 For shared mappings, we should conversely verify that changes get
7741 propagated back to all the places they're supposed to be.
7742
7743 Grep wants private fixed already mapped.
7744 The main things grep needs to know about mmap are:
7745 * does it exist and is it safe to write into the mmap'd area
7746 * how to use it (BSD variants) */
7747
7748#include <fcntl.h>
7749#include <sys/mman.h>
7750
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007751#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007752char *malloc ();
7753#endif
7754
7755/* This mess was copied from the GNU getpagesize.h. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007756#ifndef HAVE_GETPAGESIZE
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007757/* Assume that all systems that can run configure have sys/param.h. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007758# ifndef HAVE_SYS_PARAM_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007759# define HAVE_SYS_PARAM_H 1
7760# endif
7761
7762# ifdef _SC_PAGESIZE
7763# define getpagesize() sysconf(_SC_PAGESIZE)
7764# else /* no _SC_PAGESIZE */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007765# ifdef HAVE_SYS_PARAM_H
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007766# include <sys/param.h>
7767# ifdef EXEC_PAGESIZE
7768# define getpagesize() EXEC_PAGESIZE
7769# else /* no EXEC_PAGESIZE */
7770# ifdef NBPG
7771# define getpagesize() NBPG * CLSIZE
7772# ifndef CLSIZE
7773# define CLSIZE 1
7774# endif /* no CLSIZE */
7775# else /* no NBPG */
7776# ifdef NBPC
7777# define getpagesize() NBPC
7778# else /* no NBPC */
7779# ifdef PAGESIZE
7780# define getpagesize() PAGESIZE
7781# endif /* PAGESIZE */
7782# endif /* no NBPC */
7783# endif /* no NBPG */
7784# endif /* no EXEC_PAGESIZE */
7785# else /* no HAVE_SYS_PARAM_H */
7786# define getpagesize() 8192 /* punt totally */
7787# endif /* no HAVE_SYS_PARAM_H */
7788# endif /* no _SC_PAGESIZE */
7789
7790#endif /* no HAVE_GETPAGESIZE */
7791
7792int
7793main ()
7794{
7795 char *data, *data2, *data3;
7796 int i, pagesize;
7797 int fd;
7798
7799 pagesize = getpagesize ();
7800
7801 /* First, make a file with some known garbage in it. */
7802 data = (char *) malloc (pagesize);
7803 if (!data)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007804 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007805 for (i = 0; i < pagesize; ++i)
7806 *(data + i) = rand ();
7807 umask (0);
7808 fd = creat ("conftest.mmap", 0600);
7809 if (fd < 0)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007810 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007811 if (write (fd, data, pagesize) != pagesize)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007812 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007813 close (fd);
7814
7815 /* Next, try to mmap the file at a fixed address which already has
7816 something else allocated at it. If we can, also make sure that
7817 we see the same garbage. */
7818 fd = open ("conftest.mmap", O_RDWR);
7819 if (fd < 0)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007820 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007821 data2 = (char *) malloc (2 * pagesize);
7822 if (!data2)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007823 return 1;
7824 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007825 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7826 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007827 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007828 for (i = 0; i < pagesize; ++i)
7829 if (*(data + i) != *(data2 + i))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007830 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007831
7832 /* Finally, make sure that changes to the mapped area do not
7833 percolate back to the file as seen by read(). (This is a bug on
7834 some variants of i386 svr4.0.) */
7835 for (i = 0; i < pagesize; ++i)
7836 *(data2 + i) = *(data2 + i) + 1;
7837 data3 = (char *) malloc (pagesize);
7838 if (!data3)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007839 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007840 if (read (fd, data3, pagesize) != pagesize)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007841 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007842 for (i = 0; i < pagesize; ++i)
7843 if (*(data + i) != *(data3 + i))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007844 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007845 close (fd);
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007846 return 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007847}
7848_ACEOF
7849rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007850if { (ac_try="$ac_link"
7851case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854esac
7855eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007860 { (case "(($ac_try" in
7861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7862 *) ac_try_echo=$ac_try;;
7863esac
7864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007866 ac_status=$?
7867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7868 (exit $ac_status); }; }; then
7869 ac_cv_func_mmap_fixed_mapped=yes
7870else
7871 echo "$as_me: program exited with status $ac_status" >&5
7872echo "$as_me: failed program was:" >&5
7873sed 's/^/| /' conftest.$ac_ext >&5
7874
7875( exit $ac_status )
7876ac_cv_func_mmap_fixed_mapped=no
7877fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007878rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007879fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007880
7881
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007882fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007883{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7884echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007885if test $ac_cv_func_mmap_fixed_mapped = yes; then
7886
7887cat >>confdefs.h <<\_ACEOF
7888#define HAVE_MMAP 1
7889_ACEOF
7890
7891fi
7892rm -f conftest.mmap
7893
7894
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007895 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
7896echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007897if test "${ac_cv_gnu_library_2_1+set}" = set; then
7898 echo $ECHO_N "(cached) $ECHO_C" >&6
7899else
7900 cat >conftest.$ac_ext <<_ACEOF
7901/* confdefs.h. */
7902_ACEOF
7903cat confdefs.h >>conftest.$ac_ext
7904cat >>conftest.$ac_ext <<_ACEOF
7905/* end confdefs.h. */
7906
7907#include <features.h>
7908#ifdef __GNU_LIBRARY__
7909 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
7910 Lucky GNU user
7911 #endif
7912#endif
7913
7914_ACEOF
7915if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7916 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
7917 ac_cv_gnu_library_2_1=yes
7918else
7919 ac_cv_gnu_library_2_1=no
7920fi
7921rm -f conftest*
7922
7923
7924
7925fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007926{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
7927echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007928
7929 GLIBC21="$ac_cv_gnu_library_2_1"
7930
7931
7932
7933
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007934 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
7935echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00007936if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
7937 echo $ECHO_N "(cached) $ECHO_C" >&6
7938else
7939
7940 if test "$cross_compiling" = yes; then
7941
7942 # Guess based on the CPU.
7943 case "$host_cpu" in
7944 alpha* | i3456786 | m68k | s390*)
7945 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7946 *)
7947 gt_cv_int_divbyzero_sigfpe="guessing no";;
7948 esac
7949
7950else
7951 cat >conftest.$ac_ext <<_ACEOF
7952/* confdefs.h. */
7953_ACEOF
7954cat confdefs.h >>conftest.$ac_ext
7955cat >>conftest.$ac_ext <<_ACEOF
7956/* end confdefs.h. */
7957
7958#include <stdlib.h>
7959#include <signal.h>
7960
7961static void
7962#ifdef __cplusplus
7963sigfpe_handler (int sig)
7964#else
7965sigfpe_handler (sig) int sig;
7966#endif
7967{
7968 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7969 exit (sig != SIGFPE);
7970}
7971
7972int x = 1;
7973int y = 0;
7974int z;
7975int nan;
7976
7977int main ()
7978{
7979 signal (SIGFPE, sigfpe_handler);
7980/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7981#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7982 signal (SIGTRAP, sigfpe_handler);
7983#endif
7984/* Linux/SPARC yields signal SIGILL. */
7985#if defined (__sparc__) && defined (__linux__)
7986 signal (SIGILL, sigfpe_handler);
7987#endif
7988
7989 z = x / y;
7990 nan = y / y;
7991 exit (1);
7992}
7993
7994_ACEOF
7995rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00007996if { (ac_try="$ac_link"
7997case "(($ac_try" in
7998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7999 *) ac_try_echo=$ac_try;;
8000esac
8001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8002 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008003 ac_status=$?
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008006 { (case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009esac
8010eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008012 ac_status=$?
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; }; then
8015 gt_cv_int_divbyzero_sigfpe=yes
8016else
8017 echo "$as_me: program exited with status $ac_status" >&5
8018echo "$as_me: failed program was:" >&5
8019sed 's/^/| /' conftest.$ac_ext >&5
8020
8021( exit $ac_status )
8022gt_cv_int_divbyzero_sigfpe=no
8023fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008024rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008025fi
8026
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008027
8028
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008029fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008030{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
8031echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008032 case "$gt_cv_int_divbyzero_sigfpe" in
8033 *yes) value=1;;
8034 *) value=0;;
8035 esac
8036
8037cat >>confdefs.h <<_ACEOF
8038#define INTDIV0_RAISES_SIGFPE $value
8039_ACEOF
8040
8041
8042
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008043 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
8044echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008045if test "${ac_cv_type_unsigned_long_long+set}" = set; then
8046 echo $ECHO_N "(cached) $ECHO_C" >&6
8047else
8048 cat >conftest.$ac_ext <<_ACEOF
8049/* confdefs.h. */
8050_ACEOF
8051cat confdefs.h >>conftest.$ac_ext
8052cat >>conftest.$ac_ext <<_ACEOF
8053/* end confdefs.h. */
8054unsigned long long ull = 1ULL; int i = 63;
8055int
8056main ()
8057{
8058unsigned long long ullmax = (unsigned long long) -1;
8059 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
8060 ;
8061 return 0;
8062}
8063_ACEOF
8064rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008065if { (ac_try="$ac_link"
8066case "(($ac_try" in
8067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8068 *) ac_try_echo=$ac_try;;
8069esac
8070eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008072 ac_status=$?
8073 grep -v '^ *+' conftest.er1 >conftest.err
8074 rm -f conftest.er1
8075 cat conftest.err >&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008077 (exit $ac_status); } && {
8078 test -z "$ac_cxx_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest$ac_exeext &&
8081 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008082 ac_cv_type_unsigned_long_long=yes
8083else
8084 echo "$as_me: failed program was:" >&5
8085sed 's/^/| /' conftest.$ac_ext >&5
8086
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008087 ac_cv_type_unsigned_long_long=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008088fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008089
8090rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008091 conftest$ac_exeext conftest.$ac_ext
8092fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008093{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
8094echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008095 if test $ac_cv_type_unsigned_long_long = yes; then
8096
8097cat >>confdefs.h <<\_ACEOF
8098#define HAVE_UNSIGNED_LONG_LONG 1
8099_ACEOF
8100
8101 fi
8102
8103
8104
8105
8106 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
8107
8108 test $ac_cv_type_unsigned_long_long = yes \
8109 && ac_type='unsigned long long' \
8110 || ac_type='unsigned long'
8111
8112cat >>confdefs.h <<_ACEOF
8113#define uintmax_t $ac_type
8114_ACEOF
8115
8116 else
8117
8118cat >>confdefs.h <<\_ACEOF
8119#define HAVE_UINTMAX_T 1
8120_ACEOF
8121
8122 fi
8123
8124
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008125 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
8126echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008127if test "${gt_cv_header_inttypes_h+set}" = set; then
8128 echo $ECHO_N "(cached) $ECHO_C" >&6
8129else
8130
8131 cat >conftest.$ac_ext <<_ACEOF
8132/* confdefs.h. */
8133_ACEOF
8134cat confdefs.h >>conftest.$ac_ext
8135cat >>conftest.$ac_ext <<_ACEOF
8136/* end confdefs.h. */
8137#include <sys/types.h>
8138#include <inttypes.h>
8139int
8140main ()
8141{
8142
8143 ;
8144 return 0;
8145}
8146_ACEOF
8147rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008148if { (ac_try="$ac_compile"
8149case "(($ac_try" in
8150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151 *) ac_try_echo=$ac_try;;
8152esac
8153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8154 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008160 (exit $ac_status); } && {
8161 test -z "$ac_cxx_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008164 gt_cv_header_inttypes_h=yes
8165else
8166 echo "$as_me: failed program was:" >&5
8167sed 's/^/| /' conftest.$ac_ext >&5
8168
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008169 gt_cv_header_inttypes_h=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008170fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008171
8172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008173
8174fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008175{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
8176echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008177 if test $gt_cv_header_inttypes_h = yes; then
8178
8179cat >>confdefs.h <<_ACEOF
8180#define HAVE_INTTYPES_H 1
8181_ACEOF
8182
8183 fi
8184
8185
8186
8187 if test $gt_cv_header_inttypes_h = yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008188 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
8189echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008190if test "${gt_cv_inttypes_pri_broken+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193
8194 cat >conftest.$ac_ext <<_ACEOF
8195/* confdefs.h. */
8196_ACEOF
8197cat confdefs.h >>conftest.$ac_ext
8198cat >>conftest.$ac_ext <<_ACEOF
8199/* end confdefs.h. */
8200#include <inttypes.h>
8201#ifdef PRId32
8202char *p = PRId32;
8203#endif
8204
8205int
8206main ()
8207{
8208
8209 ;
8210 return 0;
8211}
8212_ACEOF
8213rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008214if { (ac_try="$ac_compile"
8215case "(($ac_try" in
8216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8217 *) ac_try_echo=$ac_try;;
8218esac
8219eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8220 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008221 ac_status=$?
8222 grep -v '^ *+' conftest.er1 >conftest.err
8223 rm -f conftest.er1
8224 cat conftest.err >&5
8225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008226 (exit $ac_status); } && {
8227 test -z "$ac_cxx_werror_flag" ||
8228 test ! -s conftest.err
8229 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008230 gt_cv_inttypes_pri_broken=no
8231else
8232 echo "$as_me: failed program was:" >&5
8233sed 's/^/| /' conftest.$ac_ext >&5
8234
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008235 gt_cv_inttypes_pri_broken=yes
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008236fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008237
8238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008239
8240fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008241{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
8242echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008243 fi
8244 if test "$gt_cv_inttypes_pri_broken" = yes; then
8245
8246cat >>confdefs.h <<_ACEOF
8247#define PRI_MACROS_BROKEN 1
8248_ACEOF
8249
8250 fi
8251
8252
8253
8254for ac_header in stdint.h
8255do
8256as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8259echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8260if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008261 echo $ECHO_N "(cached) $ECHO_C" >&6
8262fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008263ac_res=`eval echo '${'$as_ac_Header'}'`
8264 { echo "$as_me:$LINENO: result: $ac_res" >&5
8265echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008266else
8267 # Is the header compilable?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008268{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8269echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008270cat >conftest.$ac_ext <<_ACEOF
8271/* confdefs.h. */
8272_ACEOF
8273cat confdefs.h >>conftest.$ac_ext
8274cat >>conftest.$ac_ext <<_ACEOF
8275/* end confdefs.h. */
8276$ac_includes_default
8277#include <$ac_header>
8278_ACEOF
8279rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008280if { (ac_try="$ac_compile"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008292 (exit $ac_status); } && {
8293 test -z "$ac_cxx_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008296 ac_header_compiler=yes
8297else
8298 echo "$as_me: failed program was:" >&5
8299sed 's/^/| /' conftest.$ac_ext >&5
8300
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008301 ac_header_compiler=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008302fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008303
8304rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8306echo "${ECHO_T}$ac_header_compiler" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008307
8308# Is the header present?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008309{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8310echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008311cat >conftest.$ac_ext <<_ACEOF
8312/* confdefs.h. */
8313_ACEOF
8314cat confdefs.h >>conftest.$ac_ext
8315cat >>conftest.$ac_ext <<_ACEOF
8316/* end confdefs.h. */
8317#include <$ac_header>
8318_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008319if { (ac_try="$ac_cpp conftest.$ac_ext"
8320case "(($ac_try" in
8321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8322 *) ac_try_echo=$ac_try;;
8323esac
8324eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008326 ac_status=$?
8327 grep -v '^ *+' conftest.er1 >conftest.err
8328 rm -f conftest.er1
8329 cat conftest.err >&5
8330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008331 (exit $ac_status); } >/dev/null && {
8332 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
8333 test ! -s conftest.err
8334 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008335 ac_header_preproc=yes
8336else
8337 echo "$as_me: failed program was:" >&5
8338sed 's/^/| /' conftest.$ac_ext >&5
8339
8340 ac_header_preproc=no
8341fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008342
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008343rm -f conftest.err conftest.$ac_ext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008344{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8345echo "${ECHO_T}$ac_header_preproc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008346
8347# So? What about this header?
8348case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8349 yes:no: )
8350 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8351echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8353echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8354 ac_header_preproc=yes
8355 ;;
8356 no:yes:* )
8357 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8358echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8359 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8360echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8361 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8362echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8363 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8364echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8365 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8367 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8368echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008369
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008370 ;;
8371esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008372{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8373echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8374if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008375 echo $ECHO_N "(cached) $ECHO_C" >&6
8376else
8377 eval "$as_ac_Header=\$ac_header_preproc"
8378fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008379ac_res=`eval echo '${'$as_ac_Header'}'`
8380 { echo "$as_me:$LINENO: result: $ac_res" >&5
8381echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008382
8383fi
8384if test `eval echo '${'$as_ac_Header'}'` = yes; then
8385 cat >>confdefs.h <<_ACEOF
8386#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8387_ACEOF
8388
8389fi
8390
8391done
8392
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008393 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
8394echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008395 result=
8396 cat >conftest.$ac_ext <<_ACEOF
8397/* confdefs.h. */
8398_ACEOF
8399cat confdefs.h >>conftest.$ac_ext
8400cat >>conftest.$ac_ext <<_ACEOF
8401/* end confdefs.h. */
8402
8403#include <limits.h>
8404#if HAVE_STDINT_H
8405#include <stdint.h>
8406#endif
8407#ifdef SIZE_MAX
8408Found it
8409#endif
8410
8411_ACEOF
8412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8413 $EGREP "Found it" >/dev/null 2>&1; then
8414 result=yes
8415fi
8416rm -f conftest*
8417
8418 if test -z "$result"; then
8419 if test "$cross_compiling" = yes; then
8420 # Depending upon the size, compute the lo and hi bounds.
8421cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427#include <stddef.h>
8428int
8429main ()
8430{
8431static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
8432test_array [0] = 0
8433
8434 ;
8435 return 0;
8436}
8437_ACEOF
8438rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008439if { (ac_try="$ac_compile"
8440case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443esac
8444eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008451 (exit $ac_status); } && {
8452 test -z "$ac_cxx_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008455 ac_lo=0 ac_mid=0
8456 while :; do
8457 cat >conftest.$ac_ext <<_ACEOF
8458/* confdefs.h. */
8459_ACEOF
8460cat confdefs.h >>conftest.$ac_ext
8461cat >>conftest.$ac_ext <<_ACEOF
8462/* end confdefs.h. */
8463#include <stddef.h>
8464int
8465main ()
8466{
8467static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8468test_array [0] = 0
8469
8470 ;
8471 return 0;
8472}
8473_ACEOF
8474rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008475if { (ac_try="$ac_compile"
8476case "(($ac_try" in
8477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8479esac
8480eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008487 (exit $ac_status); } && {
8488 test -z "$ac_cxx_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008491 ac_hi=$ac_mid; break
8492else
8493 echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008496 ac_lo=`expr $ac_mid + 1`
8497 if test $ac_lo -le $ac_mid; then
8498 ac_lo= ac_hi=
8499 break
8500 fi
8501 ac_mid=`expr 2 '*' $ac_mid + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008502fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008503
8504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008505 done
8506else
8507 echo "$as_me: failed program was:" >&5
8508sed 's/^/| /' conftest.$ac_ext >&5
8509
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008510 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008511/* confdefs.h. */
8512_ACEOF
8513cat confdefs.h >>conftest.$ac_ext
8514cat >>conftest.$ac_ext <<_ACEOF
8515/* end confdefs.h. */
8516#include <stddef.h>
8517int
8518main ()
8519{
8520static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
8521test_array [0] = 0
8522
8523 ;
8524 return 0;
8525}
8526_ACEOF
8527rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008528if { (ac_try="$ac_compile"
8529case "(($ac_try" in
8530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8531 *) ac_try_echo=$ac_try;;
8532esac
8533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8534 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008540 (exit $ac_status); } && {
8541 test -z "$ac_cxx_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008544 ac_hi=-1 ac_mid=-1
8545 while :; do
8546 cat >conftest.$ac_ext <<_ACEOF
8547/* confdefs.h. */
8548_ACEOF
8549cat confdefs.h >>conftest.$ac_ext
8550cat >>conftest.$ac_ext <<_ACEOF
8551/* end confdefs.h. */
8552#include <stddef.h>
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
8557test_array [0] = 0
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008564if { (ac_try="$ac_compile"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008580 ac_lo=$ac_mid; break
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008585 ac_hi=`expr '(' $ac_mid ')' - 1`
8586 if test $ac_mid -le $ac_hi; then
8587 ac_lo= ac_hi=
8588 break
8589 fi
8590 ac_mid=`expr 2 '*' $ac_mid`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008591fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008594 done
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008599 ac_lo= ac_hi=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008600fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008603fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008604
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008606# Binary search between lo and hi bounds.
8607while test "x$ac_lo" != "x$ac_hi"; do
8608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8609 cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615#include <stddef.h>
8616int
8617main ()
8618{
8619static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
8620test_array [0] = 0
8621
8622 ;
8623 return 0;
8624}
8625_ACEOF
8626rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008627if { (ac_try="$ac_compile"
8628case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631esac
8632eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008634 ac_status=$?
8635 grep -v '^ *+' conftest.er1 >conftest.err
8636 rm -f conftest.er1
8637 cat conftest.err >&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008639 (exit $ac_status); } && {
8640 test -z "$ac_cxx_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008643 ac_hi=$ac_mid
8644else
8645 echo "$as_me: failed program was:" >&5
8646sed 's/^/| /' conftest.$ac_ext >&5
8647
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008648 ac_lo=`expr '(' $ac_mid ')' + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008649fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008650
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008652done
8653case $ac_lo in
8654?*) res_hi=$ac_lo;;
8655'') result=? ;;
8656esac
8657else
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008658 cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
8664#include <stddef.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008665static long int longval () { return ~(size_t)0 / 10; }
8666static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008667#include <stdio.h>
8668#include <stdlib.h>
8669int
8670main ()
8671{
8672
8673 FILE *f = fopen ("conftest.val", "w");
8674 if (! f)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008675 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008676 if ((~(size_t)0 / 10) < 0)
8677 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008678 long int i = longval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008679 if (i != (~(size_t)0 / 10))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008680 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008681 fprintf (f, "%ld\n", i);
8682 }
8683 else
8684 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008685 unsigned long int i = ulongval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008686 if (i != (~(size_t)0 / 10))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008687 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008688 fprintf (f, "%lu\n", i);
8689 }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008690 return ferror (f) || fclose (f) != 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008691
8692 ;
8693 return 0;
8694}
8695_ACEOF
8696rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008697if { (ac_try="$ac_link"
8698case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701esac
8702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008704 ac_status=$?
8705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8706 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008707 { (case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710esac
8711eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008713 ac_status=$?
8714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8715 (exit $ac_status); }; }; then
8716 res_hi=`cat conftest.val`
8717else
8718 echo "$as_me: program exited with status $ac_status" >&5
8719echo "$as_me: failed program was:" >&5
8720sed 's/^/| /' conftest.$ac_ext >&5
8721
8722( exit $ac_status )
8723result=?
8724fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008726fi
8727rm -f conftest.val
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008728
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008729 if test "$cross_compiling" = yes; then
8730 # Depending upon the size, compute the lo and hi bounds.
8731cat >conftest.$ac_ext <<_ACEOF
8732/* confdefs.h. */
8733_ACEOF
8734cat confdefs.h >>conftest.$ac_ext
8735cat >>conftest.$ac_ext <<_ACEOF
8736/* end confdefs.h. */
8737#include <stddef.h>
8738int
8739main ()
8740{
8741static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
8742test_array [0] = 0
8743
8744 ;
8745 return 0;
8746}
8747_ACEOF
8748rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008749if { (ac_try="$ac_compile"
8750case "(($ac_try" in
8751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8752 *) ac_try_echo=$ac_try;;
8753esac
8754eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8755 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008756 ac_status=$?
8757 grep -v '^ *+' conftest.er1 >conftest.err
8758 rm -f conftest.er1
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008761 (exit $ac_status); } && {
8762 test -z "$ac_cxx_werror_flag" ||
8763 test ! -s conftest.err
8764 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008765 ac_lo=0 ac_mid=0
8766 while :; do
8767 cat >conftest.$ac_ext <<_ACEOF
8768/* confdefs.h. */
8769_ACEOF
8770cat confdefs.h >>conftest.$ac_ext
8771cat >>conftest.$ac_ext <<_ACEOF
8772/* end confdefs.h. */
8773#include <stddef.h>
8774int
8775main ()
8776{
8777static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8778test_array [0] = 0
8779
8780 ;
8781 return 0;
8782}
8783_ACEOF
8784rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008785if { (ac_try="$ac_compile"
8786case "(($ac_try" in
8787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8788 *) ac_try_echo=$ac_try;;
8789esac
8790eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8791 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008792 ac_status=$?
8793 grep -v '^ *+' conftest.er1 >conftest.err
8794 rm -f conftest.er1
8795 cat conftest.err >&5
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008797 (exit $ac_status); } && {
8798 test -z "$ac_cxx_werror_flag" ||
8799 test ! -s conftest.err
8800 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008801 ac_hi=$ac_mid; break
8802else
8803 echo "$as_me: failed program was:" >&5
8804sed 's/^/| /' conftest.$ac_ext >&5
8805
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008806 ac_lo=`expr $ac_mid + 1`
8807 if test $ac_lo -le $ac_mid; then
8808 ac_lo= ac_hi=
8809 break
8810 fi
8811 ac_mid=`expr 2 '*' $ac_mid + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008812fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008813
8814rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008815 done
8816else
8817 echo "$as_me: failed program was:" >&5
8818sed 's/^/| /' conftest.$ac_ext >&5
8819
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008820 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008821/* confdefs.h. */
8822_ACEOF
8823cat confdefs.h >>conftest.$ac_ext
8824cat >>conftest.$ac_ext <<_ACEOF
8825/* end confdefs.h. */
8826#include <stddef.h>
8827int
8828main ()
8829{
8830static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
8831test_array [0] = 0
8832
8833 ;
8834 return 0;
8835}
8836_ACEOF
8837rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008838if { (ac_try="$ac_compile"
8839case "(($ac_try" in
8840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8841 *) ac_try_echo=$ac_try;;
8842esac
8843eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8844 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008845 ac_status=$?
8846 grep -v '^ *+' conftest.er1 >conftest.err
8847 rm -f conftest.er1
8848 cat conftest.err >&5
8849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008850 (exit $ac_status); } && {
8851 test -z "$ac_cxx_werror_flag" ||
8852 test ! -s conftest.err
8853 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008854 ac_hi=-1 ac_mid=-1
8855 while :; do
8856 cat >conftest.$ac_ext <<_ACEOF
8857/* confdefs.h. */
8858_ACEOF
8859cat confdefs.h >>conftest.$ac_ext
8860cat >>conftest.$ac_ext <<_ACEOF
8861/* end confdefs.h. */
8862#include <stddef.h>
8863int
8864main ()
8865{
8866static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
8867test_array [0] = 0
8868
8869 ;
8870 return 0;
8871}
8872_ACEOF
8873rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008874if { (ac_try="$ac_compile"
8875case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878esac
8879eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008886 (exit $ac_status); } && {
8887 test -z "$ac_cxx_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008890 ac_lo=$ac_mid; break
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008895 ac_hi=`expr '(' $ac_mid ')' - 1`
8896 if test $ac_mid -le $ac_hi; then
8897 ac_lo= ac_hi=
8898 break
8899 fi
8900 ac_mid=`expr 2 '*' $ac_mid`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008901fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008902
8903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008904 done
8905else
8906 echo "$as_me: failed program was:" >&5
8907sed 's/^/| /' conftest.$ac_ext >&5
8908
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008909 ac_lo= ac_hi=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008910fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008911
8912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008913fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008914
8915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008916# Binary search between lo and hi bounds.
8917while test "x$ac_lo" != "x$ac_hi"; do
8918 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8919 cat >conftest.$ac_ext <<_ACEOF
8920/* confdefs.h. */
8921_ACEOF
8922cat confdefs.h >>conftest.$ac_ext
8923cat >>conftest.$ac_ext <<_ACEOF
8924/* end confdefs.h. */
8925#include <stddef.h>
8926int
8927main ()
8928{
8929static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
8930test_array [0] = 0
8931
8932 ;
8933 return 0;
8934}
8935_ACEOF
8936rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008937if { (ac_try="$ac_compile"
8938case "(($ac_try" in
8939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940 *) ac_try_echo=$ac_try;;
8941esac
8942eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008944 ac_status=$?
8945 grep -v '^ *+' conftest.er1 >conftest.err
8946 rm -f conftest.er1
8947 cat conftest.err >&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008949 (exit $ac_status); } && {
8950 test -z "$ac_cxx_werror_flag" ||
8951 test ! -s conftest.err
8952 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008953 ac_hi=$ac_mid
8954else
8955 echo "$as_me: failed program was:" >&5
8956sed 's/^/| /' conftest.$ac_ext >&5
8957
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008958 ac_lo=`expr '(' $ac_mid ')' + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008959fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008960
8961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008962done
8963case $ac_lo in
8964?*) res_lo=$ac_lo;;
8965'') result=? ;;
8966esac
8967else
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008968 cat >conftest.$ac_ext <<_ACEOF
8969/* confdefs.h. */
8970_ACEOF
8971cat confdefs.h >>conftest.$ac_ext
8972cat >>conftest.$ac_ext <<_ACEOF
8973/* end confdefs.h. */
8974#include <stddef.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008975static long int longval () { return ~(size_t)0 % 10; }
8976static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008977#include <stdio.h>
8978#include <stdlib.h>
8979int
8980main ()
8981{
8982
8983 FILE *f = fopen ("conftest.val", "w");
8984 if (! f)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008985 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008986 if ((~(size_t)0 % 10) < 0)
8987 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008988 long int i = longval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008989 if (i != (~(size_t)0 % 10))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008990 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008991 fprintf (f, "%ld\n", i);
8992 }
8993 else
8994 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008995 unsigned long int i = ulongval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008996 if (i != (~(size_t)0 % 10))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00008997 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00008998 fprintf (f, "%lu\n", i);
8999 }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009000 return ferror (f) || fclose (f) != 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009001
9002 ;
9003 return 0;
9004}
9005_ACEOF
9006rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009007if { (ac_try="$ac_link"
9008case "(($ac_try" in
9009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010 *) ac_try_echo=$ac_try;;
9011esac
9012eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9013 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009017 { (case "(($ac_try" in
9018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9019 *) ac_try_echo=$ac_try;;
9020esac
9021eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9022 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009023 ac_status=$?
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 (exit $ac_status); }; }; then
9026 res_lo=`cat conftest.val`
9027else
9028 echo "$as_me: program exited with status $ac_status" >&5
9029echo "$as_me: failed program was:" >&5
9030sed 's/^/| /' conftest.$ac_ext >&5
9031
9032( exit $ac_status )
9033result=?
9034fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009035rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009036fi
9037rm -f conftest.val
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009038
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009039 if test "$cross_compiling" = yes; then
9040 # Depending upon the size, compute the lo and hi bounds.
9041cat >conftest.$ac_ext <<_ACEOF
9042/* confdefs.h. */
9043_ACEOF
9044cat confdefs.h >>conftest.$ac_ext
9045cat >>conftest.$ac_ext <<_ACEOF
9046/* end confdefs.h. */
9047#include <stddef.h>
9048int
9049main ()
9050{
9051static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
9052test_array [0] = 0
9053
9054 ;
9055 return 0;
9056}
9057_ACEOF
9058rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009059if { (ac_try="$ac_compile"
9060case "(($ac_try" in
9061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9062 *) ac_try_echo=$ac_try;;
9063esac
9064eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9065 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009066 ac_status=$?
9067 grep -v '^ *+' conftest.er1 >conftest.err
9068 rm -f conftest.er1
9069 cat conftest.err >&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009071 (exit $ac_status); } && {
9072 test -z "$ac_cxx_werror_flag" ||
9073 test ! -s conftest.err
9074 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009075 ac_lo=0 ac_mid=0
9076 while :; do
9077 cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h. */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h. */
9083#include <stddef.h>
9084int
9085main ()
9086{
9087static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9088test_array [0] = 0
9089
9090 ;
9091 return 0;
9092}
9093_ACEOF
9094rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009095if { (ac_try="$ac_compile"
9096case "(($ac_try" in
9097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9098 *) ac_try_echo=$ac_try;;
9099esac
9100eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009102 ac_status=$?
9103 grep -v '^ *+' conftest.er1 >conftest.err
9104 rm -f conftest.er1
9105 cat conftest.err >&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009107 (exit $ac_status); } && {
9108 test -z "$ac_cxx_werror_flag" ||
9109 test ! -s conftest.err
9110 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009111 ac_hi=$ac_mid; break
9112else
9113 echo "$as_me: failed program was:" >&5
9114sed 's/^/| /' conftest.$ac_ext >&5
9115
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009116 ac_lo=`expr $ac_mid + 1`
9117 if test $ac_lo -le $ac_mid; then
9118 ac_lo= ac_hi=
9119 break
9120 fi
9121 ac_mid=`expr 2 '*' $ac_mid + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009122fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009123
9124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009125 done
9126else
9127 echo "$as_me: failed program was:" >&5
9128sed 's/^/| /' conftest.$ac_ext >&5
9129
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009130 cat >conftest.$ac_ext <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009131/* confdefs.h. */
9132_ACEOF
9133cat confdefs.h >>conftest.$ac_ext
9134cat >>conftest.$ac_ext <<_ACEOF
9135/* end confdefs.h. */
9136#include <stddef.h>
9137int
9138main ()
9139{
9140static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
9141test_array [0] = 0
9142
9143 ;
9144 return 0;
9145}
9146_ACEOF
9147rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009148if { (ac_try="$ac_compile"
9149case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152esac
9153eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009160 (exit $ac_status); } && {
9161 test -z "$ac_cxx_werror_flag" ||
9162 test ! -s conftest.err
9163 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009164 ac_hi=-1 ac_mid=-1
9165 while :; do
9166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172#include <stddef.h>
9173int
9174main ()
9175{
9176static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
9177test_array [0] = 0
9178
9179 ;
9180 return 0;
9181}
9182_ACEOF
9183rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009184if { (ac_try="$ac_compile"
9185case "(($ac_try" in
9186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9188esac
9189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009191 ac_status=$?
9192 grep -v '^ *+' conftest.er1 >conftest.err
9193 rm -f conftest.er1
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009196 (exit $ac_status); } && {
9197 test -z "$ac_cxx_werror_flag" ||
9198 test ! -s conftest.err
9199 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009200 ac_lo=$ac_mid; break
9201else
9202 echo "$as_me: failed program was:" >&5
9203sed 's/^/| /' conftest.$ac_ext >&5
9204
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009205 ac_hi=`expr '(' $ac_mid ')' - 1`
9206 if test $ac_mid -le $ac_hi; then
9207 ac_lo= ac_hi=
9208 break
9209 fi
9210 ac_mid=`expr 2 '*' $ac_mid`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009211fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009212
9213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009214 done
9215else
9216 echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009219 ac_lo= ac_hi=
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009220fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009221
9222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009223fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009224
9225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009226# Binary search between lo and hi bounds.
9227while test "x$ac_lo" != "x$ac_hi"; do
9228 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9229 cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
9235#include <stddef.h>
9236int
9237main ()
9238{
9239static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
9240test_array [0] = 0
9241
9242 ;
9243 return 0;
9244}
9245_ACEOF
9246rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009247if { (ac_try="$ac_compile"
9248case "(($ac_try" in
9249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9251esac
9252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009254 ac_status=$?
9255 grep -v '^ *+' conftest.er1 >conftest.err
9256 rm -f conftest.er1
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009259 (exit $ac_status); } && {
9260 test -z "$ac_cxx_werror_flag" ||
9261 test ! -s conftest.err
9262 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009263 ac_hi=$ac_mid
9264else
9265 echo "$as_me: failed program was:" >&5
9266sed 's/^/| /' conftest.$ac_ext >&5
9267
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009268 ac_lo=`expr '(' $ac_mid ')' + 1`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009269fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009270
9271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009272done
9273case $ac_lo in
9274?*) fits_in_uint=$ac_lo;;
9275'') result=? ;;
9276esac
9277else
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009278 cat >conftest.$ac_ext <<_ACEOF
9279/* confdefs.h. */
9280_ACEOF
9281cat confdefs.h >>conftest.$ac_ext
9282cat >>conftest.$ac_ext <<_ACEOF
9283/* end confdefs.h. */
9284#include <stddef.h>
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009285static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
9286static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009287#include <stdio.h>
9288#include <stdlib.h>
9289int
9290main ()
9291{
9292
9293 FILE *f = fopen ("conftest.val", "w");
9294 if (! f)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009295 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009296 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
9297 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009298 long int i = longval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009299 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009300 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009301 fprintf (f, "%ld\n", i);
9302 }
9303 else
9304 {
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009305 unsigned long int i = ulongval ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009306 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009307 return 1;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009308 fprintf (f, "%lu\n", i);
9309 }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009310 return ferror (f) || fclose (f) != 0;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009311
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316rm -f conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009317if { (ac_try="$ac_link"
9318case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321esac
9322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_link") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009324 ac_status=$?
9325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009327 { (case "(($ac_try" in
9328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9329 *) ac_try_echo=$ac_try;;
9330esac
9331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_try") 2>&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009333 ac_status=$?
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); }; }; then
9336 fits_in_uint=`cat conftest.val`
9337else
9338 echo "$as_me: program exited with status $ac_status" >&5
9339echo "$as_me: failed program was:" >&5
9340sed 's/^/| /' conftest.$ac_ext >&5
9341
9342( exit $ac_status )
9343result=?
9344fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009345rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009346fi
9347rm -f conftest.val
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009348
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009349 if test "$fits_in_uint" = 1; then
9350 cat >conftest.$ac_ext <<_ACEOF
9351/* confdefs.h. */
9352_ACEOF
9353cat confdefs.h >>conftest.$ac_ext
9354cat >>conftest.$ac_ext <<_ACEOF
9355/* end confdefs.h. */
9356#include <stddef.h>
9357 extern size_t foo;
9358 extern unsigned long foo;
9359
9360int
9361main ()
9362{
9363
9364 ;
9365 return 0;
9366}
9367_ACEOF
9368rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009369if { (ac_try="$ac_compile"
9370case "(($ac_try" in
9371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9372 *) ac_try_echo=$ac_try;;
9373esac
9374eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9375 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009376 ac_status=$?
9377 grep -v '^ *+' conftest.er1 >conftest.err
9378 rm -f conftest.er1
9379 cat conftest.err >&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009381 (exit $ac_status); } && {
9382 test -z "$ac_cxx_werror_flag" ||
9383 test ! -s conftest.err
9384 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009385 fits_in_uint=0
9386else
9387 echo "$as_me: failed program was:" >&5
9388sed 's/^/| /' conftest.$ac_ext >&5
9389
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009390
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009391fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009392
9393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009394 fi
9395 if test -z "$result"; then
9396 if test "$fits_in_uint" = 1; then
9397 result="$res_hi$res_lo"U
9398 else
9399 result="$res_hi$res_lo"UL
9400 fi
9401 else
9402 result='~(size_t)0'
9403 fi
9404 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009405 { echo "$as_me:$LINENO: result: $result" >&5
9406echo "${ECHO_T}$result" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009407 if test "$result" != yes; then
9408
9409cat >>confdefs.h <<_ACEOF
9410#define SIZE_MAX $result
9411_ACEOF
9412
9413 fi
9414
9415
9416
9417
9418for ac_header in stdint.h
9419do
9420as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009421if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9423echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9424if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009427ac_res=`eval echo '${'$as_ac_Header'}'`
9428 { echo "$as_me:$LINENO: result: $ac_res" >&5
9429echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009430else
9431 # Is the header compilable?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009432{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
9433echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009434cat >conftest.$ac_ext <<_ACEOF
9435/* confdefs.h. */
9436_ACEOF
9437cat confdefs.h >>conftest.$ac_ext
9438cat >>conftest.$ac_ext <<_ACEOF
9439/* end confdefs.h. */
9440$ac_includes_default
9441#include <$ac_header>
9442_ACEOF
9443rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009444if { (ac_try="$ac_compile"
9445case "(($ac_try" in
9446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9447 *) ac_try_echo=$ac_try;;
9448esac
9449eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9450 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009451 ac_status=$?
9452 grep -v '^ *+' conftest.er1 >conftest.err
9453 rm -f conftest.er1
9454 cat conftest.err >&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009456 (exit $ac_status); } && {
9457 test -z "$ac_cxx_werror_flag" ||
9458 test ! -s conftest.err
9459 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009460 ac_header_compiler=yes
9461else
9462 echo "$as_me: failed program was:" >&5
9463sed 's/^/| /' conftest.$ac_ext >&5
9464
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009465 ac_header_compiler=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009466fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009467
9468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9469{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9470echo "${ECHO_T}$ac_header_compiler" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009471
9472# Is the header present?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009473{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
9474echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009475cat >conftest.$ac_ext <<_ACEOF
9476/* confdefs.h. */
9477_ACEOF
9478cat confdefs.h >>conftest.$ac_ext
9479cat >>conftest.$ac_ext <<_ACEOF
9480/* end confdefs.h. */
9481#include <$ac_header>
9482_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009483if { (ac_try="$ac_cpp conftest.$ac_ext"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009495 (exit $ac_status); } >/dev/null && {
9496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009499 ac_header_preproc=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_header_preproc=no
9505fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009506
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009507rm -f conftest.err conftest.$ac_ext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009508{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9509echo "${ECHO_T}$ac_header_preproc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009510
9511# So? What about this header?
9512case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9513 yes:no: )
9514 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9515echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9517echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9518 ac_header_preproc=yes
9519 ;;
9520 no:yes:* )
9521 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9523 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9526echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9528echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9530echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9532echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009533
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009534 ;;
9535esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009536{ echo "$as_me:$LINENO: checking for $ac_header" >&5
9537echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9538if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009539 echo $ECHO_N "(cached) $ECHO_C" >&6
9540else
9541 eval "$as_ac_Header=\$ac_header_preproc"
9542fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009543ac_res=`eval echo '${'$as_ac_Header'}'`
9544 { echo "$as_me:$LINENO: result: $ac_res" >&5
9545echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009546
9547fi
9548if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549 cat >>confdefs.h <<_ACEOF
9550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551_ACEOF
9552
9553fi
9554
9555done
9556
9557
9558
9559 if test "X$prefix" = "XNONE"; then
9560 acl_final_prefix="$ac_default_prefix"
9561 else
9562 acl_final_prefix="$prefix"
9563 fi
9564 if test "X$exec_prefix" = "XNONE"; then
9565 acl_final_exec_prefix='${prefix}'
9566 else
9567 acl_final_exec_prefix="$exec_prefix"
9568 fi
9569 acl_save_prefix="$prefix"
9570 prefix="$acl_final_prefix"
9571 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
9572 prefix="$acl_save_prefix"
9573
9574
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009575# Check whether --with-gnu-ld was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009576if test "${with_gnu_ld+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009577 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009578else
9579 with_gnu_ld=no
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009580fi
9581
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009582# Prepare PATH_SEPARATOR.
9583# The user is always right.
9584if test "${PATH_SEPARATOR+set}" != set; then
9585 echo "#! /bin/sh" >conf$$.sh
9586 echo "exit 0" >>conf$$.sh
9587 chmod +x conf$$.sh
9588 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9589 PATH_SEPARATOR=';'
9590 else
9591 PATH_SEPARATOR=:
9592 fi
9593 rm -f conf$$.sh
9594fi
9595ac_prog=ld
9596if test "$GCC" = yes; then
9597 # Check if gcc -print-prog-name=ld gives a path.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009598 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
9599echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009600 case $host in
9601 *-*-mingw*)
9602 # gcc leaves a trailing carriage return which upsets mingw
9603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9604 *)
9605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9606 esac
9607 case $ac_prog in
9608 # Accept absolute paths.
9609 [\\/]* | [A-Za-z]:[\\/]*)
9610 re_direlt='/[^/][^/]*/\.\./'
9611 # Canonicalize the path of ld
9612 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
9613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
9615 done
9616 test -z "$LD" && LD="$ac_prog"
9617 ;;
9618 "")
9619 # If it fails, then pretend we aren't using GCC.
9620 ac_prog=ld
9621 ;;
9622 *)
9623 # If it is relative, then search for the first ld in PATH.
9624 with_gnu_ld=unknown
9625 ;;
9626 esac
9627elif test "$with_gnu_ld" = yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009628 { echo "$as_me:$LINENO: checking for GNU ld" >&5
9629echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009630else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009631 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9632echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009633fi
9634if test "${acl_cv_path_LD+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636else
9637 if test -z "$LD"; then
9638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
9639 for ac_dir in $PATH; do
9640 test -z "$ac_dir" && ac_dir=.
9641 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9642 acl_cv_path_LD="$ac_dir/$ac_prog"
9643 # Check to see if the program is GNU ld. I'd rather use --version,
9644 # but apparently some GNU ld's only accept -v.
9645 # Break only if it was the GNU/non-GNU ld that we prefer.
9646 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
9647 *GNU* | *'with BFD'*)
9648 test "$with_gnu_ld" != no && break ;;
9649 *)
9650 test "$with_gnu_ld" != yes && break ;;
9651 esac
9652 fi
9653 done
9654 IFS="$ac_save_ifs"
9655else
9656 acl_cv_path_LD="$LD" # Let the user override the test with a path.
9657fi
9658fi
9659
9660LD="$acl_cv_path_LD"
9661if test -n "$LD"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009662 { echo "$as_me:$LINENO: result: $LD" >&5
9663echo "${ECHO_T}$LD" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009664else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009665 { echo "$as_me:$LINENO: result: no" >&5
9666echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009667fi
9668test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9669echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9670 { (exit 1); exit 1; }; }
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009671{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9672echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009673if test "${acl_cv_prog_gnu_ld+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9675else
9676 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9677case `$LD -v 2>&1 </dev/null` in
9678*GNU* | *'with BFD'*)
9679 acl_cv_prog_gnu_ld=yes ;;
9680*)
9681 acl_cv_prog_gnu_ld=no ;;
9682esac
9683fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009684{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
9685echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009686with_gnu_ld=$acl_cv_prog_gnu_ld
9687
9688
9689
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009690 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
9691echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009692if test "${acl_cv_rpath+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9694else
9695
9696 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
9697 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
9698 . ./conftest.sh
9699 rm -f ./conftest.sh
9700 acl_cv_rpath=done
9701
9702fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009703{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
9704echo "${ECHO_T}$acl_cv_rpath" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009705 wl="$acl_cv_wl"
9706 libext="$acl_cv_libext"
9707 shlibext="$acl_cv_shlibext"
9708 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
9709 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
9710 hardcode_direct="$acl_cv_hardcode_direct"
9711 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009712 # Check whether --enable-rpath was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009713if test "${enable_rpath+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009714 enableval=$enable_rpath; :
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009715else
9716 enable_rpath=yes
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009717fi
9718
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009719
9720
9721
9722
9723
9724
9725
9726 use_additional=yes
9727
9728 acl_save_prefix="$prefix"
9729 prefix="$acl_final_prefix"
9730 acl_save_exec_prefix="$exec_prefix"
9731 exec_prefix="$acl_final_exec_prefix"
9732
9733 eval additional_includedir=\"$includedir\"
9734 eval additional_libdir=\"$libdir\"
9735
9736 exec_prefix="$acl_save_exec_prefix"
9737 prefix="$acl_save_prefix"
9738
9739
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009740# Check whether --with-libiconv-prefix was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009741if test "${with_libiconv_prefix+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009742 withval=$with_libiconv_prefix;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009743 if test "X$withval" = "Xno"; then
9744 use_additional=no
9745 else
9746 if test "X$withval" = "X"; then
9747
9748 acl_save_prefix="$prefix"
9749 prefix="$acl_final_prefix"
9750 acl_save_exec_prefix="$exec_prefix"
9751 exec_prefix="$acl_final_exec_prefix"
9752
9753 eval additional_includedir=\"$includedir\"
9754 eval additional_libdir=\"$libdir\"
9755
9756 exec_prefix="$acl_save_exec_prefix"
9757 prefix="$acl_save_prefix"
9758
9759 else
9760 additional_includedir="$withval/include"
9761 additional_libdir="$withval/lib"
9762 fi
9763 fi
9764
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +00009765fi
9766
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +00009767 LIBICONV=
9768 LTLIBICONV=
9769 INCICONV=
9770 rpathdirs=
9771 ltrpathdirs=
9772 names_already_handled=
9773 names_next_round='iconv '
9774 while test -n "$names_next_round"; do
9775 names_this_round="$names_next_round"
9776 names_next_round=
9777 for name in $names_this_round; do
9778 already_handled=
9779 for n in $names_already_handled; do
9780 if test "$n" = "$name"; then
9781 already_handled=yes
9782 break
9783 fi
9784 done
9785 if test -z "$already_handled"; then
9786 names_already_handled="$names_already_handled $name"
9787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
9788 eval value=\"\$HAVE_LIB$uppername\"
9789 if test -n "$value"; then
9790 if test "$value" = yes; then
9791 eval value=\"\$LIB$uppername\"
9792 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9793 eval value=\"\$LTLIB$uppername\"
9794 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9795 else
9796 :
9797 fi
9798 else
9799 found_dir=
9800 found_la=
9801 found_so=
9802 found_a=
9803 if test $use_additional = yes; then
9804 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
9805 found_dir="$additional_libdir"
9806 found_so="$additional_libdir/lib$name.$shlibext"
9807 if test -f "$additional_libdir/lib$name.la"; then
9808 found_la="$additional_libdir/lib$name.la"
9809 fi
9810 else
9811 if test -f "$additional_libdir/lib$name.$libext"; then
9812 found_dir="$additional_libdir"
9813 found_a="$additional_libdir/lib$name.$libext"
9814 if test -f "$additional_libdir/lib$name.la"; then
9815 found_la="$additional_libdir/lib$name.la"
9816 fi
9817 fi
9818 fi
9819 fi
9820 if test "X$found_dir" = "X"; then
9821 for x in $LDFLAGS $LTLIBICONV; do
9822
9823 acl_save_prefix="$prefix"
9824 prefix="$acl_final_prefix"
9825 acl_save_exec_prefix="$exec_prefix"
9826 exec_prefix="$acl_final_exec_prefix"
9827 eval x=\"$x\"
9828 exec_prefix="$acl_save_exec_prefix"
9829 prefix="$acl_save_prefix"
9830
9831 case "$x" in
9832 -L*)
9833 dir=`echo "X$x" | sed -e 's/^X-L//'`
9834 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
9835 found_dir="$dir"
9836 found_so="$dir/lib$name.$shlibext"
9837 if test -f "$dir/lib$name.la"; then
9838 found_la="$dir/lib$name.la"
9839 fi
9840 else
9841 if test -f "$dir/lib$name.$libext"; then
9842 found_dir="$dir"
9843 found_a="$dir/lib$name.$libext"
9844 if test -f "$dir/lib$name.la"; then
9845 found_la="$dir/lib$name.la"
9846 fi
9847 fi
9848 fi
9849 ;;
9850 esac
9851 if test "X$found_dir" != "X"; then
9852 break
9853 fi
9854 done
9855 fi
9856 if test "X$found_dir" != "X"; then
9857 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9858 if test "X$found_so" != "X"; then
9859 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
9860 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9861 else
9862 haveit=
9863 for x in $ltrpathdirs; do
9864 if test "X$x" = "X$found_dir"; then
9865 haveit=yes
9866 break
9867 fi
9868 done
9869 if test -z "$haveit"; then
9870 ltrpathdirs="$ltrpathdirs $found_dir"
9871 fi
9872 if test "$hardcode_direct" = yes; then
9873 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9874 else
9875 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
9876 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9877 haveit=
9878 for x in $rpathdirs; do
9879 if test "X$x" = "X$found_dir"; then
9880 haveit=yes
9881 break
9882 fi
9883 done
9884 if test -z "$haveit"; then
9885 rpathdirs="$rpathdirs $found_dir"
9886 fi
9887 else
9888 haveit=
9889 for x in $LDFLAGS $LIBICONV; do
9890
9891 acl_save_prefix="$prefix"
9892 prefix="$acl_final_prefix"
9893 acl_save_exec_prefix="$exec_prefix"
9894 exec_prefix="$acl_final_exec_prefix"
9895 eval x=\"$x\"
9896 exec_prefix="$acl_save_exec_prefix"
9897 prefix="$acl_save_prefix"
9898
9899 if test "X$x" = "X-L$found_dir"; then
9900 haveit=yes
9901 break
9902 fi
9903 done
9904 if test -z "$haveit"; then
9905 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9906 fi
9907 if test "$hardcode_minus_L" != no; then
9908 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9909 else
9910 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9911 fi
9912 fi
9913 fi
9914 fi
9915 else
9916 if test "X$found_a" != "X"; then
9917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9918 else
9919 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9920 fi
9921 fi
9922 additional_includedir=
9923 case "$found_dir" in
9924 */lib | */lib/)
9925 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
9926 additional_includedir="$basedir/include"
9927 ;;
9928 esac
9929 if test "X$additional_includedir" != "X"; then
9930 if test "X$additional_includedir" != "X/usr/include"; then
9931 haveit=
9932 if test "X$additional_includedir" = "X/usr/local/include"; then
9933 if test -n "$GCC"; then
9934 case $host_os in
9935 linux*) haveit=yes;;
9936 esac
9937 fi
9938 fi
9939 if test -z "$haveit"; then
9940 for x in $CPPFLAGS $INCICONV; do
9941
9942 acl_save_prefix="$prefix"
9943 prefix="$acl_final_prefix"
9944 acl_save_exec_prefix="$exec_prefix"
9945 exec_prefix="$acl_final_exec_prefix"
9946 eval x=\"$x\"
9947 exec_prefix="$acl_save_exec_prefix"
9948 prefix="$acl_save_prefix"
9949
9950 if test "X$x" = "X-I$additional_includedir"; then
9951 haveit=yes
9952 break
9953 fi
9954 done
9955 if test -z "$haveit"; then
9956 if test -d "$additional_includedir"; then
9957 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9958 fi
9959 fi
9960 fi
9961 fi
9962 fi
9963 if test -n "$found_la"; then
9964 save_libdir="$libdir"
9965 case "$found_la" in
9966 */* | *\\*) . "$found_la" ;;
9967 *) . "./$found_la" ;;
9968 esac
9969 libdir="$save_libdir"
9970 for dep in $dependency_libs; do
9971 case "$dep" in
9972 -L*)
9973 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9974 if test "X$additional_libdir" != "X/usr/lib"; then
9975 haveit=
9976 if test "X$additional_libdir" = "X/usr/local/lib"; then
9977 if test -n "$GCC"; then
9978 case $host_os in
9979 linux*) haveit=yes;;
9980 esac
9981 fi
9982 fi
9983 if test -z "$haveit"; then
9984 haveit=
9985 for x in $LDFLAGS $LIBICONV; do
9986
9987 acl_save_prefix="$prefix"
9988 prefix="$acl_final_prefix"
9989 acl_save_exec_prefix="$exec_prefix"
9990 exec_prefix="$acl_final_exec_prefix"
9991 eval x=\"$x\"
9992 exec_prefix="$acl_save_exec_prefix"
9993 prefix="$acl_save_prefix"
9994
9995 if test "X$x" = "X-L$additional_libdir"; then
9996 haveit=yes
9997 break
9998 fi
9999 done
10000 if test -z "$haveit"; then
10001 if test -d "$additional_libdir"; then
10002 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
10003 fi
10004 fi
10005 haveit=
10006 for x in $LDFLAGS $LTLIBICONV; do
10007
10008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
10012 eval x=\"$x\"
10013 exec_prefix="$acl_save_exec_prefix"
10014 prefix="$acl_save_prefix"
10015
10016 if test "X$x" = "X-L$additional_libdir"; then
10017 haveit=yes
10018 break
10019 fi
10020 done
10021 if test -z "$haveit"; then
10022 if test -d "$additional_libdir"; then
10023 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
10024 fi
10025 fi
10026 fi
10027 fi
10028 ;;
10029 -R*)
10030 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10031 if test "$enable_rpath" != no; then
10032 haveit=
10033 for x in $rpathdirs; do
10034 if test "X$x" = "X$dir"; then
10035 haveit=yes
10036 break
10037 fi
10038 done
10039 if test -z "$haveit"; then
10040 rpathdirs="$rpathdirs $dir"
10041 fi
10042 haveit=
10043 for x in $ltrpathdirs; do
10044 if test "X$x" = "X$dir"; then
10045 haveit=yes
10046 break
10047 fi
10048 done
10049 if test -z "$haveit"; then
10050 ltrpathdirs="$ltrpathdirs $dir"
10051 fi
10052 fi
10053 ;;
10054 -l*)
10055 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10056 ;;
10057 *.la)
10058 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10059 ;;
10060 *)
10061 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
10062 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
10063 ;;
10064 esac
10065 done
10066 fi
10067 else
10068 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
10069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
10070 fi
10071 fi
10072 fi
10073 done
10074 done
10075 if test "X$rpathdirs" != "X"; then
10076 if test -n "$hardcode_libdir_separator"; then
10077 alldirs=
10078 for found_dir in $rpathdirs; do
10079 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10080 done
10081 acl_save_libdir="$libdir"
10082 libdir="$alldirs"
10083 eval flag=\"$hardcode_libdir_flag_spec\"
10084 libdir="$acl_save_libdir"
10085 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10086 else
10087 for found_dir in $rpathdirs; do
10088 acl_save_libdir="$libdir"
10089 libdir="$found_dir"
10090 eval flag=\"$hardcode_libdir_flag_spec\"
10091 libdir="$acl_save_libdir"
10092 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
10093 done
10094 fi
10095 fi
10096 if test "X$ltrpathdirs" != "X"; then
10097 for found_dir in $ltrpathdirs; do
10098 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
10099 done
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010109 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
10110echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010111if test "${ac_cv_type_ptrdiff_t+set}" = set; then
10112 echo $ECHO_N "(cached) $ECHO_C" >&6
10113else
10114 cat >conftest.$ac_ext <<_ACEOF
10115/* confdefs.h. */
10116_ACEOF
10117cat confdefs.h >>conftest.$ac_ext
10118cat >>conftest.$ac_ext <<_ACEOF
10119/* end confdefs.h. */
10120$ac_includes_default
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010121typedef ptrdiff_t ac__type_new_;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010122int
10123main ()
10124{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010125if ((ac__type_new_ *) 0)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010126 return 0;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010127if (sizeof (ac__type_new_))
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010128 return 0;
10129 ;
10130 return 0;
10131}
10132_ACEOF
10133rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010134if { (ac_try="$ac_compile"
10135case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138esac
10139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010146 (exit $ac_status); } && {
10147 test -z "$ac_cxx_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010150 ac_cv_type_ptrdiff_t=yes
10151else
10152 echo "$as_me: failed program was:" >&5
10153sed 's/^/| /' conftest.$ac_ext >&5
10154
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010155 ac_cv_type_ptrdiff_t=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010156fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010157
10158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010159fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010160{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
10161echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010162if test $ac_cv_type_ptrdiff_t = yes; then
10163 :
10164else
10165
10166cat >>confdefs.h <<\_ACEOF
10167#define ptrdiff_t long
10168_ACEOF
10169
10170
10171fi
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
10184stdlib.h string.h unistd.h sys/param.h
10185do
10186as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010187if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010191 echo $ECHO_N "(cached) $ECHO_C" >&6
10192fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010193ac_res=`eval echo '${'$as_ac_Header'}'`
10194 { echo "$as_me:$LINENO: result: $ac_res" >&5
10195echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010196else
10197 # Is the header compilable?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010198{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10199echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010200cat >conftest.$ac_ext <<_ACEOF
10201/* confdefs.h. */
10202_ACEOF
10203cat confdefs.h >>conftest.$ac_ext
10204cat >>conftest.$ac_ext <<_ACEOF
10205/* end confdefs.h. */
10206$ac_includes_default
10207#include <$ac_header>
10208_ACEOF
10209rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010210if { (ac_try="$ac_compile"
10211case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214esac
10215eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010222 (exit $ac_status); } && {
10223 test -z "$ac_cxx_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010226 ac_header_compiler=yes
10227else
10228 echo "$as_me: failed program was:" >&5
10229sed 's/^/| /' conftest.$ac_ext >&5
10230
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010231 ac_header_compiler=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010232fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010233
10234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10235{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10236echo "${ECHO_T}$ac_header_compiler" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010237
10238# Is the header present?
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010239{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10240echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010241cat >conftest.$ac_ext <<_ACEOF
10242/* confdefs.h. */
10243_ACEOF
10244cat confdefs.h >>conftest.$ac_ext
10245cat >>conftest.$ac_ext <<_ACEOF
10246/* end confdefs.h. */
10247#include <$ac_header>
10248_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010249if { (ac_try="$ac_cpp conftest.$ac_ext"
10250case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010261 (exit $ac_status); } >/dev/null && {
10262 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10263 test ! -s conftest.err
10264 }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010265 ac_header_preproc=yes
10266else
10267 echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_header_preproc=no
10271fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010272
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010273rm -f conftest.err conftest.$ac_ext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010274{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10275echo "${ECHO_T}$ac_header_preproc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010276
10277# So? What about this header?
10278case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10279 yes:no: )
10280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10281echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10283echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10284 ac_header_preproc=yes
10285 ;;
10286 no:yes:* )
10287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10288echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10290echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10292echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10294echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10296echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10298echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010299
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010300 ;;
10301esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010302{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10303echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10304if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306else
10307 eval "$as_ac_Header=\$ac_header_preproc"
10308fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010309ac_res=`eval echo '${'$as_ac_Header'}'`
10310 { echo "$as_me:$LINENO: result: $ac_res" >&5
10311echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010312
10313fi
10314if test `eval echo '${'$as_ac_Header'}'` = yes; then
10315 cat >>confdefs.h <<_ACEOF
10316#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10317_ACEOF
10318
10319fi
10320
10321done
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
10347mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
10348strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
10349__fsetlocking
10350do
10351as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010352{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10353echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10354if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356else
10357 cat >conftest.$ac_ext <<_ACEOF
10358/* confdefs.h. */
10359_ACEOF
10360cat confdefs.h >>conftest.$ac_ext
10361cat >>conftest.$ac_ext <<_ACEOF
10362/* end confdefs.h. */
10363/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10364 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10365#define $ac_func innocuous_$ac_func
10366
10367/* System header to define __stub macros and hopefully few prototypes,
10368 which can conflict with char $ac_func (); below.
10369 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10370 <limits.h> exists even on freestanding compilers. */
10371
10372#ifdef __STDC__
10373# include <limits.h>
10374#else
10375# include <assert.h>
10376#endif
10377
10378#undef $ac_func
10379
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010380/* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010383#ifdef __cplusplus
10384extern "C"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010385#endif
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010386char $ac_func ();
10387/* The GNU C library defines this for functions which it implements
10388 to always fail with ENOSYS. Some functions are actually named
10389 something starting with __ and the normal name is an alias. */
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010390#if defined __stub_$ac_func || defined __stub___$ac_func
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010391choke me
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010392#endif
10393
10394int
10395main ()
10396{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010397return $ac_func ();
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010398 ;
10399 return 0;
10400}
10401_ACEOF
10402rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010403if { (ac_try="$ac_link"
10404case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407esac
10408eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010415 (exit $ac_status); } && {
10416 test -z "$ac_cxx_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010420 eval "$as_ac_var=yes"
10421else
10422 echo "$as_me: failed program was:" >&5
10423sed 's/^/| /' conftest.$ac_ext >&5
10424
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010425 eval "$as_ac_var=no"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010426fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010427
10428rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010429 conftest$ac_exeext conftest.$ac_ext
10430fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010431ac_res=`eval echo '${'$as_ac_var'}'`
10432 { echo "$as_me:$LINENO: result: $ac_res" >&5
10433echo "${ECHO_T}$ac_res" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010434if test `eval echo '${'$as_ac_var'}'` = yes; then
10435 cat >>confdefs.h <<_ACEOF
10436#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10437_ACEOF
10438
10439fi
10440done
10441
10442
10443
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010444 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
10445echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010446if test "${ac_cv_have_decl__snprintf+set}" = set; then
10447 echo $ECHO_N "(cached) $ECHO_C" >&6
10448else
10449 cat >conftest.$ac_ext <<_ACEOF
10450/* confdefs.h. */
10451_ACEOF
10452cat confdefs.h >>conftest.$ac_ext
10453cat >>conftest.$ac_ext <<_ACEOF
10454/* end confdefs.h. */
10455#include <stdio.h>
10456int
10457main ()
10458{
10459
10460#ifndef _snprintf
10461 char *p = (char *) _snprintf;
10462#endif
10463
10464 ;
10465 return 0;
10466}
10467_ACEOF
10468rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010469if { (ac_try="$ac_compile"
10470case "(($ac_try" in
10471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472 *) ac_try_echo=$ac_try;;
10473esac
10474eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10475 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010476 ac_status=$?
10477 grep -v '^ *+' conftest.er1 >conftest.err
10478 rm -f conftest.er1
10479 cat conftest.err >&5
10480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010481 (exit $ac_status); } && {
10482 test -z "$ac_cxx_werror_flag" ||
10483 test ! -s conftest.err
10484 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010485 ac_cv_have_decl__snprintf=yes
10486else
10487 echo "$as_me: failed program was:" >&5
10488sed 's/^/| /' conftest.$ac_ext >&5
10489
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010490 ac_cv_have_decl__snprintf=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010491fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010492
10493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010494fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010495{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
10496echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010497 if test $ac_cv_have_decl__snprintf = yes; then
10498 gt_value=1
10499 else
10500 gt_value=0
10501 fi
10502
10503cat >>confdefs.h <<_ACEOF
10504#define HAVE_DECL__SNPRINTF $gt_value
10505_ACEOF
10506
10507
10508
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010509 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
10510echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010511if test "${ac_cv_have_decl__snwprintf+set}" = set; then
10512 echo $ECHO_N "(cached) $ECHO_C" >&6
10513else
10514 cat >conftest.$ac_ext <<_ACEOF
10515/* confdefs.h. */
10516_ACEOF
10517cat confdefs.h >>conftest.$ac_ext
10518cat >>conftest.$ac_ext <<_ACEOF
10519/* end confdefs.h. */
10520#include <stdio.h>
10521int
10522main ()
10523{
10524
10525#ifndef _snwprintf
10526 char *p = (char *) _snwprintf;
10527#endif
10528
10529 ;
10530 return 0;
10531}
10532_ACEOF
10533rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010534if { (ac_try="$ac_compile"
10535case "(($ac_try" in
10536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10537 *) ac_try_echo=$ac_try;;
10538esac
10539eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10540 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010541 ac_status=$?
10542 grep -v '^ *+' conftest.er1 >conftest.err
10543 rm -f conftest.er1
10544 cat conftest.err >&5
10545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010546 (exit $ac_status); } && {
10547 test -z "$ac_cxx_werror_flag" ||
10548 test ! -s conftest.err
10549 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010550 ac_cv_have_decl__snwprintf=yes
10551else
10552 echo "$as_me: failed program was:" >&5
10553sed 's/^/| /' conftest.$ac_ext >&5
10554
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010555 ac_cv_have_decl__snwprintf=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010556fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010557
10558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010559fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010560{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
10561echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010562 if test $ac_cv_have_decl__snwprintf = yes; then
10563 gt_value=1
10564 else
10565 gt_value=0
10566 fi
10567
10568cat >>confdefs.h <<_ACEOF
10569#define HAVE_DECL__SNWPRINTF $gt_value
10570_ACEOF
10571
10572
10573
10574
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010575 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
10576echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010577if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10579else
10580 cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h. */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h. */
10586#include <stdio.h>
10587int
10588main ()
10589{
10590
10591#ifndef feof_unlocked
10592 char *p = (char *) feof_unlocked;
10593#endif
10594
10595 ;
10596 return 0;
10597}
10598_ACEOF
10599rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010600if { (ac_try="$ac_compile"
10601case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10604esac
10605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010607 ac_status=$?
10608 grep -v '^ *+' conftest.er1 >conftest.err
10609 rm -f conftest.er1
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010612 (exit $ac_status); } && {
10613 test -z "$ac_cxx_werror_flag" ||
10614 test ! -s conftest.err
10615 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010616 ac_cv_have_decl_feof_unlocked=yes
10617else
10618 echo "$as_me: failed program was:" >&5
10619sed 's/^/| /' conftest.$ac_ext >&5
10620
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010621 ac_cv_have_decl_feof_unlocked=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010622fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010623
10624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010625fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010626{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
10627echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010628 if test $ac_cv_have_decl_feof_unlocked = yes; then
10629 gt_value=1
10630 else
10631 gt_value=0
10632 fi
10633
10634cat >>confdefs.h <<_ACEOF
10635#define HAVE_DECL_FEOF_UNLOCKED $gt_value
10636_ACEOF
10637
10638
10639
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010640 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
10641echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010642if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10644else
10645 cat >conftest.$ac_ext <<_ACEOF
10646/* confdefs.h. */
10647_ACEOF
10648cat confdefs.h >>conftest.$ac_ext
10649cat >>conftest.$ac_ext <<_ACEOF
10650/* end confdefs.h. */
10651#include <stdio.h>
10652int
10653main ()
10654{
10655
10656#ifndef fgets_unlocked
10657 char *p = (char *) fgets_unlocked;
10658#endif
10659
10660 ;
10661 return 0;
10662}
10663_ACEOF
10664rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010665if { (ac_try="$ac_compile"
10666case "(($ac_try" in
10667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10668 *) ac_try_echo=$ac_try;;
10669esac
10670eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10671 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010672 ac_status=$?
10673 grep -v '^ *+' conftest.er1 >conftest.err
10674 rm -f conftest.er1
10675 cat conftest.err >&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010677 (exit $ac_status); } && {
10678 test -z "$ac_cxx_werror_flag" ||
10679 test ! -s conftest.err
10680 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010681 ac_cv_have_decl_fgets_unlocked=yes
10682else
10683 echo "$as_me: failed program was:" >&5
10684sed 's/^/| /' conftest.$ac_ext >&5
10685
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010686 ac_cv_have_decl_fgets_unlocked=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010687fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010688
10689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010690fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010691{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10692echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010693 if test $ac_cv_have_decl_fgets_unlocked = yes; then
10694 gt_value=1
10695 else
10696 gt_value=0
10697 fi
10698
10699cat >>confdefs.h <<_ACEOF
10700#define HAVE_DECL_FGETS_UNLOCKED $gt_value
10701_ACEOF
10702
10703
10704
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010705 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10706echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010707if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709else
10710 cat >conftest.$ac_ext <<_ACEOF
10711/* confdefs.h. */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h. */
10716#include <stdio.h>
10717int
10718main ()
10719{
10720
10721#ifndef getc_unlocked
10722 char *p = (char *) getc_unlocked;
10723#endif
10724
10725 ;
10726 return 0;
10727}
10728_ACEOF
10729rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010730if { (ac_try="$ac_compile"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010742 (exit $ac_status); } && {
10743 test -z "$ac_cxx_werror_flag" ||
10744 test ! -s conftest.err
10745 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010746 ac_cv_have_decl_getc_unlocked=yes
10747else
10748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010751 ac_cv_have_decl_getc_unlocked=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010752fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010753
10754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010755fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010756{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10757echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010758 if test $ac_cv_have_decl_getc_unlocked = yes; then
10759 gt_value=1
10760 else
10761 gt_value=0
10762 fi
10763
10764cat >>confdefs.h <<_ACEOF
10765#define HAVE_DECL_GETC_UNLOCKED $gt_value
10766_ACEOF
10767
10768
10769
10770 case $gt_cv_func_printf_posix in
10771 *yes) HAVE_POSIX_PRINTF=1 ;;
10772 *) HAVE_POSIX_PRINTF=0 ;;
10773 esac
10774
10775 if test "$ac_cv_func_asprintf" = yes; then
10776 HAVE_ASPRINTF=1
10777 else
10778 HAVE_ASPRINTF=0
10779 fi
10780
10781 if test "$ac_cv_func_snprintf" = yes; then
10782 HAVE_SNPRINTF=1
10783 else
10784 HAVE_SNPRINTF=0
10785 fi
10786
10787 if test "$ac_cv_func_wprintf" = yes; then
10788 HAVE_WPRINTF=1
10789 else
10790 HAVE_WPRINTF=0
10791 fi
10792
10793
10794
10795
10796
10797
10798
10799 am_save_CPPFLAGS="$CPPFLAGS"
10800
10801 for element in $INCICONV; do
10802 haveit=
10803 for x in $CPPFLAGS; do
10804
10805 acl_save_prefix="$prefix"
10806 prefix="$acl_final_prefix"
10807 acl_save_exec_prefix="$exec_prefix"
10808 exec_prefix="$acl_final_exec_prefix"
10809 eval x=\"$x\"
10810 exec_prefix="$acl_save_exec_prefix"
10811 prefix="$acl_save_prefix"
10812
10813 if test "X$x" = "X$element"; then
10814 haveit=yes
10815 break
10816 fi
10817 done
10818 if test -z "$haveit"; then
10819 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10820 fi
10821 done
10822
10823
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010824 { echo "$as_me:$LINENO: checking for iconv" >&5
10825echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010826if test "${am_cv_func_iconv+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10828else
10829
10830 am_cv_func_iconv="no, consider installing GNU libiconv"
10831 am_cv_lib_iconv=no
10832 cat >conftest.$ac_ext <<_ACEOF
10833/* confdefs.h. */
10834_ACEOF
10835cat confdefs.h >>conftest.$ac_ext
10836cat >>conftest.$ac_ext <<_ACEOF
10837/* end confdefs.h. */
10838#include <stdlib.h>
10839#include <iconv.h>
10840int
10841main ()
10842{
10843iconv_t cd = iconv_open("","");
10844 iconv(cd,NULL,NULL,NULL,NULL);
10845 iconv_close(cd);
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010851if { (ac_try="$ac_link"
10852case "(($ac_try" in
10853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10854 *) ac_try_echo=$ac_try;;
10855esac
10856eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10857 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010858 ac_status=$?
10859 grep -v '^ *+' conftest.er1 >conftest.err
10860 rm -f conftest.er1
10861 cat conftest.err >&5
10862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010863 (exit $ac_status); } && {
10864 test -z "$ac_cxx_werror_flag" ||
10865 test ! -s conftest.err
10866 } && test -s conftest$ac_exeext &&
10867 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010868 am_cv_func_iconv=yes
10869else
10870 echo "$as_me: failed program was:" >&5
10871sed 's/^/| /' conftest.$ac_ext >&5
10872
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010873
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010874fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010875
10876rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010877 conftest$ac_exeext conftest.$ac_ext
10878 if test "$am_cv_func_iconv" != yes; then
10879 am_save_LIBS="$LIBS"
10880 LIBS="$LIBS $LIBICONV"
10881 cat >conftest.$ac_ext <<_ACEOF
10882/* confdefs.h. */
10883_ACEOF
10884cat confdefs.h >>conftest.$ac_ext
10885cat >>conftest.$ac_ext <<_ACEOF
10886/* end confdefs.h. */
10887#include <stdlib.h>
10888#include <iconv.h>
10889int
10890main ()
10891{
10892iconv_t cd = iconv_open("","");
10893 iconv(cd,NULL,NULL,NULL,NULL);
10894 iconv_close(cd);
10895 ;
10896 return 0;
10897}
10898_ACEOF
10899rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010900if { (ac_try="$ac_link"
10901case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904esac
10905eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010912 (exit $ac_status); } && {
10913 test -z "$ac_cxx_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010917 am_cv_lib_iconv=yes
10918 am_cv_func_iconv=yes
10919else
10920 echo "$as_me: failed program was:" >&5
10921sed 's/^/| /' conftest.$ac_ext >&5
10922
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010923
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010924fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010925
10926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS="$am_save_LIBS"
10929 fi
10930
10931fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010932{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
10933echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010934 if test "$am_cv_func_iconv" = yes; then
10935
10936cat >>confdefs.h <<\_ACEOF
10937#define HAVE_ICONV 1
10938_ACEOF
10939
10940 fi
10941 if test "$am_cv_lib_iconv" = yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010942 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
10943echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
10944 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
10945echo "${ECHO_T}$LIBICONV" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010946 else
10947 CPPFLAGS="$am_save_CPPFLAGS"
10948 LIBICONV=
10949 LTLIBICONV=
10950 fi
10951
10952
10953
10954 if test "$am_cv_func_iconv" = yes; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010955 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
10956echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010957 if test "${am_cv_proto_iconv+set}" = set; then
10958 echo $ECHO_N "(cached) $ECHO_C" >&6
10959else
10960
10961 cat >conftest.$ac_ext <<_ACEOF
10962/* confdefs.h. */
10963_ACEOF
10964cat confdefs.h >>conftest.$ac_ext
10965cat >>conftest.$ac_ext <<_ACEOF
10966/* end confdefs.h. */
10967
10968#include <stdlib.h>
10969#include <iconv.h>
10970extern
10971#ifdef __cplusplus
10972"C"
10973#endif
10974#if defined(__STDC__) || defined(__cplusplus)
10975size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
10976#else
10977size_t iconv();
10978#endif
10979
10980int
10981main ()
10982{
10983
10984 ;
10985 return 0;
10986}
10987_ACEOF
10988rm -f conftest.$ac_objext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000010989if { (ac_try="$ac_compile"
10990case "(($ac_try" in
10991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10992 *) ac_try_echo=$ac_try;;
10993esac
10994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10995 (eval "$ac_compile") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000010996 ac_status=$?
10997 grep -v '^ *+' conftest.er1 >conftest.err
10998 rm -f conftest.er1
10999 cat conftest.err >&5
11000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011001 (exit $ac_status); } && {
11002 test -z "$ac_cxx_werror_flag" ||
11003 test ! -s conftest.err
11004 } && test -s conftest.$ac_objext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011005 am_cv_proto_iconv_arg1=""
11006else
11007 echo "$as_me: failed program was:" >&5
11008sed 's/^/| /' conftest.$ac_ext >&5
11009
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011010 am_cv_proto_iconv_arg1="const"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011011fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011012
11013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011014 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);"
11015fi
11016
11017 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011018 { echo "$as_me:$LINENO: result: ${ac_t:-
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011019 }$am_cv_proto_iconv" >&5
11020echo "${ECHO_T}${ac_t:-
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011021 }$am_cv_proto_iconv" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011022
11023cat >>confdefs.h <<_ACEOF
11024#define ICONV_CONST $am_cv_proto_iconv_arg1
11025_ACEOF
11026
11027 fi
11028
11029
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011030 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11031echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011032if test "${am_cv_langinfo_codeset+set}" = set; then
11033 echo $ECHO_N "(cached) $ECHO_C" >&6
11034else
11035 cat >conftest.$ac_ext <<_ACEOF
11036/* confdefs.h. */
11037_ACEOF
11038cat confdefs.h >>conftest.$ac_ext
11039cat >>conftest.$ac_ext <<_ACEOF
11040/* end confdefs.h. */
11041#include <langinfo.h>
11042int
11043main ()
11044{
11045char* cs = nl_langinfo(CODESET);
11046 ;
11047 return 0;
11048}
11049_ACEOF
11050rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011051if { (ac_try="$ac_link"
11052case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11055esac
11056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011058 ac_status=$?
11059 grep -v '^ *+' conftest.er1 >conftest.err
11060 rm -f conftest.er1
11061 cat conftest.err >&5
11062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011063 (exit $ac_status); } && {
11064 test -z "$ac_cxx_werror_flag" ||
11065 test ! -s conftest.err
11066 } && test -s conftest$ac_exeext &&
11067 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011068 am_cv_langinfo_codeset=yes
11069else
11070 echo "$as_me: failed program was:" >&5
11071sed 's/^/| /' conftest.$ac_ext >&5
11072
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011073 am_cv_langinfo_codeset=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011074fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011075
11076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011077 conftest$ac_exeext conftest.$ac_ext
11078
11079fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011080{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11081echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011082 if test $am_cv_langinfo_codeset = yes; then
11083
11084cat >>confdefs.h <<\_ACEOF
11085#define HAVE_LANGINFO_CODESET 1
11086_ACEOF
11087
11088 fi
11089
11090 if test $ac_cv_header_locale_h = yes; then
11091
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011092 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
11093echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011094if test "${am_cv_val_LC_MESSAGES+set}" = set; then
11095 echo $ECHO_N "(cached) $ECHO_C" >&6
11096else
11097 cat >conftest.$ac_ext <<_ACEOF
11098/* confdefs.h. */
11099_ACEOF
11100cat confdefs.h >>conftest.$ac_ext
11101cat >>conftest.$ac_ext <<_ACEOF
11102/* end confdefs.h. */
11103#include <locale.h>
11104int
11105main ()
11106{
11107return LC_MESSAGES
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011125 (exit $ac_status); } && {
11126 test -z "$ac_cxx_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest$ac_exeext &&
11129 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011130 am_cv_val_LC_MESSAGES=yes
11131else
11132 echo "$as_me: failed program was:" >&5
11133sed 's/^/| /' conftest.$ac_ext >&5
11134
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011135 am_cv_val_LC_MESSAGES=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011136fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011137
11138rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011139 conftest$ac_exeext conftest.$ac_ext
11140fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011141{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
11142echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011143 if test $am_cv_val_LC_MESSAGES = yes; then
11144
11145cat >>confdefs.h <<\_ACEOF
11146#define HAVE_LC_MESSAGES 1
11147_ACEOF
11148
11149 fi
11150
11151 fi
11152
11153 for ac_prog in bison
11154do
11155 # Extract the first word of "$ac_prog", so it can be a program name with args.
11156set dummy $ac_prog; ac_word=$2
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011157{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11158echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011159if test "${ac_cv_prog_INTLBISON+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11161else
11162 if test -n "$INTLBISON"; then
11163 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
11164else
11165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11166for as_dir in $PATH
11167do
11168 IFS=$as_save_IFS
11169 test -z "$as_dir" && as_dir=.
11170 for ac_exec_ext in '' $ac_executable_extensions; do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011172 ac_cv_prog_INTLBISON="$ac_prog"
11173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11174 break 2
11175 fi
11176done
11177done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011178IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011179
11180fi
11181fi
11182INTLBISON=$ac_cv_prog_INTLBISON
11183if test -n "$INTLBISON"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011184 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
11185echo "${ECHO_T}$INTLBISON" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011186else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011187 { echo "$as_me:$LINENO: result: no" >&5
11188echo "${ECHO_T}no" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011189fi
11190
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011191
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011192 test -n "$INTLBISON" && break
11193done
11194
11195 if test -z "$INTLBISON"; then
11196 ac_verc_fail=yes
11197 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011198 { echo "$as_me:$LINENO: checking version of bison" >&5
11199echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011200 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
11201 case $ac_prog_version in
11202 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
11203 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
11204 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
11205 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
11206 esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011207 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
11208echo "${ECHO_T}$ac_prog_version" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011209 fi
11210 if test $ac_verc_fail = yes; then
11211 INTLBISON=:
11212 fi
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011229 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
11230echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
11231 # Check whether --enable-nls was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011232if test "${enable_nls+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011233 enableval=$enable_nls; USE_NLS=$enableval
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011234else
11235 USE_NLS=yes
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011236fi
11237
11238 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11239echo "${ECHO_T}$USE_NLS" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011240
11241
11242
11243
11244 BUILD_INCLUDED_LIBINTL=no
11245 USE_INCLUDED_LIBINTL=no
11246
11247 LIBINTL=
11248 LTLIBINTL=
11249 POSUB=
11250
11251 if test "$USE_NLS" = "yes"; then
11252 gt_use_preinstalled_gnugettext=no
11253
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011254 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
11255echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011256
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011257# Check whether --with-included-gettext was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011258if test "${with_included_gettext+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011259 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011260else
11261 nls_cv_force_use_gnu_gettext=no
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011262fi
11263
11264 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
11265echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011266
11267 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
11268 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
11269
11270
11271
11272
11273
11274
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011275 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
11276echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011277if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11279else
11280 cat >conftest.$ac_ext <<_ACEOF
11281/* confdefs.h. */
11282_ACEOF
11283cat confdefs.h >>conftest.$ac_ext
11284cat >>conftest.$ac_ext <<_ACEOF
11285/* end confdefs.h. */
11286#include <libintl.h>
11287extern int _nl_msg_cat_cntr;
11288extern int *_nl_domain_bindings;
11289int
11290main ()
11291{
11292bindtextdomain ("", "");
11293return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
11294 ;
11295 return 0;
11296}
11297_ACEOF
11298rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011299if { (ac_try="$ac_link"
11300case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11303esac
11304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011306 ac_status=$?
11307 grep -v '^ *+' conftest.er1 >conftest.err
11308 rm -f conftest.er1
11309 cat conftest.err >&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011311 (exit $ac_status); } && {
11312 test -z "$ac_cxx_werror_flag" ||
11313 test ! -s conftest.err
11314 } && test -s conftest$ac_exeext &&
11315 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011316 gt_cv_func_gnugettext1_libc=yes
11317else
11318 echo "$as_me: failed program was:" >&5
11319sed 's/^/| /' conftest.$ac_ext >&5
11320
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011321 gt_cv_func_gnugettext1_libc=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011322fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011323
11324rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011325 conftest$ac_exeext conftest.$ac_ext
11326fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011327{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
11328echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011329
11330 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
11331
11332
11333
11334 use_additional=yes
11335
11336 acl_save_prefix="$prefix"
11337 prefix="$acl_final_prefix"
11338 acl_save_exec_prefix="$exec_prefix"
11339 exec_prefix="$acl_final_exec_prefix"
11340
11341 eval additional_includedir=\"$includedir\"
11342 eval additional_libdir=\"$libdir\"
11343
11344 exec_prefix="$acl_save_exec_prefix"
11345 prefix="$acl_save_prefix"
11346
11347
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011348# Check whether --with-libintl-prefix was given.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011349if test "${with_libintl_prefix+set}" = set; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011350 withval=$with_libintl_prefix;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011351 if test "X$withval" = "Xno"; then
11352 use_additional=no
11353 else
11354 if test "X$withval" = "X"; then
11355
11356 acl_save_prefix="$prefix"
11357 prefix="$acl_final_prefix"
11358 acl_save_exec_prefix="$exec_prefix"
11359 exec_prefix="$acl_final_exec_prefix"
11360
11361 eval additional_includedir=\"$includedir\"
11362 eval additional_libdir=\"$libdir\"
11363
11364 exec_prefix="$acl_save_exec_prefix"
11365 prefix="$acl_save_prefix"
11366
11367 else
11368 additional_includedir="$withval/include"
11369 additional_libdir="$withval/lib"
11370 fi
11371 fi
11372
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011373fi
11374
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011375 LIBINTL=
11376 LTLIBINTL=
11377 INCINTL=
11378 rpathdirs=
11379 ltrpathdirs=
11380 names_already_handled=
11381 names_next_round='intl '
11382 while test -n "$names_next_round"; do
11383 names_this_round="$names_next_round"
11384 names_next_round=
11385 for name in $names_this_round; do
11386 already_handled=
11387 for n in $names_already_handled; do
11388 if test "$n" = "$name"; then
11389 already_handled=yes
11390 break
11391 fi
11392 done
11393 if test -z "$already_handled"; then
11394 names_already_handled="$names_already_handled $name"
11395 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11396 eval value=\"\$HAVE_LIB$uppername\"
11397 if test -n "$value"; then
11398 if test "$value" = yes; then
11399 eval value=\"\$LIB$uppername\"
11400 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11401 eval value=\"\$LTLIB$uppername\"
11402 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11403 else
11404 :
11405 fi
11406 else
11407 found_dir=
11408 found_la=
11409 found_so=
11410 found_a=
11411 if test $use_additional = yes; then
11412 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
11413 found_dir="$additional_libdir"
11414 found_so="$additional_libdir/lib$name.$shlibext"
11415 if test -f "$additional_libdir/lib$name.la"; then
11416 found_la="$additional_libdir/lib$name.la"
11417 fi
11418 else
11419 if test -f "$additional_libdir/lib$name.$libext"; then
11420 found_dir="$additional_libdir"
11421 found_a="$additional_libdir/lib$name.$libext"
11422 if test -f "$additional_libdir/lib$name.la"; then
11423 found_la="$additional_libdir/lib$name.la"
11424 fi
11425 fi
11426 fi
11427 fi
11428 if test "X$found_dir" = "X"; then
11429 for x in $LDFLAGS $LTLIBINTL; do
11430
11431 acl_save_prefix="$prefix"
11432 prefix="$acl_final_prefix"
11433 acl_save_exec_prefix="$exec_prefix"
11434 exec_prefix="$acl_final_exec_prefix"
11435 eval x=\"$x\"
11436 exec_prefix="$acl_save_exec_prefix"
11437 prefix="$acl_save_prefix"
11438
11439 case "$x" in
11440 -L*)
11441 dir=`echo "X$x" | sed -e 's/^X-L//'`
11442 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
11443 found_dir="$dir"
11444 found_so="$dir/lib$name.$shlibext"
11445 if test -f "$dir/lib$name.la"; then
11446 found_la="$dir/lib$name.la"
11447 fi
11448 else
11449 if test -f "$dir/lib$name.$libext"; then
11450 found_dir="$dir"
11451 found_a="$dir/lib$name.$libext"
11452 if test -f "$dir/lib$name.la"; then
11453 found_la="$dir/lib$name.la"
11454 fi
11455 fi
11456 fi
11457 ;;
11458 esac
11459 if test "X$found_dir" != "X"; then
11460 break
11461 fi
11462 done
11463 fi
11464 if test "X$found_dir" != "X"; then
11465 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11466 if test "X$found_so" != "X"; then
11467 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
11468 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11469 else
11470 haveit=
11471 for x in $ltrpathdirs; do
11472 if test "X$x" = "X$found_dir"; then
11473 haveit=yes
11474 break
11475 fi
11476 done
11477 if test -z "$haveit"; then
11478 ltrpathdirs="$ltrpathdirs $found_dir"
11479 fi
11480 if test "$hardcode_direct" = yes; then
11481 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11482 else
11483 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11484 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11485 haveit=
11486 for x in $rpathdirs; do
11487 if test "X$x" = "X$found_dir"; then
11488 haveit=yes
11489 break
11490 fi
11491 done
11492 if test -z "$haveit"; then
11493 rpathdirs="$rpathdirs $found_dir"
11494 fi
11495 else
11496 haveit=
11497 for x in $LDFLAGS $LIBINTL; do
11498
11499 acl_save_prefix="$prefix"
11500 prefix="$acl_final_prefix"
11501 acl_save_exec_prefix="$exec_prefix"
11502 exec_prefix="$acl_final_exec_prefix"
11503 eval x=\"$x\"
11504 exec_prefix="$acl_save_exec_prefix"
11505 prefix="$acl_save_prefix"
11506
11507 if test "X$x" = "X-L$found_dir"; then
11508 haveit=yes
11509 break
11510 fi
11511 done
11512 if test -z "$haveit"; then
11513 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11514 fi
11515 if test "$hardcode_minus_L" != no; then
11516 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11517 else
11518 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11519 fi
11520 fi
11521 fi
11522 fi
11523 else
11524 if test "X$found_a" != "X"; then
11525 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11526 else
11527 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11528 fi
11529 fi
11530 additional_includedir=
11531 case "$found_dir" in
11532 */lib | */lib/)
11533 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
11534 additional_includedir="$basedir/include"
11535 ;;
11536 esac
11537 if test "X$additional_includedir" != "X"; then
11538 if test "X$additional_includedir" != "X/usr/include"; then
11539 haveit=
11540 if test "X$additional_includedir" = "X/usr/local/include"; then
11541 if test -n "$GCC"; then
11542 case $host_os in
11543 linux*) haveit=yes;;
11544 esac
11545 fi
11546 fi
11547 if test -z "$haveit"; then
11548 for x in $CPPFLAGS $INCINTL; do
11549
11550 acl_save_prefix="$prefix"
11551 prefix="$acl_final_prefix"
11552 acl_save_exec_prefix="$exec_prefix"
11553 exec_prefix="$acl_final_exec_prefix"
11554 eval x=\"$x\"
11555 exec_prefix="$acl_save_exec_prefix"
11556 prefix="$acl_save_prefix"
11557
11558 if test "X$x" = "X-I$additional_includedir"; then
11559 haveit=yes
11560 break
11561 fi
11562 done
11563 if test -z "$haveit"; then
11564 if test -d "$additional_includedir"; then
11565 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11566 fi
11567 fi
11568 fi
11569 fi
11570 fi
11571 if test -n "$found_la"; then
11572 save_libdir="$libdir"
11573 case "$found_la" in
11574 */* | *\\*) . "$found_la" ;;
11575 *) . "./$found_la" ;;
11576 esac
11577 libdir="$save_libdir"
11578 for dep in $dependency_libs; do
11579 case "$dep" in
11580 -L*)
11581 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11582 if test "X$additional_libdir" != "X/usr/lib"; then
11583 haveit=
11584 if test "X$additional_libdir" = "X/usr/local/lib"; then
11585 if test -n "$GCC"; then
11586 case $host_os in
11587 linux*) haveit=yes;;
11588 esac
11589 fi
11590 fi
11591 if test -z "$haveit"; then
11592 haveit=
11593 for x in $LDFLAGS $LIBINTL; do
11594
11595 acl_save_prefix="$prefix"
11596 prefix="$acl_final_prefix"
11597 acl_save_exec_prefix="$exec_prefix"
11598 exec_prefix="$acl_final_exec_prefix"
11599 eval x=\"$x\"
11600 exec_prefix="$acl_save_exec_prefix"
11601 prefix="$acl_save_prefix"
11602
11603 if test "X$x" = "X-L$additional_libdir"; then
11604 haveit=yes
11605 break
11606 fi
11607 done
11608 if test -z "$haveit"; then
11609 if test -d "$additional_libdir"; then
11610 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11611 fi
11612 fi
11613 haveit=
11614 for x in $LDFLAGS $LTLIBINTL; do
11615
11616 acl_save_prefix="$prefix"
11617 prefix="$acl_final_prefix"
11618 acl_save_exec_prefix="$exec_prefix"
11619 exec_prefix="$acl_final_exec_prefix"
11620 eval x=\"$x\"
11621 exec_prefix="$acl_save_exec_prefix"
11622 prefix="$acl_save_prefix"
11623
11624 if test "X$x" = "X-L$additional_libdir"; then
11625 haveit=yes
11626 break
11627 fi
11628 done
11629 if test -z "$haveit"; then
11630 if test -d "$additional_libdir"; then
11631 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11632 fi
11633 fi
11634 fi
11635 fi
11636 ;;
11637 -R*)
11638 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11639 if test "$enable_rpath" != no; then
11640 haveit=
11641 for x in $rpathdirs; do
11642 if test "X$x" = "X$dir"; then
11643 haveit=yes
11644 break
11645 fi
11646 done
11647 if test -z "$haveit"; then
11648 rpathdirs="$rpathdirs $dir"
11649 fi
11650 haveit=
11651 for x in $ltrpathdirs; do
11652 if test "X$x" = "X$dir"; then
11653 haveit=yes
11654 break
11655 fi
11656 done
11657 if test -z "$haveit"; then
11658 ltrpathdirs="$ltrpathdirs $dir"
11659 fi
11660 fi
11661 ;;
11662 -l*)
11663 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11664 ;;
11665 *.la)
11666 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11667 ;;
11668 *)
11669 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11670 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11671 ;;
11672 esac
11673 done
11674 fi
11675 else
11676 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11677 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11678 fi
11679 fi
11680 fi
11681 done
11682 done
11683 if test "X$rpathdirs" != "X"; then
11684 if test -n "$hardcode_libdir_separator"; then
11685 alldirs=
11686 for found_dir in $rpathdirs; do
11687 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11688 done
11689 acl_save_libdir="$libdir"
11690 libdir="$alldirs"
11691 eval flag=\"$hardcode_libdir_flag_spec\"
11692 libdir="$acl_save_libdir"
11693 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11694 else
11695 for found_dir in $rpathdirs; do
11696 acl_save_libdir="$libdir"
11697 libdir="$found_dir"
11698 eval flag=\"$hardcode_libdir_flag_spec\"
11699 libdir="$acl_save_libdir"
11700 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11701 done
11702 fi
11703 fi
11704 if test "X$ltrpathdirs" != "X"; then
11705 for found_dir in $ltrpathdirs; do
11706 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11707 done
11708 fi
11709
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011710 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
11711echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011712if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
11713 echo $ECHO_N "(cached) $ECHO_C" >&6
11714else
11715 gt_save_CPPFLAGS="$CPPFLAGS"
11716 CPPFLAGS="$CPPFLAGS $INCINTL"
11717 gt_save_LIBS="$LIBS"
11718 LIBS="$LIBS $LIBINTL"
11719 cat >conftest.$ac_ext <<_ACEOF
11720/* confdefs.h. */
11721_ACEOF
11722cat confdefs.h >>conftest.$ac_ext
11723cat >>conftest.$ac_ext <<_ACEOF
11724/* end confdefs.h. */
11725#include <libintl.h>
11726extern int _nl_msg_cat_cntr;
11727extern
11728#ifdef __cplusplus
11729"C"
11730#endif
11731const char *_nl_expand_alias ();
11732int
11733main ()
11734{
11735bindtextdomain ("", "");
11736return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11737 ;
11738 return 0;
11739}
11740_ACEOF
11741rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011742if { (ac_try="$ac_link"
11743case "(($ac_try" in
11744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11745 *) ac_try_echo=$ac_try;;
11746esac
11747eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11748 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011749 ac_status=$?
11750 grep -v '^ *+' conftest.er1 >conftest.err
11751 rm -f conftest.er1
11752 cat conftest.err >&5
11753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011754 (exit $ac_status); } && {
11755 test -z "$ac_cxx_werror_flag" ||
11756 test ! -s conftest.err
11757 } && test -s conftest$ac_exeext &&
11758 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011759 gt_cv_func_gnugettext1_libintl=yes
11760else
11761 echo "$as_me: failed program was:" >&5
11762sed 's/^/| /' conftest.$ac_ext >&5
11763
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011764 gt_cv_func_gnugettext1_libintl=no
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011765fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011766
11767rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011768 conftest$ac_exeext conftest.$ac_ext
11769 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
11770 LIBS="$LIBS $LIBICONV"
11771 cat >conftest.$ac_ext <<_ACEOF
11772/* confdefs.h. */
11773_ACEOF
11774cat confdefs.h >>conftest.$ac_ext
11775cat >>conftest.$ac_ext <<_ACEOF
11776/* end confdefs.h. */
11777#include <libintl.h>
11778extern int _nl_msg_cat_cntr;
11779extern
11780#ifdef __cplusplus
11781"C"
11782#endif
11783const char *_nl_expand_alias ();
11784int
11785main ()
11786{
11787bindtextdomain ("", "");
11788return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
11789 ;
11790 return 0;
11791}
11792_ACEOF
11793rm -f conftest.$ac_objext conftest$ac_exeext
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011794if { (ac_try="$ac_link"
11795case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798esac
11799eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011806 (exit $ac_status); } && {
11807 test -z "$ac_cxx_werror_flag" ||
11808 test ! -s conftest.err
11809 } && test -s conftest$ac_exeext &&
11810 $as_test_x conftest$ac_exeext; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011811 LIBINTL="$LIBINTL $LIBICONV"
11812 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11813 gt_cv_func_gnugettext1_libintl=yes
11814
11815else
11816 echo "$as_me: failed program was:" >&5
11817sed 's/^/| /' conftest.$ac_ext >&5
11818
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011819
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011820fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011821
11822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011823 conftest$ac_exeext conftest.$ac_ext
11824 fi
11825 CPPFLAGS="$gt_save_CPPFLAGS"
11826 LIBS="$gt_save_LIBS"
11827fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011828{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
11829echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011830 fi
11831
11832 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
11833 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
11834 && test "$PACKAGE" != gettext-runtime \
11835 && test "$PACKAGE" != gettext-tools; }; then
11836 gt_use_preinstalled_gnugettext=yes
11837 else
11838 LIBINTL=
11839 LTLIBINTL=
11840 INCINTL=
11841 fi
11842
11843
11844 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11845 nls_cv_use_gnu_gettext=yes
11846 fi
11847 fi
11848
11849 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11850 BUILD_INCLUDED_LIBINTL=yes
11851 USE_INCLUDED_LIBINTL=yes
11852 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
11853 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
11854 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11855 fi
11856
11857 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11858 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11859 CATOBJEXT=.gmo
11860 fi
11861
11862
11863 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11864 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11865
11866cat >>confdefs.h <<\_ACEOF
11867#define ENABLE_NLS 1
11868_ACEOF
11869
11870 else
11871 USE_NLS=no
11872 fi
11873 fi
11874
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011875 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
11876echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
11877 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
11878echo "${ECHO_T}$USE_NLS" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011879 if test "$USE_NLS" = "yes"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011880 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
11881echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011882 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11883 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
11884 gt_source="external libintl"
11885 else
11886 gt_source="libc"
11887 fi
11888 else
11889 gt_source="included intl directory"
11890 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011891 { echo "$as_me:$LINENO: result: $gt_source" >&5
11892echo "${ECHO_T}$gt_source" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011893 fi
11894
11895 if test "$USE_NLS" = "yes"; then
11896
11897 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
11898 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011899 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
11900echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
11901 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
11902echo "${ECHO_T}$LIBINTL" >&6; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011903
11904 for element in $INCINTL; do
11905 haveit=
11906 for x in $CPPFLAGS; do
11907
11908 acl_save_prefix="$prefix"
11909 prefix="$acl_final_prefix"
11910 acl_save_exec_prefix="$exec_prefix"
11911 exec_prefix="$acl_final_exec_prefix"
11912 eval x=\"$x\"
11913 exec_prefix="$acl_save_exec_prefix"
11914 prefix="$acl_save_prefix"
11915
11916 if test "X$x" = "X$element"; then
11917 haveit=yes
11918 break
11919 fi
11920 done
11921 if test -z "$haveit"; then
11922 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11923 fi
11924 done
11925
11926 fi
11927
11928
11929cat >>confdefs.h <<\_ACEOF
11930#define HAVE_GETTEXT 1
11931_ACEOF
11932
11933
11934cat >>confdefs.h <<\_ACEOF
11935#define HAVE_DCGETTEXT 1
11936_ACEOF
11937
11938 fi
11939
11940 POSUB=po
11941 fi
11942
11943
11944 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11945 BUILD_INCLUDED_LIBINTL=yes
11946 fi
11947
11948
11949
11950
11951
11952 nls_cv_header_intl=
11953 nls_cv_header_libgt=
11954
11955 DATADIRNAME=share
11956
11957
11958 INSTOBJEXT=.mo
11959
11960
11961 GENCAT=gencat
11962
11963
11964 if test "$USE_INCLUDED_LIBINTL" = yes; then
11965 INTLOBJS="\$(GETTOBJS)"
11966 fi
11967
11968
11969 INTL_LIBTOOL_SUFFIX_PREFIX=
11970
11971
11972
11973 INTLLIBS="$LIBINTL"
11974
11975
11976
11977
11978
11979
11980
11981BOILERPLATE=boilerplate.mk
11982
11983if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
11984 if sh -c "vncmkdepend" >/dev/null 2>&1; then
11985 BOILERPLATE="$BOILERPLATE:depend.mk"
11986 fi
11987fi
11988
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000011989ac_config_files="$ac_config_files Makefile:common.mk:Makefile.in:$BOILERPLATE tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE intl/Makefile po/Makefile.in"
11990
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000011991cat >confcache <<\_ACEOF
11992# This file is a shell script that caches the results of configure
11993# tests run on this system so they can be shared between configure
11994# scripts and configure runs, see configure's option --config-cache.
11995# It is not useful on other systems. If it contains results you don't
11996# want to keep, you may remove or edit it.
11997#
11998# config.status only pays attention to the cache file if you give it
11999# the --recheck option to rerun configure.
12000#
12001# `ac_cv_env_foo' variables (set or unset) will be overridden when
12002# loading this file, other *unset* `ac_cv_foo' will be assigned the
12003# following values.
12004
12005_ACEOF
12006
12007# The following way of writing the cache mishandles newlines in values,
12008# but we know of no workaround that is simple, portable, and efficient.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012009# So, we kill variables containing newlines.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012010# Ultrix sh set writes to stderr and can't be redirected directly,
12011# and sets the high bit in the cache file unless we assign to the vars.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012012(
12013 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12014 eval ac_val=\$$ac_var
12015 case $ac_val in #(
12016 *${as_nl}*)
12017 case $ac_var in #(
12018 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12019echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12020 esac
12021 case $ac_var in #(
12022 _ | IFS | as_nl) ;; #(
12023 *) $as_unset $ac_var ;;
12024 esac ;;
12025 esac
12026 done
12027
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012028 (set) 2>&1 |
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012029 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12030 *${as_nl}ac_space=\ *)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012031 # `set' does not quote correctly, so add quotes (double-quote
12032 # substitution turns \\\\ into \\, and sed turns \\ into \).
12033 sed -n \
12034 "s/'/'\\\\''/g;
12035 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012036 ;; #(
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012037 *)
12038 # `set' quotes correctly as required by POSIX, so do not add quotes.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012039 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012040 ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012041 esac |
12042 sort
12043) |
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012044 sed '
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012045 /^ac_cv_env_/b end
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012046 t clear
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012047 :clear
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012048 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12049 t end
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012050 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12051 :end' >>confcache
12052if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12053 if test -w "$cache_file"; then
12054 test "x$cache_file" != "x/dev/null" &&
12055 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12056echo "$as_me: updating cache $cache_file" >&6;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012057 cat confcache >$cache_file
12058 else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012059 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12060echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012061 fi
12062fi
12063rm -f confcache
12064
12065test "x$prefix" = xNONE && prefix=$ac_default_prefix
12066# Let make expand exec_prefix.
12067test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12068
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012069# Transform confdefs.h into DEFS.
12070# Protect against shell expansion while executing Makefile rules.
12071# Protect against Makefile macro expansion.
12072#
12073# If the first sed substitution is executed (which looks for macros that
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012074# take arguments), then branch to the quote section. Otherwise,
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012075# look for a macro that doesn't take arguments.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012076ac_script='
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012077t clear
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012078:clear
12079s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012080t quote
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012081s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012082t quote
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012083b any
12084:quote
12085s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12086s/\[/\\&/g
12087s/\]/\\&/g
12088s/\$/$$/g
12089H
12090:any
12091${
12092 g
12093 s/^\n//
12094 s/\n/ /g
12095 p
12096}
12097'
12098DEFS=`sed -n "$ac_script" confdefs.h`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012099
12100
12101ac_libobjs=
12102ac_ltlibobjs=
12103for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12104 # 1. Remove the extension, and $U if already installed.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012105 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12106 ac_i=`echo "$ac_i" | sed "$ac_script"`
12107 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12108 # will be set to the directory where LIBOBJS objects are built.
12109 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12110 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012111done
12112LIBOBJS=$ac_libobjs
12113
12114LTLIBOBJS=$ac_ltlibobjs
12115
12116
12117
12118: ${CONFIG_STATUS=./config.status}
12119ac_clean_files_save=$ac_clean_files
12120ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12121{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12122echo "$as_me: creating $CONFIG_STATUS" >&6;}
12123cat >$CONFIG_STATUS <<_ACEOF
12124#! $SHELL
12125# Generated by $as_me.
12126# Run this file to recreate the current configuration.
12127# Compiler output produced by configure, useful for debugging
12128# configure, is in config.log if it exists.
12129
12130debug=false
12131ac_cs_recheck=false
12132ac_cs_silent=false
12133SHELL=\${CONFIG_SHELL-$SHELL}
12134_ACEOF
12135
12136cat >>$CONFIG_STATUS <<\_ACEOF
12137## --------------------- ##
12138## M4sh Initialization. ##
12139## --------------------- ##
12140
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012141# Be more Bourne compatible
12142DUALCASE=1; export DUALCASE # for MKS sh
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012143if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12144 emulate sh
12145 NULLCMD=:
12146 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12147 # is contrary to our usage. Disable this feature.
12148 alias -g '${1+"$@"}'='"$@"'
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012149 setopt NO_GLOB_SUBST
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012150else
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012151 case `(set -o) 2>/dev/null` in
12152 *posix*) set -o posix ;;
12153esac
12154
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012155fi
12156
12157
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012158
12159
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012160# PATH needs CR
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012161# Avoid depending upon Character Ranges.
12162as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12163as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12164as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12165as_cr_digits='0123456789'
12166as_cr_alnum=$as_cr_Letters$as_cr_digits
12167
12168# The user is always right.
12169if test "${PATH_SEPARATOR+set}" != set; then
12170 echo "#! /bin/sh" >conf$$.sh
12171 echo "exit 0" >>conf$$.sh
12172 chmod +x conf$$.sh
12173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12174 PATH_SEPARATOR=';'
12175 else
12176 PATH_SEPARATOR=:
12177 fi
12178 rm -f conf$$.sh
12179fi
12180
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012181# Support unset when possible.
12182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12183 as_unset=unset
12184else
12185 as_unset=false
12186fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012187
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012188
12189# IFS
12190# We need space, tab and new line, in precisely that order. Quoting is
12191# there to prevent editors from complaining about space-tab.
12192# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12193# splitting by setting IFS to empty value.)
12194as_nl='
12195'
12196IFS=" "" $as_nl"
12197
12198# Find who we are. Look in the path if we contain no directory separator.
12199case $0 in
12200 *[\\/]* ) as_myself=$0 ;;
12201 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012202for as_dir in $PATH
12203do
12204 IFS=$as_save_IFS
12205 test -z "$as_dir" && as_dir=.
12206 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12207done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012208IFS=$as_save_IFS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012209
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012210 ;;
12211esac
12212# We did not find ourselves, most probably we were run as `sh COMMAND'
12213# in which case we are not to be found in the path.
12214if test "x$as_myself" = x; then
12215 as_myself=$0
12216fi
12217if test ! -f "$as_myself"; then
12218 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12219 { (exit 1); exit 1; }
12220fi
12221
12222# Work around bugs in pre-3.0 UWIN ksh.
12223for as_var in ENV MAIL MAILPATH
12224do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12225done
12226PS1='$ '
12227PS2='> '
12228PS4='+ '
12229
12230# NLS nuisances.
12231for as_var in \
12232 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12233 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12234 LC_TELEPHONE LC_TIME
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012235do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012236 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12237 eval $as_var=C; export $as_var
12238 else
12239 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12240 fi
12241done
12242
12243# Required to use basename.
12244if expr a : '\(a\)' >/dev/null 2>&1 &&
12245 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12246 as_expr=expr
12247else
12248 as_expr=false
12249fi
12250
12251if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12252 as_basename=basename
12253else
12254 as_basename=false
12255fi
12256
12257
12258# Name of the executable.
12259as_me=`$as_basename -- "$0" ||
12260$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12261 X"$0" : 'X\(//\)$' \| \
12262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12263echo X/"$0" |
12264 sed '/^.*\/\([^/][^/]*\)\/*$/{
12265 s//\1/
12266 q
12267 }
12268 /^X\/\(\/\/\)$/{
12269 s//\1/
12270 q
12271 }
12272 /^X\/\(\/\).*/{
12273 s//\1/
12274 q
12275 }
12276 s/.*/./; q'`
12277
12278# CDPATH.
12279$as_unset CDPATH
12280
12281
12282
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012283 as_lineno_1=$LINENO
12284 as_lineno_2=$LINENO
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012285 test "x$as_lineno_1" != "x$as_lineno_2" &&
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012286 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012287
12288 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12289 # uniformly replaced by the line number. The first 'sed' inserts a
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012290 # line-number line after each line using $LINENO; the second 'sed'
12291 # does the real work. The second script uses 'N' to pair each
12292 # line-number line with the line containing $LINENO, and appends
12293 # trailing '-' during substitution so that $LINENO is not a special
12294 # case at line end.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012295 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012296 # scripts with optimization help from Paolo Bonzini. Blame Lee
12297 # E. McMahon (1931-1989) for sed's syntax. :-)
12298 sed -n '
12299 p
12300 /[$]LINENO/=
12301 ' <$as_myself |
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012302 sed '
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012303 s/[$]LINENO.*/&-/
12304 t lineno
12305 b
12306 :lineno
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012307 N
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012308 :loop
12309 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012310 t loop
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012311 s/-\n.*//
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012312 ' >$as_me.lineno &&
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012313 chmod +x "$as_me.lineno" ||
12314 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012315 { (exit 1); exit 1; }; }
12316
12317 # Don't try to exec as it changes $[0], causing all sort of problems
12318 # (the dirname of $[0] is not the place where we might find the
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012319 # original and so on. Autoconf is especially sensitive to this).
12320 . "./$as_me.lineno"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012321 # Exit status is that of the last command.
12322 exit
12323}
12324
12325
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012326if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12327 as_dirname=dirname
12328else
12329 as_dirname=false
12330fi
12331
12332ECHO_C= ECHO_N= ECHO_T=
12333case `echo -n x` in
12334-n*)
12335 case `echo 'x\c'` in
12336 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12337 *) ECHO_C='\c';;
12338 esac;;
12339*)
12340 ECHO_N='-n';;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012341esac
12342
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012343if expr a : '\(a\)' >/dev/null 2>&1 &&
12344 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012345 as_expr=expr
12346else
12347 as_expr=false
12348fi
12349
12350rm -f conf$$ conf$$.exe conf$$.file
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012351if test -d conf$$.dir; then
12352 rm -f conf$$.dir/conf$$.file
12353else
12354 rm -f conf$$.dir
12355 mkdir conf$$.dir
12356fi
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012357echo >conf$$.file
12358if ln -s conf$$.file conf$$ 2>/dev/null; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012359 as_ln_s='ln -s'
12360 # ... but there are two gotchas:
12361 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12362 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12363 # In both cases, we have to default to `cp -p'.
12364 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012365 as_ln_s='cp -p'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012366elif ln conf$$.file conf$$ 2>/dev/null; then
12367 as_ln_s=ln
12368else
12369 as_ln_s='cp -p'
12370fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012371rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12372rmdir conf$$.dir 2>/dev/null
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012373
12374if mkdir -p . 2>/dev/null; then
12375 as_mkdir_p=:
12376else
12377 test -d ./-p && rmdir ./-p
12378 as_mkdir_p=false
12379fi
12380
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012381if test -x / >/dev/null 2>&1; then
12382 as_test_x='test -x'
12383else
12384 if ls -dL / >/dev/null 2>&1; then
12385 as_ls_L_option=L
12386 else
12387 as_ls_L_option=
12388 fi
12389 as_test_x='
12390 eval sh -c '\''
12391 if test -d "$1"; then
12392 test -d "$1/.";
12393 else
12394 case $1 in
12395 -*)set "./$1";;
12396 esac;
12397 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12398 ???[sx]*):;;*)false;;esac;fi
12399 '\'' sh
12400 '
12401fi
12402as_executable_p=$as_test_x
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012403
12404# Sed expression to map a string onto a valid CPP name.
12405as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12406
12407# Sed expression to map a string onto a valid variable name.
12408as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12409
12410
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012411exec 6>&1
12412
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012413# Save the log message, to keep $[0] and so on meaningful, and to
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012414# report actual input values of CONFIG_FILES etc. instead of their
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012415# values after options handling.
12416ac_log="
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012417This file was extended by $as_me, which was
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012418generated by GNU Autoconf 2.61. Invocation command line was
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012419
12420 CONFIG_FILES = $CONFIG_FILES
12421 CONFIG_HEADERS = $CONFIG_HEADERS
12422 CONFIG_LINKS = $CONFIG_LINKS
12423 CONFIG_COMMANDS = $CONFIG_COMMANDS
12424 $ $0 $@
12425
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012426on `(hostname || uname -n) 2>/dev/null | sed 1q`
12427"
12428
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012429_ACEOF
12430
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012431cat >>$CONFIG_STATUS <<_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012432# Files that config.status was made for.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012433config_files="$ac_config_files"
12434config_commands="$ac_config_commands"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012435
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012436_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012437
12438cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012439ac_cs_usage="\
12440\`$as_me' instantiates files from templates according to the
12441current configuration.
12442
12443Usage: $0 [OPTIONS] [FILE]...
12444
12445 -h, --help print this help, then exit
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012446 -V, --version print version number and configuration settings, then exit
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012447 -q, --quiet do not print progress messages
12448 -d, --debug don't remove temporary files
12449 --recheck update $as_me by reconfiguring in the same conditions
12450 --file=FILE[:TEMPLATE]
12451 instantiate the configuration file FILE
12452
12453Configuration files:
12454$config_files
12455
12456Configuration commands:
12457$config_commands
12458
12459Report bugs to <bug-autoconf@gnu.org>."
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012460
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012461_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012462cat >>$CONFIG_STATUS <<_ACEOF
12463ac_cs_version="\\
12464config.status
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012465configured by $0, generated by GNU Autoconf 2.61,
12466 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012467
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012468Copyright (C) 2006 Free Software Foundation, Inc.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012469This config.status script is free software; the Free Software Foundation
12470gives unlimited permission to copy, distribute and modify it."
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012471
12472ac_pwd='$ac_pwd'
12473srcdir='$srcdir'
12474INSTALL='$INSTALL'
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012475_ACEOF
12476
12477cat >>$CONFIG_STATUS <<\_ACEOF
12478# If no file are specified by the user, then we need to provide default
12479# value. By we need to know if files were specified by the user.
12480ac_need_defaults=:
12481while test $# != 0
12482do
12483 case $1 in
12484 --*=*)
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012485 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12486 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012487 ac_shift=:
12488 ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012489 *)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012490 ac_option=$1
12491 ac_optarg=$2
12492 ac_shift=shift
12493 ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012494 esac
12495
12496 case $ac_option in
12497 # Handling of the options.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012498 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12499 ac_cs_recheck=: ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012500 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12501 echo "$ac_cs_version"; exit ;;
12502 --debug | --debu | --deb | --de | --d | -d )
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012503 debug=: ;;
12504 --file | --fil | --fi | --f )
12505 $ac_shift
12506 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12507 ac_need_defaults=false;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012508 --he | --h | --help | --hel | -h )
12509 echo "$ac_cs_usage"; exit ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12511 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12512 ac_cs_silent=: ;;
12513
12514 # This is an error.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012515 -*) { echo "$as_me: error: unrecognized option: $1
12516Try \`$0 --help' for more information." >&2
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012517 { (exit 1); exit 1; }; } ;;
12518
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012519 *) ac_config_targets="$ac_config_targets $1"
12520 ac_need_defaults=false ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012521
12522 esac
12523 shift
12524done
12525
12526ac_configure_extra_args=
12527
12528if $ac_cs_silent; then
12529 exec 6>/dev/null
12530 ac_configure_extra_args="$ac_configure_extra_args --silent"
12531fi
12532
12533_ACEOF
12534cat >>$CONFIG_STATUS <<_ACEOF
12535if \$ac_cs_recheck; then
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012536 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12537 CONFIG_SHELL=$SHELL
12538 export CONFIG_SHELL
12539 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012540fi
12541
12542_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012543cat >>$CONFIG_STATUS <<\_ACEOF
12544exec 5>>config.log
12545{
12546 echo
12547 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12548## Running $as_me. ##
12549_ASBOX
12550 echo "$ac_log"
12551} >&5
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012552
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012553_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012554cat >>$CONFIG_STATUS <<_ACEOF
12555#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012556# INIT-COMMANDS
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012557#
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012558# Capture the value of obsolete ALL_LINGUAS because we need it to compute
12559 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
12560 # from automake.
12561 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
12562 # Capture the value of LINGUAS because we need it to compute CATALOGS.
12563 LINGUAS="${LINGUAS-%UNSET%}"
12564
12565
12566_ACEOF
12567
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012568cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012569
12570# Handling of arguments.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012571for ac_config_target in $ac_config_targets
12572do
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012573 case $ac_config_target in
12574 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12575 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:common.mk:Makefile.in:$BOILERPLATE" ;;
12576 "tx/Makefile") CONFIG_FILES="$CONFIG_FILES tx/Makefile:common.mk:tx/Makefile.in:$BOILERPLATE" ;;
12577 "x0vncserver/Makefile") CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:common.mk:x0vncserver/Makefile.in:$BOILERPLATE" ;;
12578 "vncviewer/Makefile") CONFIG_FILES="$CONFIG_FILES vncviewer/Makefile:common.mk:vncviewer/Makefile.in:$BOILERPLATE" ;;
12579 "vncconfig/Makefile") CONFIG_FILES="$CONFIG_FILES vncconfig/Makefile:common.mk:vncconfig/Makefile.in:$BOILERPLATE" ;;
12580 "vncpasswd/Makefile") CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:common.mk:vncpasswd/Makefile.in:$BOILERPLATE" ;;
12581 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
12582 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
12583
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012584 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12585echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12586 { (exit 1); exit 1; }; };;
12587 esac
12588done
12589
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012590
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012591# If the user did not use the arguments to specify the items to instantiate,
12592# then the envvar interface is used. Set only those that are not.
12593# We use the long form for the default assignment because of an extremely
12594# bizarre bug on SunOS 4.1.3.
12595if $ac_need_defaults; then
12596 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12597 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12598fi
12599
12600# Have a temporary directory for convenience. Make it in the build tree
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012601# simply because there is no reason against having it here, and in addition,
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012602# creating and moving files from /tmp can sometimes cause problems.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012603# Hook for its removal unless debugging.
12604# Note that there is a small window in which the directory will not be cleaned:
12605# after its creation but before its name has been assigned to `$tmp'.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012606$debug ||
12607{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012608 tmp=
12609 trap 'exit_status=$?
12610 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12611' 0
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012612 trap '{ (exit 1); exit 1; }' 1 2 13 15
12613}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012614# Create a (secure) tmp directory for tmp files.
12615
12616{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012617 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012618 test -n "$tmp" && test -d "$tmp"
12619} ||
12620{
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012621 tmp=./conf$$-$RANDOM
12622 (umask 077 && mkdir "$tmp")
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012623} ||
12624{
12625 echo "$me: cannot create a temporary directory in ." >&2
12626 { (exit 1); exit 1; }
12627}
12628
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012629#
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012630# Set up the sed scripts for CONFIG_FILES section.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012631#
12632
12633# No need to generate the scripts if there are no CONFIG_FILES.
12634# This happens for instance when ./config.status config.h
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012635if test -n "$CONFIG_FILES"; then
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012636
12637_ACEOF
12638
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012639
12640
12641ac_delim='%!_!# '
12642for ac_last_try in false false false false false :; do
12643 cat >conf$$subs.sed <<_ACEOF
12644SHELL!$SHELL$ac_delim
12645PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12646PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12647PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12648PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12649PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12650PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12651exec_prefix!$exec_prefix$ac_delim
12652prefix!$prefix$ac_delim
12653program_transform_name!$program_transform_name$ac_delim
12654bindir!$bindir$ac_delim
12655sbindir!$sbindir$ac_delim
12656libexecdir!$libexecdir$ac_delim
12657datarootdir!$datarootdir$ac_delim
12658datadir!$datadir$ac_delim
12659sysconfdir!$sysconfdir$ac_delim
12660sharedstatedir!$sharedstatedir$ac_delim
12661localstatedir!$localstatedir$ac_delim
12662includedir!$includedir$ac_delim
12663oldincludedir!$oldincludedir$ac_delim
12664docdir!$docdir$ac_delim
12665infodir!$infodir$ac_delim
12666htmldir!$htmldir$ac_delim
12667dvidir!$dvidir$ac_delim
12668pdfdir!$pdfdir$ac_delim
12669psdir!$psdir$ac_delim
12670libdir!$libdir$ac_delim
12671localedir!$localedir$ac_delim
12672mandir!$mandir$ac_delim
12673DEFS!$DEFS$ac_delim
12674ECHO_C!$ECHO_C$ac_delim
12675ECHO_N!$ECHO_N$ac_delim
12676ECHO_T!$ECHO_T$ac_delim
12677LIBS!$LIBS$ac_delim
12678build_alias!$build_alias$ac_delim
12679host_alias!$host_alias$ac_delim
12680target_alias!$target_alias$ac_delim
12681PACKAGE!$PACKAGE$ac_delim
12682VERSION!$VERSION$ac_delim
12683CC!$CC$ac_delim
12684CFLAGS!$CFLAGS$ac_delim
12685LDFLAGS!$LDFLAGS$ac_delim
12686CPPFLAGS!$CPPFLAGS$ac_delim
12687ac_ct_CC!$ac_ct_CC$ac_delim
12688EXEEXT!$EXEEXT$ac_delim
12689OBJEXT!$OBJEXT$ac_delim
12690CXX!$CXX$ac_delim
12691CXXFLAGS!$CXXFLAGS$ac_delim
12692ac_ct_CXX!$ac_ct_CXX$ac_delim
12693RANLIB!$RANLIB$ac_delim
12694SET_MAKE!$SET_MAKE$ac_delim
12695MITSHM_DEFINE!$MITSHM_DEFINE$ac_delim
12696CL_LIB!$CL_LIB$ac_delim
12697DMEDIA_LIB!$DMEDIA_LIB$ac_delim
12698XMKMF!$XMKMF$ac_delim
12699CXXCPP!$CXXCPP$ac_delim
12700X_CFLAGS!$X_CFLAGS$ac_delim
12701X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12702X_LIBS!$X_LIBS$ac_delim
12703X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12704ZLIB_DIR!$ZLIB_DIR$ac_delim
12705ZLIB_INCLUDE!$ZLIB_INCLUDE$ac_delim
12706ZLIB_LIB!$ZLIB_LIB$ac_delim
12707JPEG_DIR!$JPEG_DIR$ac_delim
12708JPEG_INCLUDE!$JPEG_INCLUDE$ac_delim
12709JPEG_LIB!$JPEG_LIB$ac_delim
12710VNCCONFIG_DIR!$VNCCONFIG_DIR$ac_delim
12711XTEST_DEFINE!$XTEST_DEFINE$ac_delim
12712XTEST_LIB!$XTEST_LIB$ac_delim
12713READDISPLAY_DEFINE!$READDISPLAY_DEFINE$ac_delim
12714INET_LIB!$INET_LIB$ac_delim
12715INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12716INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12717INSTALL_DATA!$INSTALL_DATA$ac_delim
12718MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
12719USE_NLS!$USE_NLS$ac_delim
12720MSGFMT!$MSGFMT$ac_delim
12721GMSGFMT!$GMSGFMT$ac_delim
12722XGETTEXT!$XGETTEXT$ac_delim
12723MSGMERGE!$MSGMERGE$ac_delim
12724build!$build$ac_delim
12725build_cpu!$build_cpu$ac_delim
12726build_vendor!$build_vendor$ac_delim
12727build_os!$build_os$ac_delim
12728host!$host$ac_delim
12729host_cpu!$host_cpu$ac_delim
12730host_vendor!$host_vendor$ac_delim
12731host_os!$host_os$ac_delim
12732GREP!$GREP$ac_delim
12733EGREP!$EGREP$ac_delim
12734ALLOCA!$ALLOCA$ac_delim
12735GLIBC21!$GLIBC21$ac_delim
12736HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
12737HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
12738HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
12739HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
12740LIBICONV!$LIBICONV$ac_delim
12741_ACEOF
12742
12743 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12744 break
12745 elif $ac_last_try; then
12746 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12747echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12748 { (exit 1); exit 1; }; }
12749 else
12750 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012751 fi
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012752done
12753
12754ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12755if test -n "$ac_eof"; then
12756 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12757 ac_eof=`expr $ac_eof + 1`
12758fi
12759
12760cat >>$CONFIG_STATUS <<_ACEOF
12761cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12762/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12763_ACEOF
12764sed '
12765s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12766s/^/s,@/; s/!/@,|#_!!_#|/
12767:n
12768t n
12769s/'"$ac_delim"'$/,g/; t
12770s/$/\\/; p
12771N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12772' >>$CONFIG_STATUS <conf$$subs.sed
12773rm -f conf$$subs.sed
12774cat >>$CONFIG_STATUS <<_ACEOF
12775CEOF$ac_eof
12776_ACEOF
12777
12778
12779ac_delim='%!_!# '
12780for ac_last_try in false false false false false :; do
12781 cat >conf$$subs.sed <<_ACEOF
12782LTLIBICONV!$LTLIBICONV$ac_delim
12783INTLBISON!$INTLBISON$ac_delim
12784BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
12785USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
12786CATOBJEXT!$CATOBJEXT$ac_delim
12787DATADIRNAME!$DATADIRNAME$ac_delim
12788INSTOBJEXT!$INSTOBJEXT$ac_delim
12789GENCAT!$GENCAT$ac_delim
12790INTLOBJS!$INTLOBJS$ac_delim
12791INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
12792INTLLIBS!$INTLLIBS$ac_delim
12793LIBINTL!$LIBINTL$ac_delim
12794LTLIBINTL!$LTLIBINTL$ac_delim
12795POSUB!$POSUB$ac_delim
12796LIBOBJS!$LIBOBJS$ac_delim
12797LTLIBOBJS!$LTLIBOBJS$ac_delim
12798_ACEOF
12799
12800 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 16; then
12801 break
12802 elif $ac_last_try; then
12803 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12804echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12805 { (exit 1); exit 1; }; }
12806 else
12807 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12808 fi
12809done
12810
12811ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12812if test -n "$ac_eof"; then
12813 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12814 ac_eof=`expr $ac_eof + 1`
12815fi
12816
12817cat >>$CONFIG_STATUS <<_ACEOF
12818cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12819/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12820_ACEOF
12821sed '
12822s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12823s/^/s,@/; s/!/@,|#_!!_#|/
12824:n
12825t n
12826s/'"$ac_delim"'$/,g/; t
12827s/$/\\/; p
12828N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12829' >>$CONFIG_STATUS <conf$$subs.sed
12830rm -f conf$$subs.sed
12831cat >>$CONFIG_STATUS <<_ACEOF
12832:end
12833s/|#_!!_#|//g
12834CEOF$ac_eof
12835_ACEOF
12836
12837
12838# VPATH may cause trouble with some makes, so we remove $(srcdir),
12839# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12840# trailing colons and then remove the whole line if VPATH becomes empty
12841# (actually we leave an empty line to preserve line numbers).
12842if test "x$srcdir" = x.; then
12843 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12844s/:*\$(srcdir):*/:/
12845s/:*\${srcdir}:*/:/
12846s/:*@srcdir@:*/:/
12847s/^\([^=]*=[ ]*\):*/\1/
12848s/:*$//
12849s/^[^=]*=[ ]*$//
12850}'
12851fi
12852
12853cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012854fi # test -n "$CONFIG_FILES"
12855
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012856
12857for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
12858do
12859 case $ac_tag in
12860 :[FHLC]) ac_mode=$ac_tag; continue;;
12861 esac
12862 case $ac_mode$ac_tag in
12863 :[FHL]*:*);;
12864 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12865echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12866 { (exit 1); exit 1; }; };;
12867 :[FH]-) ac_tag=-:-;;
12868 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12869 esac
12870 ac_save_IFS=$IFS
12871 IFS=:
12872 set x $ac_tag
12873 IFS=$ac_save_IFS
12874 shift
12875 ac_file=$1
12876 shift
12877
12878 case $ac_mode in
12879 :L) ac_source=$1;;
12880 :[FH])
12881 ac_file_inputs=
12882 for ac_f
12883 do
12884 case $ac_f in
12885 -) ac_f="$tmp/stdin";;
12886 *) # Look for the file first in the build tree, then in the source tree
12887 # (if the path is not absolute). The absolute path cannot be DOS-style,
12888 # because $ac_f cannot contain `:'.
12889 test -f "$ac_f" ||
12890 case $ac_f in
12891 [\\/$]*) false;;
12892 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12893 esac ||
12894 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12895echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12896 { (exit 1); exit 1; }; };;
12897 esac
12898 ac_file_inputs="$ac_file_inputs $ac_f"
12899 done
12900
12901 # Let's still pretend it is `configure' which instantiates (i.e., don't
12902 # use $as_me), people would be surprised to read:
12903 # /* config.h. Generated by config.status. */
12904 configure_input="Generated from "`IFS=:
12905 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12906 if test x"$ac_file" != x-; then
12907 configure_input="$ac_file. $configure_input"
12908 { echo "$as_me:$LINENO: creating $ac_file" >&5
12909echo "$as_me: creating $ac_file" >&6;}
12910 fi
12911
12912 case $ac_tag in
12913 *:-:* | *:-) cat >"$tmp/stdin";;
12914 esac
12915 ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012916 esac
12917
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012918 ac_dir=`$as_dirname -- "$ac_file" ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012919$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12920 X"$ac_file" : 'X\(//\)[^/]' \| \
12921 X"$ac_file" : 'X\(//\)$' \| \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012922 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012923echo X"$ac_file" |
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12925 s//\1/
12926 q
12927 }
12928 /^X\(\/\/\)[^/].*/{
12929 s//\1/
12930 q
12931 }
12932 /^X\(\/\/\)$/{
12933 s//\1/
12934 q
12935 }
12936 /^X\(\/\).*/{
12937 s//\1/
12938 q
12939 }
12940 s/.*/./; q'`
12941 { as_dir="$ac_dir"
12942 case $as_dir in #(
12943 -*) as_dir=./$as_dir;;
12944 esac
12945 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012946 as_dirs=
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012947 while :; do
12948 case $as_dir in #(
12949 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12950 *) as_qdir=$as_dir;;
12951 esac
12952 as_dirs="'$as_qdir' $as_dirs"
12953 as_dir=`$as_dirname -- "$as_dir" ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012954$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12955 X"$as_dir" : 'X\(//\)[^/]' \| \
12956 X"$as_dir" : 'X\(//\)$' \| \
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012957 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012958echo X"$as_dir" |
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012959 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12960 s//\1/
12961 q
12962 }
12963 /^X\(\/\/\)[^/].*/{
12964 s//\1/
12965 q
12966 }
12967 /^X\(\/\/\)$/{
12968 s//\1/
12969 q
12970 }
12971 /^X\(\/\).*/{
12972 s//\1/
12973 q
12974 }
12975 s/.*/./; q'`
12976 test -d "$as_dir" && break
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012977 done
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012978 test -z "$as_dirs" || eval "mkdir $as_dirs"
12979 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12980echo "$as_me: error: cannot create directory $as_dir" >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012981 { (exit 1); exit 1; }; }; }
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012982 ac_builddir=.
12983
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012984case "$ac_dir" in
12985.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12986*)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012987 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000012988 # A ".." for each directory in $ac_dir_suffix.
12989 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12990 case $ac_top_builddir_sub in
12991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12993 esac ;;
12994esac
12995ac_abs_top_builddir=$ac_pwd
12996ac_abs_builddir=$ac_pwd$ac_dir_suffix
12997# for backward compatibility:
12998ac_top_builddir=$ac_top_build_prefix
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000012999
13000case $srcdir in
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013001 .) # We are building in place.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013002 ac_srcdir=.
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013003 ac_top_srcdir=$ac_top_builddir_sub
13004 ac_abs_top_srcdir=$ac_pwd ;;
13005 [\\/]* | ?:[\\/]* ) # Absolute name.
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013006 ac_srcdir=$srcdir$ac_dir_suffix;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013007 ac_top_srcdir=$srcdir
13008 ac_abs_top_srcdir=$srcdir ;;
13009 *) # Relative name.
13010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13011 ac_top_srcdir=$ac_top_build_prefix$srcdir
13012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013013esac
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013014ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013015
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013016
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013017 case $ac_mode in
13018 :F)
13019 #
13020 # CONFIG_FILE
13021 #
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013022
13023 case $INSTALL in
13024 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013025 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013026 esac
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013027_ACEOF
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013028
13029cat >>$CONFIG_STATUS <<\_ACEOF
13030# If the template does not know about datarootdir, expand it.
13031# FIXME: This hack should be removed a few years after 2.60.
13032ac_datarootdir_hack=; ac_datarootdir_seen=
13033
13034case `sed -n '/datarootdir/ {
13035 p
13036 q
13037}
13038/@datadir@/p
13039/@docdir@/p
13040/@infodir@/p
13041/@localedir@/p
13042/@mandir@/p
13043' $ac_file_inputs` in
13044*datarootdir*) ac_datarootdir_seen=yes;;
13045*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13046 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13047echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13048_ACEOF
13049cat >>$CONFIG_STATUS <<_ACEOF
13050 ac_datarootdir_hack='
13051 s&@datadir@&$datadir&g
13052 s&@docdir@&$docdir&g
13053 s&@infodir@&$infodir&g
13054 s&@localedir@&$localedir&g
13055 s&@mandir@&$mandir&g
13056 s&\\\${datarootdir}&$datarootdir&g' ;;
13057esac
13058_ACEOF
13059
13060# Neutralize VPATH when `$srcdir' = `.'.
13061# Shell code in configure.ac might set extrasub.
13062# FIXME: do we really want to maintain this feature?
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013063cat >>$CONFIG_STATUS <<_ACEOF
13064 sed "$ac_vpsub
13065$extrasub
13066_ACEOF
13067cat >>$CONFIG_STATUS <<\_ACEOF
13068:t
13069/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013070s&@configure_input@&$configure_input&;t t
13071s&@top_builddir@&$ac_top_builddir_sub&;t t
13072s&@srcdir@&$ac_srcdir&;t t
13073s&@abs_srcdir@&$ac_abs_srcdir&;t t
13074s&@top_srcdir@&$ac_top_srcdir&;t t
13075s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13076s&@builddir@&$ac_builddir&;t t
13077s&@abs_builddir@&$ac_abs_builddir&;t t
13078s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13079s&@INSTALL@&$ac_INSTALL&;t t
13080$ac_datarootdir_hack
13081" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013082
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013083test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13084 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13085 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13086 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13087which seems to be undefined. Please make sure it is defined." >&5
13088echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13089which seems to be undefined. Please make sure it is defined." >&2;}
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013090
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013091 rm -f "$tmp/stdin"
13092 case $ac_file in
13093 -) cat "$tmp/out"; rm -f "$tmp/out";;
13094 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13095 esac
13096 ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013097
13098
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013099 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13100echo "$as_me: executing $ac_file commands" >&6;}
13101 ;;
13102 esac
13103
13104
13105 case $ac_file$ac_mode in
13106 "default-1":C)
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013107 for ac_file in $CONFIG_FILES; do
13108 # Support "outfile[:infile[:infile...]]"
13109 case "$ac_file" in
13110 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
13111 esac
13112 # PO directories have a Makefile.in generated from Makefile.in.in.
13113 case "$ac_file" in */Makefile.in)
13114 # Adjust a relative srcdir.
13115 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
13116 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
13117 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
13118 # In autoconf-2.13 it is called $ac_given_srcdir.
13119 # In autoconf-2.50 it is called $srcdir.
13120 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
13121 case "$ac_given_srcdir" in
13122 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
13123 /*) top_srcdir="$ac_given_srcdir" ;;
13124 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
13125 esac
13126 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
13127 rm -f "$ac_dir/POTFILES"
13128 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
13129 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
13130 POMAKEFILEDEPS="POTFILES.in"
13131 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
13132 # on $ac_dir but don't depend on user-specified configuration
13133 # parameters.
13134 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
13135 # The LINGUAS file contains the set of available languages.
13136 if test -n "$OBSOLETE_ALL_LINGUAS"; then
13137 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
13138 fi
13139 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
13140 # Hide the ALL_LINGUAS assigment from automake.
13141 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
13142 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
13143 else
13144 # The set of available languages was given in configure.in.
13145 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
13146 fi
13147 # Compute POFILES
13148 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
13149 # Compute UPDATEPOFILES
13150 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
13151 # Compute DUMMYPOFILES
13152 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
13153 # Compute GMOFILES
13154 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
13155 case "$ac_given_srcdir" in
13156 .) srcdirpre= ;;
13157 *) srcdirpre='$(srcdir)/' ;;
13158 esac
13159 POFILES=
13160 UPDATEPOFILES=
13161 DUMMYPOFILES=
13162 GMOFILES=
13163 for lang in $ALL_LINGUAS; do
13164 POFILES="$POFILES $srcdirpre$lang.po"
13165 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
13166 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
13167 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
13168 done
13169 # CATALOGS depends on both $ac_dir and the user's LINGUAS
13170 # environment variable.
13171 INST_LINGUAS=
13172 if test -n "$ALL_LINGUAS"; then
13173 for presentlang in $ALL_LINGUAS; do
13174 useit=no
13175 if test "%UNSET%" != "$LINGUAS"; then
13176 desiredlanguages="$LINGUAS"
13177 else
13178 desiredlanguages="$ALL_LINGUAS"
13179 fi
13180 for desiredlang in $desiredlanguages; do
13181 # Use the presentlang catalog if desiredlang is
13182 # a. equal to presentlang, or
13183 # b. a variant of presentlang (because in this case,
13184 # presentlang can be used as a fallback for messages
13185 # which are not translated in the desiredlang catalog).
13186 case "$desiredlang" in
13187 "$presentlang"*) useit=yes;;
13188 esac
13189 done
13190 if test $useit = yes; then
13191 INST_LINGUAS="$INST_LINGUAS $presentlang"
13192 fi
13193 done
13194 fi
13195 CATALOGS=
13196 if test -n "$INST_LINGUAS"; then
13197 for lang in $INST_LINGUAS; do
13198 CATALOGS="$CATALOGS $lang.gmo"
13199 done
13200 fi
13201 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
13202 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
13203 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
13204 if test -f "$f"; then
13205 case "$f" in
13206 *.orig | *.bak | *~) ;;
13207 *) cat "$f" >> "$ac_dir/Makefile" ;;
13208 esac
13209 fi
13210 done
13211 fi
13212 ;;
13213 esac
13214 done ;;
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013215
Constantin Kaplinsky39e31a12007-12-13 19:16:33 +000013216 esac
13217done # for ac_tag
13218
Constantin Kaplinskyb30ae7f2006-05-25 05:04:46 +000013219
13220{ (exit 0); exit 0; }
13221_ACEOF
13222chmod +x $CONFIG_STATUS
13223ac_clean_files=$ac_clean_files_save
13224
13225
13226# configure is writing to config.log, and then calls config.status.
13227# config.status does its own redirection, appending to config.log.
13228# Unfortunately, on DOS this fails, as config.log is still kept open
13229# by configure, so config.status won't be able to write to it; its
13230# output is simply discarded. So we exec the FD to /dev/null,
13231# effectively closing config.log, so it can be properly (re)opened and
13232# appended to by config.status. When coming back to configure, we
13233# need to make the FD available again.
13234if test "$no_create" != yes; then
13235 ac_cs_success=:
13236 ac_config_status_args=
13237 test "$silent" = yes &&
13238 ac_config_status_args="$ac_config_status_args --quiet"
13239 exec 5>/dev/null
13240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13241 exec 5>>config.log
13242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13243 # would make configure fail if this is the last instruction.
13244 $ac_cs_success || { (exit 1); exit 1; }
13245fi
13246