Initial import of the upstream.
[synaesthesia.git] / configure
blobeb557239b33a830be50a60a97e36ba031aab44f5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if 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+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
38 # NLS nuisances.
39 for 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
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
49 done
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
86 # The user is always right.
87 if 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=:
96 rm -f conf$$.sh
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
110 for as_dir in $PATH
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
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
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; }; }
128 case $CONFIG_SHELL in
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
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
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
152 done
154 esac
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 '
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; }; }
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
187 case `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= ;;
192 esac
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if 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'
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS=" $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
249 exec 6>&1
252 # Initializations.
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
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}
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
274 ac_unique_file="main.cc"
275 ac_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS LIBOBJS LTLIBOBJS'
276 ac_subst_files=''
278 # Initialize some variables set by options.
279 ac_init_help=
280 ac_init_version=false
281 # The variables have the same names as the options, with
282 # dashes changed to underlines.
283 cache_file=/dev/null
284 exec_prefix=NONE
285 no_create=
286 no_recursion=
287 prefix=NONE
288 program_prefix=NONE
289 program_suffix=NONE
290 program_transform_name=s,x,x,
291 silent=
292 site=
293 srcdir=
294 verbose=
295 x_includes=NONE
296 x_libraries=NONE
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.
303 bindir='${exec_prefix}/bin'
304 sbindir='${exec_prefix}/sbin'
305 libexecdir='${exec_prefix}/libexec'
306 datadir='${prefix}/share'
307 sysconfdir='${prefix}/etc'
308 sharedstatedir='${prefix}/com'
309 localstatedir='${prefix}/var'
310 libdir='${exec_prefix}/lib'
311 includedir='${prefix}/include'
312 oldincludedir='/usr/include'
313 infodir='${prefix}/info'
314 mandir='${prefix}/man'
316 ac_prev=
317 for ac_option
319 # 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
326 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
328 # Accept the important Cygnus configure options, so we can diagnose typos.
330 case $ac_option in
332 -bindir | --bindir | --bindi | --bind | --bin | --bi)
333 ac_prev=bindir ;;
334 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335 bindir=$ac_optarg ;;
337 -build | --build | --buil | --bui | --bu)
338 ac_prev=build_alias ;;
339 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340 build_alias=$ac_optarg ;;
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=*)
347 cache_file=$ac_optarg ;;
349 --config-cache | -C)
350 cache_file=config.cache ;;
352 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353 ac_prev=datadir ;;
354 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355 | --da=*)
356 datadir=$ac_optarg ;;
358 -disable-* | --disable-*)
359 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360 # Reject names that are not valid shell variable names.
361 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" ;;
367 -enable-* | --enable-*)
368 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369 # Reject names that are not valid shell variable names.
370 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"`;;
376 *) ac_optarg=yes ;;
377 esac
378 eval "enable_$ac_feature='$ac_optarg'" ;;
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=*)
387 exec_prefix=$ac_optarg ;;
389 -gas | --gas | --ga | --g)
390 # Obsolete; use --with-gas.
391 with_gas=yes ;;
393 -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 ;;
400 -host | --host | --hos | --ho)
401 ac_prev=host_alias ;;
402 -host=* | --host=* | --hos=* | --ho=*)
403 host_alias=$ac_optarg ;;
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=*)
410 includedir=$ac_optarg ;;
412 -infodir | --infodir | --infodi | --infod | --info | --inf)
413 ac_prev=infodir ;;
414 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415 infodir=$ac_optarg ;;
417 -libdir | --libdir | --libdi | --libd)
418 ac_prev=libdir ;;
419 -libdir=* | --libdir=* | --libdi=* | --libd=*)
420 libdir=$ac_optarg ;;
422 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423 | --libexe | --libex | --libe)
424 ac_prev=libexecdir ;;
425 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426 | --libexe=* | --libex=* | --libe=*)
427 libexecdir=$ac_optarg ;;
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=*)
436 localstatedir=$ac_optarg ;;
438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439 ac_prev=mandir ;;
440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441 mandir=$ac_optarg ;;
443 -nfp | --nfp | --nf)
444 # Obsolete; use --without-fp.
445 with_fp=no ;;
447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448 | --no-cr | --no-c | -n)
449 no_create=yes ;;
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 ;;
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=*)
462 oldincludedir=$ac_optarg ;;
464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465 ac_prev=prefix ;;
466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467 prefix=$ac_optarg ;;
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=*)
474 program_prefix=$ac_optarg ;;
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=*)
481 program_suffix=$ac_optarg ;;
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=*)
498 program_transform_name=$ac_optarg ;;
500 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501 | -silent | --silent | --silen | --sile | --sil)
502 silent=yes ;;
504 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505 ac_prev=sbindir ;;
506 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507 | --sbi=* | --sb=*)
508 sbindir=$ac_optarg ;;
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=*)
519 sharedstatedir=$ac_optarg ;;
521 -site | --site | --sit)
522 ac_prev=site ;;
523 -site=* | --site=* | --sit=*)
524 site=$ac_optarg ;;
526 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527 ac_prev=srcdir ;;
528 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529 srcdir=$ac_optarg ;;
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=*)
536 sysconfdir=$ac_optarg ;;
538 -target | --target | --targe | --targ | --tar | --ta | --t)
539 ac_prev=target_alias ;;
540 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541 target_alias=$ac_optarg ;;
543 -v | -verbose | --verbose | --verbos | --verbo | --verb)
544 verbose=yes ;;
546 -version | --version | --versio | --versi | --vers | -V)
547 ac_init_version=: ;;
549 -with-* | --with-*)
550 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551 # Reject names that are not valid shell variable names.
552 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; }; }
555 ac_package=`echo $ac_package| sed 's/-/_/g'`
556 case $ac_option in
557 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558 *) ac_optarg=yes ;;
559 esac
560 eval "with_$ac_package='$ac_optarg'" ;;
562 -without-* | --without-*)
563 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564 # Reject names that are not valid shell variable names.
565 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" ;;
571 --x)
572 # Obsolete; use --with-x.
573 with_x=yes ;;
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=*)
580 x_includes=$ac_optarg ;;
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=*)
587 x_libraries=$ac_optarg ;;
589 -*) { echo "$as_me: error: unrecognized option: $ac_option
590 Try \`$0 --help' for more information." >&2
591 { (exit 1); exit 1; }; }
594 *=*)
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 ;;
605 # 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}
612 esac
613 done
615 if test -n "$ac_prev"; then
616 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617 { echo "$as_me: error: missing argument to $ac_option" >&2
618 { (exit 1); exit 1; }; }
621 # Be sure to have absolute paths.
622 for ac_var in exec_prefix prefix
624 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; }; };;
629 esac
630 done
632 # Be sure to have absolute paths.
633 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634 localstatedir libdir includedir oldincludedir infodir mandir
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
642 done
644 # 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.
647 build=$build_alias
648 host=$host_alias
649 target=$target_alias
651 # FIXME: To remove some day.
652 if 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
662 ac_tool_prefix=
663 test -n "$host_alias" && ac_tool_prefix=$host_alias-
665 test "$silent" = yes && exec 6>/dev/null
668 # Find the source files, if location was not specified.
669 if test -z "$srcdir"; then
670 ac_srcdir_defaulted=yes
671 # Try the directory containing this script, then its parent.
672 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 ||
678 echo 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'`
684 srcdir=$ac_confdir
685 if test ! -r $srcdir/$ac_unique_file; then
686 srcdir=..
688 else
689 ac_srcdir_defaulted=no
691 if test ! -r $srcdir/$ac_unique_file; then
692 if test "$ac_srcdir_defaulted" = yes; then
693 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694 { (exit 1); exit 1; }; }
695 else
696 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697 { (exit 1); exit 1; }; }
700 (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; }; }
703 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704 ac_env_build_alias_set=${build_alias+set}
705 ac_env_build_alias_value=$build_alias
706 ac_cv_env_build_alias_set=${build_alias+set}
707 ac_cv_env_build_alias_value=$build_alias
708 ac_env_host_alias_set=${host_alias+set}
709 ac_env_host_alias_value=$host_alias
710 ac_cv_env_host_alias_set=${host_alias+set}
711 ac_cv_env_host_alias_value=$host_alias
712 ac_env_target_alias_set=${target_alias+set}
713 ac_env_target_alias_value=$target_alias
714 ac_cv_env_target_alias_set=${target_alias+set}
715 ac_cv_env_target_alias_value=$target_alias
716 ac_env_CC_set=${CC+set}
717 ac_env_CC_value=$CC
718 ac_cv_env_CC_set=${CC+set}
719 ac_cv_env_CC_value=$CC
720 ac_env_CFLAGS_set=${CFLAGS+set}
721 ac_env_CFLAGS_value=$CFLAGS
722 ac_cv_env_CFLAGS_set=${CFLAGS+set}
723 ac_cv_env_CFLAGS_value=$CFLAGS
724 ac_env_LDFLAGS_set=${LDFLAGS+set}
725 ac_env_LDFLAGS_value=$LDFLAGS
726 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727 ac_cv_env_LDFLAGS_value=$LDFLAGS
728 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729 ac_env_CPPFLAGS_value=$CPPFLAGS
730 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732 ac_env_CXX_set=${CXX+set}
733 ac_env_CXX_value=$CXX
734 ac_cv_env_CXX_set=${CXX+set}
735 ac_cv_env_CXX_value=$CXX
736 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
737 ac_env_CXXFLAGS_value=$CXXFLAGS
738 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
739 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
740 ac_env_CPP_set=${CPP+set}
741 ac_env_CPP_value=$CPP
742 ac_cv_env_CPP_set=${CPP+set}
743 ac_cv_env_CPP_value=$CPP
746 # Report the --help message.
748 if 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.
754 Usage: $0 [OPTION]... [VAR=VALUE]...
756 To assign environment variables (e.g., CC, CFLAGS...), specify them as
757 VAR=VALUE. See below for descriptions of some of the useful variables.
759 Defaults for the options are specified in brackets.
761 Configuration:
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 \`..']
772 _ACEOF
774 cat <<_ACEOF
775 Installation 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]
781 By default, \`make install' will install all the files in
782 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
783 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
784 for instance \`--prefix=\$HOME'.
786 For better control, use the options below.
788 Fine 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
803 cat <<\_ACEOF
805 Program names:
806 --program-prefix=PREFIX prepend PREFIX to installed program names
807 --program-suffix=SUFFIX append SUFFIX to installed program names
808 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
810 X features:
811 --x-includes=DIR X include files are in DIR
812 --x-libraries=DIR X library files are in DIR
814 System types:
815 --build=BUILD configure for building on BUILD [guessed]
816 --host=HOST cross-compile to build programs to run on HOST [BUILD]
817 --target=TARGET configure for building compilers for TARGET [HOST]
818 _ACEOF
821 if test -n "$ac_init_help"; then
823 cat <<\_ACEOF
825 Optional Features:
826 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
827 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
828 --disable-sdltest Do not try to compile and run a test SDL program
830 Optional Packages:
831 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
832 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
833 --with-x use the X Window System
834 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
835 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
837 Some influential environment variables:
838 CC C compiler command
839 CFLAGS C compiler flags
840 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
841 nonstandard directory <lib dir>
842 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
843 headers in a nonstandard directory <include dir>
844 CXX C++ compiler command
845 CXXFLAGS C++ compiler flags
846 CPP C preprocessor
848 Use these variables to override the choices made by `configure' or to help
849 it to find libraries and programs with nonstandard names/locations.
851 _ACEOF
854 if test "$ac_init_help" = "recursive"; then
855 # If there are subdirs, report their specific --help.
856 ac_popdir=`pwd`
857 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
858 test -d $ac_dir || continue
859 ac_builddir=.
861 if test "$ac_dir" != .; then
862 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
863 # A "../" for each directory in $ac_dir_suffix.
864 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
865 else
866 ac_dir_suffix= ac_top_builddir=
869 case $srcdir in
870 .) # No --srcdir option. We are building in place.
871 ac_srcdir=.
872 if test -z "$ac_top_builddir"; then
873 ac_top_srcdir=.
874 else
875 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
876 fi ;;
877 [\\/]* | ?:[\\/]* ) # Absolute path.
878 ac_srcdir=$srcdir$ac_dir_suffix;
879 ac_top_srcdir=$srcdir ;;
880 *) # Relative path.
881 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
882 ac_top_srcdir=$ac_top_builddir$srcdir ;;
883 esac
885 # Do not use `cd foo && pwd` to compute absolute paths, because
886 # the directories may not exist.
887 case `pwd` in
888 .) ac_abs_builddir="$ac_dir";;
890 case "$ac_dir" in
891 .) ac_abs_builddir=`pwd`;;
892 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
893 *) ac_abs_builddir=`pwd`/"$ac_dir";;
894 esac;;
895 esac
896 case $ac_abs_builddir in
897 .) ac_abs_top_builddir=${ac_top_builddir}.;;
899 case ${ac_top_builddir}. in
900 .) ac_abs_top_builddir=$ac_abs_builddir;;
901 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
902 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
903 esac;;
904 esac
905 case $ac_abs_builddir in
906 .) ac_abs_srcdir=$ac_srcdir;;
908 case $ac_srcdir in
909 .) ac_abs_srcdir=$ac_abs_builddir;;
910 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
911 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
912 esac;;
913 esac
914 case $ac_abs_builddir in
915 .) ac_abs_top_srcdir=$ac_top_srcdir;;
917 case $ac_top_srcdir in
918 .) ac_abs_top_srcdir=$ac_abs_builddir;;
919 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
920 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
921 esac;;
922 esac
924 cd $ac_dir
925 # Check for guested configure; otherwise get Cygnus style configure.
926 if test -f $ac_srcdir/configure.gnu; then
927 echo
928 $SHELL $ac_srcdir/configure.gnu --help=recursive
929 elif test -f $ac_srcdir/configure; then
930 echo
931 $SHELL $ac_srcdir/configure --help=recursive
932 elif test -f $ac_srcdir/configure.ac ||
933 test -f $ac_srcdir/configure.in; then
934 echo
935 $ac_configure --help
936 else
937 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
939 cd "$ac_popdir"
940 done
943 test -n "$ac_init_help" && exit 0
944 if $ac_init_version; then
945 cat <<\_ACEOF
947 Copyright (C) 2003 Free Software Foundation, Inc.
948 This configure script is free software; the Free Software Foundation
949 gives unlimited permission to copy, distribute and modify it.
950 _ACEOF
951 exit 0
953 exec 5>config.log
954 cat >&5 <<_ACEOF
955 This file contains any messages produced by compilers while
956 running configure, to aid debugging if configure makes a mistake.
958 It was created by $as_me, which was
959 generated by GNU Autoconf 2.59. Invocation command line was
961 $ $0 $@
963 _ACEOF
965 cat <<_ASUNAME
966 ## --------- ##
967 ## Platform. ##
968 ## --------- ##
970 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
971 uname -m = `(uname -m) 2>/dev/null || echo unknown`
972 uname -r = `(uname -r) 2>/dev/null || echo unknown`
973 uname -s = `(uname -s) 2>/dev/null || echo unknown`
974 uname -v = `(uname -v) 2>/dev/null || echo unknown`
976 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
977 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
979 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
980 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
981 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
982 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
983 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
984 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
985 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
987 _ASUNAME
989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
990 for as_dir in $PATH
992 IFS=$as_save_IFS
993 test -z "$as_dir" && as_dir=.
994 echo "PATH: $as_dir"
995 done
997 } >&5
999 cat >&5 <<_ACEOF
1002 ## ----------- ##
1003 ## Core tests. ##
1004 ## ----------- ##
1006 _ACEOF
1009 # Keep a trace of the command line.
1010 # Strip out --no-create and --no-recursion so they do not pile up.
1011 # Strip out --silent because we don't want to record it for future runs.
1012 # Also quote any args containing shell meta-characters.
1013 # Make two passes to allow for proper duplicate-argument suppression.
1014 ac_configure_args=
1015 ac_configure_args0=
1016 ac_configure_args1=
1017 ac_sep=
1018 ac_must_keep_next=false
1019 for ac_pass in 1 2
1021 for ac_arg
1023 case $ac_arg in
1024 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1025 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1026 | -silent | --silent | --silen | --sile | --sil)
1027 continue ;;
1028 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1029 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1030 esac
1031 case $ac_pass in
1032 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1034 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1035 if test $ac_must_keep_next = true; then
1036 ac_must_keep_next=false # Got value, back to normal.
1037 else
1038 case $ac_arg in
1039 *=* | --config-cache | -C | -disable-* | --disable-* \
1040 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1041 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1042 | -with-* | --with-* | -without-* | --without-* | --x)
1043 case "$ac_configure_args0 " in
1044 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1045 esac
1047 -* ) ac_must_keep_next=true ;;
1048 esac
1050 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1051 # Get rid of the leading space.
1052 ac_sep=" "
1054 esac
1055 done
1056 done
1057 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1058 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1060 # When interrupted or exit'd, cleanup temporary files, and complete
1061 # config.log. We remove comments because anyway the quotes in there
1062 # would cause problems or look ugly.
1063 # WARNING: Be sure not to use single quotes in there, as some shells,
1064 # such as our DU 5.0 friend, will then `close' the trap.
1065 trap 'exit_status=$?
1066 # Save into config.log some information that might help in debugging.
1068 echo
1070 cat <<\_ASBOX
1071 ## ---------------- ##
1072 ## Cache variables. ##
1073 ## ---------------- ##
1074 _ASBOX
1075 echo
1076 # The following way of writing the cache mishandles newlines in values,
1078 (set) 2>&1 |
1079 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1080 *ac_space=\ *)
1081 sed -n \
1082 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1083 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1086 sed -n \
1087 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1089 esac;
1091 echo
1093 cat <<\_ASBOX
1094 ## ----------------- ##
1095 ## Output variables. ##
1096 ## ----------------- ##
1097 _ASBOX
1098 echo
1099 for ac_var in $ac_subst_vars
1101 eval ac_val=$`echo $ac_var`
1102 echo "$ac_var='"'"'$ac_val'"'"'"
1103 done | sort
1104 echo
1106 if test -n "$ac_subst_files"; then
1107 cat <<\_ASBOX
1108 ## ------------- ##
1109 ## Output files. ##
1110 ## ------------- ##
1111 _ASBOX
1112 echo
1113 for ac_var in $ac_subst_files
1115 eval ac_val=$`echo $ac_var`
1116 echo "$ac_var='"'"'$ac_val'"'"'"
1117 done | sort
1118 echo
1121 if test -s confdefs.h; then
1122 cat <<\_ASBOX
1123 ## ----------- ##
1124 ## confdefs.h. ##
1125 ## ----------- ##
1126 _ASBOX
1127 echo
1128 sed "/^$/d" confdefs.h | sort
1129 echo
1131 test "$ac_signal" != 0 &&
1132 echo "$as_me: caught signal $ac_signal"
1133 echo "$as_me: exit $exit_status"
1134 } >&5
1135 rm -f core *.core &&
1136 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1137 exit $exit_status
1139 for ac_signal in 1 2 13 15; do
1140 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1141 done
1142 ac_signal=0
1144 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1145 rm -rf conftest* confdefs.h
1146 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1147 echo >confdefs.h
1149 # Predefined preprocessor variables.
1151 cat >>confdefs.h <<_ACEOF
1152 #define PACKAGE_NAME "$PACKAGE_NAME"
1153 _ACEOF
1156 cat >>confdefs.h <<_ACEOF
1157 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1158 _ACEOF
1161 cat >>confdefs.h <<_ACEOF
1162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1163 _ACEOF
1166 cat >>confdefs.h <<_ACEOF
1167 #define PACKAGE_STRING "$PACKAGE_STRING"
1168 _ACEOF
1171 cat >>confdefs.h <<_ACEOF
1172 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1173 _ACEOF
1176 # Let the site file select an alternate cache file if it wants to.
1177 # Prefer explicitly selected file to automatically selected ones.
1178 if test -z "$CONFIG_SITE"; then
1179 if test "x$prefix" != xNONE; then
1180 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1181 else
1182 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1185 for ac_site_file in $CONFIG_SITE; do
1186 if test -r "$ac_site_file"; then
1187 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1188 echo "$as_me: loading site script $ac_site_file" >&6;}
1189 sed 's/^/| /' "$ac_site_file" >&5
1190 . "$ac_site_file"
1192 done
1194 if test -r "$cache_file"; then
1195 # Some versions of bash will fail to source /dev/null (special
1196 # files actually), so we avoid doing that.
1197 if test -f "$cache_file"; then
1198 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1199 echo "$as_me: loading cache $cache_file" >&6;}
1200 case $cache_file in
1201 [\\/]* | ?:[\\/]* ) . $cache_file;;
1202 *) . ./$cache_file;;
1203 esac
1205 else
1206 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1207 echo "$as_me: creating cache $cache_file" >&6;}
1208 >$cache_file
1211 # Check that the precious variables saved in the cache have kept the same
1212 # value.
1213 ac_cache_corrupted=false
1214 for ac_var in `(set) 2>&1 |
1215 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1216 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1217 eval ac_new_set=\$ac_env_${ac_var}_set
1218 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1219 eval ac_new_val="\$ac_env_${ac_var}_value"
1220 case $ac_old_set,$ac_new_set in
1221 set,)
1222 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1223 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,set)
1226 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1227 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1228 ac_cache_corrupted=: ;;
1229 ,);;
1231 if test "x$ac_old_val" != "x$ac_new_val"; then
1232 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1233 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1234 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1235 echo "$as_me: former value: $ac_old_val" >&2;}
1236 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1237 echo "$as_me: current value: $ac_new_val" >&2;}
1238 ac_cache_corrupted=:
1239 fi;;
1240 esac
1241 # Pass precious variables to config.status.
1242 if test "$ac_new_set" = set; then
1243 case $ac_new_val in
1244 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1245 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1246 *) ac_arg=$ac_var=$ac_new_val ;;
1247 esac
1248 case " $ac_configure_args " in
1249 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1250 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1251 esac
1253 done
1254 if $ac_cache_corrupted; then
1255 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1256 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1257 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1258 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1259 { (exit 1); exit 1; }; }
1262 ac_ext=c
1263 ac_cpp='$CPP $CPPFLAGS'
1264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1287 ac_aux_dir=
1288 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1289 if test -f $ac_dir/install-sh; then
1290 ac_aux_dir=$ac_dir
1291 ac_install_sh="$ac_aux_dir/install-sh -c"
1292 break
1293 elif test -f $ac_dir/install.sh; then
1294 ac_aux_dir=$ac_dir
1295 ac_install_sh="$ac_aux_dir/install.sh -c"
1296 break
1297 elif test -f $ac_dir/shtool; then
1298 ac_aux_dir=$ac_dir
1299 ac_install_sh="$ac_aux_dir/shtool install -c"
1300 break
1302 done
1303 if test -z "$ac_aux_dir"; then
1304 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1305 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1306 { (exit 1); exit 1; }; }
1308 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1309 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1310 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1312 # Make sure we can run config.sub.
1313 $ac_config_sub sun4 >/dev/null 2>&1 ||
1314 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1315 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1316 { (exit 1); exit 1; }; }
1318 echo "$as_me:$LINENO: checking build system type" >&5
1319 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1320 if test "${ac_cv_build+set}" = set; then
1321 echo $ECHO_N "(cached) $ECHO_C" >&6
1322 else
1323 ac_cv_build_alias=$build_alias
1324 test -z "$ac_cv_build_alias" &&
1325 ac_cv_build_alias=`$ac_config_guess`
1326 test -z "$ac_cv_build_alias" &&
1327 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1328 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1329 { (exit 1); exit 1; }; }
1330 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1331 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1332 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1333 { (exit 1); exit 1; }; }
1336 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1337 echo "${ECHO_T}$ac_cv_build" >&6
1338 build=$ac_cv_build
1339 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1340 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1341 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1344 echo "$as_me:$LINENO: checking host system type" >&5
1345 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1346 if test "${ac_cv_host+set}" = set; then
1347 echo $ECHO_N "(cached) $ECHO_C" >&6
1348 else
1349 ac_cv_host_alias=$host_alias
1350 test -z "$ac_cv_host_alias" &&
1351 ac_cv_host_alias=$ac_cv_build_alias
1352 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1353 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1354 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1355 { (exit 1); exit 1; }; }
1358 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1359 echo "${ECHO_T}$ac_cv_host" >&6
1360 host=$ac_cv_host
1361 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1362 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1363 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1366 echo "$as_me:$LINENO: checking target system type" >&5
1367 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1368 if test "${ac_cv_target+set}" = set; then
1369 echo $ECHO_N "(cached) $ECHO_C" >&6
1370 else
1371 ac_cv_target_alias=$target_alias
1372 test "x$ac_cv_target_alias" = "x" &&
1373 ac_cv_target_alias=$ac_cv_host_alias
1374 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1375 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1376 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1377 { (exit 1); exit 1; }; }
1380 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1381 echo "${ECHO_T}$ac_cv_target" >&6
1382 target=$ac_cv_target
1383 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1384 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1385 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1388 # The aliases save the names the user supplied, while $host etc.
1389 # will get canonicalized.
1390 test -n "$target_alias" &&
1391 test "$program_prefix$program_suffix$program_transform_name" = \
1392 NONENONEs,x,x, &&
1393 program_prefix=${target_alias}-
1395 am__api_version="1.4"
1396 # Find a good install program. We prefer a C program (faster),
1397 # so one script is as good as another. But avoid the broken or
1398 # incompatible versions:
1399 # SysV /etc/install, /usr/sbin/install
1400 # SunOS /usr/etc/install
1401 # IRIX /sbin/install
1402 # AIX /bin/install
1403 # AmigaOS /C/install, which installs bootblocks on floppy discs
1404 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1405 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1406 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1407 # OS/2's system install, which has a completely different semantic
1408 # ./install, which can be erroneously created by make from ./install.sh.
1409 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1410 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1411 if test -z "$INSTALL"; then
1412 if test "${ac_cv_path_install+set}" = set; then
1413 echo $ECHO_N "(cached) $ECHO_C" >&6
1414 else
1415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1416 for as_dir in $PATH
1418 IFS=$as_save_IFS
1419 test -z "$as_dir" && as_dir=.
1420 # Account for people who put trailing slashes in PATH elements.
1421 case $as_dir/ in
1422 ./ | .// | /cC/* | \
1423 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1424 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1425 /usr/ucb/* ) ;;
1427 # OSF1 and SCO ODT 3.0 have their own names for install.
1428 # Don't use installbsd from OSF since it installs stuff as root
1429 # by default.
1430 for ac_prog in ginstall scoinst install; do
1431 for ac_exec_ext in '' $ac_executable_extensions; do
1432 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1433 if test $ac_prog = install &&
1434 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1435 # AIX install. It has an incompatible calling convention.
1437 elif test $ac_prog = install &&
1438 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1439 # program-specific install script used by HP pwplus--don't use.
1441 else
1442 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1443 break 3
1446 done
1447 done
1449 esac
1450 done
1454 if test "${ac_cv_path_install+set}" = set; then
1455 INSTALL=$ac_cv_path_install
1456 else
1457 # As a last resort, use the slow shell script. We don't cache a
1458 # path for INSTALL within a source directory, because that will
1459 # break other packages using the cache if that directory is
1460 # removed, or if the path is relative.
1461 INSTALL=$ac_install_sh
1464 echo "$as_me:$LINENO: result: $INSTALL" >&5
1465 echo "${ECHO_T}$INSTALL" >&6
1467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1468 # It thinks the first close brace ends the variable substitution.
1469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1473 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1475 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1476 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1477 # Just in case
1478 sleep 1
1479 echo timestamp > conftestfile
1480 # Do `set' in a subshell so we don't clobber the current shell's
1481 # arguments. Must try -L first in case configure is actually a
1482 # symlink; some systems play weird games with the mod time of symlinks
1483 # (eg FreeBSD returns the mod time of the symlink's containing
1484 # directory).
1485 if (
1486 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1487 if test "$*" = "X"; then
1488 # -L didn't work.
1489 set X `ls -t $srcdir/configure conftestfile`
1491 if test "$*" != "X $srcdir/configure conftestfile" \
1492 && test "$*" != "X conftestfile $srcdir/configure"; then
1494 # If neither matched, then we have a broken ls. This can happen
1495 # if, for instance, CONFIG_SHELL is bash and it inherits a
1496 # broken ls alias from the environment. This has actually
1497 # happened. Such a system could not be considered "sane".
1498 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1499 alias in your environment" >&5
1500 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1501 alias in your environment" >&2;}
1502 { (exit 1); exit 1; }; }
1505 test "$2" = conftestfile
1507 then
1508 # Ok.
1510 else
1511 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1512 Check your system clock" >&5
1513 echo "$as_me: error: newly created file is older than distributed files!
1514 Check your system clock" >&2;}
1515 { (exit 1); exit 1; }; }
1517 rm -f conftest*
1518 echo "$as_me:$LINENO: result: yes" >&5
1519 echo "${ECHO_T}yes" >&6
1520 test "$program_prefix" != NONE &&
1521 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1522 # Use a double $ so make ignores it.
1523 test "$program_suffix" != NONE &&
1524 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1525 # Double any \ or $. echo might interpret backslashes.
1526 # By default was `s,x,x', remove it if useless.
1527 cat <<\_ACEOF >conftest.sed
1528 s/[\\$]/&&/g;s/;s,x,x,$//
1529 _ACEOF
1530 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1531 rm conftest.sed
1533 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1534 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1535 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1536 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1537 echo $ECHO_N "(cached) $ECHO_C" >&6
1538 else
1539 cat >conftest.make <<\_ACEOF
1540 all:
1541 @echo 'ac_maketemp="$(MAKE)"'
1542 _ACEOF
1543 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1544 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1545 if test -n "$ac_maketemp"; then
1546 eval ac_cv_prog_make_${ac_make}_set=yes
1547 else
1548 eval ac_cv_prog_make_${ac_make}_set=no
1550 rm -f conftest.make
1552 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1553 echo "$as_me:$LINENO: result: yes" >&5
1554 echo "${ECHO_T}yes" >&6
1555 SET_MAKE=
1556 else
1557 echo "$as_me:$LINENO: result: no" >&5
1558 echo "${ECHO_T}no" >&6
1559 SET_MAKE="MAKE=${MAKE-make}"
1563 PACKAGE=synaesthesia
1565 VERSION=2.4
1567 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1568 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1569 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1570 { (exit 1); exit 1; }; }
1573 cat >>confdefs.h <<_ACEOF
1574 #define PACKAGE "$PACKAGE"
1575 _ACEOF
1578 cat >>confdefs.h <<_ACEOF
1579 #define VERSION "$VERSION"
1580 _ACEOF
1584 missing_dir=`cd $ac_aux_dir && pwd`
1585 echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5
1586 echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6
1587 # Run test in a subshell; some versions of sh will print an error if
1588 # an executable is not found, even if stderr is redirected.
1589 # Redirect stdin to placate older versions of autoconf. Sigh.
1590 if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1591 ACLOCAL=aclocal-${am__api_version}
1592 echo "$as_me:$LINENO: result: found" >&5
1593 echo "${ECHO_T}found" >&6
1594 else
1595 ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
1596 echo "$as_me:$LINENO: result: missing" >&5
1597 echo "${ECHO_T}missing" >&6
1600 echo "$as_me:$LINENO: checking for working autoconf" >&5
1601 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1602 # Run test in a subshell; some versions of sh will print an error if
1603 # an executable is not found, even if stderr is redirected.
1604 # Redirect stdin to placate older versions of autoconf. Sigh.
1605 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1606 AUTOCONF=autoconf
1607 echo "$as_me:$LINENO: result: found" >&5
1608 echo "${ECHO_T}found" >&6
1609 else
1610 AUTOCONF="$missing_dir/missing autoconf"
1611 echo "$as_me:$LINENO: result: missing" >&5
1612 echo "${ECHO_T}missing" >&6
1615 echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5
1616 echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6
1617 # Run test in a subshell; some versions of sh will print an error if
1618 # an executable is not found, even if stderr is redirected.
1619 # Redirect stdin to placate older versions of autoconf. Sigh.
1620 if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
1621 AUTOMAKE=automake-${am__api_version}
1622 echo "$as_me:$LINENO: result: found" >&5
1623 echo "${ECHO_T}found" >&6
1624 else
1625 AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
1626 echo "$as_me:$LINENO: result: missing" >&5
1627 echo "${ECHO_T}missing" >&6
1630 echo "$as_me:$LINENO: checking for working autoheader" >&5
1631 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1632 # Run test in a subshell; some versions of sh will print an error if
1633 # an executable is not found, even if stderr is redirected.
1634 # Redirect stdin to placate older versions of autoconf. Sigh.
1635 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1636 AUTOHEADER=autoheader
1637 echo "$as_me:$LINENO: result: found" >&5
1638 echo "${ECHO_T}found" >&6
1639 else
1640 AUTOHEADER="$missing_dir/missing autoheader"
1641 echo "$as_me:$LINENO: result: missing" >&5
1642 echo "${ECHO_T}missing" >&6
1645 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1646 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1647 # Run test in a subshell; some versions of sh will print an error if
1648 # an executable is not found, even if stderr is redirected.
1649 # Redirect stdin to placate older versions of autoconf. Sigh.
1650 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1651 MAKEINFO=makeinfo
1652 echo "$as_me:$LINENO: result: found" >&5
1653 echo "${ECHO_T}found" >&6
1654 else
1655 MAKEINFO="$missing_dir/missing makeinfo"
1656 echo "$as_me:$LINENO: result: missing" >&5
1657 echo "${ECHO_T}missing" >&6
1662 ac_config_headers="$ac_config_headers config.h"
1664 ac_config_commands="$ac_config_commands default-1"
1667 CXXFLAGS="-O4"
1668 CFLAGS="-O4"
1670 ac_ext=c
1671 ac_cpp='$CPP $CPPFLAGS'
1672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1675 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1677 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 break 2
1697 done
1698 done
1702 CC=$ac_cv_prog_CC
1703 if test -n "$CC"; then
1704 echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1706 else
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1712 if test -z "$ac_cv_prog_CC"; then
1713 ac_ct_CC=$CC
1714 # Extract the first word of "gcc", so it can be a program name with args.
1715 set dummy gcc; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$ac_ct_CC"; then
1722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_CC="gcc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1735 done
1736 done
1740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1741 if test -n "$ac_ct_CC"; then
1742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1743 echo "${ECHO_T}$ac_ct_CC" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1749 CC=$ac_ct_CC
1750 else
1751 CC="$ac_cv_prog_CC"
1754 if test -z "$CC"; then
1755 if test -n "$ac_tool_prefix"; then
1756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1757 set dummy ${ac_tool_prefix}cc; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 else
1766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 for as_dir in $PATH
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC="${ac_tool_prefix}cc"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1777 done
1778 done
1782 CC=$ac_cv_prog_CC
1783 if test -n "$CC"; then
1784 echo "$as_me:$LINENO: result: $CC" >&5
1785 echo "${ECHO_T}$CC" >&6
1786 else
1787 echo "$as_me:$LINENO: result: no" >&5
1788 echo "${ECHO_T}no" >&6
1792 if test -z "$ac_cv_prog_CC"; then
1793 ac_ct_CC=$CC
1794 # Extract the first word of "cc", so it can be a program name with args.
1795 set dummy cc; ac_word=$2
1796 echo "$as_me:$LINENO: checking for $ac_word" >&5
1797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1799 echo $ECHO_N "(cached) $ECHO_C" >&6
1800 else
1801 if test -n "$ac_ct_CC"; then
1802 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1803 else
1804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805 for as_dir in $PATH
1807 IFS=$as_save_IFS
1808 test -z "$as_dir" && as_dir=.
1809 for ac_exec_ext in '' $ac_executable_extensions; do
1810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811 ac_cv_prog_ac_ct_CC="cc"
1812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813 break 2
1815 done
1816 done
1820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1821 if test -n "$ac_ct_CC"; then
1822 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1823 echo "${ECHO_T}$ac_ct_CC" >&6
1824 else
1825 echo "$as_me:$LINENO: result: no" >&5
1826 echo "${ECHO_T}no" >&6
1829 CC=$ac_ct_CC
1830 else
1831 CC="$ac_cv_prog_CC"
1835 if test -z "$CC"; then
1836 # Extract the first word of "cc", so it can be a program name with args.
1837 set dummy cc; ac_word=$2
1838 echo "$as_me:$LINENO: checking for $ac_word" >&5
1839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840 if test "${ac_cv_prog_CC+set}" = set; then
1841 echo $ECHO_N "(cached) $ECHO_C" >&6
1842 else
1843 if test -n "$CC"; then
1844 ac_cv_prog_CC="$CC" # Let the user override the test.
1845 else
1846 ac_prog_rejected=no
1847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1848 for as_dir in $PATH
1850 IFS=$as_save_IFS
1851 test -z "$as_dir" && as_dir=.
1852 for ac_exec_ext in '' $ac_executable_extensions; do
1853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1854 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1855 ac_prog_rejected=yes
1856 continue
1858 ac_cv_prog_CC="cc"
1859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1860 break 2
1862 done
1863 done
1865 if test $ac_prog_rejected = yes; then
1866 # We found a bogon in the path, so make sure we never use it.
1867 set dummy $ac_cv_prog_CC
1868 shift
1869 if test $# != 0; then
1870 # We chose a different compiler from the bogus one.
1871 # However, it has the same basename, so the bogon will be chosen
1872 # first if we set CC to just the basename; use the full file name.
1873 shift
1874 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1879 CC=$ac_cv_prog_CC
1880 if test -n "$CC"; then
1881 echo "$as_me:$LINENO: result: $CC" >&5
1882 echo "${ECHO_T}$CC" >&6
1883 else
1884 echo "$as_me:$LINENO: result: no" >&5
1885 echo "${ECHO_T}no" >&6
1889 if test -z "$CC"; then
1890 if test -n "$ac_tool_prefix"; then
1891 for ac_prog in cl
1893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1895 echo "$as_me:$LINENO: checking for $ac_word" >&5
1896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897 if test "${ac_cv_prog_CC+set}" = set; then
1898 echo $ECHO_N "(cached) $ECHO_C" >&6
1899 else
1900 if test -n "$CC"; then
1901 ac_cv_prog_CC="$CC" # Let the user override the test.
1902 else
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1906 IFS=$as_save_IFS
1907 test -z "$as_dir" && as_dir=.
1908 for ac_exec_ext in '' $ac_executable_extensions; do
1909 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 break 2
1914 done
1915 done
1919 CC=$ac_cv_prog_CC
1920 if test -n "$CC"; then
1921 echo "$as_me:$LINENO: result: $CC" >&5
1922 echo "${ECHO_T}$CC" >&6
1923 else
1924 echo "$as_me:$LINENO: result: no" >&5
1925 echo "${ECHO_T}no" >&6
1928 test -n "$CC" && break
1929 done
1931 if test -z "$CC"; then
1932 ac_ct_CC=$CC
1933 for ac_prog in cl
1935 # Extract the first word of "$ac_prog", so it can be a program name with args.
1936 set dummy $ac_prog; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1941 else
1942 if test -n "$ac_ct_CC"; then
1943 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1944 else
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1946 for as_dir in $PATH
1948 IFS=$as_save_IFS
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_CC="$ac_prog"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1956 done
1957 done
1961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1962 if test -n "$ac_ct_CC"; then
1963 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1964 echo "${ECHO_T}$ac_ct_CC" >&6
1965 else
1966 echo "$as_me:$LINENO: result: no" >&5
1967 echo "${ECHO_T}no" >&6
1970 test -n "$ac_ct_CC" && break
1971 done
1973 CC=$ac_ct_CC
1979 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1980 See \`config.log' for more details." >&5
1981 echo "$as_me: error: no acceptable C compiler found in \$PATH
1982 See \`config.log' for more details." >&2;}
1983 { (exit 1); exit 1; }; }
1985 # Provide some information about the compiler.
1986 echo "$as_me:$LINENO:" \
1987 "checking for C compiler version" >&5
1988 ac_compiler=`set X $ac_compile; echo $2`
1989 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1990 (eval $ac_compiler --version </dev/null >&5) 2>&5
1991 ac_status=$?
1992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1993 (exit $ac_status); }
1994 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1995 (eval $ac_compiler -v </dev/null >&5) 2>&5
1996 ac_status=$?
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }
1999 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2000 (eval $ac_compiler -V </dev/null >&5) 2>&5
2001 ac_status=$?
2002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2003 (exit $ac_status); }
2005 cat >conftest.$ac_ext <<_ACEOF
2006 /* confdefs.h. */
2007 _ACEOF
2008 cat confdefs.h >>conftest.$ac_ext
2009 cat >>conftest.$ac_ext <<_ACEOF
2010 /* end confdefs.h. */
2013 main ()
2017 return 0;
2019 _ACEOF
2020 ac_clean_files_save=$ac_clean_files
2021 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2022 # Try to create an executable without -o first, disregard a.out.
2023 # It will help us diagnose broken compilers, and finding out an intuition
2024 # of exeext.
2025 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2026 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2027 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2028 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2029 (eval $ac_link_default) 2>&5
2030 ac_status=$?
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 # Find the output, starting from the most likely. This scheme is
2034 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2035 # resort.
2037 # Be careful to initialize this variable, since it used to be cached.
2038 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2039 ac_cv_exeext=
2040 # b.out is created by i960 compilers.
2041 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2043 test -f "$ac_file" || continue
2044 case $ac_file in
2045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2047 conftest.$ac_ext )
2048 # This is the source file.
2050 [ab].out )
2051 # We found the default executable, but exeext='' is most
2052 # certainly right.
2053 break;;
2054 *.* )
2055 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 # FIXME: I believe we export ac_cv_exeext for Libtool,
2057 # but it would be cool to find out if it's true. Does anybody
2058 # maintain Libtool? --akim.
2059 export ac_cv_exeext
2060 break;;
2062 break;;
2063 esac
2064 done
2065 else
2066 echo "$as_me: failed program was:" >&5
2067 sed 's/^/| /' conftest.$ac_ext >&5
2069 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2070 See \`config.log' for more details." >&5
2071 echo "$as_me: error: C compiler cannot create executables
2072 See \`config.log' for more details." >&2;}
2073 { (exit 77); exit 77; }; }
2076 ac_exeext=$ac_cv_exeext
2077 echo "$as_me:$LINENO: result: $ac_file" >&5
2078 echo "${ECHO_T}$ac_file" >&6
2080 # Check the compiler produces executables we can run. If not, either
2081 # the compiler is broken, or we cross compile.
2082 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2083 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2084 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2085 # If not cross compiling, check that we can run a simple program.
2086 if test "$cross_compiling" != yes; then
2087 if { ac_try='./$ac_file'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089 (eval $ac_try) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; }; then
2093 cross_compiling=no
2094 else
2095 if test "$cross_compiling" = maybe; then
2096 cross_compiling=yes
2097 else
2098 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2099 If you meant to cross compile, use \`--host'.
2100 See \`config.log' for more details." >&5
2101 echo "$as_me: error: cannot run C compiled programs.
2102 If you meant to cross compile, use \`--host'.
2103 See \`config.log' for more details." >&2;}
2104 { (exit 1); exit 1; }; }
2108 echo "$as_me:$LINENO: result: yes" >&5
2109 echo "${ECHO_T}yes" >&6
2111 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2112 ac_clean_files=$ac_clean_files_save
2113 # Check the compiler produces executables we can run. If not, either
2114 # the compiler is broken, or we cross compile.
2115 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2116 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2117 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2118 echo "${ECHO_T}$cross_compiling" >&6
2120 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2121 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2122 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2123 (eval $ac_link) 2>&5
2124 ac_status=$?
2125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126 (exit $ac_status); }; then
2127 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2128 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2129 # work properly (i.e., refer to `conftest.exe'), while it won't with
2130 # `rm'.
2131 for ac_file in conftest.exe conftest conftest.*; do
2132 test -f "$ac_file" || continue
2133 case $ac_file in
2134 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2135 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2136 export ac_cv_exeext
2137 break;;
2138 * ) break;;
2139 esac
2140 done
2141 else
2142 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2143 See \`config.log' for more details." >&5
2144 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2145 See \`config.log' for more details." >&2;}
2146 { (exit 1); exit 1; }; }
2149 rm -f conftest$ac_cv_exeext
2150 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2151 echo "${ECHO_T}$ac_cv_exeext" >&6
2153 rm -f conftest.$ac_ext
2154 EXEEXT=$ac_cv_exeext
2155 ac_exeext=$EXEEXT
2156 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2157 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2158 if test "${ac_cv_objext+set}" = set; then
2159 echo $ECHO_N "(cached) $ECHO_C" >&6
2160 else
2161 cat >conftest.$ac_ext <<_ACEOF
2162 /* confdefs.h. */
2163 _ACEOF
2164 cat confdefs.h >>conftest.$ac_ext
2165 cat >>conftest.$ac_ext <<_ACEOF
2166 /* end confdefs.h. */
2169 main ()
2173 return 0;
2175 _ACEOF
2176 rm -f conftest.o conftest.obj
2177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2178 (eval $ac_compile) 2>&5
2179 ac_status=$?
2180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181 (exit $ac_status); }; then
2182 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2183 case $ac_file in
2184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2185 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2186 break;;
2187 esac
2188 done
2189 else
2190 echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2193 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2194 See \`config.log' for more details." >&5
2195 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2196 See \`config.log' for more details." >&2;}
2197 { (exit 1); exit 1; }; }
2200 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2202 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2203 echo "${ECHO_T}$ac_cv_objext" >&6
2204 OBJEXT=$ac_cv_objext
2205 ac_objext=$OBJEXT
2206 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2207 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2208 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 cat >conftest.$ac_ext <<_ACEOF
2212 /* confdefs.h. */
2213 _ACEOF
2214 cat confdefs.h >>conftest.$ac_ext
2215 cat >>conftest.$ac_ext <<_ACEOF
2216 /* end confdefs.h. */
2219 main ()
2221 #ifndef __GNUC__
2222 choke me
2223 #endif
2226 return 0;
2228 _ACEOF
2229 rm -f conftest.$ac_objext
2230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2231 (eval $ac_compile) 2>conftest.er1
2232 ac_status=$?
2233 grep -v '^ *+' conftest.er1 >conftest.err
2234 rm -f conftest.er1
2235 cat conftest.err >&5
2236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2237 (exit $ac_status); } &&
2238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2240 (eval $ac_try) 2>&5
2241 ac_status=$?
2242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2243 (exit $ac_status); }; } &&
2244 { ac_try='test -s conftest.$ac_objext'
2245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2246 (eval $ac_try) 2>&5
2247 ac_status=$?
2248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2249 (exit $ac_status); }; }; then
2250 ac_compiler_gnu=yes
2251 else
2252 echo "$as_me: failed program was:" >&5
2253 sed 's/^/| /' conftest.$ac_ext >&5
2255 ac_compiler_gnu=no
2257 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2258 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2261 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2262 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2263 GCC=`test $ac_compiler_gnu = yes && echo yes`
2264 ac_test_CFLAGS=${CFLAGS+set}
2265 ac_save_CFLAGS=$CFLAGS
2266 CFLAGS="-g"
2267 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2268 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2269 if test "${ac_cv_prog_cc_g+set}" = set; then
2270 echo $ECHO_N "(cached) $ECHO_C" >&6
2271 else
2272 cat >conftest.$ac_ext <<_ACEOF
2273 /* confdefs.h. */
2274 _ACEOF
2275 cat confdefs.h >>conftest.$ac_ext
2276 cat >>conftest.$ac_ext <<_ACEOF
2277 /* end confdefs.h. */
2280 main ()
2284 return 0;
2286 _ACEOF
2287 rm -f conftest.$ac_objext
2288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2289 (eval $ac_compile) 2>conftest.er1
2290 ac_status=$?
2291 grep -v '^ *+' conftest.er1 >conftest.err
2292 rm -f conftest.er1
2293 cat conftest.err >&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); } &&
2296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2298 (eval $ac_try) 2>&5
2299 ac_status=$?
2300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2301 (exit $ac_status); }; } &&
2302 { ac_try='test -s conftest.$ac_objext'
2303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304 (eval $ac_try) 2>&5
2305 ac_status=$?
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); }; }; then
2308 ac_cv_prog_cc_g=yes
2309 else
2310 echo "$as_me: failed program was:" >&5
2311 sed 's/^/| /' conftest.$ac_ext >&5
2313 ac_cv_prog_cc_g=no
2315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2317 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2318 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2319 if test "$ac_test_CFLAGS" = set; then
2320 CFLAGS=$ac_save_CFLAGS
2321 elif test $ac_cv_prog_cc_g = yes; then
2322 if test "$GCC" = yes; then
2323 CFLAGS="-g -O2"
2324 else
2325 CFLAGS="-g"
2327 else
2328 if test "$GCC" = yes; then
2329 CFLAGS="-O2"
2330 else
2331 CFLAGS=
2334 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2335 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2336 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339 ac_cv_prog_cc_stdc=no
2340 ac_save_CC=$CC
2341 cat >conftest.$ac_ext <<_ACEOF
2342 /* confdefs.h. */
2343 _ACEOF
2344 cat confdefs.h >>conftest.$ac_ext
2345 cat >>conftest.$ac_ext <<_ACEOF
2346 /* end confdefs.h. */
2347 #include <stdarg.h>
2348 #include <stdio.h>
2349 #include <sys/types.h>
2350 #include <sys/stat.h>
2351 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2352 struct buf { int x; };
2353 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2354 static char *e (p, i)
2355 char **p;
2356 int i;
2358 return p[i];
2360 static char *f (char * (*g) (char **, int), char **p, ...)
2362 char *s;
2363 va_list v;
2364 va_start (v,p);
2365 s = g (p, va_arg (v,int));
2366 va_end (v);
2367 return s;
2370 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2371 function prototypes and stuff, but not '\xHH' hex character constants.
2372 These don't provoke an error unfortunately, instead are silently treated
2373 as 'x'. The following induces an error, until -std1 is added to get
2374 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2375 array size at least. It's necessary to write '\x00'==0 to get something
2376 that's true only with -std1. */
2377 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2379 int test (int i, double x);
2380 struct s1 {int (*f) (int a);};
2381 struct s2 {int (*f) (double a);};
2382 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2383 int argc;
2384 char **argv;
2386 main ()
2388 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2390 return 0;
2392 _ACEOF
2393 # Don't try gcc -ansi; that turns off useful extensions and
2394 # breaks some systems' header files.
2395 # AIX -qlanglvl=ansi
2396 # Ultrix and OSF/1 -std1
2397 # HP-UX 10.20 and later -Ae
2398 # HP-UX older versions -Aa -D_HPUX_SOURCE
2399 # SVR4 -Xc -D__EXTENSIONS__
2400 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2402 CC="$ac_save_CC $ac_arg"
2403 rm -f conftest.$ac_objext
2404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2405 (eval $ac_compile) 2>conftest.er1
2406 ac_status=$?
2407 grep -v '^ *+' conftest.er1 >conftest.err
2408 rm -f conftest.er1
2409 cat conftest.err >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); } &&
2412 { ac_try='test -z "$ac_c_werror_flag" || 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
2424 ac_cv_prog_cc_stdc=$ac_arg
2425 break
2426 else
2427 echo "$as_me: failed program was:" >&5
2428 sed 's/^/| /' conftest.$ac_ext >&5
2431 rm -f conftest.err conftest.$ac_objext
2432 done
2433 rm -f conftest.$ac_ext conftest.$ac_objext
2434 CC=$ac_save_CC
2438 case "x$ac_cv_prog_cc_stdc" in
2439 x|xno)
2440 echo "$as_me:$LINENO: result: none needed" >&5
2441 echo "${ECHO_T}none needed" >&6 ;;
2443 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2444 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2445 CC="$CC $ac_cv_prog_cc_stdc" ;;
2446 esac
2448 # Some people use a C++ compiler to compile C. Since we use `exit',
2449 # in C++ we need to declare it. In case someone uses the same compiler
2450 # for both compiling C and C++ we need to have the C++ compiler decide
2451 # the declaration of exit, since it's the most demanding environment.
2452 cat >conftest.$ac_ext <<_ACEOF
2453 #ifndef __cplusplus
2454 choke me
2455 #endif
2456 _ACEOF
2457 rm -f conftest.$ac_objext
2458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2459 (eval $ac_compile) 2>conftest.er1
2460 ac_status=$?
2461 grep -v '^ *+' conftest.er1 >conftest.err
2462 rm -f conftest.er1
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2468 (eval $ac_try) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 for ac_declaration in \
2479 '' \
2480 'extern "C" void std::exit (int) throw (); using std::exit;' \
2481 'extern "C" void std::exit (int); using std::exit;' \
2482 'extern "C" void exit (int) throw ();' \
2483 'extern "C" void exit (int);' \
2484 'void exit (int);'
2486 cat >conftest.$ac_ext <<_ACEOF
2487 /* confdefs.h. */
2488 _ACEOF
2489 cat confdefs.h >>conftest.$ac_ext
2490 cat >>conftest.$ac_ext <<_ACEOF
2491 /* end confdefs.h. */
2492 $ac_declaration
2493 #include <stdlib.h>
2495 main ()
2497 exit (42);
2499 return 0;
2501 _ACEOF
2502 rm -f conftest.$ac_objext
2503 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2504 (eval $ac_compile) 2>conftest.er1
2505 ac_status=$?
2506 grep -v '^ *+' conftest.er1 >conftest.err
2507 rm -f conftest.er1
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } &&
2511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513 (eval $ac_try) 2>&5
2514 ac_status=$?
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); }; } &&
2517 { ac_try='test -s conftest.$ac_objext'
2518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2519 (eval $ac_try) 2>&5
2520 ac_status=$?
2521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2522 (exit $ac_status); }; }; then
2524 else
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 continue
2530 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2531 cat >conftest.$ac_ext <<_ACEOF
2532 /* confdefs.h. */
2533 _ACEOF
2534 cat confdefs.h >>conftest.$ac_ext
2535 cat >>conftest.$ac_ext <<_ACEOF
2536 /* end confdefs.h. */
2537 $ac_declaration
2539 main ()
2541 exit (42);
2543 return 0;
2545 _ACEOF
2546 rm -f conftest.$ac_objext
2547 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2548 (eval $ac_compile) 2>conftest.er1
2549 ac_status=$?
2550 grep -v '^ *+' conftest.er1 >conftest.err
2551 rm -f conftest.er1
2552 cat conftest.err >&5
2553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554 (exit $ac_status); } &&
2555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2557 (eval $ac_try) 2>&5
2558 ac_status=$?
2559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2560 (exit $ac_status); }; } &&
2561 { ac_try='test -s conftest.$ac_objext'
2562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2563 (eval $ac_try) 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 break
2568 else
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2573 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2574 done
2575 rm -f conftest*
2576 if test -n "$ac_declaration"; then
2577 echo '#ifdef __cplusplus' >>confdefs.h
2578 echo $ac_declaration >>confdefs.h
2579 echo '#endif' >>confdefs.h
2582 else
2583 echo "$as_me: failed program was:" >&5
2584 sed 's/^/| /' conftest.$ac_ext >&5
2587 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2588 ac_ext=c
2589 ac_cpp='$CPP $CPPFLAGS'
2590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2594 ac_ext=cc
2595 ac_cpp='$CXXCPP $CPPFLAGS'
2596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2599 if test -n "$ac_tool_prefix"; then
2600 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2604 echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2606 if test "${ac_cv_prog_CXX+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2608 else
2609 if test -n "$CXX"; then
2610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2611 else
2612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2613 for as_dir in $PATH
2615 IFS=$as_save_IFS
2616 test -z "$as_dir" && as_dir=.
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2621 break 2
2623 done
2624 done
2628 CXX=$ac_cv_prog_CXX
2629 if test -n "$CXX"; then
2630 echo "$as_me:$LINENO: result: $CXX" >&5
2631 echo "${ECHO_T}$CXX" >&6
2632 else
2633 echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6
2637 test -n "$CXX" && break
2638 done
2640 if test -z "$CXX"; then
2641 ac_ct_CXX=$CXX
2642 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2644 # Extract the first word of "$ac_prog", so it can be a program name with args.
2645 set dummy $ac_prog; ac_word=$2
2646 echo "$as_me:$LINENO: checking for $ac_word" >&5
2647 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2648 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2649 echo $ECHO_N "(cached) $ECHO_C" >&6
2650 else
2651 if test -n "$ac_ct_CXX"; then
2652 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 for ac_exec_ext in '' $ac_executable_extensions; do
2660 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2661 ac_cv_prog_ac_ct_CXX="$ac_prog"
2662 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2663 break 2
2665 done
2666 done
2670 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2671 if test -n "$ac_ct_CXX"; then
2672 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2673 echo "${ECHO_T}$ac_ct_CXX" >&6
2674 else
2675 echo "$as_me:$LINENO: result: no" >&5
2676 echo "${ECHO_T}no" >&6
2679 test -n "$ac_ct_CXX" && break
2680 done
2681 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2683 CXX=$ac_ct_CXX
2687 # Provide some information about the compiler.
2688 echo "$as_me:$LINENO:" \
2689 "checking for C++ compiler version" >&5
2690 ac_compiler=`set X $ac_compile; echo $2`
2691 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2692 (eval $ac_compiler --version </dev/null >&5) 2>&5
2693 ac_status=$?
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2696 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2697 (eval $ac_compiler -v </dev/null >&5) 2>&5
2698 ac_status=$?
2699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2700 (exit $ac_status); }
2701 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2702 (eval $ac_compiler -V </dev/null >&5) 2>&5
2703 ac_status=$?
2704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705 (exit $ac_status); }
2707 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2708 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2709 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 cat >conftest.$ac_ext <<_ACEOF
2713 /* confdefs.h. */
2714 _ACEOF
2715 cat confdefs.h >>conftest.$ac_ext
2716 cat >>conftest.$ac_ext <<_ACEOF
2717 /* end confdefs.h. */
2720 main ()
2722 #ifndef __GNUC__
2723 choke me
2724 #endif
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2732 (eval $ac_compile) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2741 (eval $ac_try) 2>&5
2742 ac_status=$?
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); }; } &&
2745 { ac_try='test -s conftest.$ac_objext'
2746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2747 (eval $ac_try) 2>&5
2748 ac_status=$?
2749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2750 (exit $ac_status); }; }; then
2751 ac_compiler_gnu=yes
2752 else
2753 echo "$as_me: failed program was:" >&5
2754 sed 's/^/| /' conftest.$ac_ext >&5
2756 ac_compiler_gnu=no
2758 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2759 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2762 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2763 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2764 GXX=`test $ac_compiler_gnu = yes && echo yes`
2765 ac_test_CXXFLAGS=${CXXFLAGS+set}
2766 ac_save_CXXFLAGS=$CXXFLAGS
2767 CXXFLAGS="-g"
2768 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2769 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2770 if test "${ac_cv_prog_cxx_g+set}" = set; then
2771 echo $ECHO_N "(cached) $ECHO_C" >&6
2772 else
2773 cat >conftest.$ac_ext <<_ACEOF
2774 /* confdefs.h. */
2775 _ACEOF
2776 cat confdefs.h >>conftest.$ac_ext
2777 cat >>conftest.$ac_ext <<_ACEOF
2778 /* end confdefs.h. */
2781 main ()
2785 return 0;
2787 _ACEOF
2788 rm -f conftest.$ac_objext
2789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2790 (eval $ac_compile) 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } &&
2797 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2799 (eval $ac_try) 2>&5
2800 ac_status=$?
2801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2802 (exit $ac_status); }; } &&
2803 { ac_try='test -s conftest.$ac_objext'
2804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805 (eval $ac_try) 2>&5
2806 ac_status=$?
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); }; }; then
2809 ac_cv_prog_cxx_g=yes
2810 else
2811 echo "$as_me: failed program was:" >&5
2812 sed 's/^/| /' conftest.$ac_ext >&5
2814 ac_cv_prog_cxx_g=no
2816 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2818 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2819 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2820 if test "$ac_test_CXXFLAGS" = set; then
2821 CXXFLAGS=$ac_save_CXXFLAGS
2822 elif test $ac_cv_prog_cxx_g = yes; then
2823 if test "$GXX" = yes; then
2824 CXXFLAGS="-g -O2"
2825 else
2826 CXXFLAGS="-g"
2828 else
2829 if test "$GXX" = yes; then
2830 CXXFLAGS="-O2"
2831 else
2832 CXXFLAGS=
2835 for ac_declaration in \
2836 '' \
2837 'extern "C" void std::exit (int) throw (); using std::exit;' \
2838 'extern "C" void std::exit (int); using std::exit;' \
2839 'extern "C" void exit (int) throw ();' \
2840 'extern "C" void exit (int);' \
2841 'void exit (int);'
2843 cat >conftest.$ac_ext <<_ACEOF
2844 /* confdefs.h. */
2845 _ACEOF
2846 cat confdefs.h >>conftest.$ac_ext
2847 cat >>conftest.$ac_ext <<_ACEOF
2848 /* end confdefs.h. */
2849 $ac_declaration
2850 #include <stdlib.h>
2852 main ()
2854 exit (42);
2856 return 0;
2858 _ACEOF
2859 rm -f conftest.$ac_objext
2860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2861 (eval $ac_compile) 2>conftest.er1
2862 ac_status=$?
2863 grep -v '^ *+' conftest.er1 >conftest.err
2864 rm -f conftest.er1
2865 cat conftest.err >&5
2866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867 (exit $ac_status); } &&
2868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870 (eval $ac_try) 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876 (eval $ac_try) 2>&5
2877 ac_status=$?
2878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879 (exit $ac_status); }; }; then
2881 else
2882 echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 continue
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888 cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h. */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h. */
2894 $ac_declaration
2896 main ()
2898 exit (42);
2900 return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905 (eval $ac_compile) 2>conftest.er1
2906 ac_status=$?
2907 grep -v '^ *+' conftest.er1 >conftest.err
2908 rm -f conftest.er1
2909 cat conftest.err >&5
2910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911 (exit $ac_status); } &&
2912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2914 (eval $ac_try) 2>&5
2915 ac_status=$?
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }; } &&
2918 { ac_try='test -s conftest.$ac_objext'
2919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2920 (eval $ac_try) 2>&5
2921 ac_status=$?
2922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2923 (exit $ac_status); }; }; then
2924 break
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2930 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2931 done
2932 rm -f conftest*
2933 if test -n "$ac_declaration"; then
2934 echo '#ifdef __cplusplus' >>confdefs.h
2935 echo $ac_declaration >>confdefs.h
2936 echo '#endif' >>confdefs.h
2939 ac_ext=c
2940 ac_cpp='$CPP $CPPFLAGS'
2941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2945 # Find a good install program. We prefer a C program (faster),
2946 # so one script is as good as another. But avoid the broken or
2947 # incompatible versions:
2948 # SysV /etc/install, /usr/sbin/install
2949 # SunOS /usr/etc/install
2950 # IRIX /sbin/install
2951 # AIX /bin/install
2952 # AmigaOS /C/install, which installs bootblocks on floppy discs
2953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2956 # OS/2's system install, which has a completely different semantic
2957 # ./install, which can be erroneously created by make from ./install.sh.
2958 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2959 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2960 if test -z "$INSTALL"; then
2961 if test "${ac_cv_path_install+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2963 else
2964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965 for as_dir in $PATH
2967 IFS=$as_save_IFS
2968 test -z "$as_dir" && as_dir=.
2969 # Account for people who put trailing slashes in PATH elements.
2970 case $as_dir/ in
2971 ./ | .// | /cC/* | \
2972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2973 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2974 /usr/ucb/* ) ;;
2976 # OSF1 and SCO ODT 3.0 have their own names for install.
2977 # Don't use installbsd from OSF since it installs stuff as root
2978 # by default.
2979 for ac_prog in ginstall scoinst install; do
2980 for ac_exec_ext in '' $ac_executable_extensions; do
2981 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2982 if test $ac_prog = install &&
2983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984 # AIX install. It has an incompatible calling convention.
2986 elif test $ac_prog = install &&
2987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2988 # program-specific install script used by HP pwplus--don't use.
2990 else
2991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2992 break 3
2995 done
2996 done
2998 esac
2999 done
3003 if test "${ac_cv_path_install+set}" = set; then
3004 INSTALL=$ac_cv_path_install
3005 else
3006 # As a last resort, use the slow shell script. We don't cache a
3007 # path for INSTALL within a source directory, because that will
3008 # break other packages using the cache if that directory is
3009 # removed, or if the path is relative.
3010 INSTALL=$ac_install_sh
3013 echo "$as_me:$LINENO: result: $INSTALL" >&5
3014 echo "${ECHO_T}$INSTALL" >&6
3016 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3017 # It thinks the first close brace ends the variable substitution.
3018 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3020 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3022 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3026 ac_ext=c
3027 ac_cpp='$CPP $CPPFLAGS'
3028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3032 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3033 # On Suns, sometimes $CPP names a directory.
3034 if test -n "$CPP" && test -d "$CPP"; then
3035 CPP=
3037 if test -z "$CPP"; then
3038 if test "${ac_cv_prog_CPP+set}" = set; then
3039 echo $ECHO_N "(cached) $ECHO_C" >&6
3040 else
3041 # Double quotes because CPP needs to be expanded
3042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3044 ac_preproc_ok=false
3045 for ac_c_preproc_warn_flag in '' yes
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
3049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
3051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.$ac_ext <<_ACEOF
3054 /* confdefs.h. */
3055 _ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3059 #ifdef __STDC__
3060 # include <limits.h>
3061 #else
3062 # include <assert.h>
3063 #endif
3064 Syntax error
3065 _ACEOF
3066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
3069 grep -v '^ *+' conftest.er1 >conftest.err
3070 rm -f conftest.er1
3071 cat conftest.err >&5
3072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
3076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3077 else
3078 ac_cpp_err=
3080 else
3081 ac_cpp_err=yes
3083 if test -z "$ac_cpp_err"; then
3085 else
3086 echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3089 # Broken: fails on valid input.
3090 continue
3092 rm -f conftest.err conftest.$ac_ext
3094 # OK, works on sane cases. Now check whether non-existent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
3097 /* confdefs.h. */
3098 _ACEOF
3099 cat confdefs.h >>conftest.$ac_ext
3100 cat >>conftest.$ac_ext <<_ACEOF
3101 /* end confdefs.h. */
3102 #include <ac_nonexistent.h>
3103 _ACEOF
3104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
3107 grep -v '^ *+' conftest.er1 >conftest.err
3108 rm -f conftest.er1
3109 cat conftest.err >&5
3110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
3114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3115 else
3116 ac_cpp_err=
3118 else
3119 ac_cpp_err=yes
3121 if test -z "$ac_cpp_err"; then
3122 # Broken: success on invalid input.
3123 continue
3124 else
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 # Passes both tests.
3129 ac_preproc_ok=:
3130 break
3132 rm -f conftest.err conftest.$ac_ext
3134 done
3135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136 rm -f conftest.err conftest.$ac_ext
3137 if $ac_preproc_ok; then
3138 break
3141 done
3142 ac_cv_prog_CPP=$CPP
3145 CPP=$ac_cv_prog_CPP
3146 else
3147 ac_cv_prog_CPP=$CPP
3149 echo "$as_me:$LINENO: result: $CPP" >&5
3150 echo "${ECHO_T}$CPP" >&6
3151 ac_preproc_ok=false
3152 for ac_c_preproc_warn_flag in '' yes
3154 # Use a header file that comes with gcc, so configuring glibc
3155 # with a fresh cross-compiler works.
3156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3157 # <limits.h> exists even on freestanding compilers.
3158 # On the NeXT, cc -E runs the code through the compiler's parser,
3159 # not just through cpp. "Syntax error" is here to catch this case.
3160 cat >conftest.$ac_ext <<_ACEOF
3161 /* confdefs.h. */
3162 _ACEOF
3163 cat confdefs.h >>conftest.$ac_ext
3164 cat >>conftest.$ac_ext <<_ACEOF
3165 /* end confdefs.h. */
3166 #ifdef __STDC__
3167 # include <limits.h>
3168 #else
3169 # include <assert.h>
3170 #endif
3171 Syntax error
3172 _ACEOF
3173 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3174 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3175 ac_status=$?
3176 grep -v '^ *+' conftest.er1 >conftest.err
3177 rm -f conftest.er1
3178 cat conftest.err >&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); } >/dev/null; then
3181 if test -s conftest.err; then
3182 ac_cpp_err=$ac_c_preproc_warn_flag
3183 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3184 else
3185 ac_cpp_err=
3187 else
3188 ac_cpp_err=yes
3190 if test -z "$ac_cpp_err"; then
3192 else
3193 echo "$as_me: failed program was:" >&5
3194 sed 's/^/| /' conftest.$ac_ext >&5
3196 # Broken: fails on valid input.
3197 continue
3199 rm -f conftest.err conftest.$ac_ext
3201 # OK, works on sane cases. Now check whether non-existent headers
3202 # can be detected and how.
3203 cat >conftest.$ac_ext <<_ACEOF
3204 /* confdefs.h. */
3205 _ACEOF
3206 cat confdefs.h >>conftest.$ac_ext
3207 cat >>conftest.$ac_ext <<_ACEOF
3208 /* end confdefs.h. */
3209 #include <ac_nonexistent.h>
3210 _ACEOF
3211 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3212 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3213 ac_status=$?
3214 grep -v '^ *+' conftest.er1 >conftest.err
3215 rm -f conftest.er1
3216 cat conftest.err >&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); } >/dev/null; then
3219 if test -s conftest.err; then
3220 ac_cpp_err=$ac_c_preproc_warn_flag
3221 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3222 else
3223 ac_cpp_err=
3225 else
3226 ac_cpp_err=yes
3228 if test -z "$ac_cpp_err"; then
3229 # Broken: success on invalid input.
3230 continue
3231 else
3232 echo "$as_me: failed program was:" >&5
3233 sed 's/^/| /' conftest.$ac_ext >&5
3235 # Passes both tests.
3236 ac_preproc_ok=:
3237 break
3239 rm -f conftest.err conftest.$ac_ext
3241 done
3242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3243 rm -f conftest.err conftest.$ac_ext
3244 if $ac_preproc_ok; then
3246 else
3247 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3248 See \`config.log' for more details." >&5
3249 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3250 See \`config.log' for more details." >&2;}
3251 { (exit 1); exit 1; }; }
3254 ac_ext=c
3255 ac_cpp='$CPP $CPPFLAGS'
3256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3262 if test "x$ac_path_x_has_been_run" != xyes; then
3263 echo "$as_me:$LINENO: checking for X" >&5
3264 echo $ECHO_N "checking for X... $ECHO_C" >&6
3266 ac_path_x_has_been_run=yes
3268 # Check whether --with-x or --without-x was given.
3269 if test "${with_x+set}" = set; then
3270 withval="$with_x"
3273 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3274 if test "x$with_x" = xno; then
3275 # The user explicitly disabled X.
3276 have_x=disabled
3277 else
3278 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3279 # Both variables are already set.
3280 have_x=yes
3281 else
3282 if test "${ac_cv_have_x+set}" = set; then
3283 echo $ECHO_N "(cached) $ECHO_C" >&6
3284 else
3285 # One or both of the vars are not set, and there is no cached value.
3286 ac_x_includes=no ac_x_libraries=no
3287 rm -fr conftest.dir
3288 if mkdir conftest.dir; then
3289 cd conftest.dir
3290 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3291 cat >Imakefile <<'_ACEOF'
3292 acfindx:
3293 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3294 _ACEOF
3295 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3296 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3297 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3298 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3299 for ac_extension in a so sl; do
3300 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3301 test -f $ac_im_libdir/libX11.$ac_extension; then
3302 ac_im_usrlibdir=$ac_im_libdir; break
3304 done
3305 # Screen out bogus values from the imake configuration. They are
3306 # bogus both because they are the default anyway, and because
3307 # using them would break gcc on systems where it needs fixed includes.
3308 case $ac_im_incroot in
3309 /usr/include) ;;
3310 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3311 esac
3312 case $ac_im_usrlibdir in
3313 /usr/lib | /lib) ;;
3314 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3315 esac
3317 cd ..
3318 rm -fr conftest.dir
3321 # Standard set of common directories for X headers.
3322 # Check X11 before X11Rn because it is often a symlink to the current release.
3323 ac_x_header_dirs='
3324 /usr/X11/include
3325 /usr/X11R6/include
3326 /usr/X11R5/include
3327 /usr/X11R4/include
3329 /usr/include/X11
3330 /usr/include/X11R6
3331 /usr/include/X11R5
3332 /usr/include/X11R4
3334 /usr/local/X11/include
3335 /usr/local/X11R6/include
3336 /usr/local/X11R5/include
3337 /usr/local/X11R4/include
3339 /usr/local/include/X11
3340 /usr/local/include/X11R6
3341 /usr/local/include/X11R5
3342 /usr/local/include/X11R4
3344 /usr/X386/include
3345 /usr/x386/include
3346 /usr/XFree86/include/X11
3348 /usr/include
3349 /usr/local/include
3350 /usr/unsupported/include
3351 /usr/athena/include
3352 /usr/local/x11r5/include
3353 /usr/lpp/Xamples/include
3355 /usr/openwin/include
3356 /usr/openwin/share/include'
3358 if test "$ac_x_includes" = no; then
3359 # Guess where to find include files, by looking for a specified header file.
3360 # First, try using that file with no special directory specified.
3361 cat >conftest.$ac_ext <<_ACEOF
3362 /* confdefs.h. */
3363 _ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3367 #include <X11/Xlib.h>
3368 _ACEOF
3369 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3370 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3371 ac_status=$?
3372 grep -v '^ *+' conftest.er1 >conftest.err
3373 rm -f conftest.er1
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } >/dev/null; then
3377 if test -s conftest.err; then
3378 ac_cpp_err=$ac_c_preproc_warn_flag
3379 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3380 else
3381 ac_cpp_err=
3383 else
3384 ac_cpp_err=yes
3386 if test -z "$ac_cpp_err"; then
3387 # We can compile using X headers with no special include directory.
3388 ac_x_includes=
3389 else
3390 echo "$as_me: failed program was:" >&5
3391 sed 's/^/| /' conftest.$ac_ext >&5
3393 for ac_dir in $ac_x_header_dirs; do
3394 if test -r "$ac_dir/X11/Xlib.h"; then
3395 ac_x_includes=$ac_dir
3396 break
3398 done
3400 rm -f conftest.err conftest.$ac_ext
3401 fi # $ac_x_includes = no
3403 if test "$ac_x_libraries" = no; then
3404 # Check for the libraries.
3405 # See if we find them without any special options.
3406 # Don't add to $LIBS permanently.
3407 ac_save_LIBS=$LIBS
3408 LIBS="-lX11 $LIBS"
3409 cat >conftest.$ac_ext <<_ACEOF
3410 /* confdefs.h. */
3411 _ACEOF
3412 cat confdefs.h >>conftest.$ac_ext
3413 cat >>conftest.$ac_ext <<_ACEOF
3414 /* end confdefs.h. */
3415 #include <X11/Xlib.h>
3417 main ()
3419 XrmInitialize ()
3421 return 0;
3423 _ACEOF
3424 rm -f conftest.$ac_objext conftest$ac_exeext
3425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426 (eval $ac_link) 2>conftest.er1
3427 ac_status=$?
3428 grep -v '^ *+' conftest.er1 >conftest.err
3429 rm -f conftest.er1
3430 cat conftest.err >&5
3431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3432 (exit $ac_status); } &&
3433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 (eval $ac_try) 2>&5
3436 ac_status=$?
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); }; } &&
3439 { ac_try='test -s conftest$ac_exeext'
3440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3441 (eval $ac_try) 2>&5
3442 ac_status=$?
3443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444 (exit $ac_status); }; }; then
3445 LIBS=$ac_save_LIBS
3446 # We can link X programs with no special library path.
3447 ac_x_libraries=
3448 else
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 LIBS=$ac_save_LIBS
3453 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3455 # Don't even attempt the hair of trying to link an X program!
3456 for ac_extension in a so sl; do
3457 if test -r $ac_dir/libX11.$ac_extension; then
3458 ac_x_libraries=$ac_dir
3459 break 2
3461 done
3462 done
3464 rm -f conftest.err conftest.$ac_objext \
3465 conftest$ac_exeext conftest.$ac_ext
3466 fi # $ac_x_libraries = no
3468 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3469 # Didn't find X anywhere. Cache the known absence of X.
3470 ac_cv_have_x="have_x=no"
3471 else
3472 # Record where we found X for the cache.
3473 ac_cv_have_x="have_x=yes \
3474 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3479 eval "$ac_cv_have_x"
3480 fi # $with_x != no
3482 if test "$have_x" != yes; then
3483 echo "$as_me:$LINENO: result: $have_x" >&5
3484 echo "${ECHO_T}$have_x" >&6
3485 no_x=yes
3486 else
3487 # If each of the values was on the command line, it overrides each guess.
3488 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3489 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3490 # Update the cache value to reflect the command line values.
3491 ac_cv_have_x="have_x=yes \
3492 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3493 # It might be that x_includes is empty (headers are found in the
3494 # standard search path. Then output the corresponding message
3495 ac_out_x_includes=$x_includes
3496 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3497 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3498 echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
3502 if test "$no_x" = yes; then
3503 # Not all programs may use this symbol, but it does not hurt to define it.
3505 cat >>confdefs.h <<\_ACEOF
3506 #define X_DISPLAY_MISSING 1
3507 _ACEOF
3509 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3510 else
3511 if test -n "$x_includes"; then
3512 X_CFLAGS="$X_CFLAGS -I$x_includes"
3515 # It would also be nice to do this for all -L options, not just this one.
3516 if test -n "$x_libraries"; then
3517 X_LIBS="$X_LIBS -L$x_libraries"
3518 # For Solaris; some versions of Sun CC require a space after -R and
3519 # others require no space. Words are not sufficient . . . .
3520 case `(uname -sr) 2>/dev/null` in
3521 "SunOS 5"*)
3522 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
3523 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3524 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3525 cat >conftest.$ac_ext <<_ACEOF
3526 /* confdefs.h. */
3527 _ACEOF
3528 cat confdefs.h >>conftest.$ac_ext
3529 cat >>conftest.$ac_ext <<_ACEOF
3530 /* end confdefs.h. */
3533 main ()
3537 return 0;
3539 _ACEOF
3540 rm -f conftest.$ac_objext conftest$ac_exeext
3541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3542 (eval $ac_link) 2>conftest.er1
3543 ac_status=$?
3544 grep -v '^ *+' conftest.er1 >conftest.err
3545 rm -f conftest.er1
3546 cat conftest.err >&5
3547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3548 (exit $ac_status); } &&
3549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3551 (eval $ac_try) 2>&5
3552 ac_status=$?
3553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554 (exit $ac_status); }; } &&
3555 { ac_try='test -s conftest$ac_exeext'
3556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3557 (eval $ac_try) 2>&5
3558 ac_status=$?
3559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560 (exit $ac_status); }; }; then
3561 ac_R_nospace=yes
3562 else
3563 echo "$as_me: failed program was:" >&5
3564 sed 's/^/| /' conftest.$ac_ext >&5
3566 ac_R_nospace=no
3568 rm -f conftest.err conftest.$ac_objext \
3569 conftest$ac_exeext conftest.$ac_ext
3570 if test $ac_R_nospace = yes; then
3571 echo "$as_me:$LINENO: result: no" >&5
3572 echo "${ECHO_T}no" >&6
3573 X_LIBS="$X_LIBS -R$x_libraries"
3574 else
3575 LIBS="$ac_xsave_LIBS -R $x_libraries"
3576 cat >conftest.$ac_ext <<_ACEOF
3577 /* confdefs.h. */
3578 _ACEOF
3579 cat confdefs.h >>conftest.$ac_ext
3580 cat >>conftest.$ac_ext <<_ACEOF
3581 /* end confdefs.h. */
3584 main ()
3588 return 0;
3590 _ACEOF
3591 rm -f conftest.$ac_objext conftest$ac_exeext
3592 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3593 (eval $ac_link) 2>conftest.er1
3594 ac_status=$?
3595 grep -v '^ *+' conftest.er1 >conftest.err
3596 rm -f conftest.er1
3597 cat conftest.err >&5
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); } &&
3600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3602 (eval $ac_try) 2>&5
3603 ac_status=$?
3604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605 (exit $ac_status); }; } &&
3606 { ac_try='test -s conftest$ac_exeext'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3608 (eval $ac_try) 2>&5
3609 ac_status=$?
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; }; then
3612 ac_R_space=yes
3613 else
3614 echo "$as_me: failed program was:" >&5
3615 sed 's/^/| /' conftest.$ac_ext >&5
3617 ac_R_space=no
3619 rm -f conftest.err conftest.$ac_objext \
3620 conftest$ac_exeext conftest.$ac_ext
3621 if test $ac_R_space = yes; then
3622 echo "$as_me:$LINENO: result: yes" >&5
3623 echo "${ECHO_T}yes" >&6
3624 X_LIBS="$X_LIBS -R $x_libraries"
3625 else
3626 echo "$as_me:$LINENO: result: neither works" >&5
3627 echo "${ECHO_T}neither works" >&6
3630 LIBS=$ac_xsave_LIBS
3631 esac
3634 # Check for system-dependent libraries X programs must link with.
3635 # Do this before checking for the system-independent R6 libraries
3636 # (-lICE), since we may need -lsocket or whatever for X linking.
3638 if test "$ISC" = yes; then
3639 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3640 else
3641 # Martyn Johnson says this is needed for Ultrix, if the X
3642 # libraries were built with DECnet support. And Karl Berry says
3643 # the Alpha needs dnet_stub (dnet does not exist).
3644 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3645 cat >conftest.$ac_ext <<_ACEOF
3646 /* confdefs.h. */
3647 _ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3652 /* Override any gcc2 internal prototype to avoid an error. */
3653 #ifdef __cplusplus
3654 extern "C"
3655 #endif
3656 /* We use char because int might match the return type of a gcc2
3657 builtin and then its argument prototype would still apply. */
3658 char XOpenDisplay ();
3660 main ()
3662 XOpenDisplay ();
3664 return 0;
3666 _ACEOF
3667 rm -f conftest.$ac_objext conftest$ac_exeext
3668 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3669 (eval $ac_link) 2>conftest.er1
3670 ac_status=$?
3671 grep -v '^ *+' conftest.er1 >conftest.err
3672 rm -f conftest.er1
3673 cat conftest.err >&5
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); } &&
3676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678 (eval $ac_try) 2>&5
3679 ac_status=$?
3680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681 (exit $ac_status); }; } &&
3682 { ac_try='test -s conftest$ac_exeext'
3683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684 (eval $ac_try) 2>&5
3685 ac_status=$?
3686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687 (exit $ac_status); }; }; then
3689 else
3690 echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3694 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3695 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3696 echo $ECHO_N "(cached) $ECHO_C" >&6
3697 else
3698 ac_check_lib_save_LIBS=$LIBS
3699 LIBS="-ldnet $LIBS"
3700 cat >conftest.$ac_ext <<_ACEOF
3701 /* confdefs.h. */
3702 _ACEOF
3703 cat confdefs.h >>conftest.$ac_ext
3704 cat >>conftest.$ac_ext <<_ACEOF
3705 /* end confdefs.h. */
3707 /* Override any gcc2 internal prototype to avoid an error. */
3708 #ifdef __cplusplus
3709 extern "C"
3710 #endif
3711 /* We use char because int might match the return type of a gcc2
3712 builtin and then its argument prototype would still apply. */
3713 char dnet_ntoa ();
3715 main ()
3717 dnet_ntoa ();
3719 return 0;
3721 _ACEOF
3722 rm -f conftest.$ac_objext conftest$ac_exeext
3723 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3724 (eval $ac_link) 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } &&
3731 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3733 (eval $ac_try) 2>&5
3734 ac_status=$?
3735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3736 (exit $ac_status); }; } &&
3737 { ac_try='test -s conftest$ac_exeext'
3738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3739 (eval $ac_try) 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_lib_dnet_dnet_ntoa=yes
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3748 ac_cv_lib_dnet_dnet_ntoa=no
3750 rm -f conftest.err conftest.$ac_objext \
3751 conftest$ac_exeext conftest.$ac_ext
3752 LIBS=$ac_check_lib_save_LIBS
3754 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3755 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3756 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3757 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3760 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3761 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3762 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3763 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3764 echo $ECHO_N "(cached) $ECHO_C" >&6
3765 else
3766 ac_check_lib_save_LIBS=$LIBS
3767 LIBS="-ldnet_stub $LIBS"
3768 cat >conftest.$ac_ext <<_ACEOF
3769 /* confdefs.h. */
3770 _ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 /* Override any gcc2 internal prototype to avoid an error. */
3776 #ifdef __cplusplus
3777 extern "C"
3778 #endif
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3781 char dnet_ntoa ();
3783 main ()
3785 dnet_ntoa ();
3787 return 0;
3789 _ACEOF
3790 rm -f conftest.$ac_objext conftest$ac_exeext
3791 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3792 (eval $ac_link) 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } &&
3799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3801 (eval $ac_try) 2>&5
3802 ac_status=$?
3803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3804 (exit $ac_status); }; } &&
3805 { ac_try='test -s conftest$ac_exeext'
3806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3807 (eval $ac_try) 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; }; then
3811 ac_cv_lib_dnet_stub_dnet_ntoa=yes
3812 else
3813 echo "$as_me: failed program was:" >&5
3814 sed 's/^/| /' conftest.$ac_ext >&5
3816 ac_cv_lib_dnet_stub_dnet_ntoa=no
3818 rm -f conftest.err conftest.$ac_objext \
3819 conftest$ac_exeext conftest.$ac_ext
3820 LIBS=$ac_check_lib_save_LIBS
3822 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3823 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3824 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3825 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3830 rm -f conftest.err conftest.$ac_objext \
3831 conftest$ac_exeext conftest.$ac_ext
3832 LIBS="$ac_xsave_LIBS"
3834 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3835 # to get the SysV transport functions.
3836 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3837 # needs -lnsl.
3838 # The nsl library prevents programs from opening the X display
3839 # on Irix 5.2, according to T.E. Dickey.
3840 # The functions gethostbyname, getservbyname, and inet_addr are
3841 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3842 echo "$as_me:$LINENO: checking for gethostbyname" >&5
3843 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3844 if test "${ac_cv_func_gethostbyname+set}" = set; then
3845 echo $ECHO_N "(cached) $ECHO_C" >&6
3846 else
3847 cat >conftest.$ac_ext <<_ACEOF
3848 /* confdefs.h. */
3849 _ACEOF
3850 cat confdefs.h >>conftest.$ac_ext
3851 cat >>conftest.$ac_ext <<_ACEOF
3852 /* end confdefs.h. */
3853 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3854 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3855 #define gethostbyname innocuous_gethostbyname
3857 /* System header to define __stub macros and hopefully few prototypes,
3858 which can conflict with char gethostbyname (); below.
3859 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 <limits.h> exists even on freestanding compilers. */
3862 #ifdef __STDC__
3863 # include <limits.h>
3864 #else
3865 # include <assert.h>
3866 #endif
3868 #undef gethostbyname
3870 /* Override any gcc2 internal prototype to avoid an error. */
3871 #ifdef __cplusplus
3872 extern "C"
3874 #endif
3875 /* We use char because int might match the return type of a gcc2
3876 builtin and then its argument prototype would still apply. */
3877 char gethostbyname ();
3878 /* The GNU C library defines this for functions which it implements
3879 to always fail with ENOSYS. Some functions are actually named
3880 something starting with __ and the normal name is an alias. */
3881 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3882 choke me
3883 #else
3884 char (*f) () = gethostbyname;
3885 #endif
3886 #ifdef __cplusplus
3888 #endif
3891 main ()
3893 return f != gethostbyname;
3895 return 0;
3897 _ACEOF
3898 rm -f conftest.$ac_objext conftest$ac_exeext
3899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3900 (eval $ac_link) 2>conftest.er1
3901 ac_status=$?
3902 grep -v '^ *+' conftest.er1 >conftest.err
3903 rm -f conftest.er1
3904 cat conftest.err >&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } &&
3907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3909 (eval $ac_try) 2>&5
3910 ac_status=$?
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; } &&
3913 { ac_try='test -s conftest$ac_exeext'
3914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3915 (eval $ac_try) 2>&5
3916 ac_status=$?
3917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); }; }; then
3919 ac_cv_func_gethostbyname=yes
3920 else
3921 echo "$as_me: failed program was:" >&5
3922 sed 's/^/| /' conftest.$ac_ext >&5
3924 ac_cv_func_gethostbyname=no
3926 rm -f conftest.err conftest.$ac_objext \
3927 conftest$ac_exeext conftest.$ac_ext
3929 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3930 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3932 if test $ac_cv_func_gethostbyname = no; then
3933 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3934 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3935 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3937 else
3938 ac_check_lib_save_LIBS=$LIBS
3939 LIBS="-lnsl $LIBS"
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3947 /* Override any gcc2 internal prototype to avoid an error. */
3948 #ifdef __cplusplus
3949 extern "C"
3950 #endif
3951 /* We use char because int might match the return type of a gcc2
3952 builtin and then its argument prototype would still apply. */
3953 char gethostbyname ();
3955 main ()
3957 gethostbyname ();
3959 return 0;
3961 _ACEOF
3962 rm -f conftest.$ac_objext conftest$ac_exeext
3963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3964 (eval $ac_link) 2>conftest.er1
3965 ac_status=$?
3966 grep -v '^ *+' conftest.er1 >conftest.err
3967 rm -f conftest.er1
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3973 (eval $ac_try) 2>&5
3974 ac_status=$?
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; } &&
3977 { ac_try='test -s conftest$ac_exeext'
3978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3979 (eval $ac_try) 2>&5
3980 ac_status=$?
3981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3982 (exit $ac_status); }; }; then
3983 ac_cv_lib_nsl_gethostbyname=yes
3984 else
3985 echo "$as_me: failed program was:" >&5
3986 sed 's/^/| /' conftest.$ac_ext >&5
3988 ac_cv_lib_nsl_gethostbyname=no
3990 rm -f conftest.err conftest.$ac_objext \
3991 conftest$ac_exeext conftest.$ac_ext
3992 LIBS=$ac_check_lib_save_LIBS
3994 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3995 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3996 if test $ac_cv_lib_nsl_gethostbyname = yes; then
3997 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4000 if test $ac_cv_lib_nsl_gethostbyname = no; then
4001 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
4002 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
4003 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 ac_check_lib_save_LIBS=$LIBS
4007 LIBS="-lbsd $LIBS"
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4015 /* Override any gcc2 internal prototype to avoid an error. */
4016 #ifdef __cplusplus
4017 extern "C"
4018 #endif
4019 /* We use char because int might match the return type of a gcc2
4020 builtin and then its argument prototype would still apply. */
4021 char gethostbyname ();
4023 main ()
4025 gethostbyname ();
4027 return 0;
4029 _ACEOF
4030 rm -f conftest.$ac_objext conftest$ac_exeext
4031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4032 (eval $ac_link) 2>conftest.er1
4033 ac_status=$?
4034 grep -v '^ *+' conftest.er1 >conftest.err
4035 rm -f conftest.er1
4036 cat conftest.err >&5
4037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4038 (exit $ac_status); } &&
4039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4041 (eval $ac_try) 2>&5
4042 ac_status=$?
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); }; } &&
4045 { ac_try='test -s conftest$ac_exeext'
4046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4047 (eval $ac_try) 2>&5
4048 ac_status=$?
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; }; then
4051 ac_cv_lib_bsd_gethostbyname=yes
4052 else
4053 echo "$as_me: failed program was:" >&5
4054 sed 's/^/| /' conftest.$ac_ext >&5
4056 ac_cv_lib_bsd_gethostbyname=no
4058 rm -f conftest.err conftest.$ac_objext \
4059 conftest$ac_exeext conftest.$ac_ext
4060 LIBS=$ac_check_lib_save_LIBS
4062 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
4063 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
4064 if test $ac_cv_lib_bsd_gethostbyname = yes; then
4065 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
4071 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4072 # socket/setsockopt and other routines are undefined under SCO ODT
4073 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4074 # on later versions), says Simon Leinen: it contains gethostby*
4075 # variants that don't use the name server (or something). -lsocket
4076 # must be given before -lnsl if both are needed. We assume that
4077 # if connect needs -lnsl, so does gethostbyname.
4078 echo "$as_me:$LINENO: checking for connect" >&5
4079 echo $ECHO_N "checking for connect... $ECHO_C" >&6
4080 if test "${ac_cv_func_connect+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 cat >conftest.$ac_ext <<_ACEOF
4084 /* confdefs.h. */
4085 _ACEOF
4086 cat confdefs.h >>conftest.$ac_ext
4087 cat >>conftest.$ac_ext <<_ACEOF
4088 /* end confdefs.h. */
4089 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
4090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4091 #define connect innocuous_connect
4093 /* System header to define __stub macros and hopefully few prototypes,
4094 which can conflict with char connect (); below.
4095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4096 <limits.h> exists even on freestanding compilers. */
4098 #ifdef __STDC__
4099 # include <limits.h>
4100 #else
4101 # include <assert.h>
4102 #endif
4104 #undef connect
4106 /* Override any gcc2 internal prototype to avoid an error. */
4107 #ifdef __cplusplus
4108 extern "C"
4110 #endif
4111 /* We use char because int might match the return type of a gcc2
4112 builtin and then its argument prototype would still apply. */
4113 char connect ();
4114 /* The GNU C library defines this for functions which it implements
4115 to always fail with ENOSYS. Some functions are actually named
4116 something starting with __ and the normal name is an alias. */
4117 #if defined (__stub_connect) || defined (__stub___connect)
4118 choke me
4119 #else
4120 char (*f) () = connect;
4121 #endif
4122 #ifdef __cplusplus
4124 #endif
4127 main ()
4129 return f != connect;
4131 return 0;
4133 _ACEOF
4134 rm -f conftest.$ac_objext conftest$ac_exeext
4135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4136 (eval $ac_link) 2>conftest.er1
4137 ac_status=$?
4138 grep -v '^ *+' conftest.er1 >conftest.err
4139 rm -f conftest.er1
4140 cat conftest.err >&5
4141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4142 (exit $ac_status); } &&
4143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 (eval $ac_try) 2>&5
4146 ac_status=$?
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); }; } &&
4149 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
4155 ac_cv_func_connect=yes
4156 else
4157 echo "$as_me: failed program was:" >&5
4158 sed 's/^/| /' conftest.$ac_ext >&5
4160 ac_cv_func_connect=no
4162 rm -f conftest.err conftest.$ac_objext \
4163 conftest$ac_exeext conftest.$ac_ext
4165 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
4166 echo "${ECHO_T}$ac_cv_func_connect" >&6
4168 if test $ac_cv_func_connect = no; then
4169 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
4170 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4171 if test "${ac_cv_lib_socket_connect+set}" = set; then
4172 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 else
4174 ac_check_lib_save_LIBS=$LIBS
4175 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4176 cat >conftest.$ac_ext <<_ACEOF
4177 /* confdefs.h. */
4178 _ACEOF
4179 cat confdefs.h >>conftest.$ac_ext
4180 cat >>conftest.$ac_ext <<_ACEOF
4181 /* end confdefs.h. */
4183 /* Override any gcc2 internal prototype to avoid an error. */
4184 #ifdef __cplusplus
4185 extern "C"
4186 #endif
4187 /* We use char because int might match the return type of a gcc2
4188 builtin and then its argument prototype would still apply. */
4189 char connect ();
4191 main ()
4193 connect ();
4195 return 0;
4197 _ACEOF
4198 rm -f conftest.$ac_objext conftest$ac_exeext
4199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4200 (eval $ac_link) 2>conftest.er1
4201 ac_status=$?
4202 grep -v '^ *+' conftest.er1 >conftest.err
4203 rm -f conftest.er1
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4206 (exit $ac_status); } &&
4207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4209 (eval $ac_try) 2>&5
4210 ac_status=$?
4211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4212 (exit $ac_status); }; } &&
4213 { ac_try='test -s conftest$ac_exeext'
4214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4215 (eval $ac_try) 2>&5
4216 ac_status=$?
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }; }; then
4219 ac_cv_lib_socket_connect=yes
4220 else
4221 echo "$as_me: failed program was:" >&5
4222 sed 's/^/| /' conftest.$ac_ext >&5
4224 ac_cv_lib_socket_connect=no
4226 rm -f conftest.err conftest.$ac_objext \
4227 conftest$ac_exeext conftest.$ac_ext
4228 LIBS=$ac_check_lib_save_LIBS
4230 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
4231 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4232 if test $ac_cv_lib_socket_connect = yes; then
4233 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4238 # Guillermo Gomez says -lposix is necessary on A/UX.
4239 echo "$as_me:$LINENO: checking for remove" >&5
4240 echo $ECHO_N "checking for remove... $ECHO_C" >&6
4241 if test "${ac_cv_func_remove+set}" = set; then
4242 echo $ECHO_N "(cached) $ECHO_C" >&6
4243 else
4244 cat >conftest.$ac_ext <<_ACEOF
4245 /* confdefs.h. */
4246 _ACEOF
4247 cat confdefs.h >>conftest.$ac_ext
4248 cat >>conftest.$ac_ext <<_ACEOF
4249 /* end confdefs.h. */
4250 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
4251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4252 #define remove innocuous_remove
4254 /* System header to define __stub macros and hopefully few prototypes,
4255 which can conflict with char remove (); below.
4256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4257 <limits.h> exists even on freestanding compilers. */
4259 #ifdef __STDC__
4260 # include <limits.h>
4261 #else
4262 # include <assert.h>
4263 #endif
4265 #undef remove
4267 /* Override any gcc2 internal prototype to avoid an error. */
4268 #ifdef __cplusplus
4269 extern "C"
4271 #endif
4272 /* We use char because int might match the return type of a gcc2
4273 builtin and then its argument prototype would still apply. */
4274 char remove ();
4275 /* The GNU C library defines this for functions which it implements
4276 to always fail with ENOSYS. Some functions are actually named
4277 something starting with __ and the normal name is an alias. */
4278 #if defined (__stub_remove) || defined (__stub___remove)
4279 choke me
4280 #else
4281 char (*f) () = remove;
4282 #endif
4283 #ifdef __cplusplus
4285 #endif
4288 main ()
4290 return f != remove;
4292 return 0;
4294 _ACEOF
4295 rm -f conftest.$ac_objext conftest$ac_exeext
4296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4297 (eval $ac_link) 2>conftest.er1
4298 ac_status=$?
4299 grep -v '^ *+' conftest.er1 >conftest.err
4300 rm -f conftest.er1
4301 cat conftest.err >&5
4302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4303 (exit $ac_status); } &&
4304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 (eval $ac_try) 2>&5
4307 ac_status=$?
4308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309 (exit $ac_status); }; } &&
4310 { ac_try='test -s conftest$ac_exeext'
4311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4312 (eval $ac_try) 2>&5
4313 ac_status=$?
4314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4315 (exit $ac_status); }; }; then
4316 ac_cv_func_remove=yes
4317 else
4318 echo "$as_me: failed program was:" >&5
4319 sed 's/^/| /' conftest.$ac_ext >&5
4321 ac_cv_func_remove=no
4323 rm -f conftest.err conftest.$ac_objext \
4324 conftest$ac_exeext conftest.$ac_ext
4326 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
4327 echo "${ECHO_T}$ac_cv_func_remove" >&6
4329 if test $ac_cv_func_remove = no; then
4330 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
4331 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4332 if test "${ac_cv_lib_posix_remove+set}" = set; then
4333 echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335 ac_check_lib_save_LIBS=$LIBS
4336 LIBS="-lposix $LIBS"
4337 cat >conftest.$ac_ext <<_ACEOF
4338 /* confdefs.h. */
4339 _ACEOF
4340 cat confdefs.h >>conftest.$ac_ext
4341 cat >>conftest.$ac_ext <<_ACEOF
4342 /* end confdefs.h. */
4344 /* Override any gcc2 internal prototype to avoid an error. */
4345 #ifdef __cplusplus
4346 extern "C"
4347 #endif
4348 /* We use char because int might match the return type of a gcc2
4349 builtin and then its argument prototype would still apply. */
4350 char remove ();
4352 main ()
4354 remove ();
4356 return 0;
4358 _ACEOF
4359 rm -f conftest.$ac_objext conftest$ac_exeext
4360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4361 (eval $ac_link) 2>conftest.er1
4362 ac_status=$?
4363 grep -v '^ *+' conftest.er1 >conftest.err
4364 rm -f conftest.er1
4365 cat conftest.err >&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } &&
4368 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 (eval $ac_try) 2>&5
4371 ac_status=$?
4372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4373 (exit $ac_status); }; } &&
4374 { ac_try='test -s conftest$ac_exeext'
4375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4376 (eval $ac_try) 2>&5
4377 ac_status=$?
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); }; }; then
4380 ac_cv_lib_posix_remove=yes
4381 else
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4385 ac_cv_lib_posix_remove=no
4387 rm -f conftest.err conftest.$ac_objext \
4388 conftest$ac_exeext conftest.$ac_ext
4389 LIBS=$ac_check_lib_save_LIBS
4391 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
4392 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4393 if test $ac_cv_lib_posix_remove = yes; then
4394 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4399 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4400 echo "$as_me:$LINENO: checking for shmat" >&5
4401 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4402 if test "${ac_cv_func_shmat+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 cat >conftest.$ac_ext <<_ACEOF
4406 /* confdefs.h. */
4407 _ACEOF
4408 cat confdefs.h >>conftest.$ac_ext
4409 cat >>conftest.$ac_ext <<_ACEOF
4410 /* end confdefs.h. */
4411 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4413 #define shmat innocuous_shmat
4415 /* System header to define __stub macros and hopefully few prototypes,
4416 which can conflict with char shmat (); below.
4417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4418 <limits.h> exists even on freestanding compilers. */
4420 #ifdef __STDC__
4421 # include <limits.h>
4422 #else
4423 # include <assert.h>
4424 #endif
4426 #undef shmat
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 #ifdef __cplusplus
4430 extern "C"
4432 #endif
4433 /* We use char because int might match the return type of a gcc2
4434 builtin and then its argument prototype would still apply. */
4435 char shmat ();
4436 /* The GNU C library defines this for functions which it implements
4437 to always fail with ENOSYS. Some functions are actually named
4438 something starting with __ and the normal name is an alias. */
4439 #if defined (__stub_shmat) || defined (__stub___shmat)
4440 choke me
4441 #else
4442 char (*f) () = shmat;
4443 #endif
4444 #ifdef __cplusplus
4446 #endif
4449 main ()
4451 return f != shmat;
4453 return 0;
4455 _ACEOF
4456 rm -f conftest.$ac_objext conftest$ac_exeext
4457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4458 (eval $ac_link) 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } &&
4465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4467 (eval $ac_try) 2>&5
4468 ac_status=$?
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest$ac_exeext'
4472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4473 (eval $ac_try) 2>&5
4474 ac_status=$?
4475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4476 (exit $ac_status); }; }; then
4477 ac_cv_func_shmat=yes
4478 else
4479 echo "$as_me: failed program was:" >&5
4480 sed 's/^/| /' conftest.$ac_ext >&5
4482 ac_cv_func_shmat=no
4484 rm -f conftest.err conftest.$ac_objext \
4485 conftest$ac_exeext conftest.$ac_ext
4487 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
4488 echo "${ECHO_T}$ac_cv_func_shmat" >&6
4490 if test $ac_cv_func_shmat = no; then
4491 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
4492 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4493 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4494 echo $ECHO_N "(cached) $ECHO_C" >&6
4495 else
4496 ac_check_lib_save_LIBS=$LIBS
4497 LIBS="-lipc $LIBS"
4498 cat >conftest.$ac_ext <<_ACEOF
4499 /* confdefs.h. */
4500 _ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 #ifdef __cplusplus
4507 extern "C"
4508 #endif
4509 /* We use char because int might match the return type of a gcc2
4510 builtin and then its argument prototype would still apply. */
4511 char shmat ();
4513 main ()
4515 shmat ();
4517 return 0;
4519 _ACEOF
4520 rm -f conftest.$ac_objext conftest$ac_exeext
4521 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4522 (eval $ac_link) 2>conftest.er1
4523 ac_status=$?
4524 grep -v '^ *+' conftest.er1 >conftest.err
4525 rm -f conftest.er1
4526 cat conftest.err >&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); } &&
4529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4531 (eval $ac_try) 2>&5
4532 ac_status=$?
4533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4534 (exit $ac_status); }; } &&
4535 { ac_try='test -s conftest$ac_exeext'
4536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4537 (eval $ac_try) 2>&5
4538 ac_status=$?
4539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4540 (exit $ac_status); }; }; then
4541 ac_cv_lib_ipc_shmat=yes
4542 else
4543 echo "$as_me: failed program was:" >&5
4544 sed 's/^/| /' conftest.$ac_ext >&5
4546 ac_cv_lib_ipc_shmat=no
4548 rm -f conftest.err conftest.$ac_objext \
4549 conftest$ac_exeext conftest.$ac_ext
4550 LIBS=$ac_check_lib_save_LIBS
4552 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
4553 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4554 if test $ac_cv_lib_ipc_shmat = yes; then
4555 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4561 # Check for libraries that X11R6 Xt/Xaw programs need.
4562 ac_save_LDFLAGS=$LDFLAGS
4563 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4564 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4565 # check for ICE first), but we must link in the order -lSM -lICE or
4566 # we get undefined symbols. So assume we have SM if we have ICE.
4567 # These have to be linked with before -lX11, unlike the other
4568 # libraries we check for below, so use a different variable.
4569 # John Interrante, Karl Berry
4570 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
4571 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4572 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 ac_check_lib_save_LIBS=$LIBS
4576 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4584 /* Override any gcc2 internal prototype to avoid an error. */
4585 #ifdef __cplusplus
4586 extern "C"
4587 #endif
4588 /* We use char because int might match the return type of a gcc2
4589 builtin and then its argument prototype would still apply. */
4590 char IceConnectionNumber ();
4592 main ()
4594 IceConnectionNumber ();
4596 return 0;
4598 _ACEOF
4599 rm -f conftest.$ac_objext conftest$ac_exeext
4600 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4601 (eval $ac_link) 2>conftest.er1
4602 ac_status=$?
4603 grep -v '^ *+' conftest.er1 >conftest.err
4604 rm -f conftest.er1
4605 cat conftest.err >&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } &&
4608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 (eval $ac_try) 2>&5
4611 ac_status=$?
4612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4613 (exit $ac_status); }; } &&
4614 { ac_try='test -s conftest$ac_exeext'
4615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616 (eval $ac_try) 2>&5
4617 ac_status=$?
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); }; }; then
4620 ac_cv_lib_ICE_IceConnectionNumber=yes
4621 else
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4625 ac_cv_lib_ICE_IceConnectionNumber=no
4627 rm -f conftest.err conftest.$ac_objext \
4628 conftest$ac_exeext conftest.$ac_ext
4629 LIBS=$ac_check_lib_save_LIBS
4631 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
4632 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4633 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
4634 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4637 LDFLAGS=$ac_save_LDFLAGS
4641 if test "x$no_x" != xyes ; then
4642 CFLAGS="$CFLAGS $X_CFLAGS"
4643 CXXFLAGS="$CXXFLAGS $X_CFLAGS"
4644 LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
4648 echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5
4649 echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6
4650 if test "${ac_cv_lib_vga_vga_init+set}" = set; then
4651 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 else
4653 ac_check_lib_save_LIBS=$LIBS
4654 LIBS="-lvga $LIBS"
4655 cat >conftest.$ac_ext <<_ACEOF
4656 /* confdefs.h. */
4657 _ACEOF
4658 cat confdefs.h >>conftest.$ac_ext
4659 cat >>conftest.$ac_ext <<_ACEOF
4660 /* end confdefs.h. */
4662 /* Override any gcc2 internal prototype to avoid an error. */
4663 #ifdef __cplusplus
4664 extern "C"
4665 #endif
4666 /* We use char because int might match the return type of a gcc2
4667 builtin and then its argument prototype would still apply. */
4668 char vga_init ();
4670 main ()
4672 vga_init ();
4674 return 0;
4676 _ACEOF
4677 rm -f conftest.$ac_objext conftest$ac_exeext
4678 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4679 (eval $ac_link) 2>conftest.er1
4680 ac_status=$?
4681 grep -v '^ *+' conftest.er1 >conftest.err
4682 rm -f conftest.er1
4683 cat conftest.err >&5
4684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4685 (exit $ac_status); } &&
4686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4688 (eval $ac_try) 2>&5
4689 ac_status=$?
4690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4691 (exit $ac_status); }; } &&
4692 { ac_try='test -s conftest$ac_exeext'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4694 (eval $ac_try) 2>&5
4695 ac_status=$?
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; }; then
4698 ac_cv_lib_vga_vga_init=yes
4699 else
4700 echo "$as_me: failed program was:" >&5
4701 sed 's/^/| /' conftest.$ac_ext >&5
4703 ac_cv_lib_vga_vga_init=no
4705 rm -f conftest.err conftest.$ac_objext \
4706 conftest$ac_exeext conftest.$ac_ext
4707 LIBS=$ac_check_lib_save_LIBS
4709 echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5
4710 echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6
4711 if test $ac_cv_lib_vga_vga_init = yes; then
4712 cat >>confdefs.h <<_ACEOF
4713 #define HAVE_LIBVGA 1
4714 _ACEOF
4716 LIBS="-lvga $LIBS"
4721 SDL_VERSION=1.2.0
4723 # Check whether --with-sdl-prefix or --without-sdl-prefix was given.
4724 if test "${with_sdl_prefix+set}" = set; then
4725 withval="$with_sdl_prefix"
4726 sdl_prefix="$withval"
4727 else
4728 sdl_prefix=""
4731 # Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
4732 if test "${with_sdl_exec_prefix+set}" = set; then
4733 withval="$with_sdl_exec_prefix"
4734 sdl_exec_prefix="$withval"
4735 else
4736 sdl_exec_prefix=""
4738 # Check whether --enable-sdltest or --disable-sdltest was given.
4739 if test "${enable_sdltest+set}" = set; then
4740 enableval="$enable_sdltest"
4742 else
4743 enable_sdltest=yes
4746 if test x$sdl_exec_prefix != x ; then
4747 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
4748 if test x${SDL_CONFIG+set} != xset ; then
4749 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
4752 if test x$sdl_prefix != x ; then
4753 sdl_args="$sdl_args --prefix=$sdl_prefix"
4754 if test x${SDL_CONFIG+set} != xset ; then
4755 SDL_CONFIG=$sdl_prefix/bin/sdl-config
4760 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
4761 # Extract the first word of "sdl-config", so it can be a program name with args.
4762 set dummy sdl-config; ac_word=$2
4763 echo "$as_me:$LINENO: checking for $ac_word" >&5
4764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4765 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
4766 echo $ECHO_N "(cached) $ECHO_C" >&6
4767 else
4768 case $SDL_CONFIG in
4769 [\\/]* | ?:[\\/]*)
4770 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4787 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
4789 esac
4791 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
4793 if test -n "$SDL_CONFIG"; then
4794 echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
4795 echo "${ECHO_T}$SDL_CONFIG" >&6
4796 else
4797 echo "$as_me:$LINENO: result: no" >&5
4798 echo "${ECHO_T}no" >&6
4801 min_sdl_version=$SDL_VERSION
4802 echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
4803 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
4804 no_sdl=""
4805 if test "$SDL_CONFIG" = "no" ; then
4806 no_sdl=yes
4807 else
4808 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
4809 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
4811 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
4812 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4813 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
4814 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4815 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
4816 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4817 if test "x$enable_sdltest" = "xyes" ; then
4818 ac_save_CFLAGS="$CFLAGS"
4819 ac_save_CXXFLAGS="$CXXFLAGS"
4820 ac_save_LIBS="$LIBS"
4821 CFLAGS="$CFLAGS $SDL_CFLAGS"
4822 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4823 LIBS="$LIBS $SDL_LIBS"
4824 rm -f conf.sdltest
4825 if test "$cross_compiling" = yes; then
4826 echo $ac_n "cross compiling; assumed OK... $ac_c"
4827 else
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4835 #include <stdio.h>
4836 #include <stdlib.h>
4837 #include <string.h>
4838 #include "SDL.h"
4840 char*
4841 my_strdup (char *str)
4843 char *new_str;
4845 if (str)
4847 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
4848 strcpy (new_str, str);
4850 else
4851 new_str = NULL;
4853 return new_str;
4856 int main (int argc, char *argv[])
4858 int major, minor, micro;
4859 char *tmp_version;
4861 /* This hangs on some systems (?)
4862 system ("touch conf.sdltest");
4864 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
4866 /* HP/UX 9 (%@#!) writes to sscanf strings */
4867 tmp_version = my_strdup("$min_sdl_version");
4868 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4869 printf("%s, bad version string\n", "$min_sdl_version");
4870 exit(1);
4873 if (($sdl_major_version > major) ||
4874 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
4875 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
4877 return 0;
4879 else
4881 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
4882 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
4883 printf("*** best to upgrade to the required version.\n");
4884 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
4885 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
4886 printf("*** config.cache before re-running configure\n");
4887 return 1;
4892 _ACEOF
4893 rm -f conftest$ac_exeext
4894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4895 (eval $ac_link) 2>&5
4896 ac_status=$?
4897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4898 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900 (eval $ac_try) 2>&5
4901 ac_status=$?
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); }; }; then
4905 else
4906 echo "$as_me: program exited with status $ac_status" >&5
4907 echo "$as_me: failed program was:" >&5
4908 sed 's/^/| /' conftest.$ac_ext >&5
4910 ( exit $ac_status )
4911 no_sdl=yes
4913 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4915 CFLAGS="$ac_save_CFLAGS"
4916 LIBS="$ac_save_LIBS"
4919 if test "x$no_sdl" = x ; then
4920 echo "$as_me:$LINENO: result: yes" >&5
4921 echo "${ECHO_T}yes" >&6
4922 cat >>confdefs.h <<\_ACEOF
4923 #define HAVE_SDL 1
4924 _ACEOF
4926 else
4927 echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6
4929 if test "$SDL_CONFIG" = "no" ; then
4930 echo "*** The sdl-config script installed by SDL could not be found"
4931 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
4932 echo "*** your path, or set the SDL_CONFIG environment variable to the"
4933 echo "*** full path to sdl-config."
4934 else
4935 if test -f conf.sdltest ; then
4937 else
4938 echo "*** Could not run SDL test program, checking why..."
4939 CFLAGS="$CFLAGS $SDL_CFLAGS"
4940 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
4941 LIBS="$LIBS $SDL_LIBS"
4942 cat >conftest.$ac_ext <<_ACEOF
4943 /* confdefs.h. */
4944 _ACEOF
4945 cat confdefs.h >>conftest.$ac_ext
4946 cat >>conftest.$ac_ext <<_ACEOF
4947 /* end confdefs.h. */
4949 #include <stdio.h>
4950 #include "SDL.h"
4952 int main(int argc, char *argv[])
4953 { return 0; }
4954 #undef main
4955 #define main K_and_R_C_main
4958 main ()
4960 return 0;
4962 return 0;
4964 _ACEOF
4965 rm -f conftest.$ac_objext conftest$ac_exeext
4966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4967 (eval $ac_link) 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } &&
4974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4976 (eval $ac_try) 2>&5
4977 ac_status=$?
4978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4979 (exit $ac_status); }; } &&
4980 { ac_try='test -s conftest$ac_exeext'
4981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4982 (eval $ac_try) 2>&5
4983 ac_status=$?
4984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4985 (exit $ac_status); }; }; then
4986 echo "*** The test program compiled, but did not run. This usually means"
4987 echo "*** that the run-time linker is not finding SDL or finding the wrong"
4988 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
4989 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4990 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4991 echo "*** is required on your system"
4992 echo "***"
4993 echo "*** If you have an old version installed, it is best to remove it, although"
4994 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 sed 's/^/| /' conftest.$ac_ext >&5
4999 echo "*** The test program failed to compile or link. See the file config.log for the"
5000 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
5001 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
5002 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
5004 rm -f conftest.err conftest.$ac_objext \
5005 conftest$ac_exeext conftest.$ac_ext
5006 CFLAGS="$ac_save_CFLAGS"
5007 CXXFLAGS="$ac_save_CXXFLAGS"
5008 LIBS="$ac_save_LIBS"
5011 SDL_CFLAGS=""
5012 SDL_CXXFLAGS=""
5013 SDL_LIBS=""
5019 rm -f conf.sdltest
5021 CFLAGS="$CFLAGS $SDL_CFLAGS"
5022 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
5023 LIBS="$LIBS $SDL_LIBS"
5026 echo "$as_me:$LINENO: checking for esd_record_stream_fallback in -lesd" >&5
5027 echo $ECHO_N "checking for esd_record_stream_fallback in -lesd... $ECHO_C" >&6
5028 if test "${ac_cv_lib_esd_esd_record_stream_fallback+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 else
5031 ac_check_lib_save_LIBS=$LIBS
5032 LIBS="-lesd $LIBS"
5033 cat >conftest.$ac_ext <<_ACEOF
5034 /* confdefs.h. */
5035 _ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 /* Override any gcc2 internal prototype to avoid an error. */
5041 #ifdef __cplusplus
5042 extern "C"
5043 #endif
5044 /* We use char because int might match the return type of a gcc2
5045 builtin and then its argument prototype would still apply. */
5046 char esd_record_stream_fallback ();
5048 main ()
5050 esd_record_stream_fallback ();
5052 return 0;
5054 _ACEOF
5055 rm -f conftest.$ac_objext conftest$ac_exeext
5056 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5057 (eval $ac_link) 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } &&
5064 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5066 (eval $ac_try) 2>&5
5067 ac_status=$?
5068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069 (exit $ac_status); }; } &&
5070 { ac_try='test -s conftest$ac_exeext'
5071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5072 (eval $ac_try) 2>&5
5073 ac_status=$?
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); }; }; then
5076 ac_cv_lib_esd_esd_record_stream_fallback=yes
5077 else
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081 ac_cv_lib_esd_esd_record_stream_fallback=no
5083 rm -f conftest.err conftest.$ac_objext \
5084 conftest$ac_exeext conftest.$ac_ext
5085 LIBS=$ac_check_lib_save_LIBS
5087 echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_record_stream_fallback" >&5
5088 echo "${ECHO_T}$ac_cv_lib_esd_esd_record_stream_fallback" >&6
5089 if test $ac_cv_lib_esd_esd_record_stream_fallback = yes; then
5090 cat >>confdefs.h <<_ACEOF
5091 #define HAVE_LIBESD 1
5092 _ACEOF
5094 LIBS="-lesd $LIBS"
5099 ac_config_files="$ac_config_files Makefile"
5100 cat >confcache <<\_ACEOF
5101 # This file is a shell script that caches the results of configure
5102 # tests run on this system so they can be shared between configure
5103 # scripts and configure runs, see configure's option --config-cache.
5104 # It is not useful on other systems. If it contains results you don't
5105 # want to keep, you may remove or edit it.
5107 # config.status only pays attention to the cache file if you give it
5108 # the --recheck option to rerun configure.
5110 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5111 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5112 # following values.
5114 _ACEOF
5116 # The following way of writing the cache mishandles newlines in values,
5117 # but we know of no workaround that is simple, portable, and efficient.
5118 # So, don't put newlines in cache variables' values.
5119 # Ultrix sh set writes to stderr and can't be redirected directly,
5120 # and sets the high bit in the cache file unless we assign to the vars.
5122 (set) 2>&1 |
5123 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5124 *ac_space=\ *)
5125 # `set' does not quote correctly, so add quotes (double-quote
5126 # substitution turns \\\\ into \\, and sed turns \\ into \).
5127 sed -n \
5128 "s/'/'\\\\''/g;
5129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5132 # `set' quotes correctly as required by POSIX, so do not add quotes.
5133 sed -n \
5134 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5136 esac;
5138 sed '
5139 t clear
5140 : clear
5141 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5142 t end
5143 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5144 : end' >>confcache
5145 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5146 if test -w $cache_file; then
5147 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5148 cat confcache >$cache_file
5149 else
5150 echo "not updating unwritable cache $cache_file"
5153 rm -f confcache
5155 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5156 # Let make expand exec_prefix.
5157 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5159 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5160 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5161 # trailing colons and then remove the whole line if VPATH becomes empty
5162 # (actually we leave an empty line to preserve line numbers).
5163 if test "x$srcdir" = x.; then
5164 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5165 s/:*\$(srcdir):*/:/;
5166 s/:*\${srcdir}:*/:/;
5167 s/:*@srcdir@:*/:/;
5168 s/^\([^=]*=[ ]*\):*/\1/;
5169 s/:*$//;
5170 s/^[^=]*=[ ]*$//;
5174 DEFS=-DHAVE_CONFIG_H
5176 ac_libobjs=
5177 ac_ltlibobjs=
5178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5179 # 1. Remove the extension, and $U if already installed.
5180 ac_i=`echo "$ac_i" |
5181 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5182 # 2. Add them.
5183 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5184 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5185 done
5186 LIBOBJS=$ac_libobjs
5188 LTLIBOBJS=$ac_ltlibobjs
5192 : ${CONFIG_STATUS=./config.status}
5193 ac_clean_files_save=$ac_clean_files
5194 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5195 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5196 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5197 cat >$CONFIG_STATUS <<_ACEOF
5198 #! $SHELL
5199 # Generated by $as_me.
5200 # Run this file to recreate the current configuration.
5201 # Compiler output produced by configure, useful for debugging
5202 # configure, is in config.log if it exists.
5204 debug=false
5205 ac_cs_recheck=false
5206 ac_cs_silent=false
5207 SHELL=\${CONFIG_SHELL-$SHELL}
5208 _ACEOF
5210 cat >>$CONFIG_STATUS <<\_ACEOF
5211 ## --------------------- ##
5212 ## M4sh Initialization. ##
5213 ## --------------------- ##
5215 # Be Bourne compatible
5216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5217 emulate sh
5218 NULLCMD=:
5219 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5220 # is contrary to our usage. Disable this feature.
5221 alias -g '${1+"$@"}'='"$@"'
5222 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5223 set -o posix
5225 DUALCASE=1; export DUALCASE # for MKS sh
5227 # Support unset when possible.
5228 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5229 as_unset=unset
5230 else
5231 as_unset=false
5235 # Work around bugs in pre-3.0 UWIN ksh.
5236 $as_unset ENV MAIL MAILPATH
5237 PS1='$ '
5238 PS2='> '
5239 PS4='+ '
5241 # NLS nuisances.
5242 for as_var in \
5243 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5244 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5245 LC_TELEPHONE LC_TIME
5247 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5248 eval $as_var=C; export $as_var
5249 else
5250 $as_unset $as_var
5252 done
5254 # Required to use basename.
5255 if expr a : '\(a\)' >/dev/null 2>&1; then
5256 as_expr=expr
5257 else
5258 as_expr=false
5261 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5262 as_basename=basename
5263 else
5264 as_basename=false
5268 # Name of the executable.
5269 as_me=`$as_basename "$0" ||
5270 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5271 X"$0" : 'X\(//\)$' \| \
5272 X"$0" : 'X\(/\)$' \| \
5273 . : '\(.\)' 2>/dev/null ||
5274 echo X/"$0" |
5275 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5276 /^X\/\(\/\/\)$/{ s//\1/; q; }
5277 /^X\/\(\/\).*/{ s//\1/; q; }
5278 s/.*/./; q'`
5281 # PATH needs CR, and LINENO needs CR and PATH.
5282 # Avoid depending upon Character Ranges.
5283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5286 as_cr_digits='0123456789'
5287 as_cr_alnum=$as_cr_Letters$as_cr_digits
5289 # The user is always right.
5290 if test "${PATH_SEPARATOR+set}" != set; then
5291 echo "#! /bin/sh" >conf$$.sh
5292 echo "exit 0" >>conf$$.sh
5293 chmod +x conf$$.sh
5294 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5295 PATH_SEPARATOR=';'
5296 else
5297 PATH_SEPARATOR=:
5299 rm -f conf$$.sh
5303 as_lineno_1=$LINENO
5304 as_lineno_2=$LINENO
5305 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5306 test "x$as_lineno_1" != "x$as_lineno_2" &&
5307 test "x$as_lineno_3" = "x$as_lineno_2" || {
5308 # Find who we are. Look in the path if we contain no path at all
5309 # relative or not.
5310 case $0 in
5311 *[\\/]* ) as_myself=$0 ;;
5312 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5315 IFS=$as_save_IFS
5316 test -z "$as_dir" && as_dir=.
5317 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5318 done
5321 esac
5322 # We did not find ourselves, most probably we were run as `sh COMMAND'
5323 # in which case we are not to be found in the path.
5324 if test "x$as_myself" = x; then
5325 as_myself=$0
5327 if test ! -f "$as_myself"; then
5328 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5329 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5330 { (exit 1); exit 1; }; }
5332 case $CONFIG_SHELL in
5334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5335 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5337 IFS=$as_save_IFS
5338 test -z "$as_dir" && as_dir=.
5339 for as_base in sh bash ksh sh5; do
5340 case $as_dir in
5342 if ("$as_dir/$as_base" -c '
5343 as_lineno_1=$LINENO
5344 as_lineno_2=$LINENO
5345 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5346 test "x$as_lineno_1" != "x$as_lineno_2" &&
5347 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
5348 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5349 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5350 CONFIG_SHELL=$as_dir/$as_base
5351 export CONFIG_SHELL
5352 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5353 fi;;
5354 esac
5355 done
5356 done
5358 esac
5360 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5361 # uniformly replaced by the line number. The first 'sed' inserts a
5362 # line-number line before each line; the second 'sed' does the real
5363 # work. The second script uses 'N' to pair each line-number line
5364 # with the numbered line, and appends trailing '-' during
5365 # substitution so that $LINENO is not a special case at line end.
5366 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5367 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
5368 sed '=' <$as_myself |
5369 sed '
5371 s,$,-,
5372 : loop
5373 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5374 t loop
5375 s,-$,,
5376 s,^['$as_cr_digits']*\n,,
5377 ' >$as_me.lineno &&
5378 chmod +x $as_me.lineno ||
5379 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5380 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5381 { (exit 1); exit 1; }; }
5383 # Don't try to exec as it changes $[0], causing all sort of problems
5384 # (the dirname of $[0] is not the place where we might find the
5385 # original and so on. Autoconf is especially sensible to this).
5386 . ./$as_me.lineno
5387 # Exit status is that of the last command.
5388 exit
5392 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5393 *c*,-n*) ECHO_N= ECHO_C='
5394 ' ECHO_T=' ' ;;
5395 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5396 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
5397 esac
5399 if expr a : '\(a\)' >/dev/null 2>&1; then
5400 as_expr=expr
5401 else
5402 as_expr=false
5405 rm -f conf$$ conf$$.exe conf$$.file
5406 echo >conf$$.file
5407 if ln -s conf$$.file conf$$ 2>/dev/null; then
5408 # We could just check for DJGPP; but this test a) works b) is more generic
5409 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5410 if test -f conf$$.exe; then
5411 # Don't use ln at all; we don't have any links
5412 as_ln_s='cp -p'
5413 else
5414 as_ln_s='ln -s'
5416 elif ln conf$$.file conf$$ 2>/dev/null; then
5417 as_ln_s=ln
5418 else
5419 as_ln_s='cp -p'
5421 rm -f conf$$ conf$$.exe conf$$.file
5423 if mkdir -p . 2>/dev/null; then
5424 as_mkdir_p=:
5425 else
5426 test -d ./-p && rmdir ./-p
5427 as_mkdir_p=false
5430 as_executable_p="test -f"
5432 # Sed expression to map a string onto a valid CPP name.
5433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5435 # Sed expression to map a string onto a valid variable name.
5436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5439 # IFS
5440 # We need space, tab and new line, in precisely that order.
5441 as_nl='
5443 IFS=" $as_nl"
5445 # CDPATH.
5446 $as_unset CDPATH
5448 exec 6>&1
5450 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5451 # report actual input values of CONFIG_FILES etc. instead of their
5452 # values after options handling. Logging --version etc. is OK.
5453 exec 5>>config.log
5455 echo
5456 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5457 ## Running $as_me. ##
5458 _ASBOX
5459 } >&5
5460 cat >&5 <<_CSEOF
5462 This file was extended by $as_me, which was
5463 generated by GNU Autoconf 2.59. Invocation command line was
5465 CONFIG_FILES = $CONFIG_FILES
5466 CONFIG_HEADERS = $CONFIG_HEADERS
5467 CONFIG_LINKS = $CONFIG_LINKS
5468 CONFIG_COMMANDS = $CONFIG_COMMANDS
5469 $ $0 $@
5471 _CSEOF
5472 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5473 echo >&5
5474 _ACEOF
5476 # Files that config.status was made for.
5477 if test -n "$ac_config_files"; then
5478 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5481 if test -n "$ac_config_headers"; then
5482 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5485 if test -n "$ac_config_links"; then
5486 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5489 if test -n "$ac_config_commands"; then
5490 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5493 cat >>$CONFIG_STATUS <<\_ACEOF
5495 ac_cs_usage="\
5496 \`$as_me' instantiates files from templates according to the
5497 current configuration.
5499 Usage: $0 [OPTIONS] [FILE]...
5501 -h, --help print this help, then exit
5502 -V, --version print version number, then exit
5503 -q, --quiet do not print progress messages
5504 -d, --debug don't remove temporary files
5505 --recheck update $as_me by reconfiguring in the same conditions
5506 --file=FILE[:TEMPLATE]
5507 instantiate the configuration file FILE
5508 --header=FILE[:TEMPLATE]
5509 instantiate the configuration header FILE
5511 Configuration files:
5512 $config_files
5514 Configuration headers:
5515 $config_headers
5517 Configuration commands:
5518 $config_commands
5520 Report bugs to <bug-autoconf@gnu.org>."
5521 _ACEOF
5523 cat >>$CONFIG_STATUS <<_ACEOF
5524 ac_cs_version="\\
5525 config.status
5526 configured by $0, generated by GNU Autoconf 2.59,
5527 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5529 Copyright (C) 2003 Free Software Foundation, Inc.
5530 This config.status script is free software; the Free Software Foundation
5531 gives unlimited permission to copy, distribute and modify it."
5532 srcdir=$srcdir
5533 INSTALL="$INSTALL"
5534 _ACEOF
5536 cat >>$CONFIG_STATUS <<\_ACEOF
5537 # If no file are specified by the user, then we need to provide default
5538 # value. By we need to know if files were specified by the user.
5539 ac_need_defaults=:
5540 while test $# != 0
5542 case $1 in
5543 --*=*)
5544 ac_option=`expr "x$1" : 'x\([^=]*\)='`
5545 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5546 ac_shift=:
5549 ac_option=$1
5550 ac_optarg=$2
5551 ac_shift=shift
5553 *) # This is not an option, so the user has probably given explicit
5554 # arguments.
5555 ac_option=$1
5556 ac_need_defaults=false;;
5557 esac
5559 case $ac_option in
5560 # Handling of the options.
5561 _ACEOF
5562 cat >>$CONFIG_STATUS <<\_ACEOF
5563 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5564 ac_cs_recheck=: ;;
5565 --version | --vers* | -V )
5566 echo "$ac_cs_version"; exit 0 ;;
5567 --he | --h)
5568 # Conflict between --help and --header
5569 { { echo "$as_me:$LINENO: error: ambiguous option: $1
5570 Try \`$0 --help' for more information." >&5
5571 echo "$as_me: error: ambiguous option: $1
5572 Try \`$0 --help' for more information." >&2;}
5573 { (exit 1); exit 1; }; };;
5574 --help | --hel | -h )
5575 echo "$ac_cs_usage"; exit 0 ;;
5576 --debug | --d* | -d )
5577 debug=: ;;
5578 --file | --fil | --fi | --f )
5579 $ac_shift
5580 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5581 ac_need_defaults=false;;
5582 --header | --heade | --head | --hea )
5583 $ac_shift
5584 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5585 ac_need_defaults=false;;
5586 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5587 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5588 ac_cs_silent=: ;;
5590 # This is an error.
5591 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5592 Try \`$0 --help' for more information." >&5
5593 echo "$as_me: error: unrecognized option: $1
5594 Try \`$0 --help' for more information." >&2;}
5595 { (exit 1); exit 1; }; } ;;
5597 *) ac_config_targets="$ac_config_targets $1" ;;
5599 esac
5600 shift
5601 done
5603 ac_configure_extra_args=
5605 if $ac_cs_silent; then
5606 exec 6>/dev/null
5607 ac_configure_extra_args="$ac_configure_extra_args --silent"
5610 _ACEOF
5611 cat >>$CONFIG_STATUS <<_ACEOF
5612 if \$ac_cs_recheck; then
5613 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5614 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5617 _ACEOF
5619 cat >>$CONFIG_STATUS <<_ACEOF
5621 # INIT-COMMANDS section.
5626 _ACEOF
5630 cat >>$CONFIG_STATUS <<\_ACEOF
5631 for ac_config_target in $ac_config_targets
5633 case "$ac_config_target" in
5634 # Handling of arguments.
5635 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5636 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
5637 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5638 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5639 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5640 { (exit 1); exit 1; }; };;
5641 esac
5642 done
5644 # If the user did not use the arguments to specify the items to instantiate,
5645 # then the envvar interface is used. Set only those that are not.
5646 # We use the long form for the default assignment because of an extremely
5647 # bizarre bug on SunOS 4.1.3.
5648 if $ac_need_defaults; then
5649 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5650 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5651 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5654 # Have a temporary directory for convenience. Make it in the build tree
5655 # simply because there is no reason to put it here, and in addition,
5656 # creating and moving files from /tmp can sometimes cause problems.
5657 # Create a temporary directory, and hook for its removal unless debugging.
5658 $debug ||
5660 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5661 trap '{ (exit 1); exit 1; }' 1 2 13 15
5664 # Create a (secure) tmp directory for tmp files.
5667 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5668 test -n "$tmp" && test -d "$tmp"
5669 } ||
5671 tmp=./confstat$$-$RANDOM
5672 (umask 077 && mkdir $tmp)
5673 } ||
5675 echo "$me: cannot create a temporary directory in ." >&2
5676 { (exit 1); exit 1; }
5679 _ACEOF
5681 cat >>$CONFIG_STATUS <<_ACEOF
5684 # CONFIG_FILES section.
5687 # No need to generate the scripts if there are no CONFIG_FILES.
5688 # This happens for instance when ./config.status config.h
5689 if test -n "\$CONFIG_FILES"; then
5690 # Protect against being on the right side of a sed subst in config.status.
5691 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5692 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5693 s,@SHELL@,$SHELL,;t t
5694 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5695 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5696 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5697 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5698 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5699 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5700 s,@exec_prefix@,$exec_prefix,;t t
5701 s,@prefix@,$prefix,;t t
5702 s,@program_transform_name@,$program_transform_name,;t t
5703 s,@bindir@,$bindir,;t t
5704 s,@sbindir@,$sbindir,;t t
5705 s,@libexecdir@,$libexecdir,;t t
5706 s,@datadir@,$datadir,;t t
5707 s,@sysconfdir@,$sysconfdir,;t t
5708 s,@sharedstatedir@,$sharedstatedir,;t t
5709 s,@localstatedir@,$localstatedir,;t t
5710 s,@libdir@,$libdir,;t t
5711 s,@includedir@,$includedir,;t t
5712 s,@oldincludedir@,$oldincludedir,;t t
5713 s,@infodir@,$infodir,;t t
5714 s,@mandir@,$mandir,;t t
5715 s,@build_alias@,$build_alias,;t t
5716 s,@host_alias@,$host_alias,;t t
5717 s,@target_alias@,$target_alias,;t t
5718 s,@DEFS@,$DEFS,;t t
5719 s,@ECHO_C@,$ECHO_C,;t t
5720 s,@ECHO_N@,$ECHO_N,;t t
5721 s,@ECHO_T@,$ECHO_T,;t t
5722 s,@LIBS@,$LIBS,;t t
5723 s,@build@,$build,;t t
5724 s,@build_cpu@,$build_cpu,;t t
5725 s,@build_vendor@,$build_vendor,;t t
5726 s,@build_os@,$build_os,;t t
5727 s,@host@,$host,;t t
5728 s,@host_cpu@,$host_cpu,;t t
5729 s,@host_vendor@,$host_vendor,;t t
5730 s,@host_os@,$host_os,;t t
5731 s,@target@,$target,;t t
5732 s,@target_cpu@,$target_cpu,;t t
5733 s,@target_vendor@,$target_vendor,;t t
5734 s,@target_os@,$target_os,;t t
5735 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5736 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5737 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5738 s,@PACKAGE@,$PACKAGE,;t t
5739 s,@VERSION@,$VERSION,;t t
5740 s,@ACLOCAL@,$ACLOCAL,;t t
5741 s,@AUTOCONF@,$AUTOCONF,;t t
5742 s,@AUTOMAKE@,$AUTOMAKE,;t t
5743 s,@AUTOHEADER@,$AUTOHEADER,;t t
5744 s,@MAKEINFO@,$MAKEINFO,;t t
5745 s,@SET_MAKE@,$SET_MAKE,;t t
5746 s,@CC@,$CC,;t t
5747 s,@CFLAGS@,$CFLAGS,;t t
5748 s,@LDFLAGS@,$LDFLAGS,;t t
5749 s,@CPPFLAGS@,$CPPFLAGS,;t t
5750 s,@ac_ct_CC@,$ac_ct_CC,;t t
5751 s,@EXEEXT@,$EXEEXT,;t t
5752 s,@OBJEXT@,$OBJEXT,;t t
5753 s,@CXX@,$CXX,;t t
5754 s,@CXXFLAGS@,$CXXFLAGS,;t t
5755 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
5756 s,@CPP@,$CPP,;t t
5757 s,@X_CFLAGS@,$X_CFLAGS,;t t
5758 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
5759 s,@X_LIBS@,$X_LIBS,;t t
5760 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
5761 s,@SDL_CONFIG@,$SDL_CONFIG,;t t
5762 s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
5763 s,@SDL_LIBS@,$SDL_LIBS,;t t
5764 s,@LIBOBJS@,$LIBOBJS,;t t
5765 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5766 CEOF
5768 _ACEOF
5770 cat >>$CONFIG_STATUS <<\_ACEOF
5771 # Split the substitutions into bite-sized pieces for seds with
5772 # small command number limits, like on Digital OSF/1 and HP-UX.
5773 ac_max_sed_lines=48
5774 ac_sed_frag=1 # Number of current file.
5775 ac_beg=1 # First line for current file.
5776 ac_end=$ac_max_sed_lines # Line after last line for current file.
5777 ac_more_lines=:
5778 ac_sed_cmds=
5779 while $ac_more_lines; do
5780 if test $ac_beg -gt 1; then
5781 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5782 else
5783 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5785 if test ! -s $tmp/subs.frag; then
5786 ac_more_lines=false
5787 else
5788 # The purpose of the label and of the branching condition is to
5789 # speed up the sed processing (if there are no `@' at all, there
5790 # is no need to browse any of the substitutions).
5791 # These are the two extra sed commands mentioned above.
5792 (echo ':t
5793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5794 if test -z "$ac_sed_cmds"; then
5795 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5796 else
5797 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5799 ac_sed_frag=`expr $ac_sed_frag + 1`
5800 ac_beg=$ac_end
5801 ac_end=`expr $ac_end + $ac_max_sed_lines`
5803 done
5804 if test -z "$ac_sed_cmds"; then
5805 ac_sed_cmds=cat
5807 fi # test -n "$CONFIG_FILES"
5809 _ACEOF
5810 cat >>$CONFIG_STATUS <<\_ACEOF
5811 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5812 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5813 case $ac_file in
5814 - | *:- | *:-:* ) # input from stdin
5815 cat >$tmp/stdin
5816 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5818 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5819 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5820 * ) ac_file_in=$ac_file.in ;;
5821 esac
5823 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5824 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5825 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5826 X"$ac_file" : 'X\(//\)[^/]' \| \
5827 X"$ac_file" : 'X\(//\)$' \| \
5828 X"$ac_file" : 'X\(/\)' \| \
5829 . : '\(.\)' 2>/dev/null ||
5830 echo X"$ac_file" |
5831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5832 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5833 /^X\(\/\/\)$/{ s//\1/; q; }
5834 /^X\(\/\).*/{ s//\1/; q; }
5835 s/.*/./; q'`
5836 { if $as_mkdir_p; then
5837 mkdir -p "$ac_dir"
5838 else
5839 as_dir="$ac_dir"
5840 as_dirs=
5841 while test ! -d "$as_dir"; do
5842 as_dirs="$as_dir $as_dirs"
5843 as_dir=`(dirname "$as_dir") 2>/dev/null ||
5844 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5845 X"$as_dir" : 'X\(//\)[^/]' \| \
5846 X"$as_dir" : 'X\(//\)$' \| \
5847 X"$as_dir" : 'X\(/\)' \| \
5848 . : '\(.\)' 2>/dev/null ||
5849 echo X"$as_dir" |
5850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5851 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5852 /^X\(\/\/\)$/{ s//\1/; q; }
5853 /^X\(\/\).*/{ s//\1/; q; }
5854 s/.*/./; q'`
5855 done
5856 test ! -n "$as_dirs" || mkdir $as_dirs
5857 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5858 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5859 { (exit 1); exit 1; }; }; }
5861 ac_builddir=.
5863 if test "$ac_dir" != .; then
5864 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5865 # A "../" for each directory in $ac_dir_suffix.
5866 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5867 else
5868 ac_dir_suffix= ac_top_builddir=
5871 case $srcdir in
5872 .) # No --srcdir option. We are building in place.
5873 ac_srcdir=.
5874 if test -z "$ac_top_builddir"; then
5875 ac_top_srcdir=.
5876 else
5877 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5878 fi ;;
5879 [\\/]* | ?:[\\/]* ) # Absolute path.
5880 ac_srcdir=$srcdir$ac_dir_suffix;
5881 ac_top_srcdir=$srcdir ;;
5882 *) # Relative path.
5883 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5884 ac_top_srcdir=$ac_top_builddir$srcdir ;;
5885 esac
5887 # Do not use `cd foo && pwd` to compute absolute paths, because
5888 # the directories may not exist.
5889 case `pwd` in
5890 .) ac_abs_builddir="$ac_dir";;
5892 case "$ac_dir" in
5893 .) ac_abs_builddir=`pwd`;;
5894 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5895 *) ac_abs_builddir=`pwd`/"$ac_dir";;
5896 esac;;
5897 esac
5898 case $ac_abs_builddir in
5899 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5901 case ${ac_top_builddir}. in
5902 .) ac_abs_top_builddir=$ac_abs_builddir;;
5903 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5904 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5905 esac;;
5906 esac
5907 case $ac_abs_builddir in
5908 .) ac_abs_srcdir=$ac_srcdir;;
5910 case $ac_srcdir in
5911 .) ac_abs_srcdir=$ac_abs_builddir;;
5912 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5913 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5914 esac;;
5915 esac
5916 case $ac_abs_builddir in
5917 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5919 case $ac_top_srcdir in
5920 .) ac_abs_top_srcdir=$ac_abs_builddir;;
5921 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5922 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5923 esac;;
5924 esac
5927 case $INSTALL in
5928 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5929 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5930 esac
5932 # Let's still pretend it is `configure' which instantiates (i.e., don't
5933 # use $as_me), people would be surprised to read:
5934 # /* config.h. Generated by config.status. */
5935 if test x"$ac_file" = x-; then
5936 configure_input=
5937 else
5938 configure_input="$ac_file. "
5940 configure_input=$configure_input"Generated from `echo $ac_file_in |
5941 sed 's,.*/,,'` by configure."
5943 # First look for the input files in the build tree, otherwise in the
5944 # src tree.
5945 ac_file_inputs=`IFS=:
5946 for f in $ac_file_in; do
5947 case $f in
5948 -) echo $tmp/stdin ;;
5949 [\\/$]*)
5950 # Absolute (can't be DOS-style, as IFS=:)
5951 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5952 echo "$as_me: error: cannot find input file: $f" >&2;}
5953 { (exit 1); exit 1; }; }
5954 echo "$f";;
5955 *) # Relative
5956 if test -f "$f"; then
5957 # Build tree
5958 echo "$f"
5959 elif test -f "$srcdir/$f"; then
5960 # Source tree
5961 echo "$srcdir/$f"
5962 else
5963 # /dev/null tree
5964 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5965 echo "$as_me: error: cannot find input file: $f" >&2;}
5966 { (exit 1); exit 1; }; }
5967 fi;;
5968 esac
5969 done` || { (exit 1); exit 1; }
5971 if test x"$ac_file" != x-; then
5972 { echo "$as_me:$LINENO: creating $ac_file" >&5
5973 echo "$as_me: creating $ac_file" >&6;}
5974 rm -f "$ac_file"
5976 _ACEOF
5977 cat >>$CONFIG_STATUS <<_ACEOF
5978 sed "$ac_vpsub
5979 $extrasub
5980 _ACEOF
5981 cat >>$CONFIG_STATUS <<\_ACEOF
5983 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5984 s,@configure_input@,$configure_input,;t t
5985 s,@srcdir@,$ac_srcdir,;t t
5986 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5987 s,@top_srcdir@,$ac_top_srcdir,;t t
5988 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5989 s,@builddir@,$ac_builddir,;t t
5990 s,@abs_builddir@,$ac_abs_builddir,;t t
5991 s,@top_builddir@,$ac_top_builddir,;t t
5992 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5993 s,@INSTALL@,$ac_INSTALL,;t t
5994 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5995 rm -f $tmp/stdin
5996 if test x"$ac_file" != x-; then
5997 mv $tmp/out $ac_file
5998 else
5999 cat $tmp/out
6000 rm -f $tmp/out
6003 done
6004 _ACEOF
6005 cat >>$CONFIG_STATUS <<\_ACEOF
6008 # CONFIG_HEADER section.
6011 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6012 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6014 # ac_d sets the value in "#define NAME VALUE" lines.
6015 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6016 ac_dB='[ ].*$,\1#\2'
6017 ac_dC=' '
6018 ac_dD=',;t'
6019 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6020 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6021 ac_uB='$,\1#\2define\3'
6022 ac_uC=' '
6023 ac_uD=',;t'
6025 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6027 case $ac_file in
6028 - | *:- | *:-:* ) # input from stdin
6029 cat >$tmp/stdin
6030 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6031 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6032 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6033 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6034 * ) ac_file_in=$ac_file.in ;;
6035 esac
6037 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6038 echo "$as_me: creating $ac_file" >&6;}
6040 # First look for the input files in the build tree, otherwise in the
6041 # src tree.
6042 ac_file_inputs=`IFS=:
6043 for f in $ac_file_in; do
6044 case $f in
6045 -) echo $tmp/stdin ;;
6046 [\\/$]*)
6047 # Absolute (can't be DOS-style, as IFS=:)
6048 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6049 echo "$as_me: error: cannot find input file: $f" >&2;}
6050 { (exit 1); exit 1; }; }
6051 # Do quote $f, to prevent DOS paths from being IFS'd.
6052 echo "$f";;
6053 *) # Relative
6054 if test -f "$f"; then
6055 # Build tree
6056 echo "$f"
6057 elif test -f "$srcdir/$f"; then
6058 # Source tree
6059 echo "$srcdir/$f"
6060 else
6061 # /dev/null tree
6062 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6063 echo "$as_me: error: cannot find input file: $f" >&2;}
6064 { (exit 1); exit 1; }; }
6065 fi;;
6066 esac
6067 done` || { (exit 1); exit 1; }
6068 # Remove the trailing spaces.
6069 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
6071 _ACEOF
6073 # Transform confdefs.h into two sed scripts, `conftest.defines' and
6074 # `conftest.undefs', that substitutes the proper values into
6075 # config.h.in to produce config.h. The first handles `#define'
6076 # templates, and the second `#undef' templates.
6077 # And first: Protect against being on the right side of a sed subst in
6078 # config.status. Protect against being in an unquoted here document
6079 # in config.status.
6080 rm -f conftest.defines conftest.undefs
6081 # Using a here document instead of a string reduces the quoting nightmare.
6082 # Putting comments in sed scripts is not portable.
6084 # `end' is used to avoid that the second main sed command (meant for
6085 # 0-ary CPP macros) applies to n-ary macro definitions.
6086 # See the Autoconf documentation for `clear'.
6087 cat >confdef2sed.sed <<\_ACEOF
6088 s/[\\&,]/\\&/g
6089 s,[\\$`],\\&,g
6090 t clear
6091 : clear
6092 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6093 t end
6094 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6095 : end
6096 _ACEOF
6097 # If some macros were called several times there might be several times
6098 # the same #defines, which is useless. Nevertheless, we may not want to
6099 # sort them, since we want the *last* AC-DEFINE to be honored.
6100 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6101 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6102 rm -f confdef2sed.sed
6104 # This sed command replaces #undef with comments. This is necessary, for
6105 # example, in the case of _POSIX_SOURCE, which is predefined and required
6106 # on some systems where configure will not decide to define it.
6107 cat >>conftest.undefs <<\_ACEOF
6108 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6109 _ACEOF
6111 # Break up conftest.defines because some shells have a limit on the size
6112 # of here documents, and old seds have small limits too (100 cmds).
6113 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6114 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6115 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6116 echo ' :' >>$CONFIG_STATUS
6117 rm -f conftest.tail
6118 while grep . conftest.defines >/dev/null
6120 # Write a limited-size here document to $tmp/defines.sed.
6121 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6122 # Speed up: don't consider the non `#define' lines.
6123 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
6124 # Work around the forget-to-reset-the-flag bug.
6125 echo 't clr' >>$CONFIG_STATUS
6126 echo ': clr' >>$CONFIG_STATUS
6127 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6128 echo 'CEOF
6129 sed -f $tmp/defines.sed $tmp/in >$tmp/out
6130 rm -f $tmp/in
6131 mv $tmp/out $tmp/in
6132 ' >>$CONFIG_STATUS
6133 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6134 rm -f conftest.defines
6135 mv conftest.tail conftest.defines
6136 done
6137 rm -f conftest.defines
6138 echo ' fi # grep' >>$CONFIG_STATUS
6139 echo >>$CONFIG_STATUS
6141 # Break up conftest.undefs because some shells have a limit on the size
6142 # of here documents, and old seds have small limits too (100 cmds).
6143 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
6144 rm -f conftest.tail
6145 while grep . conftest.undefs >/dev/null
6147 # Write a limited-size here document to $tmp/undefs.sed.
6148 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6149 # Speed up: don't consider the non `#undef'
6150 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
6151 # Work around the forget-to-reset-the-flag bug.
6152 echo 't clr' >>$CONFIG_STATUS
6153 echo ': clr' >>$CONFIG_STATUS
6154 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6155 echo 'CEOF
6156 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6157 rm -f $tmp/in
6158 mv $tmp/out $tmp/in
6159 ' >>$CONFIG_STATUS
6160 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6161 rm -f conftest.undefs
6162 mv conftest.tail conftest.undefs
6163 done
6164 rm -f conftest.undefs
6166 cat >>$CONFIG_STATUS <<\_ACEOF
6167 # Let's still pretend it is `configure' which instantiates (i.e., don't
6168 # use $as_me), people would be surprised to read:
6169 # /* config.h. Generated by config.status. */
6170 if test x"$ac_file" = x-; then
6171 echo "/* Generated by configure. */" >$tmp/config.h
6172 else
6173 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
6175 cat $tmp/in >>$tmp/config.h
6176 rm -f $tmp/in
6177 if test x"$ac_file" != x-; then
6178 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6179 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6180 echo "$as_me: $ac_file is unchanged" >&6;}
6181 else
6182 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6183 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6184 X"$ac_file" : 'X\(//\)[^/]' \| \
6185 X"$ac_file" : 'X\(//\)$' \| \
6186 X"$ac_file" : 'X\(/\)' \| \
6187 . : '\(.\)' 2>/dev/null ||
6188 echo X"$ac_file" |
6189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6191 /^X\(\/\/\)$/{ s//\1/; q; }
6192 /^X\(\/\).*/{ s//\1/; q; }
6193 s/.*/./; q'`
6194 { if $as_mkdir_p; then
6195 mkdir -p "$ac_dir"
6196 else
6197 as_dir="$ac_dir"
6198 as_dirs=
6199 while test ! -d "$as_dir"; do
6200 as_dirs="$as_dir $as_dirs"
6201 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6203 X"$as_dir" : 'X\(//\)[^/]' \| \
6204 X"$as_dir" : 'X\(//\)$' \| \
6205 X"$as_dir" : 'X\(/\)' \| \
6206 . : '\(.\)' 2>/dev/null ||
6207 echo X"$as_dir" |
6208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6210 /^X\(\/\/\)$/{ s//\1/; q; }
6211 /^X\(\/\).*/{ s//\1/; q; }
6212 s/.*/./; q'`
6213 done
6214 test ! -n "$as_dirs" || mkdir $as_dirs
6215 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6216 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6217 { (exit 1); exit 1; }; }; }
6219 rm -f $ac_file
6220 mv $tmp/config.h $ac_file
6222 else
6223 cat $tmp/config.h
6224 rm -f $tmp/config.h
6226 done
6227 _ACEOF
6228 cat >>$CONFIG_STATUS <<\_ACEOF
6231 # CONFIG_COMMANDS section.
6233 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6234 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6235 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6236 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6237 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6238 X"$ac_dest" : 'X\(//\)[^/]' \| \
6239 X"$ac_dest" : 'X\(//\)$' \| \
6240 X"$ac_dest" : 'X\(/\)' \| \
6241 . : '\(.\)' 2>/dev/null ||
6242 echo X"$ac_dest" |
6243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6244 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6245 /^X\(\/\/\)$/{ s//\1/; q; }
6246 /^X\(\/\).*/{ s//\1/; q; }
6247 s/.*/./; q'`
6248 { if $as_mkdir_p; then
6249 mkdir -p "$ac_dir"
6250 else
6251 as_dir="$ac_dir"
6252 as_dirs=
6253 while test ! -d "$as_dir"; do
6254 as_dirs="$as_dir $as_dirs"
6255 as_dir=`(dirname "$as_dir") 2>/dev/null ||
6256 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6257 X"$as_dir" : 'X\(//\)[^/]' \| \
6258 X"$as_dir" : 'X\(//\)$' \| \
6259 X"$as_dir" : 'X\(/\)' \| \
6260 . : '\(.\)' 2>/dev/null ||
6261 echo X"$as_dir" |
6262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6263 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6264 /^X\(\/\/\)$/{ s//\1/; q; }
6265 /^X\(\/\).*/{ s//\1/; q; }
6266 s/.*/./; q'`
6267 done
6268 test ! -n "$as_dirs" || mkdir $as_dirs
6269 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6270 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6271 { (exit 1); exit 1; }; }; }
6273 ac_builddir=.
6275 if test "$ac_dir" != .; then
6276 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6277 # A "../" for each directory in $ac_dir_suffix.
6278 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6279 else
6280 ac_dir_suffix= ac_top_builddir=
6283 case $srcdir in
6284 .) # No --srcdir option. We are building in place.
6285 ac_srcdir=.
6286 if test -z "$ac_top_builddir"; then
6287 ac_top_srcdir=.
6288 else
6289 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6290 fi ;;
6291 [\\/]* | ?:[\\/]* ) # Absolute path.
6292 ac_srcdir=$srcdir$ac_dir_suffix;
6293 ac_top_srcdir=$srcdir ;;
6294 *) # Relative path.
6295 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6296 ac_top_srcdir=$ac_top_builddir$srcdir ;;
6297 esac
6299 # Do not use `cd foo && pwd` to compute absolute paths, because
6300 # the directories may not exist.
6301 case `pwd` in
6302 .) ac_abs_builddir="$ac_dir";;
6304 case "$ac_dir" in
6305 .) ac_abs_builddir=`pwd`;;
6306 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6307 *) ac_abs_builddir=`pwd`/"$ac_dir";;
6308 esac;;
6309 esac
6310 case $ac_abs_builddir in
6311 .) ac_abs_top_builddir=${ac_top_builddir}.;;
6313 case ${ac_top_builddir}. in
6314 .) ac_abs_top_builddir=$ac_abs_builddir;;
6315 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6316 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6317 esac;;
6318 esac
6319 case $ac_abs_builddir in
6320 .) ac_abs_srcdir=$ac_srcdir;;
6322 case $ac_srcdir in
6323 .) ac_abs_srcdir=$ac_abs_builddir;;
6324 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6325 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6326 esac;;
6327 esac
6328 case $ac_abs_builddir in
6329 .) ac_abs_top_srcdir=$ac_top_srcdir;;
6331 case $ac_top_srcdir in
6332 .) ac_abs_top_srcdir=$ac_abs_builddir;;
6333 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6334 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6335 esac;;
6336 esac
6339 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6340 echo "$as_me: executing $ac_dest commands" >&6;}
6341 case $ac_dest in
6342 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
6343 esac
6344 done
6345 _ACEOF
6347 cat >>$CONFIG_STATUS <<\_ACEOF
6349 { (exit 0); exit 0; }
6350 _ACEOF
6351 chmod +x $CONFIG_STATUS
6352 ac_clean_files=$ac_clean_files_save
6355 # configure is writing to config.log, and then calls config.status.
6356 # config.status does its own redirection, appending to config.log.
6357 # Unfortunately, on DOS this fails, as config.log is still kept open
6358 # by configure, so config.status won't be able to write to it; its
6359 # output is simply discarded. So we exec the FD to /dev/null,
6360 # effectively closing config.log, so it can be properly (re)opened and
6361 # appended to by config.status. When coming back to configure, we
6362 # need to make the FD available again.
6363 if test "$no_create" != yes; then
6364 ac_cs_success=:
6365 ac_config_status_args=
6366 test "$silent" = yes &&
6367 ac_config_status_args="$ac_config_status_args --quiet"
6368 exec 5>/dev/null
6369 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6370 exec 5>>config.log
6371 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6372 # would make configure fail if this is the last instruction.
6373 $ac_cs_success || { (exit 1); exit 1; }