blob: dd088dcb0ba72c8927619d095caeafd4f89eb9cf [file] [log] [blame]
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001#! /bin/sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002# Guess values for system-dependent variables and create Makefiles.
Peter Åstrande713b142004-11-16 13:29:40 +00003# Generated by GNU Autoconf 2.59.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004#
Peter Åstrande713b142004-11-16 13:29:40 +00005# Copyright (C) 2003 Free Software Foundation, Inc.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00006# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
Peter Åstrande713b142004-11-16 13:29:40 +00008## --------------------- ##
9## M4sh Initialization. ##
10## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +000011
Peter Åstrande713b142004-11-16 13:29:40 +000012# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000254ac_default_prefix=/usr/local
Peter Åstrande713b142004-11-16 13:29:40 +0000255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME=
269PACKAGE_TARNAME=
270PACKAGE_VERSION=
271PACKAGE_STRING=
272PACKAGE_BUGREPORT=
273
274ac_unique_file="rdr/InStream.h"
Peter Åstrandafa924f2004-11-19 13:30:00 +0000275ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX RANLIB ac_ct_RANLIB SET_MAKE MITSHM_CPPFLAGS CXXCPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS ZLIB_DIR ZLIB_INCLUDE ZLIB_LIB JPEG_DIR JPEG_INCLUDE JPEG_LIB VSNPRINTF_DEFINE SOCKLEN_T_DEFINE LIBOBJS LTLIBOBJS'
Peter Åstrande713b142004-11-16 13:29:40 +0000276ac_subst_files=''
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000277
278# Initialize some variables set by options.
Peter Åstrande713b142004-11-16 13:29:40 +0000279ac_init_help=
280ac_init_version=false
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000281# The variables have the same names as the options, with
282# dashes changed to underlines.
Peter Åstrande713b142004-11-16 13:29:40 +0000283cache_file=/dev/null
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000284exec_prefix=NONE
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000285no_create=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000286no_recursion=
287prefix=NONE
288program_prefix=NONE
289program_suffix=NONE
290program_transform_name=s,x,x,
291silent=
292site=
293srcdir=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000294verbose=
295x_includes=NONE
296x_libraries=NONE
Peter Åstrande713b142004-11-16 13:29:40 +0000297
298# Installation directory options.
299# These are left unexpanded so users can "make install exec_prefix=/foo"
300# and all the variables that are supposed to be based on exec_prefix
301# by default will actually change.
302# Use braces instead of parens because sh, perl, etc. also accept them.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000303bindir='${exec_prefix}/bin'
304sbindir='${exec_prefix}/sbin'
305libexecdir='${exec_prefix}/libexec'
306datadir='${prefix}/share'
307sysconfdir='${prefix}/etc'
308sharedstatedir='${prefix}/com'
309localstatedir='${prefix}/var'
310libdir='${exec_prefix}/lib'
311includedir='${prefix}/include'
312oldincludedir='/usr/include'
313infodir='${prefix}/info'
314mandir='${prefix}/man'
315
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000316ac_prev=
317for ac_option
318do
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000319 # If the previous option needs an argument, assign it.
320 if test -n "$ac_prev"; then
321 eval "$ac_prev=\$ac_option"
322 ac_prev=
323 continue
324 fi
325
Peter Åstrande713b142004-11-16 13:29:40 +0000326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000327
328 # Accept the important Cygnus configure options, so we can diagnose typos.
329
Peter Åstrande713b142004-11-16 13:29:40 +0000330 case $ac_option in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000331
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000335 bindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000336
337 -build | --build | --buil | --bui | --bu)
Peter Åstrande713b142004-11-16 13:29:40 +0000338 ac_prev=build_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000340 build_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000341
342 -cache-file | --cache-file | --cache-fil | --cache-fi \
343 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344 ac_prev=cache_file ;;
345 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000347 cache_file=$ac_optarg ;;
348
349 --config-cache | -C)
350 cache_file=config.cache ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000351
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000356 datadir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000357
358 -disable-* | --disable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000360 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000361 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363 { (exit 1); exit 1; }; }
364 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365 eval "enable_$ac_feature=no" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000366
367 -enable-* | --enable-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000369 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000370 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372 { (exit 1); exit 1; }; }
373 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374 case $ac_option in
375 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000376 *) ac_optarg=yes ;;
377 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000378 eval "enable_$ac_feature='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000379
380 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382 | --exec | --exe | --ex)
383 ac_prev=exec_prefix ;;
384 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386 | --exec=* | --exe=* | --ex=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000387 exec_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000388
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
392
Peter Åstrande713b142004-11-16 13:29:40 +0000393 -help | --help | --hel | --he | -h)
394 ac_init_help=long ;;
395 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396 ac_init_help=recursive ;;
397 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398 ac_init_help=short ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000399
400 -host | --host | --hos | --ho)
Peter Åstrande713b142004-11-16 13:29:40 +0000401 ac_prev=host_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000402 -host=* | --host=* | --hos=* | --ho=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000403 host_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000404
405 -includedir | --includedir | --includedi | --included | --include \
406 | --includ | --inclu | --incl | --inc)
407 ac_prev=includedir ;;
408 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409 | --includ=* | --inclu=* | --incl=* | --inc=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000410 includedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000411
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000415 infodir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000416
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000420 libdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000421
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000427 libexecdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000428
429 -localstatedir | --localstatedir | --localstatedi | --localstated \
430 | --localstate | --localstat | --localsta | --localst \
431 | --locals | --local | --loca | --loc | --lo)
432 ac_prev=localstatedir ;;
433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000436 localstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000437
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000441 mandir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000442
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
446
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Peter Åstrande713b142004-11-16 13:29:40 +0000448 | --no-cr | --no-c | -n)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000449 no_create=yes ;;
450
451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453 no_recursion=yes ;;
454
455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457 | --oldin | --oldi | --old | --ol | --o)
458 ac_prev=oldincludedir ;;
459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000462 oldincludedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000463
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000467 prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000468
469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
470 | --program-pre | --program-pr | --program-p)
471 ac_prev=program_prefix ;;
472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000474 program_prefix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000475
476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
477 | --program-suf | --program-su | --program-s)
478 ac_prev=program_suffix ;;
479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000481 program_suffix=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000482
483 -program-transform-name | --program-transform-name \
484 | --program-transform-nam | --program-transform-na \
485 | --program-transform-n | --program-transform- \
486 | --program-transform | --program-transfor \
487 | --program-transfo | --program-transf \
488 | --program-trans | --program-tran \
489 | --progr-tra | --program-tr | --program-t)
490 ac_prev=program_transform_name ;;
491 -program-transform-name=* | --program-transform-name=* \
492 | --program-transform-nam=* | --program-transform-na=* \
493 | --program-transform-n=* | --program-transform-=* \
494 | --program-transform=* | --program-transfor=* \
495 | --program-transfo=* | --program-transf=* \
496 | --program-trans=* | --program-tran=* \
497 | --progr-tra=* | --program-tr=* | --program-t=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000498 program_transform_name=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000499
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
503
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000508 sbindir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000509
510 -sharedstatedir | --sharedstatedir | --sharedstatedi \
511 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512 | --sharedst | --shareds | --shared | --share | --shar \
513 | --sha | --sh)
514 ac_prev=sharedstatedir ;;
515 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518 | --sha=* | --sh=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000519 sharedstatedir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000520
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000524 site=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000525
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000529 srcdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000530
531 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532 | --syscon | --sysco | --sysc | --sys | --sy)
533 ac_prev=sysconfdir ;;
534 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000536 sysconfdir=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000537
538 -target | --target | --targe | --targ | --tar | --ta | --t)
Peter Åstrande713b142004-11-16 13:29:40 +0000539 ac_prev=target_alias ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000541 target_alias=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000542
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
545
Peter Åstrande713b142004-11-16 13:29:40 +0000546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000548
549 -with-* | --with-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000551 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000552 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid package name: $ac_package" >&2
554 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000555 ac_package=`echo $ac_package| sed 's/-/_/g'`
Peter Åstrande713b142004-11-16 13:29:40 +0000556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000558 *) ac_optarg=yes ;;
559 esac
Peter Åstrande713b142004-11-16 13:29:40 +0000560 eval "with_$ac_package='$ac_optarg'" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000561
562 -without-* | --without-*)
Peter Åstrande713b142004-11-16 13:29:40 +0000563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000564 # Reject names that are not valid shell variable names.
Peter Åstrande713b142004-11-16 13:29:40 +0000565 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid package name: $ac_package" >&2
567 { (exit 1); exit 1; }; }
568 ac_package=`echo $ac_package | sed 's/-/_/g'`
569 eval "with_$ac_package=no" ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000570
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
574
575 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576 | --x-incl | --x-inc | --x-in | --x-i)
577 ac_prev=x_includes ;;
578 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000580 x_includes=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000581
582 -x-libraries | --x-libraries | --x-librarie | --x-librari \
583 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584 ac_prev=x_libraries ;;
585 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Peter Åstrande713b142004-11-16 13:29:40 +0000587 x_libraries=$ac_optarg ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000588
Peter Åstrande713b142004-11-16 13:29:40 +0000589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000592 ;;
593
Peter Åstrande713b142004-11-16 13:29:40 +0000594 *=*)
595 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596 # Reject names that are not valid shell variable names.
597 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599 { (exit 1); exit 1; }; }
600 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601 eval "$ac_envvar='$ac_optarg'"
602 export $ac_envvar ;;
603
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000604 *)
Peter Åstrande713b142004-11-16 13:29:40 +0000605 # FIXME: should be removed in autoconf 3.0.
606 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000610 ;;
611
612 esac
613done
614
615if test -n "$ac_prev"; then
Peter Åstrande713b142004-11-16 13:29:40 +0000616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000619fi
620
Peter Åstrande713b142004-11-16 13:29:40 +0000621# Be sure to have absolute paths.
622for ac_var in exec_prefix prefix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000623do
Peter Åstrande713b142004-11-16 13:29:40 +0000624 eval ac_val=$`echo $ac_var`
625 case $ac_val in
626 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628 { (exit 1); exit 1; }; };;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000629 esac
630done
631
Peter Åstrande713b142004-11-16 13:29:40 +0000632# Be sure to have absolute paths.
633for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
635do
636 eval ac_val=$`echo $ac_var`
637 case $ac_val in
638 [\\/$]* | ?:[\\/]* ) ;;
639 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640 { (exit 1); exit 1; }; };;
641 esac
642done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000643
Peter Åstrande713b142004-11-16 13:29:40 +0000644# There might be people who depend on the old broken behavior: `$host'
645# used to hold the argument of --host etc.
646# FIXME: To remove some day.
647build=$build_alias
648host=$host_alias
649target=$target_alias
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000650
Peter Åstrande713b142004-11-16 13:29:40 +0000651# FIXME: To remove some day.
652if test "x$host_alias" != x; then
653 if test "x$build_alias" = x; then
654 cross_compiling=maybe
655 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656 If a cross compiler is detected then cross compile mode will be used." >&2
657 elif test "x$build_alias" != "x$host_alias"; then
658 cross_compiling=yes
659 fi
660fi
661
662ac_tool_prefix=
663test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
665test "$silent" = yes && exec 6>/dev/null
666
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000667
668# Find the source files, if location was not specified.
669if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
Peter Åstrande713b142004-11-16 13:29:40 +0000672 ac_confdir=`(dirname "$0") 2>/dev/null ||
673$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674 X"$0" : 'X\(//\)[^/]' \| \
675 X"$0" : 'X\(//\)$' \| \
676 X"$0" : 'X\(/\)' \| \
677 . : '\(.\)' 2>/dev/null ||
678echo X"$0" |
679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681 /^X\(\/\/\)$/{ s//\1/; q; }
682 /^X\(\/\).*/{ s//\1/; q; }
683 s/.*/./; q'`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
687 fi
688else
689 ac_srcdir_defaulted=no
690fi
691if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +0000693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000695 else
Peter Åstrande713b142004-11-16 13:29:40 +0000696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000698 fi
699fi
Peter Åstrande713b142004-11-16 13:29:40 +0000700(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702 { (exit 1); exit 1; }; }
703srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704ac_env_build_alias_set=${build_alias+set}
705ac_env_build_alias_value=$build_alias
706ac_cv_env_build_alias_set=${build_alias+set}
707ac_cv_env_build_alias_value=$build_alias
708ac_env_host_alias_set=${host_alias+set}
709ac_env_host_alias_value=$host_alias
710ac_cv_env_host_alias_set=${host_alias+set}
711ac_cv_env_host_alias_value=$host_alias
712ac_env_target_alias_set=${target_alias+set}
713ac_env_target_alias_value=$target_alias
714ac_cv_env_target_alias_set=${target_alias+set}
715ac_cv_env_target_alias_value=$target_alias
716ac_env_CC_set=${CC+set}
717ac_env_CC_value=$CC
718ac_cv_env_CC_set=${CC+set}
719ac_cv_env_CC_value=$CC
720ac_env_CFLAGS_set=${CFLAGS+set}
721ac_env_CFLAGS_value=$CFLAGS
722ac_cv_env_CFLAGS_set=${CFLAGS+set}
723ac_cv_env_CFLAGS_value=$CFLAGS
724ac_env_LDFLAGS_set=${LDFLAGS+set}
725ac_env_LDFLAGS_value=$LDFLAGS
726ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727ac_cv_env_LDFLAGS_value=$LDFLAGS
728ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729ac_env_CPPFLAGS_value=$CPPFLAGS
730ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732ac_env_CXX_set=${CXX+set}
733ac_env_CXX_value=$CXX
734ac_cv_env_CXX_set=${CXX+set}
735ac_cv_env_CXX_value=$CXX
736ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737ac_env_CXXFLAGS_value=$CXXFLAGS
738ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740ac_env_CXXCPP_set=${CXXCPP+set}
741ac_env_CXXCPP_value=$CXXCPP
742ac_cv_env_CXXCPP_set=${CXXCPP+set}
743ac_cv_env_CXXCPP_value=$CXXCPP
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +0000744
Peter Åstrande713b142004-11-16 13:29:40 +0000745#
746# Report the --help message.
747#
748if test "$ac_init_help" = "long"; then
749 # Omit some internal or obsolete options to make the list less imposing.
750 # This message is too long to be a string in the A/UX 3.1 sh.
751 cat <<_ACEOF
752\`configure' configures this package to adapt to many kinds of systems.
753
754Usage: $0 [OPTION]... [VAR=VALUE]...
755
756To assign environment variables (e.g., CC, CFLAGS...), specify them as
757VAR=VALUE. See below for descriptions of some of the useful variables.
758
759Defaults for the options are specified in brackets.
760
761Configuration:
762 -h, --help display this help and exit
763 --help=short display options specific to this package
764 --help=recursive display the short help of all the included packages
765 -V, --version display version information and exit
766 -q, --quiet, --silent do not print \`checking...' messages
767 --cache-file=FILE cache test results in FILE [disabled]
768 -C, --config-cache alias for \`--cache-file=config.cache'
769 -n, --no-create do not create output files
770 --srcdir=DIR find the sources in DIR [configure dir or \`..']
771
772_ACEOF
773
774 cat <<_ACEOF
775Installation directories:
776 --prefix=PREFIX install architecture-independent files in PREFIX
777 [$ac_default_prefix]
778 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
779 [PREFIX]
780
781By default, \`make install' will install all the files in
782\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784for instance \`--prefix=\$HOME'.
785
786For better control, use the options below.
787
788Fine tuning of the installation directories:
789 --bindir=DIR user executables [EPREFIX/bin]
790 --sbindir=DIR system admin executables [EPREFIX/sbin]
791 --libexecdir=DIR program executables [EPREFIX/libexec]
792 --datadir=DIR read-only architecture-independent data [PREFIX/share]
793 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
794 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
795 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
796 --libdir=DIR object code libraries [EPREFIX/lib]
797 --includedir=DIR C header files [PREFIX/include]
798 --oldincludedir=DIR C header files for non-gcc [/usr/include]
799 --infodir=DIR info documentation [PREFIX/info]
800 --mandir=DIR man documentation [PREFIX/man]
801_ACEOF
802
803 cat <<\_ACEOF
804
805X features:
806 --x-includes=DIR X include files are in DIR
807 --x-libraries=DIR X library files are in DIR
808_ACEOF
809fi
810
811if test -n "$ac_init_help"; then
812
813 cat <<\_ACEOF
814
815Optional Packages:
816 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
817 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
818 --with-x use the X Window System
819 --with-installed-zlib use the version of zlib which is installed on the
820 system instead of the one distributed with VNC
Peter Åstrandafa924f2004-11-19 13:30:00 +0000821 --with-installed-jpeg use the version of jpeg which is installed on the
822 system instead of the one distributed with VNC
Peter Åstrande713b142004-11-16 13:29:40 +0000823
824Some influential environment variables:
825 CC C compiler command
826 CFLAGS C compiler flags
827 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
828 nonstandard directory <lib dir>
829 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
830 headers in a nonstandard directory <include dir>
831 CXX C++ compiler command
832 CXXFLAGS C++ compiler flags
833 CXXCPP C++ preprocessor
834
835Use these variables to override the choices made by `configure' or to help
836it to find libraries and programs with nonstandard names/locations.
837
838_ACEOF
839fi
840
841if test "$ac_init_help" = "recursive"; then
842 # If there are subdirs, report their specific --help.
843 ac_popdir=`pwd`
844 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
845 test -d $ac_dir || continue
846 ac_builddir=.
847
848if test "$ac_dir" != .; then
849 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
850 # A "../" for each directory in $ac_dir_suffix.
851 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
852else
853 ac_dir_suffix= ac_top_builddir=
854fi
855
856case $srcdir in
857 .) # No --srcdir option. We are building in place.
858 ac_srcdir=.
859 if test -z "$ac_top_builddir"; then
860 ac_top_srcdir=.
861 else
862 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
863 fi ;;
864 [\\/]* | ?:[\\/]* ) # Absolute path.
865 ac_srcdir=$srcdir$ac_dir_suffix;
866 ac_top_srcdir=$srcdir ;;
867 *) # Relative path.
868 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
869 ac_top_srcdir=$ac_top_builddir$srcdir ;;
870esac
871
872# Do not use `cd foo && pwd` to compute absolute paths, because
873# the directories may not exist.
874case `pwd` in
875.) ac_abs_builddir="$ac_dir";;
876*)
877 case "$ac_dir" in
878 .) ac_abs_builddir=`pwd`;;
879 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
880 *) ac_abs_builddir=`pwd`/"$ac_dir";;
881 esac;;
882esac
883case $ac_abs_builddir in
884.) ac_abs_top_builddir=${ac_top_builddir}.;;
885*)
886 case ${ac_top_builddir}. in
887 .) ac_abs_top_builddir=$ac_abs_builddir;;
888 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
889 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
890 esac;;
891esac
892case $ac_abs_builddir in
893.) ac_abs_srcdir=$ac_srcdir;;
894*)
895 case $ac_srcdir in
896 .) ac_abs_srcdir=$ac_abs_builddir;;
897 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
898 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
899 esac;;
900esac
901case $ac_abs_builddir in
902.) ac_abs_top_srcdir=$ac_top_srcdir;;
903*)
904 case $ac_top_srcdir in
905 .) ac_abs_top_srcdir=$ac_abs_builddir;;
906 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
907 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
908 esac;;
909esac
910
911 cd $ac_dir
912 # Check for guested configure; otherwise get Cygnus style configure.
913 if test -f $ac_srcdir/configure.gnu; then
914 echo
915 $SHELL $ac_srcdir/configure.gnu --help=recursive
916 elif test -f $ac_srcdir/configure; then
917 echo
918 $SHELL $ac_srcdir/configure --help=recursive
919 elif test -f $ac_srcdir/configure.ac ||
920 test -f $ac_srcdir/configure.in; then
921 echo
922 $ac_configure --help
923 else
924 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
925 fi
926 cd $ac_popdir
927 done
928fi
929
930test -n "$ac_init_help" && exit 0
931if $ac_init_version; then
932 cat <<\_ACEOF
933
934Copyright (C) 2003 Free Software Foundation, Inc.
935This configure script is free software; the Free Software Foundation
936gives unlimited permission to copy, distribute and modify it.
937_ACEOF
938 exit 0
939fi
940exec 5>config.log
941cat >&5 <<_ACEOF
942This file contains any messages produced by compilers while
943running configure, to aid debugging if configure makes a mistake.
944
945It was created by $as_me, which was
946generated by GNU Autoconf 2.59. Invocation command line was
947
948 $ $0 $@
949
950_ACEOF
951{
952cat <<_ASUNAME
953## --------- ##
954## Platform. ##
955## --------- ##
956
957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
958uname -m = `(uname -m) 2>/dev/null || echo unknown`
959uname -r = `(uname -r) 2>/dev/null || echo unknown`
960uname -s = `(uname -s) 2>/dev/null || echo unknown`
961uname -v = `(uname -v) 2>/dev/null || echo unknown`
962
963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
964/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
965
966/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
967/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
969hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
970/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
971/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
972/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
973
974_ASUNAME
975
976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
977for as_dir in $PATH
978do
979 IFS=$as_save_IFS
980 test -z "$as_dir" && as_dir=.
981 echo "PATH: $as_dir"
982done
983
984} >&5
985
986cat >&5 <<_ACEOF
987
988
989## ----------- ##
990## Core tests. ##
991## ----------- ##
992
993_ACEOF
994
995
996# Keep a trace of the command line.
997# Strip out --no-create and --no-recursion so they do not pile up.
998# Strip out --silent because we don't want to record it for future runs.
999# Also quote any args containing shell meta-characters.
1000# Make two passes to allow for proper duplicate-argument suppression.
1001ac_configure_args=
1002ac_configure_args0=
1003ac_configure_args1=
1004ac_sep=
1005ac_must_keep_next=false
1006for ac_pass in 1 2
1007do
1008 for ac_arg
1009 do
1010 case $ac_arg in
1011 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 continue ;;
1015 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1016 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1017 esac
1018 case $ac_pass in
1019 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1020 2)
1021 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1022 if test $ac_must_keep_next = true; then
1023 ac_must_keep_next=false # Got value, back to normal.
1024 else
1025 case $ac_arg in
1026 *=* | --config-cache | -C | -disable-* | --disable-* \
1027 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1028 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1029 | -with-* | --with-* | -without-* | --without-* | --x)
1030 case "$ac_configure_args0 " in
1031 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1032 esac
1033 ;;
1034 -* ) ac_must_keep_next=true ;;
1035 esac
1036 fi
1037 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1038 # Get rid of the leading space.
1039 ac_sep=" "
1040 ;;
1041 esac
1042 done
1043done
1044$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1045$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1046
1047# When interrupted or exit'd, cleanup temporary files, and complete
1048# config.log. We remove comments because anyway the quotes in there
1049# would cause problems or look ugly.
1050# WARNING: Be sure not to use single quotes in there, as some shells,
1051# such as our DU 5.0 friend, will then `close' the trap.
1052trap 'exit_status=$?
1053 # Save into config.log some information that might help in debugging.
1054 {
1055 echo
1056
1057 cat <<\_ASBOX
1058## ---------------- ##
1059## Cache variables. ##
1060## ---------------- ##
1061_ASBOX
1062 echo
1063 # The following way of writing the cache mishandles newlines in values,
1064{
1065 (set) 2>&1 |
1066 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1067 *ac_space=\ *)
1068 sed -n \
1069 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1070 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1071 ;;
1072 *)
1073 sed -n \
1074 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1075 ;;
1076 esac;
1077}
1078 echo
1079
1080 cat <<\_ASBOX
1081## ----------------- ##
1082## Output variables. ##
1083## ----------------- ##
1084_ASBOX
1085 echo
1086 for ac_var in $ac_subst_vars
1087 do
1088 eval ac_val=$`echo $ac_var`
1089 echo "$ac_var='"'"'$ac_val'"'"'"
1090 done | sort
1091 echo
1092
1093 if test -n "$ac_subst_files"; then
1094 cat <<\_ASBOX
1095## ------------- ##
1096## Output files. ##
1097## ------------- ##
1098_ASBOX
1099 echo
1100 for ac_var in $ac_subst_files
1101 do
1102 eval ac_val=$`echo $ac_var`
1103 echo "$ac_var='"'"'$ac_val'"'"'"
1104 done | sort
1105 echo
1106 fi
1107
1108 if test -s confdefs.h; then
1109 cat <<\_ASBOX
1110## ----------- ##
1111## confdefs.h. ##
1112## ----------- ##
1113_ASBOX
1114 echo
1115 sed "/^$/d" confdefs.h | sort
1116 echo
1117 fi
1118 test "$ac_signal" != 0 &&
1119 echo "$as_me: caught signal $ac_signal"
1120 echo "$as_me: exit $exit_status"
1121 } >&5
1122 rm -f core *.core &&
1123 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1124 exit $exit_status
1125 ' 0
1126for ac_signal in 1 2 13 15; do
1127 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1128done
1129ac_signal=0
1130
1131# confdefs.h avoids OS command line length limits that DEFS can exceed.
1132rm -rf conftest* confdefs.h
1133# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1134echo >confdefs.h
1135
1136# Predefined preprocessor variables.
1137
1138cat >>confdefs.h <<_ACEOF
1139#define PACKAGE_NAME "$PACKAGE_NAME"
1140_ACEOF
1141
1142
1143cat >>confdefs.h <<_ACEOF
1144#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1145_ACEOF
1146
1147
1148cat >>confdefs.h <<_ACEOF
1149#define PACKAGE_VERSION "$PACKAGE_VERSION"
1150_ACEOF
1151
1152
1153cat >>confdefs.h <<_ACEOF
1154#define PACKAGE_STRING "$PACKAGE_STRING"
1155_ACEOF
1156
1157
1158cat >>confdefs.h <<_ACEOF
1159#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1160_ACEOF
1161
1162
1163# Let the site file select an alternate cache file if it wants to.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001164# Prefer explicitly selected file to automatically selected ones.
1165if test -z "$CONFIG_SITE"; then
1166 if test "x$prefix" != xNONE; then
1167 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1168 else
1169 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1170 fi
1171fi
1172for ac_site_file in $CONFIG_SITE; do
1173 if test -r "$ac_site_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001174 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1175echo "$as_me: loading site script $ac_site_file" >&6;}
1176 sed 's/^/| /' "$ac_site_file" >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001177 . "$ac_site_file"
1178 fi
1179done
1180
1181if test -r "$cache_file"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001182 # Some versions of bash will fail to source /dev/null (special
1183 # files actually), so we avoid doing that.
1184 if test -f "$cache_file"; then
1185 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1186echo "$as_me: loading cache $cache_file" >&6;}
1187 case $cache_file in
1188 [\\/]* | ?:[\\/]* ) . $cache_file;;
1189 *) . ./$cache_file;;
1190 esac
1191 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001192else
Peter Åstrande713b142004-11-16 13:29:40 +00001193 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1194echo "$as_me: creating cache $cache_file" >&6;}
1195 >$cache_file
1196fi
1197
1198# Check that the precious variables saved in the cache have kept the same
1199# value.
1200ac_cache_corrupted=false
1201for ac_var in `(set) 2>&1 |
1202 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1203 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1204 eval ac_new_set=\$ac_env_${ac_var}_set
1205 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1206 eval ac_new_val="\$ac_env_${ac_var}_value"
1207 case $ac_old_set,$ac_new_set in
1208 set,)
1209 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1210echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1211 ac_cache_corrupted=: ;;
1212 ,set)
1213 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1214echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1215 ac_cache_corrupted=: ;;
1216 ,);;
1217 *)
1218 if test "x$ac_old_val" != "x$ac_new_val"; then
1219 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1220echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1221 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1222echo "$as_me: former value: $ac_old_val" >&2;}
1223 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1224echo "$as_me: current value: $ac_new_val" >&2;}
1225 ac_cache_corrupted=:
1226 fi;;
1227 esac
1228 # Pass precious variables to config.status.
1229 if test "$ac_new_set" = set; then
1230 case $ac_new_val in
1231 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1233 *) ac_arg=$ac_var=$ac_new_val ;;
1234 esac
1235 case " $ac_configure_args " in
1236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1237 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1238 esac
1239 fi
1240done
1241if $ac_cache_corrupted; then
1242 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1243echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1244 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1245echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1246 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001247fi
1248
1249ac_ext=c
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001250ac_cpp='$CPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00001251ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1252ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1253ac_compiler_gnu=$ac_cv_c_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001254
Peter Åstrande713b142004-11-16 13:29:40 +00001255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001271
1272
1273
1274ac_cv_prog_cc_g=no
1275ac_cv_prog_cxx_g=no
1276
Peter Åstrande713b142004-11-16 13:29:40 +00001277ac_ext=c
1278ac_cpp='$CPP $CPPFLAGS'
1279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1281ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282if test -n "$ac_tool_prefix"; then
1283 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1284set dummy ${ac_tool_prefix}gcc; ac_word=$2
1285echo "$as_me:$LINENO: checking for $ac_word" >&5
1286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1287if test "${ac_cv_prog_CC+set}" = set; then
1288 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001289else
1290 if test -n "$CC"; then
1291 ac_cv_prog_CC="$CC" # Let the user override the test.
1292else
Peter Åstrande713b142004-11-16 13:29:40 +00001293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1294for as_dir in $PATH
1295do
1296 IFS=$as_save_IFS
1297 test -z "$as_dir" && as_dir=.
1298 for ac_exec_ext in '' $ac_executable_extensions; do
1299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1300 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1302 break 2
1303 fi
1304done
1305done
1306
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001307fi
1308fi
Peter Åstrande713b142004-11-16 13:29:40 +00001309CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001310if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001311 echo "$as_me:$LINENO: result: $CC" >&5
1312echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001313else
Peter Åstrande713b142004-11-16 13:29:40 +00001314 echo "$as_me:$LINENO: result: no" >&5
1315echo "${ECHO_T}no" >&6
1316fi
1317
1318fi
1319if test -z "$ac_cv_prog_CC"; then
1320 ac_ct_CC=$CC
1321 # Extract the first word of "gcc", so it can be a program name with args.
1322set dummy gcc; ac_word=$2
1323echo "$as_me:$LINENO: checking for $ac_word" >&5
1324echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1325if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1326 echo $ECHO_N "(cached) $ECHO_C" >&6
1327else
1328 if test -n "$ac_ct_CC"; then
1329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1330else
1331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332for as_dir in $PATH
1333do
1334 IFS=$as_save_IFS
1335 test -z "$as_dir" && as_dir=.
1336 for ac_exec_ext in '' $ac_executable_extensions; do
1337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1338 ac_cv_prog_ac_ct_CC="gcc"
1339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1340 break 2
1341 fi
1342done
1343done
1344
1345fi
1346fi
1347ac_ct_CC=$ac_cv_prog_ac_ct_CC
1348if test -n "$ac_ct_CC"; then
1349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1350echo "${ECHO_T}$ac_ct_CC" >&6
1351else
1352 echo "$as_me:$LINENO: result: no" >&5
1353echo "${ECHO_T}no" >&6
1354fi
1355
1356 CC=$ac_ct_CC
1357else
1358 CC="$ac_cv_prog_CC"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001359fi
1360
1361if test -z "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001362 if test -n "$ac_tool_prefix"; then
1363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1364set dummy ${ac_tool_prefix}cc; ac_word=$2
1365echo "$as_me:$LINENO: checking for $ac_word" >&5
1366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1367if test "${ac_cv_prog_CC+set}" = set; then
1368 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001369else
1370 if test -n "$CC"; then
1371 ac_cv_prog_CC="$CC" # Let the user override the test.
1372else
Peter Åstrande713b142004-11-16 13:29:40 +00001373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1374for as_dir in $PATH
1375do
1376 IFS=$as_save_IFS
1377 test -z "$as_dir" && as_dir=.
1378 for ac_exec_ext in '' $ac_executable_extensions; do
1379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1380 ac_cv_prog_CC="${ac_tool_prefix}cc"
1381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382 break 2
1383 fi
1384done
1385done
1386
1387fi
1388fi
1389CC=$ac_cv_prog_CC
1390if test -n "$CC"; then
1391 echo "$as_me:$LINENO: result: $CC" >&5
1392echo "${ECHO_T}$CC" >&6
1393else
1394 echo "$as_me:$LINENO: result: no" >&5
1395echo "${ECHO_T}no" >&6
1396fi
1397
1398fi
1399if test -z "$ac_cv_prog_CC"; then
1400 ac_ct_CC=$CC
1401 # Extract the first word of "cc", so it can be a program name with args.
1402set dummy cc; ac_word=$2
1403echo "$as_me:$LINENO: checking for $ac_word" >&5
1404echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1405if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1406 echo $ECHO_N "(cached) $ECHO_C" >&6
1407else
1408 if test -n "$ac_ct_CC"; then
1409 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1410else
1411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1412for as_dir in $PATH
1413do
1414 IFS=$as_save_IFS
1415 test -z "$as_dir" && as_dir=.
1416 for ac_exec_ext in '' $ac_executable_extensions; do
1417 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1418 ac_cv_prog_ac_ct_CC="cc"
1419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1420 break 2
1421 fi
1422done
1423done
1424
1425fi
1426fi
1427ac_ct_CC=$ac_cv_prog_ac_ct_CC
1428if test -n "$ac_ct_CC"; then
1429 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1430echo "${ECHO_T}$ac_ct_CC" >&6
1431else
1432 echo "$as_me:$LINENO: result: no" >&5
1433echo "${ECHO_T}no" >&6
1434fi
1435
1436 CC=$ac_ct_CC
1437else
1438 CC="$ac_cv_prog_CC"
1439fi
1440
1441fi
1442if test -z "$CC"; then
1443 # Extract the first word of "cc", so it can be a program name with args.
1444set dummy cc; ac_word=$2
1445echo "$as_me:$LINENO: checking for $ac_word" >&5
1446echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1447if test "${ac_cv_prog_CC+set}" = set; then
1448 echo $ECHO_N "(cached) $ECHO_C" >&6
1449else
1450 if test -n "$CC"; then
1451 ac_cv_prog_CC="$CC" # Let the user override the test.
1452else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001453 ac_prog_rejected=no
Peter Åstrande713b142004-11-16 13:29:40 +00001454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1455for as_dir in $PATH
1456do
1457 IFS=$as_save_IFS
1458 test -z "$as_dir" && as_dir=.
1459 for ac_exec_ext in '' $ac_executable_extensions; do
1460 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1461 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1462 ac_prog_rejected=yes
1463 continue
1464 fi
1465 ac_cv_prog_CC="cc"
1466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1467 break 2
1468 fi
1469done
1470done
1471
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001472if test $ac_prog_rejected = yes; then
1473 # We found a bogon in the path, so make sure we never use it.
1474 set dummy $ac_cv_prog_CC
1475 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001476 if test $# != 0; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001477 # We chose a different compiler from the bogus one.
1478 # However, it has the same basename, so the bogon will be chosen
1479 # first if we set CC to just the basename; use the full file name.
1480 shift
Peter Åstrande713b142004-11-16 13:29:40 +00001481 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001482 fi
1483fi
1484fi
1485fi
Peter Åstrande713b142004-11-16 13:29:40 +00001486CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001487if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001488 echo "$as_me:$LINENO: result: $CC" >&5
1489echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001490else
Peter Åstrande713b142004-11-16 13:29:40 +00001491 echo "$as_me:$LINENO: result: no" >&5
1492echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001493fi
1494
Peter Åstrande713b142004-11-16 13:29:40 +00001495fi
1496if test -z "$CC"; then
1497 if test -n "$ac_tool_prefix"; then
1498 for ac_prog in cl
1499 do
1500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1501set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1502echo "$as_me:$LINENO: checking for $ac_word" >&5
1503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1504if test "${ac_cv_prog_CC+set}" = set; then
1505 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001506else
1507 if test -n "$CC"; then
1508 ac_cv_prog_CC="$CC" # Let the user override the test.
1509else
Peter Åstrande713b142004-11-16 13:29:40 +00001510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1511for as_dir in $PATH
1512do
1513 IFS=$as_save_IFS
1514 test -z "$as_dir" && as_dir=.
1515 for ac_exec_ext in '' $ac_executable_extensions; do
1516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1517 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1519 break 2
1520 fi
1521done
1522done
1523
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001524fi
1525fi
Peter Åstrande713b142004-11-16 13:29:40 +00001526CC=$ac_cv_prog_CC
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001527if test -n "$CC"; then
Peter Åstrande713b142004-11-16 13:29:40 +00001528 echo "$as_me:$LINENO: result: $CC" >&5
1529echo "${ECHO_T}$CC" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001530else
Peter Åstrande713b142004-11-16 13:29:40 +00001531 echo "$as_me:$LINENO: result: no" >&5
1532echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001533fi
Peter Åstrande713b142004-11-16 13:29:40 +00001534
1535 test -n "$CC" && break
1536 done
1537fi
1538if test -z "$CC"; then
1539 ac_ct_CC=$CC
1540 for ac_prog in cl
1541do
1542 # Extract the first word of "$ac_prog", so it can be a program name with args.
1543set dummy $ac_prog; ac_word=$2
1544echo "$as_me:$LINENO: checking for $ac_word" >&5
1545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1546if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1547 echo $ECHO_N "(cached) $ECHO_C" >&6
1548else
1549 if test -n "$ac_ct_CC"; then
1550 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1551else
1552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1553for as_dir in $PATH
1554do
1555 IFS=$as_save_IFS
1556 test -z "$as_dir" && as_dir=.
1557 for ac_exec_ext in '' $ac_executable_extensions; do
1558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1559 ac_cv_prog_ac_ct_CC="$ac_prog"
1560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1561 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001562 fi
Peter Åstrande713b142004-11-16 13:29:40 +00001563done
1564done
1565
1566fi
1567fi
1568ac_ct_CC=$ac_cv_prog_ac_ct_CC
1569if test -n "$ac_ct_CC"; then
1570 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1571echo "${ECHO_T}$ac_ct_CC" >&6
1572else
1573 echo "$as_me:$LINENO: result: no" >&5
1574echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001575fi
1576
Peter Åstrande713b142004-11-16 13:29:40 +00001577 test -n "$ac_ct_CC" && break
1578done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001579
Peter Åstrande713b142004-11-16 13:29:40 +00001580 CC=$ac_ct_CC
1581fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001582
Peter Åstrande713b142004-11-16 13:29:40 +00001583fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001584
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001585
Peter Åstrande713b142004-11-16 13:29:40 +00001586test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1587See \`config.log' for more details." >&5
1588echo "$as_me: error: no acceptable C compiler found in \$PATH
1589See \`config.log' for more details." >&2;}
1590 { (exit 1); exit 1; }; }
1591
1592# Provide some information about the compiler.
1593echo "$as_me:$LINENO:" \
1594 "checking for C compiler version" >&5
1595ac_compiler=`set X $ac_compile; echo $2`
1596{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1597 (eval $ac_compiler --version </dev/null >&5) 2>&5
1598 ac_status=$?
1599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1600 (exit $ac_status); }
1601{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1602 (eval $ac_compiler -v </dev/null >&5) 2>&5
1603 ac_status=$?
1604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1605 (exit $ac_status); }
1606{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1607 (eval $ac_compiler -V </dev/null >&5) 2>&5
1608 ac_status=$?
1609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1610 (exit $ac_status); }
1611
1612cat >conftest.$ac_ext <<_ACEOF
1613/* confdefs.h. */
1614_ACEOF
1615cat confdefs.h >>conftest.$ac_ext
1616cat >>conftest.$ac_ext <<_ACEOF
1617/* end confdefs.h. */
1618
1619int
1620main ()
1621{
1622
1623 ;
1624 return 0;
1625}
1626_ACEOF
1627ac_clean_files_save=$ac_clean_files
1628ac_clean_files="$ac_clean_files a.out a.exe b.out"
1629# Try to create an executable without -o first, disregard a.out.
1630# It will help us diagnose broken compilers, and finding out an intuition
1631# of exeext.
1632echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1633echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1634ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1635if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1636 (eval $ac_link_default) 2>&5
1637 ac_status=$?
1638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1639 (exit $ac_status); }; then
1640 # Find the output, starting from the most likely. This scheme is
1641# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1642# resort.
1643
1644# Be careful to initialize this variable, since it used to be cached.
1645# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1646ac_cv_exeext=
1647# b.out is created by i960 compilers.
1648for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1649do
1650 test -f "$ac_file" || continue
1651 case $ac_file in
1652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1653 ;;
1654 conftest.$ac_ext )
1655 # This is the source file.
1656 ;;
1657 [ab].out )
1658 # We found the default executable, but exeext='' is most
1659 # certainly right.
1660 break;;
1661 *.* )
1662 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1663 # FIXME: I believe we export ac_cv_exeext for Libtool,
1664 # but it would be cool to find out if it's true. Does anybody
1665 # maintain Libtool? --akim.
1666 export ac_cv_exeext
1667 break;;
1668 * )
1669 break;;
1670 esac
1671done
1672else
1673 echo "$as_me: failed program was:" >&5
1674sed 's/^/| /' conftest.$ac_ext >&5
1675
1676{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1677See \`config.log' for more details." >&5
1678echo "$as_me: error: C compiler cannot create executables
1679See \`config.log' for more details." >&2;}
1680 { (exit 77); exit 77; }; }
1681fi
1682
1683ac_exeext=$ac_cv_exeext
1684echo "$as_me:$LINENO: result: $ac_file" >&5
1685echo "${ECHO_T}$ac_file" >&6
1686
1687# Check the compiler produces executables we can run. If not, either
1688# the compiler is broken, or we cross compile.
1689echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1690echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1691# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1692# If not cross compiling, check that we can run a simple program.
1693if test "$cross_compiling" != yes; then
1694 if { ac_try='./$ac_file'
1695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1696 (eval $ac_try) 2>&5
1697 ac_status=$?
1698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1699 (exit $ac_status); }; }; then
1700 cross_compiling=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001701 else
Peter Åstrande713b142004-11-16 13:29:40 +00001702 if test "$cross_compiling" = maybe; then
1703 cross_compiling=yes
1704 else
1705 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1706If you meant to cross compile, use \`--host'.
1707See \`config.log' for more details." >&5
1708echo "$as_me: error: cannot run C compiled programs.
1709If you meant to cross compile, use \`--host'.
1710See \`config.log' for more details." >&2;}
1711 { (exit 1); exit 1; }; }
1712 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001713 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001714fi
Peter Åstrande713b142004-11-16 13:29:40 +00001715echo "$as_me:$LINENO: result: yes" >&5
1716echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001717
Peter Åstrande713b142004-11-16 13:29:40 +00001718rm -f a.out a.exe conftest$ac_cv_exeext b.out
1719ac_clean_files=$ac_clean_files_save
1720# Check the compiler produces executables we can run. If not, either
1721# the compiler is broken, or we cross compile.
1722echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1723echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1724echo "$as_me:$LINENO: result: $cross_compiling" >&5
1725echo "${ECHO_T}$cross_compiling" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001726
Peter Åstrande713b142004-11-16 13:29:40 +00001727echo "$as_me:$LINENO: checking for suffix of executables" >&5
1728echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1730 (eval $ac_link) 2>&5
1731 ac_status=$?
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; then
1734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1735# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1736# work properly (i.e., refer to `conftest.exe'), while it won't with
1737# `rm'.
1738for ac_file in conftest.exe conftest conftest.*; do
1739 test -f "$ac_file" || continue
1740 case $ac_file in
1741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1742 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1743 export ac_cv_exeext
1744 break;;
1745 * ) break;;
1746 esac
1747done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001748else
Peter Åstrande713b142004-11-16 13:29:40 +00001749 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1750See \`config.log' for more details." >&5
1751echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1752See \`config.log' for more details." >&2;}
1753 { (exit 1); exit 1; }; }
1754fi
1755
1756rm -f conftest$ac_cv_exeext
1757echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1758echo "${ECHO_T}$ac_cv_exeext" >&6
1759
1760rm -f conftest.$ac_ext
1761EXEEXT=$ac_cv_exeext
1762ac_exeext=$EXEEXT
1763echo "$as_me:$LINENO: checking for suffix of object files" >&5
1764echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1765if test "${ac_cv_objext+set}" = set; then
1766 echo $ECHO_N "(cached) $ECHO_C" >&6
1767else
1768 cat >conftest.$ac_ext <<_ACEOF
1769/* confdefs.h. */
1770_ACEOF
1771cat confdefs.h >>conftest.$ac_ext
1772cat >>conftest.$ac_ext <<_ACEOF
1773/* end confdefs.h. */
1774
1775int
1776main ()
1777{
1778
1779 ;
1780 return 0;
1781}
1782_ACEOF
1783rm -f conftest.o conftest.obj
1784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1785 (eval $ac_compile) 2>&5
1786 ac_status=$?
1787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1788 (exit $ac_status); }; then
1789 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1790 case $ac_file in
1791 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1792 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1793 break;;
1794 esac
1795done
1796else
1797 echo "$as_me: failed program was:" >&5
1798sed 's/^/| /' conftest.$ac_ext >&5
1799
1800{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1801See \`config.log' for more details." >&5
1802echo "$as_me: error: cannot compute suffix of object files: cannot compile
1803See \`config.log' for more details." >&2;}
1804 { (exit 1); exit 1; }; }
1805fi
1806
1807rm -f conftest.$ac_cv_objext conftest.$ac_ext
1808fi
1809echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1810echo "${ECHO_T}$ac_cv_objext" >&6
1811OBJEXT=$ac_cv_objext
1812ac_objext=$OBJEXT
1813echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1814echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1815if test "${ac_cv_c_compiler_gnu+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817else
1818 cat >conftest.$ac_ext <<_ACEOF
1819/* confdefs.h. */
1820_ACEOF
1821cat confdefs.h >>conftest.$ac_ext
1822cat >>conftest.$ac_ext <<_ACEOF
1823/* end confdefs.h. */
1824
1825int
1826main ()
1827{
1828#ifndef __GNUC__
1829 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001830#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001831
Peter Åstrande713b142004-11-16 13:29:40 +00001832 ;
1833 return 0;
1834}
1835_ACEOF
1836rm -f conftest.$ac_objext
1837if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838 (eval $ac_compile) 2>conftest.er1
1839 ac_status=$?
1840 grep -v '^ *+' conftest.er1 >conftest.err
1841 rm -f conftest.er1
1842 cat conftest.err >&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); } &&
1845 { ac_try='test -z "$ac_c_werror_flag"
1846 || test ! -s conftest.err'
1847 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848 (eval $ac_try) 2>&5
1849 ac_status=$?
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }; } &&
1852 { ac_try='test -s conftest.$ac_objext'
1853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1854 (eval $ac_try) 2>&5
1855 ac_status=$?
1856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1857 (exit $ac_status); }; }; then
1858 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001859else
Peter Åstrande713b142004-11-16 13:29:40 +00001860 echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001864fi
Peter Åstrande713b142004-11-16 13:29:40 +00001865rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1866ac_cv_c_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001867
Peter Åstrande713b142004-11-16 13:29:40 +00001868fi
1869echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1870echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1871GCC=`test $ac_compiler_gnu = yes && echo yes`
1872ac_test_CFLAGS=${CFLAGS+set}
1873ac_save_CFLAGS=$CFLAGS
1874CFLAGS="-g"
1875echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1876echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1877if test "${ac_cv_prog_cc_g+set}" = set; then
1878 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001879else
Peter Åstrande713b142004-11-16 13:29:40 +00001880 cat >conftest.$ac_ext <<_ACEOF
1881/* confdefs.h. */
1882_ACEOF
1883cat confdefs.h >>conftest.$ac_ext
1884cat >>conftest.$ac_ext <<_ACEOF
1885/* end confdefs.h. */
1886
1887int
1888main ()
1889{
1890
1891 ;
1892 return 0;
1893}
1894_ACEOF
1895rm -f conftest.$ac_objext
1896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1897 (eval $ac_compile) 2>conftest.er1
1898 ac_status=$?
1899 grep -v '^ *+' conftest.er1 >conftest.err
1900 rm -f conftest.er1
1901 cat conftest.err >&5
1902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1903 (exit $ac_status); } &&
1904 { ac_try='test -z "$ac_c_werror_flag"
1905 || test ! -s conftest.err'
1906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907 (eval $ac_try) 2>&5
1908 ac_status=$?
1909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910 (exit $ac_status); }; } &&
1911 { ac_try='test -s conftest.$ac_objext'
1912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1913 (eval $ac_try) 2>&5
1914 ac_status=$?
1915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1916 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001917 ac_cv_prog_cc_g=yes
1918else
Peter Åstrande713b142004-11-16 13:29:40 +00001919 echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001921
Peter Åstrande713b142004-11-16 13:29:40 +00001922ac_cv_prog_cc_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001923fi
Peter Åstrande713b142004-11-16 13:29:40 +00001924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1925fi
1926echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1927echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001928if test "$ac_test_CFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00001929 CFLAGS=$ac_save_CFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001930elif test $ac_cv_prog_cc_g = yes; then
1931 if test "$GCC" = yes; then
1932 CFLAGS="-g -O2"
1933 else
1934 CFLAGS="-g"
1935 fi
1936else
1937 if test "$GCC" = yes; then
1938 CFLAGS="-O2"
1939 else
1940 CFLAGS=
1941 fi
1942fi
Peter Åstrande713b142004-11-16 13:29:40 +00001943echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1944echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1945if test "${ac_cv_prog_cc_stdc+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1947else
1948 ac_cv_prog_cc_stdc=no
1949ac_save_CC=$CC
1950cat >conftest.$ac_ext <<_ACEOF
1951/* confdefs.h. */
1952_ACEOF
1953cat confdefs.h >>conftest.$ac_ext
1954cat >>conftest.$ac_ext <<_ACEOF
1955/* end confdefs.h. */
1956#include <stdarg.h>
1957#include <stdio.h>
1958#include <sys/types.h>
1959#include <sys/stat.h>
1960/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1961struct buf { int x; };
1962FILE * (*rcsopen) (struct buf *, struct stat *, int);
1963static char *e (p, i)
1964 char **p;
1965 int i;
1966{
1967 return p[i];
1968}
1969static char *f (char * (*g) (char **, int), char **p, ...)
1970{
1971 char *s;
1972 va_list v;
1973 va_start (v,p);
1974 s = g (p, va_arg (v,int));
1975 va_end (v);
1976 return s;
1977}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00001978
Peter Åstrande713b142004-11-16 13:29:40 +00001979/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
1980 function prototypes and stuff, but not '\xHH' hex character constants.
1981 These don't provoke an error unfortunately, instead are silently treated
1982 as 'x'. The following induces an error, until -std1 is added to get
1983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
1984 array size at least. It's necessary to write '\x00'==0 to get something
1985 that's true only with -std1. */
1986int osf4_cc_array ['\x00' == 0 ? 1 : -1];
1987
1988int test (int i, double x);
1989struct s1 {int (*f) (int a);};
1990struct s2 {int (*f) (double a);};
1991int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1992int argc;
1993char **argv;
1994int
1995main ()
1996{
1997return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1998 ;
1999 return 0;
2000}
2001_ACEOF
2002# Don't try gcc -ansi; that turns off useful extensions and
2003# breaks some systems' header files.
2004# AIX -qlanglvl=ansi
2005# Ultrix and OSF/1 -std1
2006# HP-UX 10.20 and later -Ae
2007# HP-UX older versions -Aa -D_HPUX_SOURCE
2008# SVR4 -Xc -D__EXTENSIONS__
2009for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002010do
Peter Åstrande713b142004-11-16 13:29:40 +00002011 CC="$ac_save_CC $ac_arg"
2012 rm -f conftest.$ac_objext
2013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2014 (eval $ac_compile) 2>conftest.er1
2015 ac_status=$?
2016 grep -v '^ *+' conftest.er1 >conftest.err
2017 rm -f conftest.er1
2018 cat conftest.err >&5
2019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2020 (exit $ac_status); } &&
2021 { ac_try='test -z "$ac_c_werror_flag"
2022 || test ! -s conftest.err'
2023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2024 (eval $ac_try) 2>&5
2025 ac_status=$?
2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2027 (exit $ac_status); }; } &&
2028 { ac_try='test -s conftest.$ac_objext'
2029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2030 (eval $ac_try) 2>&5
2031 ac_status=$?
2032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2033 (exit $ac_status); }; }; then
2034 ac_cv_prog_cc_stdc=$ac_arg
2035break
2036else
2037 echo "$as_me: failed program was:" >&5
2038sed 's/^/| /' conftest.$ac_ext >&5
2039
2040fi
2041rm -f conftest.err conftest.$ac_objext
2042done
2043rm -f conftest.$ac_ext conftest.$ac_objext
2044CC=$ac_save_CC
2045
2046fi
2047
2048case "x$ac_cv_prog_cc_stdc" in
2049 x|xno)
2050 echo "$as_me:$LINENO: result: none needed" >&5
2051echo "${ECHO_T}none needed" >&6 ;;
2052 *)
2053 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2054echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2055 CC="$CC $ac_cv_prog_cc_stdc" ;;
2056esac
2057
2058# Some people use a C++ compiler to compile C. Since we use `exit',
2059# in C++ we need to declare it. In case someone uses the same compiler
2060# for both compiling C and C++ we need to have the C++ compiler decide
2061# the declaration of exit, since it's the most demanding environment.
2062cat >conftest.$ac_ext <<_ACEOF
2063#ifndef __cplusplus
2064 choke me
2065#endif
2066_ACEOF
2067rm -f conftest.$ac_objext
2068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2069 (eval $ac_compile) 2>conftest.er1
2070 ac_status=$?
2071 grep -v '^ *+' conftest.er1 >conftest.err
2072 rm -f conftest.er1
2073 cat conftest.err >&5
2074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2075 (exit $ac_status); } &&
2076 { ac_try='test -z "$ac_c_werror_flag"
2077 || test ! -s conftest.err'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; } &&
2083 { ac_try='test -s conftest.$ac_objext'
2084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2085 (eval $ac_try) 2>&5
2086 ac_status=$?
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); }; }; then
2089 for ac_declaration in \
2090 '' \
2091 'extern "C" void std::exit (int) throw (); using std::exit;' \
2092 'extern "C" void std::exit (int); using std::exit;' \
2093 'extern "C" void exit (int) throw ();' \
2094 'extern "C" void exit (int);' \
2095 'void exit (int);'
2096do
2097 cat >conftest.$ac_ext <<_ACEOF
2098/* confdefs.h. */
2099_ACEOF
2100cat confdefs.h >>conftest.$ac_ext
2101cat >>conftest.$ac_ext <<_ACEOF
2102/* end confdefs.h. */
2103$ac_declaration
2104#include <stdlib.h>
2105int
2106main ()
2107{
2108exit (42);
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113rm -f conftest.$ac_objext
2114if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2115 (eval $ac_compile) 2>conftest.er1
2116 ac_status=$?
2117 grep -v '^ *+' conftest.er1 >conftest.err
2118 rm -f conftest.er1
2119 cat conftest.err >&5
2120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121 (exit $ac_status); } &&
2122 { ac_try='test -z "$ac_c_werror_flag"
2123 || test ! -s conftest.err'
2124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2125 (eval $ac_try) 2>&5
2126 ac_status=$?
2127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128 (exit $ac_status); }; } &&
2129 { ac_try='test -s conftest.$ac_objext'
2130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2131 (eval $ac_try) 2>&5
2132 ac_status=$?
2133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134 (exit $ac_status); }; }; then
2135 :
2136else
2137 echo "$as_me: failed program was:" >&5
2138sed 's/^/| /' conftest.$ac_ext >&5
2139
2140continue
2141fi
2142rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2143 cat >conftest.$ac_ext <<_ACEOF
2144/* confdefs.h. */
2145_ACEOF
2146cat confdefs.h >>conftest.$ac_ext
2147cat >>conftest.$ac_ext <<_ACEOF
2148/* end confdefs.h. */
2149$ac_declaration
2150int
2151main ()
2152{
2153exit (42);
2154 ;
2155 return 0;
2156}
2157_ACEOF
2158rm -f conftest.$ac_objext
2159if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2160 (eval $ac_compile) 2>conftest.er1
2161 ac_status=$?
2162 grep -v '^ *+' conftest.er1 >conftest.err
2163 rm -f conftest.er1
2164 cat conftest.err >&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); } &&
2167 { ac_try='test -z "$ac_c_werror_flag"
2168 || test ! -s conftest.err'
2169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2170 (eval $ac_try) 2>&5
2171 ac_status=$?
2172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173 (exit $ac_status); }; } &&
2174 { ac_try='test -s conftest.$ac_objext'
2175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2176 (eval $ac_try) 2>&5
2177 ac_status=$?
2178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2179 (exit $ac_status); }; }; then
2180 break
2181else
2182 echo "$as_me: failed program was:" >&5
2183sed 's/^/| /' conftest.$ac_ext >&5
2184
2185fi
2186rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2187done
2188rm -f conftest*
2189if test -n "$ac_declaration"; then
2190 echo '#ifdef __cplusplus' >>confdefs.h
2191 echo $ac_declaration >>confdefs.h
2192 echo '#endif' >>confdefs.h
2193fi
2194
2195else
2196 echo "$as_me: failed program was:" >&5
2197sed 's/^/| /' conftest.$ac_ext >&5
2198
2199fi
2200rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2201ac_ext=c
2202ac_cpp='$CPP $CPPFLAGS'
2203ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2204ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2205ac_compiler_gnu=$ac_cv_c_compiler_gnu
2206
2207ac_ext=cc
2208ac_cpp='$CXXCPP $CPPFLAGS'
2209ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2210ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2211ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2212if test -n "$ac_tool_prefix"; then
2213 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2214 do
2215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2217echo "$as_me:$LINENO: checking for $ac_word" >&5
2218echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219if test "${ac_cv_prog_CXX+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002221else
2222 if test -n "$CXX"; then
2223 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2224else
Peter Åstrande713b142004-11-16 13:29:40 +00002225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226for as_dir in $PATH
2227do
2228 IFS=$as_save_IFS
2229 test -z "$as_dir" && as_dir=.
2230 for ac_exec_ext in '' $ac_executable_extensions; do
2231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2232 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2234 break 2
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002235 fi
Peter Åstrande713b142004-11-16 13:29:40 +00002236done
2237done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002238
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002239fi
Peter Åstrande713b142004-11-16 13:29:40 +00002240fi
2241CXX=$ac_cv_prog_CXX
2242if test -n "$CXX"; then
2243 echo "$as_me:$LINENO: result: $CXX" >&5
2244echo "${ECHO_T}$CXX" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002245else
Peter Åstrande713b142004-11-16 13:29:40 +00002246 echo "$as_me:$LINENO: result: no" >&5
2247echo "${ECHO_T}no" >&6
2248fi
2249
2250 test -n "$CXX" && break
2251 done
2252fi
2253if test -z "$CXX"; then
2254 ac_ct_CXX=$CXX
2255 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2256do
2257 # Extract the first word of "$ac_prog", so it can be a program name with args.
2258set dummy $ac_prog; ac_word=$2
2259echo "$as_me:$LINENO: checking for $ac_word" >&5
2260echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2261if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2262 echo $ECHO_N "(cached) $ECHO_C" >&6
2263else
2264 if test -n "$ac_ct_CXX"; then
2265 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2266else
2267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2268for as_dir in $PATH
2269do
2270 IFS=$as_save_IFS
2271 test -z "$as_dir" && as_dir=.
2272 for ac_exec_ext in '' $ac_executable_extensions; do
2273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2274 ac_cv_prog_ac_ct_CXX="$ac_prog"
2275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 break 2
2277 fi
2278done
2279done
2280
2281fi
2282fi
2283ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2284if test -n "$ac_ct_CXX"; then
2285 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2286echo "${ECHO_T}$ac_ct_CXX" >&6
2287else
2288 echo "$as_me:$LINENO: result: no" >&5
2289echo "${ECHO_T}no" >&6
2290fi
2291
2292 test -n "$ac_ct_CXX" && break
2293done
2294test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2295
2296 CXX=$ac_ct_CXX
2297fi
2298
2299
2300# Provide some information about the compiler.
2301echo "$as_me:$LINENO:" \
2302 "checking for C++ compiler version" >&5
2303ac_compiler=`set X $ac_compile; echo $2`
2304{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2305 (eval $ac_compiler --version </dev/null >&5) 2>&5
2306 ac_status=$?
2307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308 (exit $ac_status); }
2309{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2310 (eval $ac_compiler -v </dev/null >&5) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }
2314{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2315 (eval $ac_compiler -V </dev/null >&5) 2>&5
2316 ac_status=$?
2317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2318 (exit $ac_status); }
2319
2320echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2321echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2322if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324else
2325 cat >conftest.$ac_ext <<_ACEOF
2326/* confdefs.h. */
2327_ACEOF
2328cat confdefs.h >>conftest.$ac_ext
2329cat >>conftest.$ac_ext <<_ACEOF
2330/* end confdefs.h. */
2331
2332int
2333main ()
2334{
2335#ifndef __GNUC__
2336 choke me
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002337#endif
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002338
Peter Åstrande713b142004-11-16 13:29:40 +00002339 ;
2340 return 0;
2341}
2342_ACEOF
2343rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_cxx_werror_flag"
2353 || test ! -s conftest.err'
2354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2355 (eval $ac_try) 2>&5
2356 ac_status=$?
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); }; } &&
2359 { ac_try='test -s conftest.$ac_objext'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2361 (eval $ac_try) 2>&5
2362 ac_status=$?
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; }; then
2365 ac_compiler_gnu=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002366else
Peter Åstrande713b142004-11-16 13:29:40 +00002367 echo "$as_me: failed program was:" >&5
2368sed 's/^/| /' conftest.$ac_ext >&5
2369
2370ac_compiler_gnu=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002371fi
Peter Åstrande713b142004-11-16 13:29:40 +00002372rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2373ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002374
Peter Åstrande713b142004-11-16 13:29:40 +00002375fi
2376echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2377echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2378GXX=`test $ac_compiler_gnu = yes && echo yes`
2379ac_test_CXXFLAGS=${CXXFLAGS+set}
2380ac_save_CXXFLAGS=$CXXFLAGS
2381CXXFLAGS="-g"
2382echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2383echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2384if test "${ac_cv_prog_cxx_g+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002386else
Peter Åstrande713b142004-11-16 13:29:40 +00002387 cat >conftest.$ac_ext <<_ACEOF
2388/* confdefs.h. */
2389_ACEOF
2390cat confdefs.h >>conftest.$ac_ext
2391cat >>conftest.$ac_ext <<_ACEOF
2392/* end confdefs.h. */
2393
2394int
2395main ()
2396{
2397
2398 ;
2399 return 0;
2400}
2401_ACEOF
2402rm -f conftest.$ac_objext
2403if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2404 (eval $ac_compile) 2>conftest.er1
2405 ac_status=$?
2406 grep -v '^ *+' conftest.er1 >conftest.err
2407 rm -f conftest.er1
2408 cat conftest.err >&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); } &&
2411 { ac_try='test -z "$ac_cxx_werror_flag"
2412 || test ! -s conftest.err'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 (eval $ac_try) 2>&5
2415 ac_status=$?
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; } &&
2418 { ac_try='test -s conftest.$ac_objext'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002424 ac_cv_prog_cxx_g=yes
2425else
Peter Åstrande713b142004-11-16 13:29:40 +00002426 echo "$as_me: failed program was:" >&5
2427sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002428
Peter Åstrande713b142004-11-16 13:29:40 +00002429ac_cv_prog_cxx_g=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002430fi
Peter Åstrande713b142004-11-16 13:29:40 +00002431rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2432fi
2433echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2434echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002435if test "$ac_test_CXXFLAGS" = set; then
Peter Åstrande713b142004-11-16 13:29:40 +00002436 CXXFLAGS=$ac_save_CXXFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002437elif test $ac_cv_prog_cxx_g = yes; then
2438 if test "$GXX" = yes; then
2439 CXXFLAGS="-g -O2"
2440 else
2441 CXXFLAGS="-g"
2442 fi
2443else
2444 if test "$GXX" = yes; then
2445 CXXFLAGS="-O2"
2446 else
2447 CXXFLAGS=
2448 fi
2449fi
Peter Åstrande713b142004-11-16 13:29:40 +00002450for ac_declaration in \
2451 '' \
2452 'extern "C" void std::exit (int) throw (); using std::exit;' \
2453 'extern "C" void std::exit (int); using std::exit;' \
2454 'extern "C" void exit (int) throw ();' \
2455 'extern "C" void exit (int);' \
2456 'void exit (int);'
2457do
2458 cat >conftest.$ac_ext <<_ACEOF
2459/* confdefs.h. */
2460_ACEOF
2461cat confdefs.h >>conftest.$ac_ext
2462cat >>conftest.$ac_ext <<_ACEOF
2463/* end confdefs.h. */
2464$ac_declaration
2465#include <stdlib.h>
2466int
2467main ()
2468{
2469exit (42);
2470 ;
2471 return 0;
2472}
2473_ACEOF
2474rm -f conftest.$ac_objext
2475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>conftest.er1
2477 ac_status=$?
2478 grep -v '^ *+' conftest.er1 >conftest.err
2479 rm -f conftest.er1
2480 cat conftest.err >&5
2481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482 (exit $ac_status); } &&
2483 { ac_try='test -z "$ac_cxx_werror_flag"
2484 || test ! -s conftest.err'
2485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486 (eval $ac_try) 2>&5
2487 ac_status=$?
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }; } &&
2490 { ac_try='test -s conftest.$ac_objext'
2491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2492 (eval $ac_try) 2>&5
2493 ac_status=$?
2494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2495 (exit $ac_status); }; }; then
2496 :
2497else
2498 echo "$as_me: failed program was:" >&5
2499sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002500
Peter Åstrande713b142004-11-16 13:29:40 +00002501continue
2502fi
2503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2504 cat >conftest.$ac_ext <<_ACEOF
2505/* confdefs.h. */
2506_ACEOF
2507cat confdefs.h >>conftest.$ac_ext
2508cat >>conftest.$ac_ext <<_ACEOF
2509/* end confdefs.h. */
2510$ac_declaration
2511int
2512main ()
2513{
2514exit (42);
2515 ;
2516 return 0;
2517}
2518_ACEOF
2519rm -f conftest.$ac_objext
2520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>conftest.er1
2522 ac_status=$?
2523 grep -v '^ *+' conftest.er1 >conftest.err
2524 rm -f conftest.er1
2525 cat conftest.err >&5
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); } &&
2528 { ac_try='test -z "$ac_cxx_werror_flag"
2529 || test ! -s conftest.err'
2530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2531 (eval $ac_try) 2>&5
2532 ac_status=$?
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }; } &&
2535 { ac_try='test -s conftest.$ac_objext'
2536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2537 (eval $ac_try) 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2541 break
2542else
2543 echo "$as_me: failed program was:" >&5
2544sed 's/^/| /' conftest.$ac_ext >&5
2545
2546fi
2547rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548done
2549rm -f conftest*
2550if test -n "$ac_declaration"; then
2551 echo '#ifdef __cplusplus' >>confdefs.h
2552 echo $ac_declaration >>confdefs.h
2553 echo '#endif' >>confdefs.h
2554fi
2555
2556ac_ext=c
2557ac_cpp='$CPP $CPPFLAGS'
2558ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560ac_compiler_gnu=$ac_cv_c_compiler_gnu
2561
2562if test -n "$ac_tool_prefix"; then
2563 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2564set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2565echo "$as_me:$LINENO: checking for $ac_word" >&5
2566echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2567if test "${ac_cv_prog_RANLIB+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002569else
2570 if test -n "$RANLIB"; then
2571 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2572else
Peter Åstrande713b142004-11-16 13:29:40 +00002573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574for as_dir in $PATH
2575do
2576 IFS=$as_save_IFS
2577 test -z "$as_dir" && as_dir=.
2578 for ac_exec_ext in '' $ac_executable_extensions; do
2579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2580 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2582 break 2
2583 fi
2584done
2585done
2586
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002587fi
2588fi
Peter Åstrande713b142004-11-16 13:29:40 +00002589RANLIB=$ac_cv_prog_RANLIB
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002590if test -n "$RANLIB"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002591 echo "$as_me:$LINENO: result: $RANLIB" >&5
2592echo "${ECHO_T}$RANLIB" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002593else
Peter Åstrande713b142004-11-16 13:29:40 +00002594 echo "$as_me:$LINENO: result: no" >&5
2595echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002596fi
2597
Peter Åstrande713b142004-11-16 13:29:40 +00002598fi
2599if test -z "$ac_cv_prog_RANLIB"; then
2600 ac_ct_RANLIB=$RANLIB
2601 # Extract the first word of "ranlib", so it can be a program name with args.
2602set dummy ranlib; ac_word=$2
2603echo "$as_me:$LINENO: checking for $ac_word" >&5
2604echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2605if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002607else
Peter Åstrande713b142004-11-16 13:29:40 +00002608 if test -n "$ac_ct_RANLIB"; then
2609 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2610else
2611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612for as_dir in $PATH
2613do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2618 ac_cv_prog_ac_ct_RANLIB="ranlib"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622done
2623done
2624
2625 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2626fi
2627fi
2628ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2629if test -n "$ac_ct_RANLIB"; then
2630 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2631echo "${ECHO_T}$ac_ct_RANLIB" >&6
2632else
2633 echo "$as_me:$LINENO: result: no" >&5
2634echo "${ECHO_T}no" >&6
2635fi
2636
2637 RANLIB=$ac_ct_RANLIB
2638else
2639 RANLIB="$ac_cv_prog_RANLIB"
2640fi
2641
2642echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2643echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2644set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2645if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647else
2648 cat >conftest.make <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002649all:
Peter Åstrande713b142004-11-16 13:29:40 +00002650 @echo 'ac_maketemp="$(MAKE)"'
2651_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002652# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Peter Åstrande713b142004-11-16 13:29:40 +00002653eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002654if test -n "$ac_maketemp"; then
2655 eval ac_cv_prog_make_${ac_make}_set=yes
2656else
2657 eval ac_cv_prog_make_${ac_make}_set=no
2658fi
Peter Åstrande713b142004-11-16 13:29:40 +00002659rm -f conftest.make
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002660fi
2661if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Peter Åstrande713b142004-11-16 13:29:40 +00002662 echo "$as_me:$LINENO: result: yes" >&5
2663echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002664 SET_MAKE=
2665else
Peter Åstrande713b142004-11-16 13:29:40 +00002666 echo "$as_me:$LINENO: result: no" >&5
2667echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002668 SET_MAKE="MAKE=${MAKE-make}"
2669fi
2670
Peter Åstrande713b142004-11-16 13:29:40 +00002671ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002672ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002673ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002676
2677
2678case "`(uname -sr) 2>/dev/null`" in
2679"SunOS 5"*)
2680 SOLARIS=yes
2681 USE_MITSHM=yes
2682 ;;
2683"Linux"*)
2684 LINUX=yes
2685 USE_MITSHM=yes
2686 ;;
2687esac
2688
2689if test "$USE_MITSHM" = yes; then
2690 MITSHM_CPPFLAGS="-DMITSHM"
2691fi
2692
2693
2694if test "$GCC" = yes; then
2695 CFLAGS="$CFLAGS -Wall"
2696 if test "$SOLARIS" = yes; then
2697 CFLAGS="$CFLAGS -Wno-unknown-pragmas -Wno-implicit-int"
2698 fi
2699fi
2700if test "$GXX" = yes; then
2701 CXXFLAGS="$CXXFLAGS -Wall"
2702 if test "$SOLARIS" = yes; then
2703 CXXFLAGS="$CXXFLAGS -Wno-unknown-pragmas -Wno-implicit-int -fpermissive"
2704 fi
2705fi
2706
Peter Åstrande713b142004-11-16 13:29:40 +00002707
2708ac_ext=cc
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002709ac_cpp='$CXXCPP $CPPFLAGS'
Peter Åstrande713b142004-11-16 13:29:40 +00002710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2713echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2714echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2715if test -z "$CXXCPP"; then
2716 if test "${ac_cv_prog_CXXCPP+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719 # Double quotes because CXXCPP needs to be expanded
2720 for CXXCPP in "$CXX -E" "/lib/cpp"
2721 do
2722 ac_preproc_ok=false
2723for ac_cxx_preproc_warn_flag in '' yes
2724do
2725 # Use a header file that comes with gcc, so configuring glibc
2726 # with a fresh cross-compiler works.
2727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2728 # <limits.h> exists even on freestanding compilers.
2729 # On the NeXT, cc -E runs the code through the compiler's parser,
2730 # not just through cpp. "Syntax error" is here to catch this case.
2731 cat >conftest.$ac_ext <<_ACEOF
2732/* confdefs.h. */
2733_ACEOF
2734cat confdefs.h >>conftest.$ac_ext
2735cat >>conftest.$ac_ext <<_ACEOF
2736/* end confdefs.h. */
2737#ifdef __STDC__
2738# include <limits.h>
2739#else
2740# include <assert.h>
2741#endif
2742 Syntax error
2743_ACEOF
2744if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2745 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2746 ac_status=$?
2747 grep -v '^ *+' conftest.er1 >conftest.err
2748 rm -f conftest.er1
2749 cat conftest.err >&5
2750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751 (exit $ac_status); } >/dev/null; then
2752 if test -s conftest.err; then
2753 ac_cpp_err=$ac_cxx_preproc_warn_flag
2754 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2755 else
2756 ac_cpp_err=
2757 fi
2758else
2759 ac_cpp_err=yes
2760fi
2761if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002762 :
2763else
Peter Åstrande713b142004-11-16 13:29:40 +00002764 echo "$as_me: failed program was:" >&5
2765sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002766
Peter Åstrande713b142004-11-16 13:29:40 +00002767 # Broken: fails on valid input.
2768continue
2769fi
2770rm -f conftest.err conftest.$ac_ext
2771
2772 # OK, works on sane cases. Now check whether non-existent headers
2773 # can be detected and how.
2774 cat >conftest.$ac_ext <<_ACEOF
2775/* confdefs.h. */
2776_ACEOF
2777cat confdefs.h >>conftest.$ac_ext
2778cat >>conftest.$ac_ext <<_ACEOF
2779/* end confdefs.h. */
2780#include <ac_nonexistent.h>
2781_ACEOF
2782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_cxx_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2793 else
2794 ac_cpp_err=
2795 fi
2796else
2797 ac_cpp_err=yes
2798fi
2799if test -z "$ac_cpp_err"; then
2800 # Broken: success on invalid input.
2801continue
2802else
2803 echo "$as_me: failed program was:" >&5
2804sed 's/^/| /' conftest.$ac_ext >&5
2805
2806 # Passes both tests.
2807ac_preproc_ok=:
2808break
2809fi
2810rm -f conftest.err conftest.$ac_ext
2811
2812done
2813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2814rm -f conftest.err conftest.$ac_ext
2815if $ac_preproc_ok; then
2816 break
2817fi
2818
2819 done
2820 ac_cv_prog_CXXCPP=$CXXCPP
2821
2822fi
2823 CXXCPP=$ac_cv_prog_CXXCPP
2824else
2825 ac_cv_prog_CXXCPP=$CXXCPP
2826fi
2827echo "$as_me:$LINENO: result: $CXXCPP" >&5
2828echo "${ECHO_T}$CXXCPP" >&6
2829ac_preproc_ok=false
2830for ac_cxx_preproc_warn_flag in '' yes
2831do
2832 # Use a header file that comes with gcc, so configuring glibc
2833 # with a fresh cross-compiler works.
2834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2835 # <limits.h> exists even on freestanding compilers.
2836 # On the NeXT, cc -E runs the code through the compiler's parser,
2837 # not just through cpp. "Syntax error" is here to catch this case.
2838 cat >conftest.$ac_ext <<_ACEOF
2839/* confdefs.h. */
2840_ACEOF
2841cat confdefs.h >>conftest.$ac_ext
2842cat >>conftest.$ac_ext <<_ACEOF
2843/* end confdefs.h. */
2844#ifdef __STDC__
2845# include <limits.h>
2846#else
2847# include <assert.h>
2848#endif
2849 Syntax error
2850_ACEOF
2851if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2852 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2853 ac_status=$?
2854 grep -v '^ *+' conftest.er1 >conftest.err
2855 rm -f conftest.er1
2856 cat conftest.err >&5
2857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2858 (exit $ac_status); } >/dev/null; then
2859 if test -s conftest.err; then
2860 ac_cpp_err=$ac_cxx_preproc_warn_flag
2861 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2862 else
2863 ac_cpp_err=
2864 fi
2865else
2866 ac_cpp_err=yes
2867fi
2868if test -z "$ac_cpp_err"; then
2869 :
2870else
2871 echo "$as_me: failed program was:" >&5
2872sed 's/^/| /' conftest.$ac_ext >&5
2873
2874 # Broken: fails on valid input.
2875continue
2876fi
2877rm -f conftest.err conftest.$ac_ext
2878
2879 # OK, works on sane cases. Now check whether non-existent headers
2880 # can be detected and how.
2881 cat >conftest.$ac_ext <<_ACEOF
2882/* confdefs.h. */
2883_ACEOF
2884cat confdefs.h >>conftest.$ac_ext
2885cat >>conftest.$ac_ext <<_ACEOF
2886/* end confdefs.h. */
2887#include <ac_nonexistent.h>
2888_ACEOF
2889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_cxx_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
2900 else
2901 ac_cpp_err=
2902 fi
2903else
2904 ac_cpp_err=yes
2905fi
2906if test -z "$ac_cpp_err"; then
2907 # Broken: success on invalid input.
2908continue
2909else
2910 echo "$as_me: failed program was:" >&5
2911sed 's/^/| /' conftest.$ac_ext >&5
2912
2913 # Passes both tests.
2914ac_preproc_ok=:
2915break
2916fi
2917rm -f conftest.err conftest.$ac_ext
2918
2919done
2920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2921rm -f conftest.err conftest.$ac_ext
2922if $ac_preproc_ok; then
2923 :
2924else
2925 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2926See \`config.log' for more details." >&5
2927echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
2928See \`config.log' for more details." >&2;}
2929 { (exit 1); exit 1; }; }
2930fi
2931
2932ac_ext=cc
2933ac_cpp='$CXXCPP $CPPFLAGS'
2934ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2935ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2936ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2937
2938
2939echo "$as_me:$LINENO: checking for X" >&5
2940echo $ECHO_N "checking for X... $ECHO_C" >&6
2941
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002942
2943# Check whether --with-x or --without-x was given.
2944if test "${with_x+set}" = set; then
2945 withval="$with_x"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002946
Peter Åstrande713b142004-11-16 13:29:40 +00002947fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002948# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2949if test "x$with_x" = xno; then
2950 # The user explicitly disabled X.
2951 have_x=disabled
2952else
2953 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2954 # Both variables are already set.
2955 have_x=yes
2956 else
Peter Åstrande713b142004-11-16 13:29:40 +00002957 if test "${ac_cv_have_x+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002959else
2960 # One or both of the vars are not set, and there is no cached value.
Peter Åstrande713b142004-11-16 13:29:40 +00002961ac_x_includes=no ac_x_libraries=no
2962rm -fr conftest.dir
2963if mkdir conftest.dir; then
2964 cd conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002965 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Peter Åstrande713b142004-11-16 13:29:40 +00002966 cat >Imakefile <<'_ACEOF'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002967acfindx:
2968 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Peter Åstrande713b142004-11-16 13:29:40 +00002969_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002970 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2971 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2972 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2973 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2974 for ac_extension in a so sl; do
2975 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Peter Åstrande713b142004-11-16 13:29:40 +00002976 test -f $ac_im_libdir/libX11.$ac_extension; then
2977 ac_im_usrlibdir=$ac_im_libdir; break
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002978 fi
2979 done
2980 # Screen out bogus values from the imake configuration. They are
2981 # bogus both because they are the default anyway, and because
2982 # using them would break gcc on systems where it needs fixed includes.
Peter Åstrande713b142004-11-16 13:29:40 +00002983 case $ac_im_incroot in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002984 /usr/include) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00002985 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002986 esac
Peter Åstrande713b142004-11-16 13:29:40 +00002987 case $ac_im_usrlibdir in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002988 /usr/lib | /lib) ;;
Peter Åstrande713b142004-11-16 13:29:40 +00002989 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002990 esac
2991 fi
2992 cd ..
Peter Åstrande713b142004-11-16 13:29:40 +00002993 rm -fr conftest.dir
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00002994fi
2995
Peter Åstrande713b142004-11-16 13:29:40 +00002996# Standard set of common directories for X headers.
2997# Check X11 before X11Rn because it is often a symlink to the current release.
2998ac_x_header_dirs='
2999/usr/X11/include
3000/usr/X11R6/include
3001/usr/X11R5/include
3002/usr/X11R4/include
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003003
Peter Åstrande713b142004-11-16 13:29:40 +00003004/usr/include/X11
3005/usr/include/X11R6
3006/usr/include/X11R5
3007/usr/include/X11R4
3008
3009/usr/local/X11/include
3010/usr/local/X11R6/include
3011/usr/local/X11R5/include
3012/usr/local/X11R4/include
3013
3014/usr/local/include/X11
3015/usr/local/include/X11R6
3016/usr/local/include/X11R5
3017/usr/local/include/X11R4
3018
3019/usr/X386/include
3020/usr/x386/include
3021/usr/XFree86/include/X11
3022
3023/usr/include
3024/usr/local/include
3025/usr/unsupported/include
3026/usr/athena/include
3027/usr/local/x11r5/include
3028/usr/lpp/Xamples/include
3029
3030/usr/openwin/include
3031/usr/openwin/share/include'
3032
3033if test "$ac_x_includes" = no; then
3034 # Guess where to find include files, by looking for Intrinsic.h.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003035 # First, try using that file with no special directory specified.
Peter Åstrande713b142004-11-16 13:29:40 +00003036 cat >conftest.$ac_ext <<_ACEOF
3037/* confdefs.h. */
3038_ACEOF
3039cat confdefs.h >>conftest.$ac_ext
3040cat >>conftest.$ac_ext <<_ACEOF
3041/* end confdefs.h. */
3042#include <X11/Intrinsic.h>
3043_ACEOF
3044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046 ac_status=$?
3047 grep -v '^ *+' conftest.er1 >conftest.err
3048 rm -f conftest.er1
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); } >/dev/null; then
3052 if test -s conftest.err; then
3053 ac_cpp_err=$ac_cxx_preproc_warn_flag
3054 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3055 else
3056 ac_cpp_err=
3057 fi
3058else
3059 ac_cpp_err=yes
3060fi
3061if test -z "$ac_cpp_err"; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003062 # We can compile using X headers with no special include directory.
3063ac_x_includes=
3064else
Peter Åstrande713b142004-11-16 13:29:40 +00003065 echo "$as_me: failed program was:" >&5
3066sed 's/^/| /' conftest.$ac_ext >&5
3067
3068 for ac_dir in $ac_x_header_dirs; do
3069 if test -r "$ac_dir/X11/Intrinsic.h"; then
3070 ac_x_includes=$ac_dir
3071 break
3072 fi
3073done
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003074fi
Peter Åstrande713b142004-11-16 13:29:40 +00003075rm -f conftest.err conftest.$ac_ext
3076fi # $ac_x_includes = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003077
Peter Åstrande713b142004-11-16 13:29:40 +00003078if test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003079 # Check for the libraries.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003080 # See if we find them without any special options.
3081 # Don't add to $LIBS permanently.
Peter Åstrande713b142004-11-16 13:29:40 +00003082 ac_save_LIBS=$LIBS
3083 LIBS="-lXt $LIBS"
3084 cat >conftest.$ac_ext <<_ACEOF
3085/* confdefs.h. */
3086_ACEOF
3087cat confdefs.h >>conftest.$ac_ext
3088cat >>conftest.$ac_ext <<_ACEOF
3089/* end confdefs.h. */
3090#include <X11/Intrinsic.h>
3091int
3092main ()
3093{
3094XtMalloc (0)
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099rm -f conftest.$ac_objext conftest$ac_exeext
3100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3101 (eval $ac_link) 2>conftest.er1
3102 ac_status=$?
3103 grep -v '^ *+' conftest.er1 >conftest.err
3104 rm -f conftest.er1
3105 cat conftest.err >&5
3106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); } &&
3108 { ac_try='test -z "$ac_cxx_werror_flag"
3109 || test ! -s conftest.err'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; } &&
3115 { ac_try='test -s conftest$ac_exeext'
3116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117 (eval $ac_try) 2>&5
3118 ac_status=$?
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; }; then
3121 LIBS=$ac_save_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003122# We can link X programs with no special library path.
3123ac_x_libraries=
3124else
Peter Åstrande713b142004-11-16 13:29:40 +00003125 echo "$as_me: failed program was:" >&5
3126sed 's/^/| /' conftest.$ac_ext >&5
3127
3128LIBS=$ac_save_LIBS
3129for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003130do
Peter Åstrande713b142004-11-16 13:29:40 +00003131 # Don't even attempt the hair of trying to link an X program!
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003132 for ac_extension in a so sl; do
Peter Åstrande713b142004-11-16 13:29:40 +00003133 if test -r $ac_dir/libXt.$ac_extension; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003134 ac_x_libraries=$ac_dir
3135 break 2
3136 fi
3137 done
3138done
3139fi
Peter Åstrande713b142004-11-16 13:29:40 +00003140rm -f conftest.err conftest.$ac_objext \
3141 conftest$ac_exeext conftest.$ac_ext
3142fi # $ac_x_libraries = no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003143
Peter Åstrande713b142004-11-16 13:29:40 +00003144if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003145 # Didn't find X anywhere. Cache the known absence of X.
3146 ac_cv_have_x="have_x=no"
3147else
3148 # Record where we found X for the cache.
3149 ac_cv_have_x="have_x=yes \
Peter Åstrande713b142004-11-16 13:29:40 +00003150 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003151fi
3152fi
Peter Åstrande713b142004-11-16 13:29:40 +00003153
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003154 fi
3155 eval "$ac_cv_have_x"
3156fi # $with_x != no
3157
3158if test "$have_x" != yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003159 echo "$as_me:$LINENO: result: $have_x" >&5
3160echo "${ECHO_T}$have_x" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003161 no_x=yes
3162else
3163 # If each of the values was on the command line, it overrides each guess.
3164 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3165 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3166 # Update the cache value to reflect the command line values.
3167 ac_cv_have_x="have_x=yes \
3168 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003169 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3170echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003171fi
3172
3173if test "$no_x" = yes; then
3174 # Not all programs may use this symbol, but it does not hurt to define it.
Peter Åstrande713b142004-11-16 13:29:40 +00003175
3176cat >>confdefs.h <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003177#define X_DISPLAY_MISSING 1
Peter Åstrande713b142004-11-16 13:29:40 +00003178_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003179
3180 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3181else
3182 if test -n "$x_includes"; then
3183 X_CFLAGS="$X_CFLAGS -I$x_includes"
3184 fi
3185
3186 # It would also be nice to do this for all -L options, not just this one.
3187 if test -n "$x_libraries"; then
3188 X_LIBS="$X_LIBS -L$x_libraries"
3189 # For Solaris; some versions of Sun CC require a space after -R and
3190 # others require no space. Words are not sufficient . . . .
Peter Åstrande713b142004-11-16 13:29:40 +00003191 case `(uname -sr) 2>/dev/null` in
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003192 "SunOS 5"*)
Peter Åstrande713b142004-11-16 13:29:40 +00003193 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3194echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3195 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3196 cat >conftest.$ac_ext <<_ACEOF
3197/* confdefs.h. */
3198_ACEOF
3199cat confdefs.h >>conftest.$ac_ext
3200cat >>conftest.$ac_ext <<_ACEOF
3201/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003202
Peter Åstrande713b142004-11-16 13:29:40 +00003203int
3204main ()
3205{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003206
Peter Åstrande713b142004-11-16 13:29:40 +00003207 ;
3208 return 0;
3209}
3210_ACEOF
3211rm -f conftest.$ac_objext conftest$ac_exeext
3212if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3213 (eval $ac_link) 2>conftest.er1
3214 ac_status=$?
3215 grep -v '^ *+' conftest.er1 >conftest.err
3216 rm -f conftest.er1
3217 cat conftest.err >&5
3218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3219 (exit $ac_status); } &&
3220 { ac_try='test -z "$ac_cxx_werror_flag"
3221 || test ! -s conftest.err'
3222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3223 (eval $ac_try) 2>&5
3224 ac_status=$?
3225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3226 (exit $ac_status); }; } &&
3227 { ac_try='test -s conftest$ac_exeext'
3228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3229 (eval $ac_try) 2>&5
3230 ac_status=$?
3231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3232 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003233 ac_R_nospace=yes
3234else
Peter Åstrande713b142004-11-16 13:29:40 +00003235 echo "$as_me: failed program was:" >&5
3236sed 's/^/| /' conftest.$ac_ext >&5
3237
3238ac_R_nospace=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003239fi
Peter Åstrande713b142004-11-16 13:29:40 +00003240rm -f conftest.err conftest.$ac_objext \
3241 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003242 if test $ac_R_nospace = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003243 echo "$as_me:$LINENO: result: no" >&5
3244echo "${ECHO_T}no" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003245 X_LIBS="$X_LIBS -R$x_libraries"
3246 else
3247 LIBS="$ac_xsave_LIBS -R $x_libraries"
Peter Åstrande713b142004-11-16 13:29:40 +00003248 cat >conftest.$ac_ext <<_ACEOF
3249/* confdefs.h. */
3250_ACEOF
3251cat confdefs.h >>conftest.$ac_ext
3252cat >>conftest.$ac_ext <<_ACEOF
3253/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003254
Peter Åstrande713b142004-11-16 13:29:40 +00003255int
3256main ()
3257{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003258
Peter Åstrande713b142004-11-16 13:29:40 +00003259 ;
3260 return 0;
3261}
3262_ACEOF
3263rm -f conftest.$ac_objext conftest$ac_exeext
3264if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3265 (eval $ac_link) 2>conftest.er1
3266 ac_status=$?
3267 grep -v '^ *+' conftest.er1 >conftest.err
3268 rm -f conftest.er1
3269 cat conftest.err >&5
3270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3271 (exit $ac_status); } &&
3272 { ac_try='test -z "$ac_cxx_werror_flag"
3273 || test ! -s conftest.err'
3274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3275 (eval $ac_try) 2>&5
3276 ac_status=$?
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); }; } &&
3279 { ac_try='test -s conftest$ac_exeext'
3280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3281 (eval $ac_try) 2>&5
3282 ac_status=$?
3283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3284 (exit $ac_status); }; }; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003285 ac_R_space=yes
3286else
Peter Åstrande713b142004-11-16 13:29:40 +00003287 echo "$as_me: failed program was:" >&5
3288sed 's/^/| /' conftest.$ac_ext >&5
3289
3290ac_R_space=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003291fi
Peter Åstrande713b142004-11-16 13:29:40 +00003292rm -f conftest.err conftest.$ac_objext \
3293 conftest$ac_exeext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003294 if test $ac_R_space = yes; then
Peter Åstrande713b142004-11-16 13:29:40 +00003295 echo "$as_me:$LINENO: result: yes" >&5
3296echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003297 X_LIBS="$X_LIBS -R $x_libraries"
3298 else
Peter Åstrande713b142004-11-16 13:29:40 +00003299 echo "$as_me:$LINENO: result: neither works" >&5
3300echo "${ECHO_T}neither works" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003301 fi
3302 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003303 LIBS=$ac_xsave_LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003304 esac
3305 fi
3306
3307 # Check for system-dependent libraries X programs must link with.
3308 # Do this before checking for the system-independent R6 libraries
3309 # (-lICE), since we may need -lsocket or whatever for X linking.
3310
3311 if test "$ISC" = yes; then
3312 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3313 else
Peter Åstrande713b142004-11-16 13:29:40 +00003314 # Martyn Johnson says this is needed for Ultrix, if the X
3315 # libraries were built with DECnet support. And Karl Berry says
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003316 # the Alpha needs dnet_stub (dnet does not exist).
Peter Åstrande713b142004-11-16 13:29:40 +00003317 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3318 cat >conftest.$ac_ext <<_ACEOF
3319/* confdefs.h. */
3320_ACEOF
3321cat confdefs.h >>conftest.$ac_ext
3322cat >>conftest.$ac_ext <<_ACEOF
3323/* end confdefs.h. */
3324
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003325/* Override any gcc2 internal prototype to avoid an error. */
3326#ifdef __cplusplus
3327extern "C"
3328#endif
3329/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003330 builtin and then its argument prototype would still apply. */
3331char XOpenDisplay ();
3332int
3333main ()
3334{
3335XOpenDisplay ();
3336 ;
3337 return 0;
3338}
3339_ACEOF
3340rm -f conftest.$ac_objext conftest$ac_exeext
3341if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3342 (eval $ac_link) 2>conftest.er1
3343 ac_status=$?
3344 grep -v '^ *+' conftest.er1 >conftest.err
3345 rm -f conftest.er1
3346 cat conftest.err >&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); } &&
3349 { ac_try='test -z "$ac_cxx_werror_flag"
3350 || test ! -s conftest.err'
3351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3352 (eval $ac_try) 2>&5
3353 ac_status=$?
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); }; } &&
3356 { ac_try='test -s conftest$ac_exeext'
3357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3358 (eval $ac_try) 2>&5
3359 ac_status=$?
3360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }; }; then
3362 :
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003363else
Peter Åstrande713b142004-11-16 13:29:40 +00003364 echo "$as_me: failed program was:" >&5
3365sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003366
Peter Åstrande713b142004-11-16 13:29:40 +00003367echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3368echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3369if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3370 echo $ECHO_N "(cached) $ECHO_C" >&6
3371else
3372 ac_check_lib_save_LIBS=$LIBS
3373LIBS="-ldnet $LIBS"
3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3379/* end confdefs.h. */
3380
3381/* Override any gcc2 internal prototype to avoid an error. */
3382#ifdef __cplusplus
3383extern "C"
3384#endif
3385/* We use char because int might match the return type of a gcc2
3386 builtin and then its argument prototype would still apply. */
3387char dnet_ntoa ();
3388int
3389main ()
3390{
3391dnet_ntoa ();
3392 ;
3393 return 0;
3394}
3395_ACEOF
3396rm -f conftest.$ac_objext conftest$ac_exeext
3397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3398 (eval $ac_link) 2>conftest.er1
3399 ac_status=$?
3400 grep -v '^ *+' conftest.er1 >conftest.err
3401 rm -f conftest.er1
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } &&
3405 { ac_try='test -z "$ac_cxx_werror_flag"
3406 || test ! -s conftest.err'
3407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3408 (eval $ac_try) 2>&5
3409 ac_status=$?
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); }; } &&
3412 { ac_try='test -s conftest$ac_exeext'
3413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3414 (eval $ac_try) 2>&5
3415 ac_status=$?
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; }; then
3418 ac_cv_lib_dnet_dnet_ntoa=yes
3419else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423ac_cv_lib_dnet_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003424fi
Peter Åstrande713b142004-11-16 13:29:40 +00003425rm -f conftest.err conftest.$ac_objext \
3426 conftest$ac_exeext conftest.$ac_ext
3427LIBS=$ac_check_lib_save_LIBS
3428fi
3429echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3430echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3431if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003432 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003433fi
3434
3435 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003436 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3437echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3438if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3439 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003440else
Peter Åstrande713b142004-11-16 13:29:40 +00003441 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003442LIBS="-ldnet_stub $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003443cat >conftest.$ac_ext <<_ACEOF
3444/* confdefs.h. */
3445_ACEOF
3446cat confdefs.h >>conftest.$ac_ext
3447cat >>conftest.$ac_ext <<_ACEOF
3448/* end confdefs.h. */
3449
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003450/* Override any gcc2 internal prototype to avoid an error. */
3451#ifdef __cplusplus
3452extern "C"
3453#endif
3454/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003455 builtin and then its argument prototype would still apply. */
3456char dnet_ntoa ();
3457int
3458main ()
3459{
3460dnet_ntoa ();
3461 ;
3462 return 0;
3463}
3464_ACEOF
3465rm -f conftest.$ac_objext conftest$ac_exeext
3466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3467 (eval $ac_link) 2>conftest.er1
3468 ac_status=$?
3469 grep -v '^ *+' conftest.er1 >conftest.err
3470 rm -f conftest.er1
3471 cat conftest.err >&5
3472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); } &&
3474 { ac_try='test -z "$ac_cxx_werror_flag"
3475 || test ! -s conftest.err'
3476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477 (eval $ac_try) 2>&5
3478 ac_status=$?
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); }; } &&
3481 { ac_try='test -s conftest$ac_exeext'
3482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483 (eval $ac_try) 2>&5
3484 ac_status=$?
3485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486 (exit $ac_status); }; }; then
3487 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003488else
Peter Åstrande713b142004-11-16 13:29:40 +00003489 echo "$as_me: failed program was:" >&5
3490sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003491
Peter Åstrande713b142004-11-16 13:29:40 +00003492ac_cv_lib_dnet_stub_dnet_ntoa=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003493fi
Peter Åstrande713b142004-11-16 13:29:40 +00003494rm -f conftest.err conftest.$ac_objext \
3495 conftest$ac_exeext conftest.$ac_ext
3496LIBS=$ac_check_lib_save_LIBS
3497fi
3498echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3499echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3500if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003501 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003502fi
3503
3504 fi
Peter Åstrande713b142004-11-16 13:29:40 +00003505fi
3506rm -f conftest.err conftest.$ac_objext \
3507 conftest$ac_exeext conftest.$ac_ext
3508 LIBS="$ac_xsave_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003509
3510 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3511 # to get the SysV transport functions.
Peter Åstrande713b142004-11-16 13:29:40 +00003512 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003513 # needs -lnsl.
3514 # The nsl library prevents programs from opening the X display
Peter Åstrande713b142004-11-16 13:29:40 +00003515 # on Irix 5.2, according to T.E. Dickey.
3516 # The functions gethostbyname, getservbyname, and inet_addr are
3517 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3518 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3519echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3520if test "${ac_cv_func_gethostbyname+set}" = set; then
3521 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003522else
Peter Åstrande713b142004-11-16 13:29:40 +00003523 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/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3531#define gethostbyname innocuous_gethostbyname
3532
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003533/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003534 which can conflict with char gethostbyname (); below.
3535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 <limits.h> exists even on freestanding compilers. */
3537
3538#ifdef __STDC__
3539# include <limits.h>
3540#else
3541# include <assert.h>
3542#endif
3543
3544#undef gethostbyname
3545
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003546/* Override any gcc2 internal prototype to avoid an error. */
3547#ifdef __cplusplus
3548extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003549{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003550#endif
3551/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003552 builtin and then its argument prototype would still apply. */
3553char gethostbyname ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003554/* The GNU C library defines this for functions which it implements
3555 to always fail with ENOSYS. Some functions are actually named
3556 something starting with __ and the normal name is an alias. */
3557#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3558choke me
3559#else
Peter Åstrande713b142004-11-16 13:29:40 +00003560char (*f) () = gethostbyname;
3561#endif
3562#ifdef __cplusplus
3563}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003564#endif
3565
Peter Åstrande713b142004-11-16 13:29:40 +00003566int
3567main ()
3568{
3569return f != gethostbyname;
3570 ;
3571 return 0;
3572}
3573_ACEOF
3574rm -f conftest.$ac_objext conftest$ac_exeext
3575if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3576 (eval $ac_link) 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } &&
3583 { ac_try='test -z "$ac_cxx_werror_flag"
3584 || test ! -s conftest.err'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; } &&
3590 { ac_try='test -s conftest$ac_exeext'
3591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3592 (eval $ac_try) 2>&5
3593 ac_status=$?
3594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3595 (exit $ac_status); }; }; then
3596 ac_cv_func_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003597else
Peter Åstrande713b142004-11-16 13:29:40 +00003598 echo "$as_me: failed program was:" >&5
3599sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003600
Peter Åstrande713b142004-11-16 13:29:40 +00003601ac_cv_func_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003602fi
Peter Åstrande713b142004-11-16 13:29:40 +00003603rm -f conftest.err conftest.$ac_objext \
3604 conftest$ac_exeext conftest.$ac_ext
3605fi
3606echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3607echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003608
3609 if test $ac_cv_func_gethostbyname = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003610 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3611echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3612if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3613 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003614else
Peter Åstrande713b142004-11-16 13:29:40 +00003615 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003616LIBS="-lnsl $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003617cat >conftest.$ac_ext <<_ACEOF
3618/* confdefs.h. */
3619_ACEOF
3620cat confdefs.h >>conftest.$ac_ext
3621cat >>conftest.$ac_ext <<_ACEOF
3622/* end confdefs.h. */
3623
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003624/* Override any gcc2 internal prototype to avoid an error. */
3625#ifdef __cplusplus
3626extern "C"
3627#endif
3628/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003629 builtin and then its argument prototype would still apply. */
3630char gethostbyname ();
3631int
3632main ()
3633{
3634gethostbyname ();
3635 ;
3636 return 0;
3637}
3638_ACEOF
3639rm -f conftest.$ac_objext conftest$ac_exeext
3640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3641 (eval $ac_link) 2>conftest.er1
3642 ac_status=$?
3643 grep -v '^ *+' conftest.er1 >conftest.err
3644 rm -f conftest.er1
3645 cat conftest.err >&5
3646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3647 (exit $ac_status); } &&
3648 { ac_try='test -z "$ac_cxx_werror_flag"
3649 || test ! -s conftest.err'
3650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3651 (eval $ac_try) 2>&5
3652 ac_status=$?
3653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3654 (exit $ac_status); }; } &&
3655 { ac_try='test -s conftest$ac_exeext'
3656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3657 (eval $ac_try) 2>&5
3658 ac_status=$?
3659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660 (exit $ac_status); }; }; then
3661 ac_cv_lib_nsl_gethostbyname=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003662else
Peter Åstrande713b142004-11-16 13:29:40 +00003663 echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003665
Peter Åstrande713b142004-11-16 13:29:40 +00003666ac_cv_lib_nsl_gethostbyname=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003667fi
Peter Åstrande713b142004-11-16 13:29:40 +00003668rm -f conftest.err conftest.$ac_objext \
3669 conftest$ac_exeext conftest.$ac_ext
3670LIBS=$ac_check_lib_save_LIBS
3671fi
3672echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3673echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3674if test $ac_cv_lib_nsl_gethostbyname = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003675 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003676fi
3677
Peter Åstrande713b142004-11-16 13:29:40 +00003678 if test $ac_cv_lib_nsl_gethostbyname = no; then
3679 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3680echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3681if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3682 echo $ECHO_N "(cached) $ECHO_C" >&6
3683else
3684 ac_check_lib_save_LIBS=$LIBS
3685LIBS="-lbsd $LIBS"
3686cat >conftest.$ac_ext <<_ACEOF
3687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
3692
3693/* Override any gcc2 internal prototype to avoid an error. */
3694#ifdef __cplusplus
3695extern "C"
3696#endif
3697/* We use char because int might match the return type of a gcc2
3698 builtin and then its argument prototype would still apply. */
3699char gethostbyname ();
3700int
3701main ()
3702{
3703gethostbyname ();
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
3709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3710 (eval $ac_link) 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } &&
3717 { ac_try='test -z "$ac_cxx_werror_flag"
3718 || test ! -s conftest.err'
3719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3720 (eval $ac_try) 2>&5
3721 ac_status=$?
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; } &&
3724 { ac_try='test -s conftest$ac_exeext'
3725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3726 (eval $ac_try) 2>&5
3727 ac_status=$?
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; }; then
3730 ac_cv_lib_bsd_gethostbyname=yes
3731else
3732 echo "$as_me: failed program was:" >&5
3733sed 's/^/| /' conftest.$ac_ext >&5
3734
3735ac_cv_lib_bsd_gethostbyname=no
3736fi
3737rm -f conftest.err conftest.$ac_objext \
3738 conftest$ac_exeext conftest.$ac_ext
3739LIBS=$ac_check_lib_save_LIBS
3740fi
3741echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3742echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3743if test $ac_cv_lib_bsd_gethostbyname = yes; then
3744 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3745fi
3746
3747 fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003748 fi
3749
3750 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3751 # socket/setsockopt and other routines are undefined under SCO ODT
3752 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Peter Åstrande713b142004-11-16 13:29:40 +00003753 # on later versions), says Simon Leinen: it contains gethostby*
3754 # variants that don't use the name server (or something). -lsocket
3755 # must be given before -lnsl if both are needed. We assume that
3756 # if connect needs -lnsl, so does gethostbyname.
3757 echo "$as_me:$LINENO: checking for connect" >&5
3758echo $ECHO_N "checking for connect... $ECHO_C" >&6
3759if test "${ac_cv_func_connect+set}" = set; then
3760 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003761else
Peter Åstrande713b142004-11-16 13:29:40 +00003762 cat >conftest.$ac_ext <<_ACEOF
3763/* confdefs.h. */
3764_ACEOF
3765cat confdefs.h >>conftest.$ac_ext
3766cat >>conftest.$ac_ext <<_ACEOF
3767/* end confdefs.h. */
3768/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3770#define connect innocuous_connect
3771
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003772/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003773 which can conflict with char connect (); below.
3774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3775 <limits.h> exists even on freestanding compilers. */
3776
3777#ifdef __STDC__
3778# include <limits.h>
3779#else
3780# include <assert.h>
3781#endif
3782
3783#undef connect
3784
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003785/* Override any gcc2 internal prototype to avoid an error. */
3786#ifdef __cplusplus
3787extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003788{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003789#endif
3790/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003791 builtin and then its argument prototype would still apply. */
3792char connect ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003793/* The GNU C library defines this for functions which it implements
3794 to always fail with ENOSYS. Some functions are actually named
3795 something starting with __ and the normal name is an alias. */
3796#if defined (__stub_connect) || defined (__stub___connect)
3797choke me
3798#else
Peter Åstrande713b142004-11-16 13:29:40 +00003799char (*f) () = connect;
3800#endif
3801#ifdef __cplusplus
3802}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003803#endif
3804
Peter Åstrande713b142004-11-16 13:29:40 +00003805int
3806main ()
3807{
3808return f != connect;
3809 ;
3810 return 0;
3811}
3812_ACEOF
3813rm -f conftest.$ac_objext conftest$ac_exeext
3814if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3815 (eval $ac_link) 2>conftest.er1
3816 ac_status=$?
3817 grep -v '^ *+' conftest.er1 >conftest.err
3818 rm -f conftest.er1
3819 cat conftest.err >&5
3820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821 (exit $ac_status); } &&
3822 { ac_try='test -z "$ac_cxx_werror_flag"
3823 || test ! -s conftest.err'
3824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3825 (eval $ac_try) 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; } &&
3829 { ac_try='test -s conftest$ac_exeext'
3830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3831 (eval $ac_try) 2>&5
3832 ac_status=$?
3833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3834 (exit $ac_status); }; }; then
3835 ac_cv_func_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003836else
Peter Åstrande713b142004-11-16 13:29:40 +00003837 echo "$as_me: failed program was:" >&5
3838sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003839
Peter Åstrande713b142004-11-16 13:29:40 +00003840ac_cv_func_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003841fi
Peter Åstrande713b142004-11-16 13:29:40 +00003842rm -f conftest.err conftest.$ac_objext \
3843 conftest$ac_exeext conftest.$ac_ext
3844fi
3845echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3846echo "${ECHO_T}$ac_cv_func_connect" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003847
3848 if test $ac_cv_func_connect = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00003849 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3850echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3851if test "${ac_cv_lib_socket_connect+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003853else
Peter Åstrande713b142004-11-16 13:29:40 +00003854 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003855LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00003856cat >conftest.$ac_ext <<_ACEOF
3857/* confdefs.h. */
3858_ACEOF
3859cat confdefs.h >>conftest.$ac_ext
3860cat >>conftest.$ac_ext <<_ACEOF
3861/* end confdefs.h. */
3862
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003863/* Override any gcc2 internal prototype to avoid an error. */
3864#ifdef __cplusplus
3865extern "C"
3866#endif
3867/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003868 builtin and then its argument prototype would still apply. */
3869char connect ();
3870int
3871main ()
3872{
3873connect ();
3874 ;
3875 return 0;
3876}
3877_ACEOF
3878rm -f conftest.$ac_objext conftest$ac_exeext
3879if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3880 (eval $ac_link) 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } &&
3887 { ac_try='test -z "$ac_cxx_werror_flag"
3888 || test ! -s conftest.err'
3889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890 (eval $ac_try) 2>&5
3891 ac_status=$?
3892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893 (exit $ac_status); }; } &&
3894 { ac_try='test -s conftest$ac_exeext'
3895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3896 (eval $ac_try) 2>&5
3897 ac_status=$?
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; }; then
3900 ac_cv_lib_socket_connect=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003901else
Peter Åstrande713b142004-11-16 13:29:40 +00003902 echo "$as_me: failed program was:" >&5
3903sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003904
Peter Åstrande713b142004-11-16 13:29:40 +00003905ac_cv_lib_socket_connect=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003906fi
Peter Åstrande713b142004-11-16 13:29:40 +00003907rm -f conftest.err conftest.$ac_objext \
3908 conftest$ac_exeext conftest.$ac_ext
3909LIBS=$ac_check_lib_save_LIBS
3910fi
3911echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3912echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3913if test $ac_cv_lib_socket_connect = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003914 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003915fi
3916
3917 fi
3918
Peter Åstrande713b142004-11-16 13:29:40 +00003919 # Guillermo Gomez says -lposix is necessary on A/UX.
3920 echo "$as_me:$LINENO: checking for remove" >&5
3921echo $ECHO_N "checking for remove... $ECHO_C" >&6
3922if test "${ac_cv_func_remove+set}" = set; then
3923 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003924else
Peter Åstrande713b142004-11-16 13:29:40 +00003925 cat >conftest.$ac_ext <<_ACEOF
3926/* confdefs.h. */
3927_ACEOF
3928cat confdefs.h >>conftest.$ac_ext
3929cat >>conftest.$ac_ext <<_ACEOF
3930/* end confdefs.h. */
3931/* Define remove to an innocuous variant, in case <limits.h> declares remove.
3932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3933#define remove innocuous_remove
3934
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003935/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00003936 which can conflict with char remove (); below.
3937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3938 <limits.h> exists even on freestanding compilers. */
3939
3940#ifdef __STDC__
3941# include <limits.h>
3942#else
3943# include <assert.h>
3944#endif
3945
3946#undef remove
3947
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003948/* Override any gcc2 internal prototype to avoid an error. */
3949#ifdef __cplusplus
3950extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00003951{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003952#endif
3953/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00003954 builtin and then its argument prototype would still apply. */
3955char remove ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003956/* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959#if defined (__stub_remove) || defined (__stub___remove)
3960choke me
3961#else
Peter Åstrande713b142004-11-16 13:29:40 +00003962char (*f) () = remove;
3963#endif
3964#ifdef __cplusplus
3965}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003966#endif
3967
Peter Åstrande713b142004-11-16 13:29:40 +00003968int
3969main ()
3970{
3971return f != remove;
3972 ;
3973 return 0;
3974}
3975_ACEOF
3976rm -f conftest.$ac_objext conftest$ac_exeext
3977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3978 (eval $ac_link) 2>conftest.er1
3979 ac_status=$?
3980 grep -v '^ *+' conftest.er1 >conftest.err
3981 rm -f conftest.er1
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984 (exit $ac_status); } &&
3985 { ac_try='test -z "$ac_cxx_werror_flag"
3986 || test ! -s conftest.err'
3987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3988 (eval $ac_try) 2>&5
3989 ac_status=$?
3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991 (exit $ac_status); }; } &&
3992 { ac_try='test -s conftest$ac_exeext'
3993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3994 (eval $ac_try) 2>&5
3995 ac_status=$?
3996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3997 (exit $ac_status); }; }; then
3998 ac_cv_func_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00003999else
Peter Åstrande713b142004-11-16 13:29:40 +00004000 echo "$as_me: failed program was:" >&5
4001sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004002
Peter Åstrande713b142004-11-16 13:29:40 +00004003ac_cv_func_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004004fi
Peter Åstrande713b142004-11-16 13:29:40 +00004005rm -f conftest.err conftest.$ac_objext \
4006 conftest$ac_exeext conftest.$ac_ext
4007fi
4008echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4009echo "${ECHO_T}$ac_cv_func_remove" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004010
4011 if test $ac_cv_func_remove = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004012 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4013echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4014if test "${ac_cv_lib_posix_remove+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004016else
Peter Åstrande713b142004-11-16 13:29:40 +00004017 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004018LIBS="-lposix $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004019cat >conftest.$ac_ext <<_ACEOF
4020/* confdefs.h. */
4021_ACEOF
4022cat confdefs.h >>conftest.$ac_ext
4023cat >>conftest.$ac_ext <<_ACEOF
4024/* end confdefs.h. */
4025
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004026/* Override any gcc2 internal prototype to avoid an error. */
4027#ifdef __cplusplus
4028extern "C"
4029#endif
4030/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004031 builtin and then its argument prototype would still apply. */
4032char remove ();
4033int
4034main ()
4035{
4036remove ();
4037 ;
4038 return 0;
4039}
4040_ACEOF
4041rm -f conftest.$ac_objext conftest$ac_exeext
4042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4043 (eval $ac_link) 2>conftest.er1
4044 ac_status=$?
4045 grep -v '^ *+' conftest.er1 >conftest.err
4046 rm -f conftest.er1
4047 cat conftest.err >&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); } &&
4050 { ac_try='test -z "$ac_cxx_werror_flag"
4051 || test ! -s conftest.err'
4052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4053 (eval $ac_try) 2>&5
4054 ac_status=$?
4055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056 (exit $ac_status); }; } &&
4057 { ac_try='test -s conftest$ac_exeext'
4058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059 (eval $ac_try) 2>&5
4060 ac_status=$?
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 ac_cv_lib_posix_remove=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004064else
Peter Åstrande713b142004-11-16 13:29:40 +00004065 echo "$as_me: failed program was:" >&5
4066sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004067
Peter Åstrande713b142004-11-16 13:29:40 +00004068ac_cv_lib_posix_remove=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004069fi
Peter Åstrande713b142004-11-16 13:29:40 +00004070rm -f conftest.err conftest.$ac_objext \
4071 conftest$ac_exeext conftest.$ac_ext
4072LIBS=$ac_check_lib_save_LIBS
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4075echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4076if test $ac_cv_lib_posix_remove = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004078fi
4079
4080 fi
4081
4082 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Peter Åstrande713b142004-11-16 13:29:40 +00004083 echo "$as_me:$LINENO: checking for shmat" >&5
4084echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4085if test "${ac_cv_func_shmat+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004087else
Peter Åstrande713b142004-11-16 13:29:40 +00004088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4093/* end confdefs.h. */
4094/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4096#define shmat innocuous_shmat
4097
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004098/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004099 which can conflict with char shmat (); below.
4100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4101 <limits.h> exists even on freestanding compilers. */
4102
4103#ifdef __STDC__
4104# include <limits.h>
4105#else
4106# include <assert.h>
4107#endif
4108
4109#undef shmat
4110
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004111/* Override any gcc2 internal prototype to avoid an error. */
4112#ifdef __cplusplus
4113extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004114{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004115#endif
4116/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004117 builtin and then its argument prototype would still apply. */
4118char shmat ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004119/* The GNU C library defines this for functions which it implements
4120 to always fail with ENOSYS. Some functions are actually named
4121 something starting with __ and the normal name is an alias. */
4122#if defined (__stub_shmat) || defined (__stub___shmat)
4123choke me
4124#else
Peter Åstrande713b142004-11-16 13:29:40 +00004125char (*f) () = shmat;
4126#endif
4127#ifdef __cplusplus
4128}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004129#endif
4130
Peter Åstrande713b142004-11-16 13:29:40 +00004131int
4132main ()
4133{
4134return f != shmat;
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139rm -f conftest.$ac_objext conftest$ac_exeext
4140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4141 (eval $ac_link) 2>conftest.er1
4142 ac_status=$?
4143 grep -v '^ *+' conftest.er1 >conftest.err
4144 rm -f conftest.er1
4145 cat conftest.err >&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); } &&
4148 { ac_try='test -z "$ac_cxx_werror_flag"
4149 || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 (eval $ac_try) 2>&5
4152 ac_status=$?
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest$ac_exeext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4157 (eval $ac_try) 2>&5
4158 ac_status=$?
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_cv_func_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004162else
Peter Åstrande713b142004-11-16 13:29:40 +00004163 echo "$as_me: failed program was:" >&5
4164sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004165
Peter Åstrande713b142004-11-16 13:29:40 +00004166ac_cv_func_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004167fi
Peter Åstrande713b142004-11-16 13:29:40 +00004168rm -f conftest.err conftest.$ac_objext \
4169 conftest$ac_exeext conftest.$ac_ext
4170fi
4171echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4172echo "${ECHO_T}$ac_cv_func_shmat" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004173
4174 if test $ac_cv_func_shmat = no; then
Peter Åstrande713b142004-11-16 13:29:40 +00004175 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4176echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4177if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004179else
Peter Åstrande713b142004-11-16 13:29:40 +00004180 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004181LIBS="-lipc $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004182cat >conftest.$ac_ext <<_ACEOF
4183/* confdefs.h. */
4184_ACEOF
4185cat confdefs.h >>conftest.$ac_ext
4186cat >>conftest.$ac_ext <<_ACEOF
4187/* end confdefs.h. */
4188
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004189/* Override any gcc2 internal prototype to avoid an error. */
4190#ifdef __cplusplus
4191extern "C"
4192#endif
4193/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004194 builtin and then its argument prototype would still apply. */
4195char shmat ();
4196int
4197main ()
4198{
4199shmat ();
4200 ;
4201 return 0;
4202}
4203_ACEOF
4204rm -f conftest.$ac_objext conftest$ac_exeext
4205if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4206 (eval $ac_link) 2>conftest.er1
4207 ac_status=$?
4208 grep -v '^ *+' conftest.er1 >conftest.err
4209 rm -f conftest.er1
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); } &&
4213 { ac_try='test -z "$ac_cxx_werror_flag"
4214 || test ! -s conftest.err'
4215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4216 (eval $ac_try) 2>&5
4217 ac_status=$?
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); }; } &&
4220 { ac_try='test -s conftest$ac_exeext'
4221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4222 (eval $ac_try) 2>&5
4223 ac_status=$?
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; }; then
4226 ac_cv_lib_ipc_shmat=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004227else
Peter Åstrande713b142004-11-16 13:29:40 +00004228 echo "$as_me: failed program was:" >&5
4229sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004230
Peter Åstrande713b142004-11-16 13:29:40 +00004231ac_cv_lib_ipc_shmat=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004232fi
Peter Åstrande713b142004-11-16 13:29:40 +00004233rm -f conftest.err conftest.$ac_objext \
4234 conftest$ac_exeext conftest.$ac_ext
4235LIBS=$ac_check_lib_save_LIBS
4236fi
4237echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4238echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4239if test $ac_cv_lib_ipc_shmat = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004240 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004241fi
4242
4243 fi
4244 fi
4245
4246 # Check for libraries that X11R6 Xt/Xaw programs need.
Peter Åstrande713b142004-11-16 13:29:40 +00004247 ac_save_LDFLAGS=$LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004248 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4249 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4250 # check for ICE first), but we must link in the order -lSM -lICE or
4251 # we get undefined symbols. So assume we have SM if we have ICE.
4252 # These have to be linked with before -lX11, unlike the other
4253 # libraries we check for below, so use a different variable.
Peter Åstrande713b142004-11-16 13:29:40 +00004254 # John Interrante, Karl Berry
4255 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4256echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4257if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004259else
Peter Åstrande713b142004-11-16 13:29:40 +00004260 ac_check_lib_save_LIBS=$LIBS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004261LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Peter Åstrande713b142004-11-16 13:29:40 +00004262cat >conftest.$ac_ext <<_ACEOF
4263/* confdefs.h. */
4264_ACEOF
4265cat confdefs.h >>conftest.$ac_ext
4266cat >>conftest.$ac_ext <<_ACEOF
4267/* end confdefs.h. */
4268
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004269/* Override any gcc2 internal prototype to avoid an error. */
4270#ifdef __cplusplus
4271extern "C"
4272#endif
4273/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004274 builtin and then its argument prototype would still apply. */
4275char IceConnectionNumber ();
4276int
4277main ()
4278{
4279IceConnectionNumber ();
4280 ;
4281 return 0;
4282}
4283_ACEOF
4284rm -f conftest.$ac_objext conftest$ac_exeext
4285if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4286 (eval $ac_link) 2>conftest.er1
4287 ac_status=$?
4288 grep -v '^ *+' conftest.er1 >conftest.err
4289 rm -f conftest.er1
4290 cat conftest.err >&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } &&
4293 { ac_try='test -z "$ac_cxx_werror_flag"
4294 || test ! -s conftest.err'
4295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 (eval $ac_try) 2>&5
4297 ac_status=$?
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; } &&
4300 { ac_try='test -s conftest$ac_exeext'
4301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4302 (eval $ac_try) 2>&5
4303 ac_status=$?
4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305 (exit $ac_status); }; }; then
4306 ac_cv_lib_ICE_IceConnectionNumber=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004307else
Peter Åstrande713b142004-11-16 13:29:40 +00004308 echo "$as_me: failed program was:" >&5
4309sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004310
Peter Åstrande713b142004-11-16 13:29:40 +00004311ac_cv_lib_ICE_IceConnectionNumber=no
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004312fi
Peter Åstrande713b142004-11-16 13:29:40 +00004313rm -f conftest.err conftest.$ac_objext \
4314 conftest$ac_exeext conftest.$ac_ext
4315LIBS=$ac_check_lib_save_LIBS
4316fi
4317echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4318echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4319if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004320 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004321fi
4322
Peter Åstrande713b142004-11-16 13:29:40 +00004323 LDFLAGS=$ac_save_LDFLAGS
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004324
4325fi
4326
4327
Peter Åstrande713b142004-11-16 13:29:40 +00004328
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004329# Check whether --with-installed-zlib or --without-installed-zlib was given.
4330if test "${with_installed_zlib+set}" = set; then
4331 withval="$with_installed_zlib"
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004332
Peter Åstrande713b142004-11-16 13:29:40 +00004333fi;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004334
4335if test "$with_installed_zlib" = yes; then
4336 echo "using installed zlib"
4337 ZLIB_LIB=-lz
4338else
4339 ZLIB_DIR=zlib
4340 ZLIB_INCLUDE='-I$(top_srcdir)/zlib'
4341 ZLIB_LIB='$(top_srcdir)/zlib/libz.a'
4342 echo "configuring zlib..."
4343 (cd zlib; ./configure)
4344 echo "...done configuring zlib"
4345fi
4346
4347
4348
4349
4350
Peter Åstrandafa924f2004-11-19 13:30:00 +00004351
4352# Check whether --with-installed-jpeg or --without-installed-jpeg was given.
4353if test "${with_installed_jpeg+set}" = set; then
4354 withval="$with_installed_jpeg"
4355
4356fi;
4357
4358if test "$with_installed_jpeg" = yes; then
4359 echo "using installed jpeg"
4360 JPEG_LIB=-ljpeg
4361else
4362 JPEG_DIR=jpeg
4363 JPEG_INCLUDE='-I$(top_srcdir)/jpeg'
4364 JPEG_LIB='$(top_srcdir)/jpeg/libjpeg.a'
4365 echo "configuring jpeg..."
4366 (cd jpeg; ./configure)
4367 echo "...done configuring jpeg"
4368fi
4369
4370
4371
4372
4373
Peter Åstrande713b142004-11-16 13:29:40 +00004374echo "$as_me:$LINENO: checking for vsnprintf" >&5
4375echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
4376if test "${ac_cv_func_vsnprintf+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004378else
Peter Åstrande713b142004-11-16 13:29:40 +00004379 cat >conftest.$ac_ext <<_ACEOF
4380/* confdefs.h. */
4381_ACEOF
4382cat confdefs.h >>conftest.$ac_ext
4383cat >>conftest.$ac_ext <<_ACEOF
4384/* end confdefs.h. */
4385/* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
4386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4387#define vsnprintf innocuous_vsnprintf
4388
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004389/* System header to define __stub macros and hopefully few prototypes,
Peter Åstrande713b142004-11-16 13:29:40 +00004390 which can conflict with char vsnprintf (); below.
4391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4392 <limits.h> exists even on freestanding compilers. */
4393
4394#ifdef __STDC__
4395# include <limits.h>
4396#else
4397# include <assert.h>
4398#endif
4399
4400#undef vsnprintf
4401
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004402/* Override any gcc2 internal prototype to avoid an error. */
4403#ifdef __cplusplus
4404extern "C"
Peter Åstrande713b142004-11-16 13:29:40 +00004405{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004406#endif
4407/* We use char because int might match the return type of a gcc2
Peter Åstrande713b142004-11-16 13:29:40 +00004408 builtin and then its argument prototype would still apply. */
4409char vsnprintf ();
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004410/* The GNU C library defines this for functions which it implements
4411 to always fail with ENOSYS. Some functions are actually named
4412 something starting with __ and the normal name is an alias. */
4413#if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
4414choke me
4415#else
Peter Åstrande713b142004-11-16 13:29:40 +00004416char (*f) () = vsnprintf;
4417#endif
4418#ifdef __cplusplus
4419}
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004420#endif
4421
Peter Åstrande713b142004-11-16 13:29:40 +00004422int
4423main ()
4424{
4425return f != vsnprintf;
4426 ;
4427 return 0;
4428}
4429_ACEOF
4430rm -f conftest.$ac_objext conftest$ac_exeext
4431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4432 (eval $ac_link) 2>conftest.er1
4433 ac_status=$?
4434 grep -v '^ *+' conftest.er1 >conftest.err
4435 rm -f conftest.er1
4436 cat conftest.err >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); } &&
4439 { ac_try='test -z "$ac_cxx_werror_flag"
4440 || test ! -s conftest.err'
4441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4442 (eval $ac_try) 2>&5
4443 ac_status=$?
4444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445 (exit $ac_status); }; } &&
4446 { ac_try='test -s conftest$ac_exeext'
4447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4448 (eval $ac_try) 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); }; }; then
4452 ac_cv_func_vsnprintf=yes
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004453else
Peter Åstrande713b142004-11-16 13:29:40 +00004454 echo "$as_me: failed program was:" >&5
4455sed 's/^/| /' conftest.$ac_ext >&5
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004456
Peter Åstrande713b142004-11-16 13:29:40 +00004457ac_cv_func_vsnprintf=no
4458fi
4459rm -f conftest.err conftest.$ac_objext \
4460 conftest$ac_exeext conftest.$ac_ext
4461fi
4462echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
4463echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
4464if test $ac_cv_func_vsnprintf = yes; then
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004465 VSNPRINTF_DEFINE='-DHAVE_VSNPRINTF'
4466else
Peter Åstrande713b142004-11-16 13:29:40 +00004467 VSNPRINTF_DEFINE=
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004468fi
4469
4470
4471
Peter Åstrande713b142004-11-16 13:29:40 +00004472echo "$as_me:$LINENO: checking for socklen_t" >&5
4473echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
4474cat >conftest.$ac_ext <<_ACEOF
4475/* confdefs.h. */
4476_ACEOF
4477cat confdefs.h >>conftest.$ac_ext
4478cat >>conftest.$ac_ext <<_ACEOF
4479/* end confdefs.h. */
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004480#include <sys/types.h>
4481 #include <sys/socket.h>
Peter Åstrande713b142004-11-16 13:29:40 +00004482int
4483main ()
4484{
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004485socklen_t x;
4486accept(0, 0, &x);
Peter Åstrande713b142004-11-16 13:29:40 +00004487 ;
4488 return 0;
4489}
4490_ACEOF
4491rm -f conftest.$ac_objext
4492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>conftest.er1
4494 ac_status=$?
4495 grep -v '^ *+' conftest.er1 >conftest.err
4496 rm -f conftest.er1
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_cxx_werror_flag"
4501 || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try='test -s conftest.$ac_objext'
4508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4509 (eval $ac_try) 2>&5
4510 ac_status=$?
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; }; then
4513 echo "$as_me:$LINENO: result: yes" >&5
4514echo "${ECHO_T}yes" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004515SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=socklen_t'
4516else
Peter Åstrande713b142004-11-16 13:29:40 +00004517 echo "$as_me: failed program was:" >&5
4518sed 's/^/| /' conftest.$ac_ext >&5
4519
4520echo "$as_me:$LINENO: result: using int" >&5
4521echo "${ECHO_T}using int" >&6
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004522SOCKLEN_T_DEFINE='-DVNC_SOCKLEN_T=int'
4523fi
Peter Åstrande713b142004-11-16 13:29:40 +00004524rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004525
4526
4527BOILERPLATE=boilerplate.mk
4528
4529if (sh -c "make --version" 2>/dev/null | grep GNU 2>&1 >/dev/null); then
4530 if sh -c "vncmkdepend" >/dev/null 2>&1; then
4531 BOILERPLATE="$BOILERPLATE:depend.mk"
4532 fi
4533fi
4534
Peter Åstrande713b142004-11-16 13:29:40 +00004535 ac_config_files="$ac_config_files Makefile:Makefile.in:$BOILERPLATE rdr/Makefile:rdr/Makefile.in:$BOILERPLATE network/Makefile:network/Makefile.in:$BOILERPLATE Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE rfb/Makefile:rfb/Makefile.in:$BOILERPLATE tx/Makefile:tx/Makefile.in:$BOILERPLATE x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE"
4536cat >confcache <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004537# This file is a shell script that caches the results of configure
4538# tests run on this system so they can be shared between configure
Peter Åstrande713b142004-11-16 13:29:40 +00004539# scripts and configure runs, see configure's option --config-cache.
4540# It is not useful on other systems. If it contains results you don't
4541# want to keep, you may remove or edit it.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004542#
Peter Åstrande713b142004-11-16 13:29:40 +00004543# config.status only pays attention to the cache file if you give it
4544# the --recheck option to rerun configure.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004545#
Peter Åstrande713b142004-11-16 13:29:40 +00004546# `ac_cv_env_foo' variables (set or unset) will be overridden when
4547# loading this file, other *unset* `ac_cv_foo' will be assigned the
4548# following values.
4549
4550_ACEOF
4551
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004552# The following way of writing the cache mishandles newlines in values,
4553# but we know of no workaround that is simple, portable, and efficient.
4554# So, don't put newlines in cache variables' values.
4555# Ultrix sh set writes to stderr and can't be redirected directly,
4556# and sets the high bit in the cache file unless we assign to the vars.
Peter Åstrande713b142004-11-16 13:29:40 +00004557{
4558 (set) 2>&1 |
4559 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4560 *ac_space=\ *)
4561 # `set' does not quote correctly, so add quotes (double-quote
4562 # substitution turns \\\\ into \\, and sed turns \\ into \).
4563 sed -n \
4564 "s/'/'\\\\''/g;
4565 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4566 ;;
4567 *)
4568 # `set' quotes correctly as required by POSIX, so do not add quotes.
4569 sed -n \
4570 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4571 ;;
4572 esac;
4573} |
4574 sed '
4575 t clear
4576 : clear
4577 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4578 t end
4579 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4580 : end' >>confcache
4581if diff $cache_file confcache >/dev/null 2>&1; then :; else
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004582 if test -w $cache_file; then
Peter Åstrande713b142004-11-16 13:29:40 +00004583 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4584 cat confcache >$cache_file
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004585 else
4586 echo "not updating unwritable cache $cache_file"
4587 fi
4588fi
4589rm -f confcache
4590
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004591test "x$prefix" = xNONE && prefix=$ac_default_prefix
4592# Let make expand exec_prefix.
4593test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4594
Peter Åstrande713b142004-11-16 13:29:40 +00004595# VPATH may cause trouble with some makes, so we remove $(srcdir),
4596# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4597# trailing colons and then remove the whole line if VPATH becomes empty
4598# (actually we leave an empty line to preserve line numbers).
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004599if test "x$srcdir" = x.; then
Peter Åstrande713b142004-11-16 13:29:40 +00004600 ac_vpsub='/^[ ]*VPATH[ ]*=/{
4601s/:*\$(srcdir):*/:/;
4602s/:*\${srcdir}:*/:/;
4603s/:*@srcdir@:*/:/;
4604s/^\([^=]*=[ ]*\):*/\1/;
4605s/:*$//;
4606s/^[^=]*=[ ]*$//;
4607}'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004608fi
4609
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004610# Transform confdefs.h into DEFS.
4611# Protect against shell expansion while executing Makefile rules.
4612# Protect against Makefile macro expansion.
Peter Åstrande713b142004-11-16 13:29:40 +00004613#
4614# If the first sed substitution is executed (which looks for macros that
4615# take arguments), then we branch to the quote section. Otherwise,
4616# look for a macro that doesn't take arguments.
4617cat >confdef2opt.sed <<\_ACEOF
4618t clear
4619: clear
4620s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
4621t quote
4622s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
4623t quote
4624d
4625: quote
4626s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
4627s,\[,\\&,g
4628s,\],\\&,g
4629s,\$,$$,g
4630p
4631_ACEOF
4632# We use echo to avoid assuming a particular line-breaking character.
4633# The extra dot is to prevent the shell from consuming trailing
4634# line-breaks from the sub-command output. A line-break within
4635# single-quotes doesn't work because, if this script is created in a
4636# platform that uses two characters for line-breaks (e.g., DOS), tr
4637# would break.
4638ac_LF_and_DOT=`echo; echo .`
4639DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
4640rm -f confdef2opt.sed
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004641
4642
Peter Åstrande713b142004-11-16 13:29:40 +00004643ac_libobjs=
4644ac_ltlibobjs=
4645for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4646 # 1. Remove the extension, and $U if already installed.
4647 ac_i=`echo "$ac_i" |
4648 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4649 # 2. Add them.
4650 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4651 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4652done
4653LIBOBJS=$ac_libobjs
4654
4655LTLIBOBJS=$ac_ltlibobjs
4656
4657
4658
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004659: ${CONFIG_STATUS=./config.status}
Peter Åstrande713b142004-11-16 13:29:40 +00004660ac_clean_files_save=$ac_clean_files
4661ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4662{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4663echo "$as_me: creating $CONFIG_STATUS" >&6;}
4664cat >$CONFIG_STATUS <<_ACEOF
4665#! $SHELL
4666# Generated by $as_me.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004667# Run this file to recreate the current configuration.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004668# Compiler output produced by configure, useful for debugging
Peter Åstrande713b142004-11-16 13:29:40 +00004669# configure, is in config.log if it exists.
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004670
Peter Åstrande713b142004-11-16 13:29:40 +00004671debug=false
4672ac_cs_recheck=false
4673ac_cs_silent=false
4674SHELL=\${CONFIG_SHELL-$SHELL}
4675_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004676
Peter Åstrande713b142004-11-16 13:29:40 +00004677cat >>$CONFIG_STATUS <<\_ACEOF
4678## --------------------- ##
4679## M4sh Initialization. ##
4680## --------------------- ##
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004681
Peter Åstrande713b142004-11-16 13:29:40 +00004682# Be Bourne compatible
4683if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4684 emulate sh
4685 NULLCMD=:
4686 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4687 # is contrary to our usage. Disable this feature.
4688 alias -g '${1+"$@"}'='"$@"'
4689elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4690 set -o posix
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004691fi
Peter Åstrande713b142004-11-16 13:29:40 +00004692DUALCASE=1; export DUALCASE # for MKS sh
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004693
Peter Åstrande713b142004-11-16 13:29:40 +00004694# Support unset when possible.
4695if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4696 as_unset=unset
4697else
4698 as_unset=false
4699fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004700
Peter Åstrande713b142004-11-16 13:29:40 +00004701
4702# Work around bugs in pre-3.0 UWIN ksh.
4703$as_unset ENV MAIL MAILPATH
4704PS1='$ '
4705PS2='> '
4706PS4='+ '
4707
4708# NLS nuisances.
4709for as_var in \
4710 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4711 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4712 LC_TELEPHONE LC_TIME
4713do
4714 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4715 eval $as_var=C; export $as_var
4716 else
4717 $as_unset $as_var
4718 fi
4719done
4720
4721# Required to use basename.
4722if expr a : '\(a\)' >/dev/null 2>&1; then
4723 as_expr=expr
4724else
4725 as_expr=false
4726fi
4727
4728if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4729 as_basename=basename
4730else
4731 as_basename=false
4732fi
4733
4734
4735# Name of the executable.
4736as_me=`$as_basename "$0" ||
4737$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4738 X"$0" : 'X\(//\)$' \| \
4739 X"$0" : 'X\(/\)$' \| \
4740 . : '\(.\)' 2>/dev/null ||
4741echo X/"$0" |
4742 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4743 /^X\/\(\/\/\)$/{ s//\1/; q; }
4744 /^X\/\(\/\).*/{ s//\1/; q; }
4745 s/.*/./; q'`
4746
4747
4748# PATH needs CR, and LINENO needs CR and PATH.
4749# Avoid depending upon Character Ranges.
4750as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4751as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4752as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4753as_cr_digits='0123456789'
4754as_cr_alnum=$as_cr_Letters$as_cr_digits
4755
4756# The user is always right.
4757if test "${PATH_SEPARATOR+set}" != set; then
4758 echo "#! /bin/sh" >conf$$.sh
4759 echo "exit 0" >>conf$$.sh
4760 chmod +x conf$$.sh
4761 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4762 PATH_SEPARATOR=';'
4763 else
4764 PATH_SEPARATOR=:
4765 fi
4766 rm -f conf$$.sh
4767fi
4768
4769
4770 as_lineno_1=$LINENO
4771 as_lineno_2=$LINENO
4772 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4773 test "x$as_lineno_1" != "x$as_lineno_2" &&
4774 test "x$as_lineno_3" = "x$as_lineno_2" || {
4775 # Find who we are. Look in the path if we contain no path at all
4776 # relative or not.
4777 case $0 in
4778 *[\\/]* ) as_myself=$0 ;;
4779 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780for as_dir in $PATH
4781do
4782 IFS=$as_save_IFS
4783 test -z "$as_dir" && as_dir=.
4784 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4785done
4786
4787 ;;
4788 esac
4789 # We did not find ourselves, most probably we were run as `sh COMMAND'
4790 # in which case we are not to be found in the path.
4791 if test "x$as_myself" = x; then
4792 as_myself=$0
4793 fi
4794 if test ! -f "$as_myself"; then
4795 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4796echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4797 { (exit 1); exit 1; }; }
4798 fi
4799 case $CONFIG_SHELL in
4800 '')
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4802for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4803do
4804 IFS=$as_save_IFS
4805 test -z "$as_dir" && as_dir=.
4806 for as_base in sh bash ksh sh5; do
4807 case $as_dir in
4808 /*)
4809 if ("$as_dir/$as_base" -c '
4810 as_lineno_1=$LINENO
4811 as_lineno_2=$LINENO
4812 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4813 test "x$as_lineno_1" != "x$as_lineno_2" &&
4814 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4815 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4816 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4817 CONFIG_SHELL=$as_dir/$as_base
4818 export CONFIG_SHELL
4819 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4820 fi;;
4821 esac
4822 done
4823done
4824;;
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004825 esac
4826
Peter Åstrande713b142004-11-16 13:29:40 +00004827 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4828 # uniformly replaced by the line number. The first 'sed' inserts a
4829 # line-number line before each line; the second 'sed' does the real
4830 # work. The second script uses 'N' to pair each line-number line
4831 # with the numbered line, and appends trailing '-' during
4832 # substitution so that $LINENO is not a special case at line end.
4833 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4834 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4835 sed '=' <$as_myself |
4836 sed '
4837 N
4838 s,$,-,
4839 : loop
4840 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4841 t loop
4842 s,-$,,
4843 s,^['$as_cr_digits']*\n,,
4844 ' >$as_me.lineno &&
4845 chmod +x $as_me.lineno ||
4846 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4847echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4848 { (exit 1); exit 1; }; }
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004849
Peter Åstrande713b142004-11-16 13:29:40 +00004850 # Don't try to exec as it changes $[0], causing all sort of problems
4851 # (the dirname of $[0] is not the place where we might find the
4852 # original and so on. Autoconf is especially sensible to this).
4853 . ./$as_me.lineno
4854 # Exit status is that of the last command.
4855 exit
4856}
4857
4858
4859case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4860 *c*,-n*) ECHO_N= ECHO_C='
4861' ECHO_T=' ' ;;
4862 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4863 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4864esac
4865
4866if expr a : '\(a\)' >/dev/null 2>&1; then
4867 as_expr=expr
4868else
4869 as_expr=false
4870fi
4871
4872rm -f conf$$ conf$$.exe conf$$.file
4873echo >conf$$.file
4874if ln -s conf$$.file conf$$ 2>/dev/null; then
4875 # We could just check for DJGPP; but this test a) works b) is more generic
4876 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4877 if test -f conf$$.exe; then
4878 # Don't use ln at all; we don't have any links
4879 as_ln_s='cp -p'
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00004880 else
Peter Åstrande713b142004-11-16 13:29:40 +00004881 as_ln_s='ln -s'
4882 fi
4883elif ln conf$$.file conf$$ 2>/dev/null; then
4884 as_ln_s=ln
4885else
4886 as_ln_s='cp -p'
4887fi
4888rm -f conf$$ conf$$.exe conf$$.file
4889
4890if mkdir -p . 2>/dev/null; then
4891 as_mkdir_p=:
4892else
4893 test -d ./-p && rmdir ./-p
4894 as_mkdir_p=false
4895fi
4896
4897as_executable_p="test -f"
4898
4899# Sed expression to map a string onto a valid CPP name.
4900as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4901
4902# Sed expression to map a string onto a valid variable name.
4903as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4904
4905
4906# IFS
4907# We need space, tab and new line, in precisely that order.
4908as_nl='
4909'
4910IFS=" $as_nl"
4911
4912# CDPATH.
4913$as_unset CDPATH
4914
4915exec 6>&1
4916
4917# Open the log real soon, to keep \$[0] and so on meaningful, and to
4918# report actual input values of CONFIG_FILES etc. instead of their
4919# values after options handling. Logging --version etc. is OK.
4920exec 5>>config.log
4921{
4922 echo
4923 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4924## Running $as_me. ##
4925_ASBOX
4926} >&5
4927cat >&5 <<_CSEOF
4928
4929This file was extended by $as_me, which was
4930generated by GNU Autoconf 2.59. Invocation command line was
4931
4932 CONFIG_FILES = $CONFIG_FILES
4933 CONFIG_HEADERS = $CONFIG_HEADERS
4934 CONFIG_LINKS = $CONFIG_LINKS
4935 CONFIG_COMMANDS = $CONFIG_COMMANDS
4936 $ $0 $@
4937
4938_CSEOF
4939echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4940echo >&5
4941_ACEOF
4942
4943# Files that config.status was made for.
4944if test -n "$ac_config_files"; then
4945 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4946fi
4947
4948if test -n "$ac_config_headers"; then
4949 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4950fi
4951
4952if test -n "$ac_config_links"; then
4953 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4954fi
4955
4956if test -n "$ac_config_commands"; then
4957 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4958fi
4959
4960cat >>$CONFIG_STATUS <<\_ACEOF
4961
4962ac_cs_usage="\
4963\`$as_me' instantiates files from templates according to the
4964current configuration.
4965
4966Usage: $0 [OPTIONS] [FILE]...
4967
4968 -h, --help print this help, then exit
4969 -V, --version print version number, then exit
4970 -q, --quiet do not print progress messages
4971 -d, --debug don't remove temporary files
4972 --recheck update $as_me by reconfiguring in the same conditions
4973 --file=FILE[:TEMPLATE]
4974 instantiate the configuration file FILE
4975
4976Configuration files:
4977$config_files
4978
4979Report bugs to <bug-autoconf@gnu.org>."
4980_ACEOF
4981
4982cat >>$CONFIG_STATUS <<_ACEOF
4983ac_cs_version="\\
4984config.status
4985configured by $0, generated by GNU Autoconf 2.59,
4986 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4987
4988Copyright (C) 2003 Free Software Foundation, Inc.
4989This config.status script is free software; the Free Software Foundation
4990gives unlimited permission to copy, distribute and modify it."
4991srcdir=$srcdir
4992_ACEOF
4993
4994cat >>$CONFIG_STATUS <<\_ACEOF
4995# If no file are specified by the user, then we need to provide default
4996# value. By we need to know if files were specified by the user.
4997ac_need_defaults=:
4998while test $# != 0
4999do
5000 case $1 in
5001 --*=*)
5002 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5003 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5004 ac_shift=:
5005 ;;
5006 -*)
5007 ac_option=$1
5008 ac_optarg=$2
5009 ac_shift=shift
5010 ;;
5011 *) # This is not an option, so the user has probably given explicit
5012 # arguments.
5013 ac_option=$1
5014 ac_need_defaults=false;;
5015 esac
5016
5017 case $ac_option in
5018 # Handling of the options.
5019_ACEOF
5020cat >>$CONFIG_STATUS <<\_ACEOF
5021 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5022 ac_cs_recheck=: ;;
5023 --version | --vers* | -V )
5024 echo "$ac_cs_version"; exit 0 ;;
5025 --he | --h)
5026 # Conflict between --help and --header
5027 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5028Try \`$0 --help' for more information." >&5
5029echo "$as_me: error: ambiguous option: $1
5030Try \`$0 --help' for more information." >&2;}
5031 { (exit 1); exit 1; }; };;
5032 --help | --hel | -h )
5033 echo "$ac_cs_usage"; exit 0 ;;
5034 --debug | --d* | -d )
5035 debug=: ;;
5036 --file | --fil | --fi | --f )
5037 $ac_shift
5038 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5039 ac_need_defaults=false;;
5040 --header | --heade | --head | --hea )
5041 $ac_shift
5042 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5043 ac_need_defaults=false;;
5044 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5045 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5046 ac_cs_silent=: ;;
5047
5048 # This is an error.
5049 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5050Try \`$0 --help' for more information." >&5
5051echo "$as_me: error: unrecognized option: $1
5052Try \`$0 --help' for more information." >&2;}
5053 { (exit 1); exit 1; }; } ;;
5054
5055 *) ac_config_targets="$ac_config_targets $1" ;;
5056
5057 esac
5058 shift
5059done
5060
5061ac_configure_extra_args=
5062
5063if $ac_cs_silent; then
5064 exec 6>/dev/null
5065 ac_configure_extra_args="$ac_configure_extra_args --silent"
5066fi
5067
5068_ACEOF
5069cat >>$CONFIG_STATUS <<_ACEOF
5070if \$ac_cs_recheck; then
5071 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5072 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5073fi
5074
5075_ACEOF
5076
5077
5078
5079
5080
5081cat >>$CONFIG_STATUS <<\_ACEOF
5082for ac_config_target in $ac_config_targets
5083do
5084 case "$ac_config_target" in
5085 # Handling of arguments.
5086 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in:$BOILERPLATE" ;;
5087 "rdr/Makefile" ) CONFIG_FILES="$CONFIG_FILES rdr/Makefile:rdr/Makefile.in:$BOILERPLATE" ;;
5088 "network/Makefile" ) CONFIG_FILES="$CONFIG_FILES network/Makefile:network/Makefile.in:$BOILERPLATE" ;;
5089 "Xregion/Makefile" ) CONFIG_FILES="$CONFIG_FILES Xregion/Makefile:Xregion/Makefile.in:$BOILERPLATE" ;;
5090 "rfb/Makefile" ) CONFIG_FILES="$CONFIG_FILES rfb/Makefile:rfb/Makefile.in:$BOILERPLATE" ;;
5091 "tx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tx/Makefile:tx/Makefile.in:$BOILERPLATE" ;;
5092 "x0vncserver/Makefile" ) CONFIG_FILES="$CONFIG_FILES x0vncserver/Makefile:x0vncserver/Makefile.in:$BOILERPLATE" ;;
5093 "vncviewer_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncviewer_unix/Makefile:vncviewer_unix/Makefile.in:$BOILERPLATE" ;;
5094 "vncconfig_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncconfig_unix/Makefile:vncconfig_unix/Makefile.in:$BOILERPLATE" ;;
5095 "vncpasswd/Makefile" ) CONFIG_FILES="$CONFIG_FILES vncpasswd/Makefile:vncpasswd/Makefile.in:$BOILERPLATE" ;;
5096 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5097echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5098 { (exit 1); exit 1; }; };;
5099 esac
5100done
5101
5102# If the user did not use the arguments to specify the items to instantiate,
5103# then the envvar interface is used. Set only those that are not.
5104# We use the long form for the default assignment because of an extremely
5105# bizarre bug on SunOS 4.1.3.
5106if $ac_need_defaults; then
5107 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5108fi
5109
5110# Have a temporary directory for convenience. Make it in the build tree
5111# simply because there is no reason to put it here, and in addition,
5112# creating and moving files from /tmp can sometimes cause problems.
5113# Create a temporary directory, and hook for its removal unless debugging.
5114$debug ||
5115{
5116 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5117 trap '{ (exit 1); exit 1; }' 1 2 13 15
5118}
5119
5120# Create a (secure) tmp directory for tmp files.
5121
5122{
5123 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5124 test -n "$tmp" && test -d "$tmp"
5125} ||
5126{
5127 tmp=./confstat$$-$RANDOM
5128 (umask 077 && mkdir $tmp)
5129} ||
5130{
5131 echo "$me: cannot create a temporary directory in ." >&2
5132 { (exit 1); exit 1; }
5133}
5134
5135_ACEOF
5136
5137cat >>$CONFIG_STATUS <<_ACEOF
5138
5139#
5140# CONFIG_FILES section.
5141#
5142
5143# No need to generate the scripts if there are no CONFIG_FILES.
5144# This happens for instance when ./config.status config.h
5145if test -n "\$CONFIG_FILES"; then
5146 # Protect against being on the right side of a sed subst in config.status.
5147 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5148 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5149s,@SHELL@,$SHELL,;t t
5150s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5151s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5152s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5153s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5154s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5155s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5156s,@exec_prefix@,$exec_prefix,;t t
5157s,@prefix@,$prefix,;t t
5158s,@program_transform_name@,$program_transform_name,;t t
5159s,@bindir@,$bindir,;t t
5160s,@sbindir@,$sbindir,;t t
5161s,@libexecdir@,$libexecdir,;t t
5162s,@datadir@,$datadir,;t t
5163s,@sysconfdir@,$sysconfdir,;t t
5164s,@sharedstatedir@,$sharedstatedir,;t t
5165s,@localstatedir@,$localstatedir,;t t
5166s,@libdir@,$libdir,;t t
5167s,@includedir@,$includedir,;t t
5168s,@oldincludedir@,$oldincludedir,;t t
5169s,@infodir@,$infodir,;t t
5170s,@mandir@,$mandir,;t t
5171s,@build_alias@,$build_alias,;t t
5172s,@host_alias@,$host_alias,;t t
5173s,@target_alias@,$target_alias,;t t
5174s,@DEFS@,$DEFS,;t t
5175s,@ECHO_C@,$ECHO_C,;t t
5176s,@ECHO_N@,$ECHO_N,;t t
5177s,@ECHO_T@,$ECHO_T,;t t
5178s,@LIBS@,$LIBS,;t t
5179s,@CC@,$CC,;t t
5180s,@CFLAGS@,$CFLAGS,;t t
5181s,@LDFLAGS@,$LDFLAGS,;t t
5182s,@CPPFLAGS@,$CPPFLAGS,;t t
5183s,@ac_ct_CC@,$ac_ct_CC,;t t
5184s,@EXEEXT@,$EXEEXT,;t t
5185s,@OBJEXT@,$OBJEXT,;t t
5186s,@CXX@,$CXX,;t t
5187s,@CXXFLAGS@,$CXXFLAGS,;t t
5188s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5189s,@RANLIB@,$RANLIB,;t t
5190s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
5191s,@SET_MAKE@,$SET_MAKE,;t t
5192s,@MITSHM_CPPFLAGS@,$MITSHM_CPPFLAGS,;t t
5193s,@CXXCPP@,$CXXCPP,;t t
5194s,@X_CFLAGS@,$X_CFLAGS,;t t
5195s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5196s,@X_LIBS@,$X_LIBS,;t t
5197s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5198s,@ZLIB_DIR@,$ZLIB_DIR,;t t
5199s,@ZLIB_INCLUDE@,$ZLIB_INCLUDE,;t t
5200s,@ZLIB_LIB@,$ZLIB_LIB,;t t
Peter Åstrandafa924f2004-11-19 13:30:00 +00005201s,@JPEG_DIR@,$JPEG_DIR,;t t
5202s,@JPEG_INCLUDE@,$JPEG_INCLUDE,;t t
5203s,@JPEG_LIB@,$JPEG_LIB,;t t
Peter Åstrande713b142004-11-16 13:29:40 +00005204s,@VSNPRINTF_DEFINE@,$VSNPRINTF_DEFINE,;t t
5205s,@SOCKLEN_T_DEFINE@,$SOCKLEN_T_DEFINE,;t t
5206s,@LIBOBJS@,$LIBOBJS,;t t
5207s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5208CEOF
5209
5210_ACEOF
5211
5212 cat >>$CONFIG_STATUS <<\_ACEOF
5213 # Split the substitutions into bite-sized pieces for seds with
5214 # small command number limits, like on Digital OSF/1 and HP-UX.
5215 ac_max_sed_lines=48
5216 ac_sed_frag=1 # Number of current file.
5217 ac_beg=1 # First line for current file.
5218 ac_end=$ac_max_sed_lines # Line after last line for current file.
5219 ac_more_lines=:
5220 ac_sed_cmds=
5221 while $ac_more_lines; do
5222 if test $ac_beg -gt 1; then
5223 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5224 else
5225 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5226 fi
5227 if test ! -s $tmp/subs.frag; then
5228 ac_more_lines=false
5229 else
5230 # The purpose of the label and of the branching condition is to
5231 # speed up the sed processing (if there are no `@' at all, there
5232 # is no need to browse any of the substitutions).
5233 # These are the two extra sed commands mentioned above.
5234 (echo ':t
5235 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5236 if test -z "$ac_sed_cmds"; then
5237 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5238 else
5239 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5240 fi
5241 ac_sed_frag=`expr $ac_sed_frag + 1`
5242 ac_beg=$ac_end
5243 ac_end=`expr $ac_end + $ac_max_sed_lines`
5244 fi
5245 done
5246 if test -z "$ac_sed_cmds"; then
5247 ac_sed_cmds=cat
5248 fi
5249fi # test -n "$CONFIG_FILES"
5250
5251_ACEOF
5252cat >>$CONFIG_STATUS <<\_ACEOF
5253for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5254 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5255 case $ac_file in
5256 - | *:- | *:-:* ) # input from stdin
5257 cat >$tmp/stdin
5258 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5259 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5260 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5261 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5262 * ) ac_file_in=$ac_file.in ;;
5263 esac
5264
5265 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5266 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5267$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5268 X"$ac_file" : 'X\(//\)[^/]' \| \
5269 X"$ac_file" : 'X\(//\)$' \| \
5270 X"$ac_file" : 'X\(/\)' \| \
5271 . : '\(.\)' 2>/dev/null ||
5272echo X"$ac_file" |
5273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5274 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5275 /^X\(\/\/\)$/{ s//\1/; q; }
5276 /^X\(\/\).*/{ s//\1/; q; }
5277 s/.*/./; q'`
5278 { if $as_mkdir_p; then
5279 mkdir -p "$ac_dir"
5280 else
5281 as_dir="$ac_dir"
5282 as_dirs=
5283 while test ! -d "$as_dir"; do
5284 as_dirs="$as_dir $as_dirs"
5285 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5286$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5287 X"$as_dir" : 'X\(//\)[^/]' \| \
5288 X"$as_dir" : 'X\(//\)$' \| \
5289 X"$as_dir" : 'X\(/\)' \| \
5290 . : '\(.\)' 2>/dev/null ||
5291echo X"$as_dir" |
5292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5293 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5294 /^X\(\/\/\)$/{ s//\1/; q; }
5295 /^X\(\/\).*/{ s//\1/; q; }
5296 s/.*/./; q'`
5297 done
5298 test ! -n "$as_dirs" || mkdir $as_dirs
5299 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5300echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5301 { (exit 1); exit 1; }; }; }
5302
5303 ac_builddir=.
5304
5305if test "$ac_dir" != .; then
5306 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5307 # A "../" for each directory in $ac_dir_suffix.
5308 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5309else
5310 ac_dir_suffix= ac_top_builddir=
5311fi
5312
5313case $srcdir in
5314 .) # No --srcdir option. We are building in place.
5315 ac_srcdir=.
5316 if test -z "$ac_top_builddir"; then
5317 ac_top_srcdir=.
5318 else
5319 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5320 fi ;;
5321 [\\/]* | ?:[\\/]* ) # Absolute path.
5322 ac_srcdir=$srcdir$ac_dir_suffix;
5323 ac_top_srcdir=$srcdir ;;
5324 *) # Relative path.
5325 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5326 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5327esac
5328
5329# Do not use `cd foo && pwd` to compute absolute paths, because
5330# the directories may not exist.
5331case `pwd` in
5332.) ac_abs_builddir="$ac_dir";;
5333*)
5334 case "$ac_dir" in
5335 .) ac_abs_builddir=`pwd`;;
5336 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5337 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5338 esac;;
5339esac
5340case $ac_abs_builddir in
5341.) ac_abs_top_builddir=${ac_top_builddir}.;;
5342*)
5343 case ${ac_top_builddir}. in
5344 .) ac_abs_top_builddir=$ac_abs_builddir;;
5345 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5346 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5347 esac;;
5348esac
5349case $ac_abs_builddir in
5350.) ac_abs_srcdir=$ac_srcdir;;
5351*)
5352 case $ac_srcdir in
5353 .) ac_abs_srcdir=$ac_abs_builddir;;
5354 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5355 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5356 esac;;
5357esac
5358case $ac_abs_builddir in
5359.) ac_abs_top_srcdir=$ac_top_srcdir;;
5360*)
5361 case $ac_top_srcdir in
5362 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5363 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5364 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5365 esac;;
5366esac
5367
5368
5369
5370 if test x"$ac_file" != x-; then
5371 { echo "$as_me:$LINENO: creating $ac_file" >&5
5372echo "$as_me: creating $ac_file" >&6;}
5373 rm -f "$ac_file"
5374 fi
5375 # Let's still pretend it is `configure' which instantiates (i.e., don't
5376 # use $as_me), people would be surprised to read:
5377 # /* config.h. Generated by config.status. */
5378 if test x"$ac_file" = x-; then
5379 configure_input=
5380 else
5381 configure_input="$ac_file. "
5382 fi
5383 configure_input=$configure_input"Generated from `echo $ac_file_in |
5384 sed 's,.*/,,'` by configure."
5385
5386 # First look for the input files in the build tree, otherwise in the
5387 # src tree.
5388 ac_file_inputs=`IFS=:
5389 for f in $ac_file_in; do
5390 case $f in
5391 -) echo $tmp/stdin ;;
5392 [\\/$]*)
5393 # Absolute (can't be DOS-style, as IFS=:)
5394 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5395echo "$as_me: error: cannot find input file: $f" >&2;}
5396 { (exit 1); exit 1; }; }
5397 echo "$f";;
5398 *) # Relative
5399 if test -f "$f"; then
5400 # Build tree
5401 echo "$f"
5402 elif test -f "$srcdir/$f"; then
5403 # Source tree
5404 echo "$srcdir/$f"
5405 else
5406 # /dev/null tree
5407 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5408echo "$as_me: error: cannot find input file: $f" >&2;}
5409 { (exit 1); exit 1; }; }
5410 fi;;
5411 esac
5412 done` || { (exit 1); exit 1; }
5413_ACEOF
5414cat >>$CONFIG_STATUS <<_ACEOF
5415 sed "$ac_vpsub
5416$extrasub
5417_ACEOF
5418cat >>$CONFIG_STATUS <<\_ACEOF
5419:t
5420/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5421s,@configure_input@,$configure_input,;t t
5422s,@srcdir@,$ac_srcdir,;t t
5423s,@abs_srcdir@,$ac_abs_srcdir,;t t
5424s,@top_srcdir@,$ac_top_srcdir,;t t
5425s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5426s,@builddir@,$ac_builddir,;t t
5427s,@abs_builddir@,$ac_abs_builddir,;t t
5428s,@top_builddir@,$ac_top_builddir,;t t
5429s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5430" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5431 rm -f $tmp/stdin
5432 if test x"$ac_file" != x-; then
5433 mv $tmp/out $ac_file
5434 else
5435 cat $tmp/out
5436 rm -f $tmp/out
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005437 fi
5438
Peter Åstrande713b142004-11-16 13:29:40 +00005439done
5440_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005441
Peter Åstrande713b142004-11-16 13:29:40 +00005442cat >>$CONFIG_STATUS <<\_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005443
Peter Åstrande713b142004-11-16 13:29:40 +00005444{ (exit 0); exit 0; }
5445_ACEOF
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005446chmod +x $CONFIG_STATUS
Peter Åstrande713b142004-11-16 13:29:40 +00005447ac_clean_files=$ac_clean_files_save
5448
5449
5450# configure is writing to config.log, and then calls config.status.
5451# config.status does its own redirection, appending to config.log.
5452# Unfortunately, on DOS this fails, as config.log is still kept open
5453# by configure, so config.status won't be able to write to it; its
5454# output is simply discarded. So we exec the FD to /dev/null,
5455# effectively closing config.log, so it can be properly (re)opened and
5456# appended to by config.status. When coming back to configure, we
5457# need to make the FD available again.
5458if test "$no_create" != yes; then
5459 ac_cs_success=:
5460 ac_config_status_args=
5461 test "$silent" = yes &&
5462 ac_config_status_args="$ac_config_status_args --quiet"
5463 exec 5>/dev/null
5464 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5465 exec 5>>config.log
5466 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5467 # would make configure fail if this is the last instruction.
5468 $ac_cs_success || { (exit 1); exit 1; }
5469fi
Constantin Kaplinsky47ed8d32004-10-08 09:43:57 +00005470