Update debian/changelog for new version
[fmit.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for fmit 0.97.7.
4 #
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 ## --------------------- ##
11
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
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
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
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
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
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
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
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
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'`
76
77
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
85
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=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
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
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
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
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
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'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
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
223 fi
224
225 as_executable_p="test -f"
226
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'"
229
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'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
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}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME='fmit'
269 PACKAGE_TARNAME='fmit'
270 PACKAGE_VERSION='0.97.7'
271 PACKAGE_STRING='fmit 0.97.7'
272 PACKAGE_BUGREPORT=''
273
274 ac_default_prefix=/usr/local/
275 ac_default_prefix=/usr/local
276 # Factoring default headers for most tests.
277 ac_includes_default="\
278 #include <stdio.h>
279 #if HAVE_SYS_TYPES_H
280 # include <sys/types.h>
281 #endif
282 #if HAVE_SYS_STAT_H
283 # include <sys/stat.h>
284 #endif
285 #if STDC_HEADERS
286 # include <stdlib.h>
287 # include <stddef.h>
288 #else
289 # if HAVE_STDLIB_H
290 #  include <stdlib.h>
291 # endif
292 #endif
293 #if HAVE_STRING_H
294 # if !STDC_HEADERS && HAVE_MEMORY_H
295 #  include <memory.h>
296 # endif
297 # include <string.h>
298 #endif
299 #if HAVE_STRINGS_H
300 # include <strings.h>
301 #endif
302 #if HAVE_INTTYPES_H
303 # include <inttypes.h>
304 #else
305 # if HAVE_STDINT_H
306 #  include <stdint.h>
307 # endif
308 #endif
309 #if HAVE_UNISTD_H
310 # include <unistd.h>
311 #endif"
312
313 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ac_prefix RANLIB ac_ct_RANLIB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP EGREP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS QT_CXXFLAGS QT_DIR QT_LIBS QT_UIC QT_MOC GL_CFLAGS GL_LIBS ALSA_CFLAGS ALSA_LIBS LIBOBJS LTLIBOBJS'
314 ac_subst_files=''
315
316 # Initialize some variables set by options.
317 ac_init_help=
318 ac_init_version=false
319 # The variables have the same names as the options, with
320 # dashes changed to underlines.
321 cache_file=/dev/null
322 exec_prefix=NONE
323 no_create=
324 no_recursion=
325 prefix=NONE
326 program_prefix=NONE
327 program_suffix=NONE
328 program_transform_name=s,x,x,
329 silent=
330 site=
331 srcdir=
332 verbose=
333 x_includes=NONE
334 x_libraries=NONE
335
336 # Installation directory options.
337 # These are left unexpanded so users can "make install exec_prefix=/foo"
338 # and all the variables that are supposed to be based on exec_prefix
339 # by default will actually change.
340 # Use braces instead of parens because sh, perl, etc. also accept them.
341 bindir='${exec_prefix}/bin'
342 sbindir='${exec_prefix}/sbin'
343 libexecdir='${exec_prefix}/libexec'
344 datadir='${prefix}/share'
345 sysconfdir='${prefix}/etc'
346 sharedstatedir='${prefix}/com'
347 localstatedir='${prefix}/var'
348 libdir='${exec_prefix}/lib'
349 includedir='${prefix}/include'
350 oldincludedir='/usr/include'
351 infodir='${prefix}/info'
352 mandir='${prefix}/man'
353
354 ac_prev=
355 for ac_option
356 do
357   # If the previous option needs an argument, assign it.
358   if test -n "$ac_prev"; then
359     eval "$ac_prev=\$ac_option"
360     ac_prev=
361     continue
362   fi
363
364   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365
366   # Accept the important Cygnus configure options, so we can diagnose typos.
367
368   case $ac_option in
369
370   -bindir | --bindir | --bindi | --bind | --bin | --bi)
371     ac_prev=bindir ;;
372   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373     bindir=$ac_optarg ;;
374
375   -build | --build | --buil | --bui | --bu)
376     ac_prev=build_alias ;;
377   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
378     build_alias=$ac_optarg ;;
379
380   -cache-file | --cache-file | --cache-fil | --cache-fi \
381   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
382     ac_prev=cache_file ;;
383   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
384   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
385     cache_file=$ac_optarg ;;
386
387   --config-cache | -C)
388     cache_file=config.cache ;;
389
390   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
391     ac_prev=datadir ;;
392   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
393   | --da=*)
394     datadir=$ac_optarg ;;
395
396   -disable-* | --disable-*)
397     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
398     # Reject names that are not valid shell variable names.
399     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
400       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
401    { (exit 1); exit 1; }; }
402     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
403     eval "enable_$ac_feature=no" ;;
404
405   -enable-* | --enable-*)
406     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
407     # Reject names that are not valid shell variable names.
408     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
409       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
410    { (exit 1); exit 1; }; }
411     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
412     case $ac_option in
413       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414       *) ac_optarg=yes ;;
415     esac
416     eval "enable_$ac_feature='$ac_optarg'" ;;
417
418   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
419   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
420   | --exec | --exe | --ex)
421     ac_prev=exec_prefix ;;
422   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
423   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
424   | --exec=* | --exe=* | --ex=*)
425     exec_prefix=$ac_optarg ;;
426
427   -gas | --gas | --ga | --g)
428     # Obsolete; use --with-gas.
429     with_gas=yes ;;
430
431   -help | --help | --hel | --he | -h)
432     ac_init_help=long ;;
433   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
434     ac_init_help=recursive ;;
435   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
436     ac_init_help=short ;;
437
438   -host | --host | --hos | --ho)
439     ac_prev=host_alias ;;
440   -host=* | --host=* | --hos=* | --ho=*)
441     host_alias=$ac_optarg ;;
442
443   -includedir | --includedir | --includedi | --included | --include \
444   | --includ | --inclu | --incl | --inc)
445     ac_prev=includedir ;;
446   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
447   | --includ=* | --inclu=* | --incl=* | --inc=*)
448     includedir=$ac_optarg ;;
449
450   -infodir | --infodir | --infodi | --infod | --info | --inf)
451     ac_prev=infodir ;;
452   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
453     infodir=$ac_optarg ;;
454
455   -libdir | --libdir | --libdi | --libd)
456     ac_prev=libdir ;;
457   -libdir=* | --libdir=* | --libdi=* | --libd=*)
458     libdir=$ac_optarg ;;
459
460   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
461   | --libexe | --libex | --libe)
462     ac_prev=libexecdir ;;
463   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
464   | --libexe=* | --libex=* | --libe=*)
465     libexecdir=$ac_optarg ;;
466
467   -localstatedir | --localstatedir | --localstatedi | --localstated \
468   | --localstate | --localstat | --localsta | --localst \
469   | --locals | --local | --loca | --loc | --lo)
470     ac_prev=localstatedir ;;
471   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
472   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
473   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
474     localstatedir=$ac_optarg ;;
475
476   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
477     ac_prev=mandir ;;
478   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
479     mandir=$ac_optarg ;;
480
481   -nfp | --nfp | --nf)
482     # Obsolete; use --without-fp.
483     with_fp=no ;;
484
485   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486   | --no-cr | --no-c | -n)
487     no_create=yes ;;
488
489   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491     no_recursion=yes ;;
492
493   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
494   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
495   | --oldin | --oldi | --old | --ol | --o)
496     ac_prev=oldincludedir ;;
497   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
498   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
499   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
500     oldincludedir=$ac_optarg ;;
501
502   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
503     ac_prev=prefix ;;
504   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505     prefix=$ac_optarg ;;
506
507   -program-prefix | --program-prefix | --program-prefi | --program-pref \
508   | --program-pre | --program-pr | --program-p)
509     ac_prev=program_prefix ;;
510   -program-prefix=* | --program-prefix=* | --program-prefi=* \
511   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
512     program_prefix=$ac_optarg ;;
513
514   -program-suffix | --program-suffix | --program-suffi | --program-suff \
515   | --program-suf | --program-su | --program-s)
516     ac_prev=program_suffix ;;
517   -program-suffix=* | --program-suffix=* | --program-suffi=* \
518   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
519     program_suffix=$ac_optarg ;;
520
521   -program-transform-name | --program-transform-name \
522   | --program-transform-nam | --program-transform-na \
523   | --program-transform-n | --program-transform- \
524   | --program-transform | --program-transfor \
525   | --program-transfo | --program-transf \
526   | --program-trans | --program-tran \
527   | --progr-tra | --program-tr | --program-t)
528     ac_prev=program_transform_name ;;
529   -program-transform-name=* | --program-transform-name=* \
530   | --program-transform-nam=* | --program-transform-na=* \
531   | --program-transform-n=* | --program-transform-=* \
532   | --program-transform=* | --program-transfor=* \
533   | --program-transfo=* | --program-transf=* \
534   | --program-trans=* | --program-tran=* \
535   | --progr-tra=* | --program-tr=* | --program-t=*)
536     program_transform_name=$ac_optarg ;;
537
538   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
539   | -silent | --silent | --silen | --sile | --sil)
540     silent=yes ;;
541
542   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
543     ac_prev=sbindir ;;
544   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
545   | --sbi=* | --sb=*)
546     sbindir=$ac_optarg ;;
547
548   -sharedstatedir | --sharedstatedir | --sharedstatedi \
549   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
550   | --sharedst | --shareds | --shared | --share | --shar \
551   | --sha | --sh)
552     ac_prev=sharedstatedir ;;
553   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
554   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
555   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
556   | --sha=* | --sh=*)
557     sharedstatedir=$ac_optarg ;;
558
559   -site | --site | --sit)
560     ac_prev=site ;;
561   -site=* | --site=* | --sit=*)
562     site=$ac_optarg ;;
563
564   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
565     ac_prev=srcdir ;;
566   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567     srcdir=$ac_optarg ;;
568
569   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
570   | --syscon | --sysco | --sysc | --sys | --sy)
571     ac_prev=sysconfdir ;;
572   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
573   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
574     sysconfdir=$ac_optarg ;;
575
576   -target | --target | --targe | --targ | --tar | --ta | --t)
577     ac_prev=target_alias ;;
578   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
579     target_alias=$ac_optarg ;;
580
581   -v | -verbose | --verbose | --verbos | --verbo | --verb)
582     verbose=yes ;;
583
584   -version | --version | --versio | --versi | --vers | -V)
585     ac_init_version=: ;;
586
587   -with-* | --with-*)
588     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
589     # Reject names that are not valid shell variable names.
590     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
591       { echo "$as_me: error: invalid package name: $ac_package" >&2
592    { (exit 1); exit 1; }; }
593     ac_package=`echo $ac_package| sed 's/-/_/g'`
594     case $ac_option in
595       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596       *) ac_optarg=yes ;;
597     esac
598     eval "with_$ac_package='$ac_optarg'" ;;
599
600   -without-* | --without-*)
601     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
602     # Reject names that are not valid shell variable names.
603     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
604       { echo "$as_me: error: invalid package name: $ac_package" >&2
605    { (exit 1); exit 1; }; }
606     ac_package=`echo $ac_package | sed 's/-/_/g'`
607     eval "with_$ac_package=no" ;;
608
609   --x)
610     # Obsolete; use --with-x.
611     with_x=yes ;;
612
613   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
614   | --x-incl | --x-inc | --x-in | --x-i)
615     ac_prev=x_includes ;;
616   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
617   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
618     x_includes=$ac_optarg ;;
619
620   -x-libraries | --x-libraries | --x-librarie | --x-librari \
621   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
622     ac_prev=x_libraries ;;
623   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
624   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
625     x_libraries=$ac_optarg ;;
626
627   -*) { echo "$as_me: error: unrecognized option: $ac_option
628 Try \`$0 --help' for more information." >&2
629    { (exit 1); exit 1; }; }
630     ;;
631
632   *=*)
633     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
634     # Reject names that are not valid shell variable names.
635     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
636       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
637    { (exit 1); exit 1; }; }
638     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
639     eval "$ac_envvar='$ac_optarg'"
640     export $ac_envvar ;;
641
642   *)
643     # FIXME: should be removed in autoconf 3.0.
644     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
645     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
646       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
647     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
648     ;;
649
650   esac
651 done
652
653 if test -n "$ac_prev"; then
654   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
655   { echo "$as_me: error: missing argument to $ac_option" >&2
656    { (exit 1); exit 1; }; }
657 fi
658
659 # Be sure to have absolute paths.
660 for ac_var in exec_prefix prefix
661 do
662   eval ac_val=$`echo $ac_var`
663   case $ac_val in
664     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
665     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
666    { (exit 1); exit 1; }; };;
667   esac
668 done
669
670 # Be sure to have absolute paths.
671 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
672               localstatedir libdir includedir oldincludedir infodir mandir
673 do
674   eval ac_val=$`echo $ac_var`
675   case $ac_val in
676     [\\/$]* | ?:[\\/]* ) ;;
677     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
678    { (exit 1); exit 1; }; };;
679   esac
680 done
681
682 # There might be people who depend on the old broken behavior: `$host'
683 # used to hold the argument of --host etc.
684 # FIXME: To remove some day.
685 build=$build_alias
686 host=$host_alias
687 target=$target_alias
688
689 # FIXME: To remove some day.
690 if test "x$host_alias" != x; then
691   if test "x$build_alias" = x; then
692     cross_compiling=maybe
693     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
694     If a cross compiler is detected then cross compile mode will be used." >&2
695   elif test "x$build_alias" != "x$host_alias"; then
696     cross_compiling=yes
697   fi
698 fi
699
700 ac_tool_prefix=
701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702
703 test "$silent" = yes && exec 6>/dev/null
704
705
706 # Find the source files, if location was not specified.
707 if test -z "$srcdir"; then
708   ac_srcdir_defaulted=yes
709   # Try the directory containing this script, then its parent.
710   ac_confdir=`(dirname "$0") 2>/dev/null ||
711 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
712          X"$0" : 'X\(//\)[^/]' \| \
713          X"$0" : 'X\(//\)$' \| \
714          X"$0" : 'X\(/\)' \| \
715          .     : '\(.\)' 2>/dev/null ||
716 echo X"$0" |
717     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
718           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
719           /^X\(\/\/\)$/{ s//\1/; q; }
720           /^X\(\/\).*/{ s//\1/; q; }
721           s/.*/./; q'`
722   srcdir=$ac_confdir
723   if test ! -r $srcdir/$ac_unique_file; then
724     srcdir=..
725   fi
726 else
727   ac_srcdir_defaulted=no
728 fi
729 if test ! -r $srcdir/$ac_unique_file; then
730   if test "$ac_srcdir_defaulted" = yes; then
731     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
732    { (exit 1); exit 1; }; }
733   else
734     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
735    { (exit 1); exit 1; }; }
736   fi
737 fi
738 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
739   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
740    { (exit 1); exit 1; }; }
741 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
742 ac_env_build_alias_set=${build_alias+set}
743 ac_env_build_alias_value=$build_alias
744 ac_cv_env_build_alias_set=${build_alias+set}
745 ac_cv_env_build_alias_value=$build_alias
746 ac_env_host_alias_set=${host_alias+set}
747 ac_env_host_alias_value=$host_alias
748 ac_cv_env_host_alias_set=${host_alias+set}
749 ac_cv_env_host_alias_value=$host_alias
750 ac_env_target_alias_set=${target_alias+set}
751 ac_env_target_alias_value=$target_alias
752 ac_cv_env_target_alias_set=${target_alias+set}
753 ac_cv_env_target_alias_value=$target_alias
754 ac_env_CC_set=${CC+set}
755 ac_env_CC_value=$CC
756 ac_cv_env_CC_set=${CC+set}
757 ac_cv_env_CC_value=$CC
758 ac_env_CFLAGS_set=${CFLAGS+set}
759 ac_env_CFLAGS_value=$CFLAGS
760 ac_cv_env_CFLAGS_set=${CFLAGS+set}
761 ac_cv_env_CFLAGS_value=$CFLAGS
762 ac_env_LDFLAGS_set=${LDFLAGS+set}
763 ac_env_LDFLAGS_value=$LDFLAGS
764 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
765 ac_cv_env_LDFLAGS_value=$LDFLAGS
766 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
767 ac_env_CPPFLAGS_value=$CPPFLAGS
768 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
769 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
770 ac_env_CPP_set=${CPP+set}
771 ac_env_CPP_value=$CPP
772 ac_cv_env_CPP_set=${CPP+set}
773 ac_cv_env_CPP_value=$CPP
774 ac_env_CXX_set=${CXX+set}
775 ac_env_CXX_value=$CXX
776 ac_cv_env_CXX_set=${CXX+set}
777 ac_cv_env_CXX_value=$CXX
778 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
779 ac_env_CXXFLAGS_value=$CXXFLAGS
780 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
781 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
782 ac_env_CXXCPP_set=${CXXCPP+set}
783 ac_env_CXXCPP_value=$CXXCPP
784 ac_cv_env_CXXCPP_set=${CXXCPP+set}
785 ac_cv_env_CXXCPP_value=$CXXCPP
786
787 #
788 # Report the --help message.
789 #
790 if test "$ac_init_help" = "long"; then
791   # Omit some internal or obsolete options to make the list less imposing.
792   # This message is too long to be a string in the A/UX 3.1 sh.
793   cat <<_ACEOF
794 \`configure' configures fmit 0.97.7 to adapt to many kinds of systems.
795
796 Usage: $0 [OPTION]... [VAR=VALUE]...
797
798 To assign environment variables (e.g., CC, CFLAGS...), specify them as
799 VAR=VALUE.  See below for descriptions of some of the useful variables.
800
801 Defaults for the options are specified in brackets.
802
803 Configuration:
804   -h, --help              display this help and exit
805       --help=short        display options specific to this package
806       --help=recursive    display the short help of all the included packages
807   -V, --version           display version information and exit
808   -q, --quiet, --silent   do not print \`checking...' messages
809       --cache-file=FILE   cache test results in FILE [disabled]
810   -C, --config-cache      alias for \`--cache-file=config.cache'
811   -n, --no-create         do not create output files
812       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
813
814 _ACEOF
815
816   cat <<_ACEOF
817 Installation directories:
818   --prefix=PREFIX         install architecture-independent files in PREFIX
819                           [$ac_default_prefix]
820   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
821                           [PREFIX]
822
823 By default, \`make install' will install all the files in
824 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
825 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
826 for instance \`--prefix=\$HOME'.
827
828 For better control, use the options below.
829
830 Fine tuning of the installation directories:
831   --bindir=DIR           user executables [EPREFIX/bin]
832   --sbindir=DIR          system admin executables [EPREFIX/sbin]
833   --libexecdir=DIR       program executables [EPREFIX/libexec]
834   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
835   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
836   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
837   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
838   --libdir=DIR           object code libraries [EPREFIX/lib]
839   --includedir=DIR       C header files [PREFIX/include]
840   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
841   --infodir=DIR          info documentation [PREFIX/info]
842   --mandir=DIR           man documentation [PREFIX/man]
843 _ACEOF
844
845   cat <<\_ACEOF
846
847 Program names:
848   --program-prefix=PREFIX            prepend PREFIX to installed program names
849   --program-suffix=SUFFIX            append SUFFIX to installed program names
850   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
851
852 X features:
853   --x-includes=DIR    X include files are in DIR
854   --x-libraries=DIR   X library files are in DIR
855 _ACEOF
856 fi
857
858 if test -n "$ac_init_help"; then
859   case $ac_init_help in
860      short | recursive ) echo "Configuration of fmit 0.97.7:";;
861    esac
862   cat <<\_ACEOF
863
864 Optional Features:
865   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
866   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
867   --enable-debug        turn on debugging (default=no)
868   --disable-dependency-tracking  speeds up one-time build
869   --enable-dependency-tracking   do not reject slow dependency extractors
870   --enable-Mesa           Prefer the Mesa library over a vendors native OpenGL
871                           library (default=yes)
872   --enable-alsa           turn on ALSA support (default=yes)
873   --disable-alsatest      Do not try to compile and run a test Alsa program
874   --enable-oss            turn on OSS support (default=yes)
875   --enable-jack           turn on JACK support (default=yes)
876   --enable-portaudio      turn on PortAudio support (default=no)
877   --enable-packager-string=NAME
878                           add references of the packager in the about box
879
880 Optional Packages:
881   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
882   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
883   --with-x                use the X Window System
884   --with-Qt-dir=DIR       DIR is equal to $QTDIR if you have followed the
885                           installation instructions of Trolltech. Header
886                           files are in DIR/include, binary utilities are
887                           in DIR/bin. The library is in DIR/lib, unless
888                           --with-Qt-lib-dir is also set.
889   --with-Qt-include-dir=DIR
890                           Qt header files are in DIR
891   --with-Qt-bin-dir=DIR   Qt utilities such as moc and uic are in DIR
892   --with-Qt-lib-dir=DIR   The Qt library is in DIR
893   --with-Qt-lib=LIB       Use -lLIB to link with the Qt library
894   --with-alsa-prefix=PFX  Prefix where Alsa library is installed(optional)
895   --with-alsa-inc-prefix=PFX  Prefix where include libraries are (optional)
896
897 Some influential environment variables:
898   CC          C compiler command
899   CFLAGS      C compiler flags
900   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
901               nonstandard directory <lib dir>
902   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
903               headers in a nonstandard directory <include dir>
904   CPP         C preprocessor
905   CXX         C++ compiler command
906   CXXFLAGS    C++ compiler flags
907   CXXCPP      C++ preprocessor
908
909 Use these variables to override the choices made by `configure' or to help
910 it to find libraries and programs with nonstandard names/locations.
911
912 _ACEOF
913 fi
914
915 if test "$ac_init_help" = "recursive"; then
916   # If there are subdirs, report their specific --help.
917   ac_popdir=`pwd`
918   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
919     test -d $ac_dir || continue
920     ac_builddir=.
921
922 if test "$ac_dir" != .; then
923   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
924   # A "../" for each directory in $ac_dir_suffix.
925   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
926 else
927   ac_dir_suffix= ac_top_builddir=
928 fi
929
930 case $srcdir in
931   .)  # No --srcdir option.  We are building in place.
932     ac_srcdir=.
933     if test -z "$ac_top_builddir"; then
934        ac_top_srcdir=.
935     else
936        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
937     fi ;;
938   [\\/]* | ?:[\\/]* )  # Absolute path.
939     ac_srcdir=$srcdir$ac_dir_suffix;
940     ac_top_srcdir=$srcdir ;;
941   *) # Relative path.
942     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
943     ac_top_srcdir=$ac_top_builddir$srcdir ;;
944 esac
945
946 # Do not use `cd foo && pwd` to compute absolute paths, because
947 # the directories may not exist.
948 case `pwd` in
949 .) ac_abs_builddir="$ac_dir";;
950 *)
951   case "$ac_dir" in
952   .) ac_abs_builddir=`pwd`;;
953   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
954   *) ac_abs_builddir=`pwd`/"$ac_dir";;
955   esac;;
956 esac
957 case $ac_abs_builddir in
958 .) ac_abs_top_builddir=${ac_top_builddir}.;;
959 *)
960   case ${ac_top_builddir}. in
961   .) ac_abs_top_builddir=$ac_abs_builddir;;
962   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
963   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
964   esac;;
965 esac
966 case $ac_abs_builddir in
967 .) ac_abs_srcdir=$ac_srcdir;;
968 *)
969   case $ac_srcdir in
970   .) ac_abs_srcdir=$ac_abs_builddir;;
971   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
972   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
973   esac;;
974 esac
975 case $ac_abs_builddir in
976 .) ac_abs_top_srcdir=$ac_top_srcdir;;
977 *)
978   case $ac_top_srcdir in
979   .) ac_abs_top_srcdir=$ac_abs_builddir;;
980   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
981   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
982   esac;;
983 esac
984
985     cd $ac_dir
986     # Check for guested configure; otherwise get Cygnus style configure.
987     if test -f $ac_srcdir/configure.gnu; then
988       echo
989       $SHELL $ac_srcdir/configure.gnu  --help=recursive
990     elif test -f $ac_srcdir/configure; then
991       echo
992       $SHELL $ac_srcdir/configure  --help=recursive
993     elif test -f $ac_srcdir/configure.ac ||
994            test -f $ac_srcdir/configure.in; then
995       echo
996       $ac_configure --help
997     else
998       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
999     fi
1000     cd $ac_popdir
1001   done
1002 fi
1003
1004 test -n "$ac_init_help" && exit 0
1005 if $ac_init_version; then
1006   cat <<\_ACEOF
1007 fmit configure 0.97.7
1008 generated by GNU Autoconf 2.59
1009
1010 Copyright (C) 2003 Free Software Foundation, Inc.
1011 This configure script is free software; the Free Software Foundation
1012 gives unlimited permission to copy, distribute and modify it.
1013 _ACEOF
1014   exit 0
1015 fi
1016 exec 5>config.log
1017 cat >&5 <<_ACEOF
1018 This file contains any messages produced by compilers while
1019 running configure, to aid debugging if configure makes a mistake.
1020
1021 It was created by fmit $as_me 0.97.7, which was
1022 generated by GNU Autoconf 2.59.  Invocation command line was
1023
1024   $ $0 $@
1025
1026 _ACEOF
1027 {
1028 cat <<_ASUNAME
1029 ## --------- ##
1030 ## Platform. ##
1031 ## --------- ##
1032
1033 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1034 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1035 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1036 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1037 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1038
1039 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1040 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1041
1042 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1043 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1044 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1045 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1046 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1047 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1048 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1049
1050 _ASUNAME
1051
1052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1053 for as_dir in $PATH
1054 do
1055   IFS=$as_save_IFS
1056   test -z "$as_dir" && as_dir=.
1057   echo "PATH: $as_dir"
1058 done
1059
1060 } >&5
1061
1062 cat >&5 <<_ACEOF
1063
1064
1065 ## ----------- ##
1066 ## Core tests. ##
1067 ## ----------- ##
1068
1069 _ACEOF
1070
1071
1072 # Keep a trace of the command line.
1073 # Strip out --no-create and --no-recursion so they do not pile up.
1074 # Strip out --silent because we don't want to record it for future runs.
1075 # Also quote any args containing shell meta-characters.
1076 # Make two passes to allow for proper duplicate-argument suppression.
1077 ac_configure_args=
1078 ac_configure_args0=
1079 ac_configure_args1=
1080 ac_sep=
1081 ac_must_keep_next=false
1082 for ac_pass in 1 2
1083 do
1084   for ac_arg
1085   do
1086     case $ac_arg in
1087     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1088     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089     | -silent | --silent | --silen | --sile | --sil)
1090       continue ;;
1091     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1092       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1093     esac
1094     case $ac_pass in
1095     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1096     2)
1097       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1098       if test $ac_must_keep_next = true; then
1099         ac_must_keep_next=false # Got value, back to normal.
1100       else
1101         case $ac_arg in
1102           *=* | --config-cache | -C | -disable-* | --disable-* \
1103           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1104           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1105           | -with-* | --with-* | -without-* | --without-* | --x)
1106             case "$ac_configure_args0 " in
1107               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1108             esac
1109             ;;
1110           -* ) ac_must_keep_next=true ;;
1111         esac
1112       fi
1113       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1114       # Get rid of the leading space.
1115       ac_sep=" "
1116       ;;
1117     esac
1118   done
1119 done
1120 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1121 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1122
1123 # When interrupted or exit'd, cleanup temporary files, and complete
1124 # config.log.  We remove comments because anyway the quotes in there
1125 # would cause problems or look ugly.
1126 # WARNING: Be sure not to use single quotes in there, as some shells,
1127 # such as our DU 5.0 friend, will then `close' the trap.
1128 trap 'exit_status=$?
1129   # Save into config.log some information that might help in debugging.
1130   {
1131     echo
1132
1133     cat <<\_ASBOX
1134 ## ---------------- ##
1135 ## Cache variables. ##
1136 ## ---------------- ##
1137 _ASBOX
1138     echo
1139     # The following way of writing the cache mishandles newlines in values,
1140 {
1141   (set) 2>&1 |
1142     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1143     *ac_space=\ *)
1144       sed -n \
1145         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1146           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1147       ;;
1148     *)
1149       sed -n \
1150         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1151       ;;
1152     esac;
1153 }
1154     echo
1155
1156     cat <<\_ASBOX
1157 ## ----------------- ##
1158 ## Output variables. ##
1159 ## ----------------- ##
1160 _ASBOX
1161     echo
1162     for ac_var in $ac_subst_vars
1163     do
1164       eval ac_val=$`echo $ac_var`
1165       echo "$ac_var='"'"'$ac_val'"'"'"
1166     done | sort
1167     echo
1168
1169     if test -n "$ac_subst_files"; then
1170       cat <<\_ASBOX
1171 ## ------------- ##
1172 ## Output files. ##
1173 ## ------------- ##
1174 _ASBOX
1175       echo
1176       for ac_var in $ac_subst_files
1177       do
1178         eval ac_val=$`echo $ac_var`
1179         echo "$ac_var='"'"'$ac_val'"'"'"
1180       done | sort
1181       echo
1182     fi
1183
1184     if test -s confdefs.h; then
1185       cat <<\_ASBOX
1186 ## ----------- ##
1187 ## confdefs.h. ##
1188 ## ----------- ##
1189 _ASBOX
1190       echo
1191       sed "/^$/d" confdefs.h | sort
1192       echo
1193     fi
1194     test "$ac_signal" != 0 &&
1195       echo "$as_me: caught signal $ac_signal"
1196     echo "$as_me: exit $exit_status"
1197   } >&5
1198   rm -f core *.core &&
1199   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1200     exit $exit_status
1201      ' 0
1202 for ac_signal in 1 2 13 15; do
1203   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1204 done
1205 ac_signal=0
1206
1207 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1208 rm -rf conftest* confdefs.h
1209 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1210 echo >confdefs.h
1211
1212 # Predefined preprocessor variables.
1213
1214 cat >>confdefs.h <<_ACEOF
1215 #define PACKAGE_NAME "$PACKAGE_NAME"
1216 _ACEOF
1217
1218
1219 cat >>confdefs.h <<_ACEOF
1220 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1221 _ACEOF
1222
1223
1224 cat >>confdefs.h <<_ACEOF
1225 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1226 _ACEOF
1227
1228
1229 cat >>confdefs.h <<_ACEOF
1230 #define PACKAGE_STRING "$PACKAGE_STRING"
1231 _ACEOF
1232
1233
1234 cat >>confdefs.h <<_ACEOF
1235 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1236 _ACEOF
1237
1238
1239 # Let the site file select an alternate cache file if it wants to.
1240 # Prefer explicitly selected file to automatically selected ones.
1241 if test -z "$CONFIG_SITE"; then
1242   if test "x$prefix" != xNONE; then
1243     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1244   else
1245     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1246   fi
1247 fi
1248 for ac_site_file in $CONFIG_SITE; do
1249   if test -r "$ac_site_file"; then
1250     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1251 echo "$as_me: loading site script $ac_site_file" >&6;}
1252     sed 's/^/| /' "$ac_site_file" >&5
1253     . "$ac_site_file"
1254   fi
1255 done
1256
1257 if test -r "$cache_file"; then
1258   # Some versions of bash will fail to source /dev/null (special
1259   # files actually), so we avoid doing that.
1260   if test -f "$cache_file"; then
1261     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1262 echo "$as_me: loading cache $cache_file" >&6;}
1263     case $cache_file in
1264       [\\/]* | ?:[\\/]* ) . $cache_file;;
1265       *)                      . ./$cache_file;;
1266     esac
1267   fi
1268 else
1269   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1270 echo "$as_me: creating cache $cache_file" >&6;}
1271   >$cache_file
1272 fi
1273
1274 # Check that the precious variables saved in the cache have kept the same
1275 # value.
1276 ac_cache_corrupted=false
1277 for ac_var in `(set) 2>&1 |
1278                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1279   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1280   eval ac_new_set=\$ac_env_${ac_var}_set
1281   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1282   eval ac_new_val="\$ac_env_${ac_var}_value"
1283   case $ac_old_set,$ac_new_set in
1284     set,)
1285       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1286 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1287       ac_cache_corrupted=: ;;
1288     ,set)
1289       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1290 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1291       ac_cache_corrupted=: ;;
1292     ,);;
1293     *)
1294       if test "x$ac_old_val" != "x$ac_new_val"; then
1295         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1296 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1297         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1298 echo "$as_me:   former value:  $ac_old_val" >&2;}
1299         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1300 echo "$as_me:   current value: $ac_new_val" >&2;}
1301         ac_cache_corrupted=:
1302       fi;;
1303   esac
1304   # Pass precious variables to config.status.
1305   if test "$ac_new_set" = set; then
1306     case $ac_new_val in
1307     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1308       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1309     *) ac_arg=$ac_var=$ac_new_val ;;
1310     esac
1311     case " $ac_configure_args " in
1312       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1313       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1314     esac
1315   fi
1316 done
1317 if $ac_cache_corrupted; then
1318   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1319 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1320   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1321 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1322    { (exit 1); exit 1; }; }
1323 fi
1324
1325 ac_ext=c
1326 ac_cpp='$CPP $CPPFLAGS'
1327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357           ac_config_headers="$ac_config_headers config.h"
1358
1359
1360 am__api_version="1.9"
1361 ac_aux_dir=
1362 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1363   if test -f $ac_dir/install-sh; then
1364     ac_aux_dir=$ac_dir
1365     ac_install_sh="$ac_aux_dir/install-sh -c"
1366     break
1367   elif test -f $ac_dir/install.sh; then
1368     ac_aux_dir=$ac_dir
1369     ac_install_sh="$ac_aux_dir/install.sh -c"
1370     break
1371   elif test -f $ac_dir/shtool; then
1372     ac_aux_dir=$ac_dir
1373     ac_install_sh="$ac_aux_dir/shtool install -c"
1374     break
1375   fi
1376 done
1377 if test -z "$ac_aux_dir"; then
1378   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1379 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1380    { (exit 1); exit 1; }; }
1381 fi
1382 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1383 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1384 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1385
1386 # Find a good install program.  We prefer a C program (faster),
1387 # so one script is as good as another.  But avoid the broken or
1388 # incompatible versions:
1389 # SysV /etc/install, /usr/sbin/install
1390 # SunOS /usr/etc/install
1391 # IRIX /sbin/install
1392 # AIX /bin/install
1393 # AmigaOS /C/install, which installs bootblocks on floppy discs
1394 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1395 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1396 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1397 # OS/2's system install, which has a completely different semantic
1398 # ./install, which can be erroneously created by make from ./install.sh.
1399 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1400 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1401 if test -z "$INSTALL"; then
1402 if test "${ac_cv_path_install+set}" = set; then
1403   echo $ECHO_N "(cached) $ECHO_C" >&6
1404 else
1405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1406 for as_dir in $PATH
1407 do
1408   IFS=$as_save_IFS
1409   test -z "$as_dir" && as_dir=.
1410   # Account for people who put trailing slashes in PATH elements.
1411 case $as_dir/ in
1412   ./ | .// | /cC/* | \
1413   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1414   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1415   /usr/ucb/* ) ;;
1416   *)
1417     # OSF1 and SCO ODT 3.0 have their own names for install.
1418     # Don't use installbsd from OSF since it installs stuff as root
1419     # by default.
1420     for ac_prog in ginstall scoinst install; do
1421       for ac_exec_ext in '' $ac_executable_extensions; do
1422         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1423           if test $ac_prog = install &&
1424             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1425             # AIX install.  It has an incompatible calling convention.
1426             :
1427           elif test $ac_prog = install &&
1428             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1429             # program-specific install script used by HP pwplus--don't use.
1430             :
1431           else
1432             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1433             break 3
1434           fi
1435         fi
1436       done
1437     done
1438     ;;
1439 esac
1440 done
1441
1442
1443 fi
1444   if test "${ac_cv_path_install+set}" = set; then
1445     INSTALL=$ac_cv_path_install
1446   else
1447     # As a last resort, use the slow shell script.  We don't cache a
1448     # path for INSTALL within a source directory, because that will
1449     # break other packages using the cache if that directory is
1450     # removed, or if the path is relative.
1451     INSTALL=$ac_install_sh
1452   fi
1453 fi
1454 echo "$as_me:$LINENO: result: $INSTALL" >&5
1455 echo "${ECHO_T}$INSTALL" >&6
1456
1457 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1458 # It thinks the first close brace ends the variable substitution.
1459 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1460
1461 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1462
1463 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1464
1465 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1466 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1467 # Just in case
1468 sleep 1
1469 echo timestamp > conftest.file
1470 # Do `set' in a subshell so we don't clobber the current shell's
1471 # arguments.  Must try -L first in case configure is actually a
1472 # symlink; some systems play weird games with the mod time of symlinks
1473 # (eg FreeBSD returns the mod time of the symlink's containing
1474 # directory).
1475 if (
1476    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1477    if test "$*" = "X"; then
1478       # -L didn't work.
1479       set X `ls -t $srcdir/configure conftest.file`
1480    fi
1481    rm -f conftest.file
1482    if test "$*" != "X $srcdir/configure conftest.file" \
1483       && test "$*" != "X conftest.file $srcdir/configure"; then
1484
1485       # If neither matched, then we have a broken ls.  This can happen
1486       # if, for instance, CONFIG_SHELL is bash and it inherits a
1487       # broken ls alias from the environment.  This has actually
1488       # happened.  Such a system could not be considered "sane".
1489       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1490 alias in your environment" >&5
1491 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1492 alias in your environment" >&2;}
1493    { (exit 1); exit 1; }; }
1494    fi
1495
1496    test "$2" = conftest.file
1497    )
1498 then
1499    # Ok.
1500    :
1501 else
1502    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1503 Check your system clock" >&5
1504 echo "$as_me: error: newly created file is older than distributed files!
1505 Check your system clock" >&2;}
1506    { (exit 1); exit 1; }; }
1507 fi
1508 echo "$as_me:$LINENO: result: yes" >&5
1509 echo "${ECHO_T}yes" >&6
1510 test "$program_prefix" != NONE &&
1511   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1512 # Use a double $ so make ignores it.
1513 test "$program_suffix" != NONE &&
1514   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1515 # Double any \ or $.  echo might interpret backslashes.
1516 # By default was `s,x,x', remove it if useless.
1517 cat <<\_ACEOF >conftest.sed
1518 s/[\\$]/&&/g;s/;s,x,x,$//
1519 _ACEOF
1520 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1521 rm conftest.sed
1522
1523 # expand $ac_aux_dir to an absolute path
1524 am_aux_dir=`cd $ac_aux_dir && pwd`
1525
1526 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1527 # Use eval to expand $SHELL
1528 if eval "$MISSING --run true"; then
1529   am_missing_run="$MISSING --run "
1530 else
1531   am_missing_run=
1532   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1533 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1534 fi
1535
1536 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1537   # We used to keeping the `.' as first argument, in order to
1538   # allow $(mkdir_p) to be used without argument.  As in
1539   #   $(mkdir_p) $(somedir)
1540   # where $(somedir) is conditionally defined.  However this is wrong
1541   # for two reasons:
1542   #  1. if the package is installed by a user who cannot write `.'
1543   #     make install will fail,
1544   #  2. the above comment should most certainly read
1545   #     $(mkdir_p) $(DESTDIR)$(somedir)
1546   #     so it does not work when $(somedir) is undefined and
1547   #     $(DESTDIR) is not.
1548   #  To support the latter case, we have to write
1549   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1550   #  so the `.' trick is pointless.
1551   mkdir_p='mkdir -p --'
1552 else
1553   # On NextStep and OpenStep, the `mkdir' command does not
1554   # recognize any option.  It will interpret all options as
1555   # directories to create, and then abort because `.' already
1556   # exists.
1557   for d in ./-p ./--version;
1558   do
1559     test -d $d && rmdir $d
1560   done
1561   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1562   if test -f "$ac_aux_dir/mkinstalldirs"; then
1563     mkdir_p='$(mkinstalldirs)'
1564   else
1565     mkdir_p='$(install_sh) -d'
1566   fi
1567 fi
1568
1569 for ac_prog in gawk mawk nawk awk
1570 do
1571   # Extract the first word of "$ac_prog", so it can be a program name with args.
1572 set dummy $ac_prog; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_AWK+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   if test -n "$AWK"; then
1579   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1580 else
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1582 for as_dir in $PATH
1583 do
1584   IFS=$as_save_IFS
1585   test -z "$as_dir" && as_dir=.
1586   for ac_exec_ext in '' $ac_executable_extensions; do
1587   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588     ac_cv_prog_AWK="$ac_prog"
1589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1590     break 2
1591   fi
1592 done
1593 done
1594
1595 fi
1596 fi
1597 AWK=$ac_cv_prog_AWK
1598 if test -n "$AWK"; then
1599   echo "$as_me:$LINENO: result: $AWK" >&5
1600 echo "${ECHO_T}$AWK" >&6
1601 else
1602   echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1604 fi
1605
1606   test -n "$AWK" && break
1607 done
1608
1609 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1610 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1611 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1612 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1613   echo $ECHO_N "(cached) $ECHO_C" >&6
1614 else
1615   cat >conftest.make <<\_ACEOF
1616 all:
1617         @echo 'ac_maketemp="$(MAKE)"'
1618 _ACEOF
1619 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1620 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1621 if test -n "$ac_maketemp"; then
1622   eval ac_cv_prog_make_${ac_make}_set=yes
1623 else
1624   eval ac_cv_prog_make_${ac_make}_set=no
1625 fi
1626 rm -f conftest.make
1627 fi
1628 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1629   echo "$as_me:$LINENO: result: yes" >&5
1630 echo "${ECHO_T}yes" >&6
1631   SET_MAKE=
1632 else
1633   echo "$as_me:$LINENO: result: no" >&5
1634 echo "${ECHO_T}no" >&6
1635   SET_MAKE="MAKE=${MAKE-make}"
1636 fi
1637
1638 rm -rf .tst 2>/dev/null
1639 mkdir .tst 2>/dev/null
1640 if test -d .tst; then
1641   am__leading_dot=.
1642 else
1643   am__leading_dot=_
1644 fi
1645 rmdir .tst 2>/dev/null
1646
1647 # test to see if srcdir already configured
1648 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1649    test -f $srcdir/config.status; then
1650   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1651 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1652    { (exit 1); exit 1; }; }
1653 fi
1654
1655 # test whether we have cygpath
1656 if test -z "$CYGPATH_W"; then
1657   if (cygpath --version) >/dev/null 2>/dev/null; then
1658     CYGPATH_W='cygpath -w'
1659   else
1660     CYGPATH_W=echo
1661   fi
1662 fi
1663
1664
1665 # Define the identity of the package.
1666  PACKAGE='fmit'
1667  VERSION='0.97.7'
1668
1669
1670 # Some tools Automake needs.
1671
1672 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1673
1674
1675 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1676
1677
1678 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1679
1680
1681 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1682
1683
1684 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1685
1686 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1687
1688 # Installed binaries are usually stripped using `strip' when the user
1689 # run `make install-strip'.  However `strip' might not be the right
1690 # tool to use in cross-compilation environments, therefore Automake
1691 # will honor the `STRIP' environment variable to overrule this program.
1692 if test "$cross_compiling" != no; then
1693   if test -n "$ac_tool_prefix"; then
1694   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1695 set dummy ${ac_tool_prefix}strip; ac_word=$2
1696 echo "$as_me:$LINENO: checking for $ac_word" >&5
1697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1698 if test "${ac_cv_prog_STRIP+set}" = set; then
1699   echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701   if test -n "$STRIP"; then
1702   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1703 else
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   for ac_exec_ext in '' $ac_executable_extensions; do
1710   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1711     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1712     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713     break 2
1714   fi
1715 done
1716 done
1717
1718 fi
1719 fi
1720 STRIP=$ac_cv_prog_STRIP
1721 if test -n "$STRIP"; then
1722   echo "$as_me:$LINENO: result: $STRIP" >&5
1723 echo "${ECHO_T}$STRIP" >&6
1724 else
1725   echo "$as_me:$LINENO: result: no" >&5
1726 echo "${ECHO_T}no" >&6
1727 fi
1728
1729 fi
1730 if test -z "$ac_cv_prog_STRIP"; then
1731   ac_ct_STRIP=$STRIP
1732   # Extract the first word of "strip", so it can be a program name with args.
1733 set dummy strip; ac_word=$2
1734 echo "$as_me:$LINENO: checking for $ac_word" >&5
1735 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1736 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1737   echo $ECHO_N "(cached) $ECHO_C" >&6
1738 else
1739   if test -n "$ac_ct_STRIP"; then
1740   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1741 else
1742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743 for as_dir in $PATH
1744 do
1745   IFS=$as_save_IFS
1746   test -z "$as_dir" && as_dir=.
1747   for ac_exec_ext in '' $ac_executable_extensions; do
1748   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749     ac_cv_prog_ac_ct_STRIP="strip"
1750     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1751     break 2
1752   fi
1753 done
1754 done
1755
1756   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1757 fi
1758 fi
1759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1760 if test -n "$ac_ct_STRIP"; then
1761   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1762 echo "${ECHO_T}$ac_ct_STRIP" >&6
1763 else
1764   echo "$as_me:$LINENO: result: no" >&5
1765 echo "${ECHO_T}no" >&6
1766 fi
1767
1768   STRIP=$ac_ct_STRIP
1769 else
1770   STRIP="$ac_cv_prog_STRIP"
1771 fi
1772
1773 fi
1774 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1775
1776 # We need awk for the "check" target.  The system "awk" is bad on
1777 # some platforms.
1778 # Always define AMTAR for backward compatibility.
1779
1780 AMTAR=${AMTAR-"${am_missing_run}tar"}
1781
1782 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1783
1784
1785
1786
1787
1788
1789 echo "$as_me:$LINENO: checking whether to enable debugging" >&5
1790 echo $ECHO_N "checking whether to enable debugging... $ECHO_C" >&6
1791 # Check whether --enable-debug or --disable-debug was given.
1792 if test "${enable_debug+set}" = set; then
1793   enableval="$enable_debug"
1794
1795 fi;
1796 if test "x$enable_debug" = "xyes"; then
1797         CXXFLAGS="$CPPFLAGS -g -DDEBUG"
1798         echo "$as_me:$LINENO: result: yes" >&5
1799 echo "${ECHO_T}yes" >&6
1800 else
1801         CXXFLAGS="$CPPFLAGS -O3 -ffast-math"
1802         echo "$as_me:$LINENO: result: no" >&5
1803 echo "${ECHO_T}no" >&6
1804 fi
1805
1806 # Set default installation prefix.
1807
1808 ac_prefix=$prefix
1809 if test "x$ac_prefix" = "xNONE"; then
1810         ac_prefix=$ac_default_prefix
1811 fi
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PREFIX "$ac_prefix"
1816 _ACEOF
1817
1818
1819 # Checks for programs.
1820 if test -n "$ac_tool_prefix"; then
1821   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1822 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1823 echo "$as_me:$LINENO: checking for $ac_word" >&5
1824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1825 if test "${ac_cv_prog_RANLIB+set}" = set; then
1826   echo $ECHO_N "(cached) $ECHO_C" >&6
1827 else
1828   if test -n "$RANLIB"; then
1829   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1830 else
1831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1832 for as_dir in $PATH
1833 do
1834   IFS=$as_save_IFS
1835   test -z "$as_dir" && as_dir=.
1836   for ac_exec_ext in '' $ac_executable_extensions; do
1837   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1838     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1839     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1840     break 2
1841   fi
1842 done
1843 done
1844
1845 fi
1846 fi
1847 RANLIB=$ac_cv_prog_RANLIB
1848 if test -n "$RANLIB"; then
1849   echo "$as_me:$LINENO: result: $RANLIB" >&5
1850 echo "${ECHO_T}$RANLIB" >&6
1851 else
1852   echo "$as_me:$LINENO: result: no" >&5
1853 echo "${ECHO_T}no" >&6
1854 fi
1855
1856 fi
1857 if test -z "$ac_cv_prog_RANLIB"; then
1858   ac_ct_RANLIB=$RANLIB
1859   # Extract the first word of "ranlib", so it can be a program name with args.
1860 set dummy ranlib; ac_word=$2
1861 echo "$as_me:$LINENO: checking for $ac_word" >&5
1862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1863 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1864   echo $ECHO_N "(cached) $ECHO_C" >&6
1865 else
1866   if test -n "$ac_ct_RANLIB"; then
1867   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1868 else
1869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1870 for as_dir in $PATH
1871 do
1872   IFS=$as_save_IFS
1873   test -z "$as_dir" && as_dir=.
1874   for ac_exec_ext in '' $ac_executable_extensions; do
1875   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1876     ac_cv_prog_ac_ct_RANLIB="ranlib"
1877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1878     break 2
1879   fi
1880 done
1881 done
1882
1883   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1884 fi
1885 fi
1886 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1887 if test -n "$ac_ct_RANLIB"; then
1888   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
1889 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1890 else
1891   echo "$as_me:$LINENO: result: no" >&5
1892 echo "${ECHO_T}no" >&6
1893 fi
1894
1895   RANLIB=$ac_ct_RANLIB
1896 else
1897   RANLIB="$ac_cv_prog_RANLIB"
1898 fi
1899
1900 ac_ext=c
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 if test -n "$ac_tool_prefix"; then
1906   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1907 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1908 echo "$as_me:$LINENO: checking for $ac_word" >&5
1909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1910 if test "${ac_cv_prog_CC+set}" = set; then
1911   echo $ECHO_N "(cached) $ECHO_C" >&6
1912 else
1913   if test -n "$CC"; then
1914   ac_cv_prog_CC="$CC" # Let the user override the test.
1915 else
1916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1917 for as_dir in $PATH
1918 do
1919   IFS=$as_save_IFS
1920   test -z "$as_dir" && as_dir=.
1921   for ac_exec_ext in '' $ac_executable_extensions; do
1922   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1923     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1925     break 2
1926   fi
1927 done
1928 done
1929
1930 fi
1931 fi
1932 CC=$ac_cv_prog_CC
1933 if test -n "$CC"; then
1934   echo "$as_me:$LINENO: result: $CC" >&5
1935 echo "${ECHO_T}$CC" >&6
1936 else
1937   echo "$as_me:$LINENO: result: no" >&5
1938 echo "${ECHO_T}no" >&6
1939 fi
1940
1941 fi
1942 if test -z "$ac_cv_prog_CC"; then
1943   ac_ct_CC=$CC
1944   # Extract the first word of "gcc", so it can be a program name with args.
1945 set dummy gcc; ac_word=$2
1946 echo "$as_me:$LINENO: checking for $ac_word" >&5
1947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1948 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1949   echo $ECHO_N "(cached) $ECHO_C" >&6
1950 else
1951   if test -n "$ac_ct_CC"; then
1952   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1953 else
1954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 for as_dir in $PATH
1956 do
1957   IFS=$as_save_IFS
1958   test -z "$as_dir" && as_dir=.
1959   for ac_exec_ext in '' $ac_executable_extensions; do
1960   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1961     ac_cv_prog_ac_ct_CC="gcc"
1962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1963     break 2
1964   fi
1965 done
1966 done
1967
1968 fi
1969 fi
1970 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1971 if test -n "$ac_ct_CC"; then
1972   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1973 echo "${ECHO_T}$ac_ct_CC" >&6
1974 else
1975   echo "$as_me:$LINENO: result: no" >&5
1976 echo "${ECHO_T}no" >&6
1977 fi
1978
1979   CC=$ac_ct_CC
1980 else
1981   CC="$ac_cv_prog_CC"
1982 fi
1983
1984 if test -z "$CC"; then
1985   if test -n "$ac_tool_prefix"; then
1986   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1987 set dummy ${ac_tool_prefix}cc; ac_word=$2
1988 echo "$as_me:$LINENO: checking for $ac_word" >&5
1989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1990 if test "${ac_cv_prog_CC+set}" = set; then
1991   echo $ECHO_N "(cached) $ECHO_C" >&6
1992 else
1993   if test -n "$CC"; then
1994   ac_cv_prog_CC="$CC" # Let the user override the test.
1995 else
1996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1997 for as_dir in $PATH
1998 do
1999   IFS=$as_save_IFS
2000   test -z "$as_dir" && as_dir=.
2001   for ac_exec_ext in '' $ac_executable_extensions; do
2002   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2003     ac_cv_prog_CC="${ac_tool_prefix}cc"
2004     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2005     break 2
2006   fi
2007 done
2008 done
2009
2010 fi
2011 fi
2012 CC=$ac_cv_prog_CC
2013 if test -n "$CC"; then
2014   echo "$as_me:$LINENO: result: $CC" >&5
2015 echo "${ECHO_T}$CC" >&6
2016 else
2017   echo "$as_me:$LINENO: result: no" >&5
2018 echo "${ECHO_T}no" >&6
2019 fi
2020
2021 fi
2022 if test -z "$ac_cv_prog_CC"; then
2023   ac_ct_CC=$CC
2024   # Extract the first word of "cc", so it can be a program name with args.
2025 set dummy cc; ac_word=$2
2026 echo "$as_me:$LINENO: checking for $ac_word" >&5
2027 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2028 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2029   echo $ECHO_N "(cached) $ECHO_C" >&6
2030 else
2031   if test -n "$ac_ct_CC"; then
2032   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2033 else
2034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2035 for as_dir in $PATH
2036 do
2037   IFS=$as_save_IFS
2038   test -z "$as_dir" && as_dir=.
2039   for ac_exec_ext in '' $ac_executable_extensions; do
2040   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2041     ac_cv_prog_ac_ct_CC="cc"
2042     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043     break 2
2044   fi
2045 done
2046 done
2047
2048 fi
2049 fi
2050 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2051 if test -n "$ac_ct_CC"; then
2052   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2053 echo "${ECHO_T}$ac_ct_CC" >&6
2054 else
2055   echo "$as_me:$LINENO: result: no" >&5
2056 echo "${ECHO_T}no" >&6
2057 fi
2058
2059   CC=$ac_ct_CC
2060 else
2061   CC="$ac_cv_prog_CC"
2062 fi
2063
2064 fi
2065 if test -z "$CC"; then
2066   # Extract the first word of "cc", so it can be a program name with args.
2067 set dummy cc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$CC"; then
2074   ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076   ac_prog_rejected=no
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2079 do
2080   IFS=$as_save_IFS
2081   test -z "$as_dir" && as_dir=.
2082   for ac_exec_ext in '' $ac_executable_extensions; do
2083   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2084     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2085        ac_prog_rejected=yes
2086        continue
2087      fi
2088     ac_cv_prog_CC="cc"
2089     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2090     break 2
2091   fi
2092 done
2093 done
2094
2095 if test $ac_prog_rejected = yes; then
2096   # We found a bogon in the path, so make sure we never use it.
2097   set dummy $ac_cv_prog_CC
2098   shift
2099   if test $# != 0; then
2100     # We chose a different compiler from the bogus one.
2101     # However, it has the same basename, so the bogon will be chosen
2102     # first if we set CC to just the basename; use the full file name.
2103     shift
2104     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2105   fi
2106 fi
2107 fi
2108 fi
2109 CC=$ac_cv_prog_CC
2110 if test -n "$CC"; then
2111   echo "$as_me:$LINENO: result: $CC" >&5
2112 echo "${ECHO_T}$CC" >&6
2113 else
2114   echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6
2116 fi
2117
2118 fi
2119 if test -z "$CC"; then
2120   if test -n "$ac_tool_prefix"; then
2121   for ac_prog in cl
2122   do
2123     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2124 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2125 echo "$as_me:$LINENO: checking for $ac_word" >&5
2126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2127 if test "${ac_cv_prog_CC+set}" = set; then
2128   echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130   if test -n "$CC"; then
2131   ac_cv_prog_CC="$CC" # Let the user override the test.
2132 else
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   for ac_exec_ext in '' $ac_executable_extensions; do
2139   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2140     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2141     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2142     break 2
2143   fi
2144 done
2145 done
2146
2147 fi
2148 fi
2149 CC=$ac_cv_prog_CC
2150 if test -n "$CC"; then
2151   echo "$as_me:$LINENO: result: $CC" >&5
2152 echo "${ECHO_T}$CC" >&6
2153 else
2154   echo "$as_me:$LINENO: result: no" >&5
2155 echo "${ECHO_T}no" >&6
2156 fi
2157
2158     test -n "$CC" && break
2159   done
2160 fi
2161 if test -z "$CC"; then
2162   ac_ct_CC=$CC
2163   for ac_prog in cl
2164 do
2165   # Extract the first word of "$ac_prog", so it can be a program name with args.
2166 set dummy $ac_prog; ac_word=$2
2167 echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2169 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2170   echo $ECHO_N "(cached) $ECHO_C" >&6
2171 else
2172   if test -n "$ac_ct_CC"; then
2173   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2174 else
2175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2176 for as_dir in $PATH
2177 do
2178   IFS=$as_save_IFS
2179   test -z "$as_dir" && as_dir=.
2180   for ac_exec_ext in '' $ac_executable_extensions; do
2181   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2182     ac_cv_prog_ac_ct_CC="$ac_prog"
2183     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2184     break 2
2185   fi
2186 done
2187 done
2188
2189 fi
2190 fi
2191 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2192 if test -n "$ac_ct_CC"; then
2193   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2194 echo "${ECHO_T}$ac_ct_CC" >&6
2195 else
2196   echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6
2198 fi
2199
2200   test -n "$ac_ct_CC" && break
2201 done
2202
2203   CC=$ac_ct_CC
2204 fi
2205
2206 fi
2207
2208
2209 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2210 See \`config.log' for more details." >&5
2211 echo "$as_me: error: no acceptable C compiler found in \$PATH
2212 See \`config.log' for more details." >&2;}
2213    { (exit 1); exit 1; }; }
2214
2215 # Provide some information about the compiler.
2216 echo "$as_me:$LINENO:" \
2217      "checking for C compiler version" >&5
2218 ac_compiler=`set X $ac_compile; echo $2`
2219 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2220   (eval $ac_compiler --version </dev/null >&5) 2>&5
2221   ac_status=$?
2222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223   (exit $ac_status); }
2224 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2225   (eval $ac_compiler -v </dev/null >&5) 2>&5
2226   ac_status=$?
2227   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2228   (exit $ac_status); }
2229 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2230   (eval $ac_compiler -V </dev/null >&5) 2>&5
2231   ac_status=$?
2232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2233   (exit $ac_status); }
2234
2235 cat >conftest.$ac_ext <<_ACEOF
2236 /* confdefs.h.  */
2237 _ACEOF
2238 cat confdefs.h >>conftest.$ac_ext
2239 cat >>conftest.$ac_ext <<_ACEOF
2240 /* end confdefs.h.  */
2241
2242 int
2243 main ()
2244 {
2245
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 ac_clean_files_save=$ac_clean_files
2251 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2252 # Try to create an executable without -o first, disregard a.out.
2253 # It will help us diagnose broken compilers, and finding out an intuition
2254 # of exeext.
2255 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2256 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2257 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2258 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2259   (eval $ac_link_default) 2>&5
2260   ac_status=$?
2261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262   (exit $ac_status); }; then
2263   # Find the output, starting from the most likely.  This scheme is
2264 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2265 # resort.
2266
2267 # Be careful to initialize this variable, since it used to be cached.
2268 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2269 ac_cv_exeext=
2270 # b.out is created by i960 compilers.
2271 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2272 do
2273   test -f "$ac_file" || continue
2274   case $ac_file in
2275     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2276         ;;
2277     conftest.$ac_ext )
2278         # This is the source file.
2279         ;;
2280     [ab].out )
2281         # We found the default executable, but exeext='' is most
2282         # certainly right.
2283         break;;
2284     *.* )
2285         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2286         # FIXME: I believe we export ac_cv_exeext for Libtool,
2287         # but it would be cool to find out if it's true.  Does anybody
2288         # maintain Libtool? --akim.
2289         export ac_cv_exeext
2290         break;;
2291     * )
2292         break;;
2293   esac
2294 done
2295 else
2296   echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2298
2299 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2300 See \`config.log' for more details." >&5
2301 echo "$as_me: error: C compiler cannot create executables
2302 See \`config.log' for more details." >&2;}
2303    { (exit 77); exit 77; }; }
2304 fi
2305
2306 ac_exeext=$ac_cv_exeext
2307 echo "$as_me:$LINENO: result: $ac_file" >&5
2308 echo "${ECHO_T}$ac_file" >&6
2309
2310 # Check the compiler produces executables we can run.  If not, either
2311 # the compiler is broken, or we cross compile.
2312 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2313 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2314 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2315 # If not cross compiling, check that we can run a simple program.
2316 if test "$cross_compiling" != yes; then
2317   if { ac_try='./$ac_file'
2318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319   (eval $ac_try) 2>&5
2320   ac_status=$?
2321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322   (exit $ac_status); }; }; then
2323     cross_compiling=no
2324   else
2325     if test "$cross_compiling" = maybe; then
2326         cross_compiling=yes
2327     else
2328         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2329 If you meant to cross compile, use \`--host'.
2330 See \`config.log' for more details." >&5
2331 echo "$as_me: error: cannot run C compiled programs.
2332 If you meant to cross compile, use \`--host'.
2333 See \`config.log' for more details." >&2;}
2334    { (exit 1); exit 1; }; }
2335     fi
2336   fi
2337 fi
2338 echo "$as_me:$LINENO: result: yes" >&5
2339 echo "${ECHO_T}yes" >&6
2340
2341 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2342 ac_clean_files=$ac_clean_files_save
2343 # Check the compiler produces executables we can run.  If not, either
2344 # the compiler is broken, or we cross compile.
2345 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2346 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2347 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2348 echo "${ECHO_T}$cross_compiling" >&6
2349
2350 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2351 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2353   (eval $ac_link) 2>&5
2354   ac_status=$?
2355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2356   (exit $ac_status); }; then
2357   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2358 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2359 # work properly (i.e., refer to `conftest.exe'), while it won't with
2360 # `rm'.
2361 for ac_file in conftest.exe conftest conftest.*; do
2362   test -f "$ac_file" || continue
2363   case $ac_file in
2364     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2365     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2366           export ac_cv_exeext
2367           break;;
2368     * ) break;;
2369   esac
2370 done
2371 else
2372   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2373 See \`config.log' for more details." >&5
2374 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2375 See \`config.log' for more details." >&2;}
2376    { (exit 1); exit 1; }; }
2377 fi
2378
2379 rm -f conftest$ac_cv_exeext
2380 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2381 echo "${ECHO_T}$ac_cv_exeext" >&6
2382
2383 rm -f conftest.$ac_ext
2384 EXEEXT=$ac_cv_exeext
2385 ac_exeext=$EXEEXT
2386 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2387 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2388 if test "${ac_cv_objext+set}" = set; then
2389   echo $ECHO_N "(cached) $ECHO_C" >&6
2390 else
2391   cat >conftest.$ac_ext <<_ACEOF
2392 /* confdefs.h.  */
2393 _ACEOF
2394 cat confdefs.h >>conftest.$ac_ext
2395 cat >>conftest.$ac_ext <<_ACEOF
2396 /* end confdefs.h.  */
2397
2398 int
2399 main ()
2400 {
2401
2402   ;
2403   return 0;
2404 }
2405 _ACEOF
2406 rm -f conftest.o conftest.obj
2407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2408   (eval $ac_compile) 2>&5
2409   ac_status=$?
2410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411   (exit $ac_status); }; then
2412   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2413   case $ac_file in
2414     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2415     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2416        break;;
2417   esac
2418 done
2419 else
2420   echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2422
2423 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2424 See \`config.log' for more details." >&5
2425 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2426 See \`config.log' for more details." >&2;}
2427    { (exit 1); exit 1; }; }
2428 fi
2429
2430 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2431 fi
2432 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2433 echo "${ECHO_T}$ac_cv_objext" >&6
2434 OBJEXT=$ac_cv_objext
2435 ac_objext=$OBJEXT
2436 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2437 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2438 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2439   echo $ECHO_N "(cached) $ECHO_C" >&6
2440 else
2441   cat >conftest.$ac_ext <<_ACEOF
2442 /* confdefs.h.  */
2443 _ACEOF
2444 cat confdefs.h >>conftest.$ac_ext
2445 cat >>conftest.$ac_ext <<_ACEOF
2446 /* end confdefs.h.  */
2447
2448 int
2449 main ()
2450 {
2451 #ifndef __GNUC__
2452        choke me
2453 #endif
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 rm -f conftest.$ac_objext
2460 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2461   (eval $ac_compile) 2>conftest.er1
2462   ac_status=$?
2463   grep -v '^ *+' conftest.er1 >conftest.err
2464   rm -f conftest.er1
2465   cat conftest.err >&5
2466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2467   (exit $ac_status); } &&
2468          { ac_try='test -z "$ac_c_werror_flag"
2469                          || test ! -s conftest.err'
2470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2471   (eval $ac_try) 2>&5
2472   ac_status=$?
2473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474   (exit $ac_status); }; } &&
2475          { ac_try='test -s conftest.$ac_objext'
2476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477   (eval $ac_try) 2>&5
2478   ac_status=$?
2479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480   (exit $ac_status); }; }; then
2481   ac_compiler_gnu=yes
2482 else
2483   echo "$as_me: failed program was:" >&5
2484 sed 's/^/| /' conftest.$ac_ext >&5
2485
2486 ac_compiler_gnu=no
2487 fi
2488 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2489 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2490
2491 fi
2492 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2493 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2494 GCC=`test $ac_compiler_gnu = yes && echo yes`
2495 ac_test_CFLAGS=${CFLAGS+set}
2496 ac_save_CFLAGS=$CFLAGS
2497 CFLAGS="-g"
2498 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2500 if test "${ac_cv_prog_cc_g+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.$ac_ext <<_ACEOF
2504 /* confdefs.h.  */
2505 _ACEOF
2506 cat confdefs.h >>conftest.$ac_ext
2507 cat >>conftest.$ac_ext <<_ACEOF
2508 /* end confdefs.h.  */
2509
2510 int
2511 main ()
2512 {
2513
2514   ;
2515   return 0;
2516 }
2517 _ACEOF
2518 rm -f conftest.$ac_objext
2519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2520   (eval $ac_compile) 2>conftest.er1
2521   ac_status=$?
2522   grep -v '^ *+' conftest.er1 >conftest.err
2523   rm -f conftest.er1
2524   cat conftest.err >&5
2525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526   (exit $ac_status); } &&
2527          { ac_try='test -z "$ac_c_werror_flag"
2528                          || test ! -s conftest.err'
2529   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530   (eval $ac_try) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; } &&
2534          { ac_try='test -s conftest.$ac_objext'
2535   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2536   (eval $ac_try) 2>&5
2537   ac_status=$?
2538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539   (exit $ac_status); }; }; then
2540   ac_cv_prog_cc_g=yes
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2544
2545 ac_cv_prog_cc_g=no
2546 fi
2547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2548 fi
2549 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2550 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2551 if test "$ac_test_CFLAGS" = set; then
2552   CFLAGS=$ac_save_CFLAGS
2553 elif test $ac_cv_prog_cc_g = yes; then
2554   if test "$GCC" = yes; then
2555     CFLAGS="-g -O2"
2556   else
2557     CFLAGS="-g"
2558   fi
2559 else
2560   if test "$GCC" = yes; then
2561     CFLAGS="-O2"
2562   else
2563     CFLAGS=
2564   fi
2565 fi
2566 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2567 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2568 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2569   echo $ECHO_N "(cached) $ECHO_C" >&6
2570 else
2571   ac_cv_prog_cc_stdc=no
2572 ac_save_CC=$CC
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h.  */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h.  */
2579 #include <stdarg.h>
2580 #include <stdio.h>
2581 #include <sys/types.h>
2582 #include <sys/stat.h>
2583 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2584 struct buf { int x; };
2585 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2586 static char *e (p, i)
2587      char **p;
2588      int i;
2589 {
2590   return p[i];
2591 }
2592 static char *f (char * (*g) (char **, int), char **p, ...)
2593 {
2594   char *s;
2595   va_list v;
2596   va_start (v,p);
2597   s = g (p, va_arg (v,int));
2598   va_end (v);
2599   return s;
2600 }
2601
2602 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2603    function prototypes and stuff, but not '\xHH' hex character constants.
2604    These don't provoke an error unfortunately, instead are silently treated
2605    as 'x'.  The following induces an error, until -std1 is added to get
2606    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2607    array size at least.  It's necessary to write '\x00'==0 to get something
2608    that's true only with -std1.  */
2609 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2610
2611 int test (int i, double x);
2612 struct s1 {int (*f) (int a);};
2613 struct s2 {int (*f) (double a);};
2614 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2615 int argc;
2616 char **argv;
2617 int
2618 main ()
2619 {
2620 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 # Don't try gcc -ansi; that turns off useful extensions and
2626 # breaks some systems' header files.
2627 # AIX                   -qlanglvl=ansi
2628 # Ultrix and OSF/1      -std1
2629 # HP-UX 10.20 and later -Ae
2630 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2631 # SVR4                  -Xc -D__EXTENSIONS__
2632 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2633 do
2634   CC="$ac_save_CC $ac_arg"
2635   rm -f conftest.$ac_objext
2636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2637   (eval $ac_compile) 2>conftest.er1
2638   ac_status=$?
2639   grep -v '^ *+' conftest.er1 >conftest.err
2640   rm -f conftest.er1
2641   cat conftest.err >&5
2642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643   (exit $ac_status); } &&
2644          { ac_try='test -z "$ac_c_werror_flag"
2645                          || test ! -s conftest.err'
2646   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2647   (eval $ac_try) 2>&5
2648   ac_status=$?
2649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2650   (exit $ac_status); }; } &&
2651          { ac_try='test -s conftest.$ac_objext'
2652   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2653   (eval $ac_try) 2>&5
2654   ac_status=$?
2655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2656   (exit $ac_status); }; }; then
2657   ac_cv_prog_cc_stdc=$ac_arg
2658 break
2659 else
2660   echo "$as_me: failed program was:" >&5
2661 sed 's/^/| /' conftest.$ac_ext >&5
2662
2663 fi
2664 rm -f conftest.err conftest.$ac_objext
2665 done
2666 rm -f conftest.$ac_ext conftest.$ac_objext
2667 CC=$ac_save_CC
2668
2669 fi
2670
2671 case "x$ac_cv_prog_cc_stdc" in
2672   x|xno)
2673     echo "$as_me:$LINENO: result: none needed" >&5
2674 echo "${ECHO_T}none needed" >&6 ;;
2675   *)
2676     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2677 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2678     CC="$CC $ac_cv_prog_cc_stdc" ;;
2679 esac
2680
2681 # Some people use a C++ compiler to compile C.  Since we use `exit',
2682 # in C++ we need to declare it.  In case someone uses the same compiler
2683 # for both compiling C and C++ we need to have the C++ compiler decide
2684 # the declaration of exit, since it's the most demanding environment.
2685 cat >conftest.$ac_ext <<_ACEOF
2686 #ifndef __cplusplus
2687   choke me
2688 #endif
2689 _ACEOF
2690 rm -f conftest.$ac_objext
2691 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2692   (eval $ac_compile) 2>conftest.er1
2693   ac_status=$?
2694   grep -v '^ *+' conftest.er1 >conftest.err
2695   rm -f conftest.er1
2696   cat conftest.err >&5
2697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698   (exit $ac_status); } &&
2699          { ac_try='test -z "$ac_c_werror_flag"
2700                          || test ! -s conftest.err'
2701   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702   (eval $ac_try) 2>&5
2703   ac_status=$?
2704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2705   (exit $ac_status); }; } &&
2706          { ac_try='test -s conftest.$ac_objext'
2707   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2708   (eval $ac_try) 2>&5
2709   ac_status=$?
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); }; }; then
2712   for ac_declaration in \
2713    '' \
2714    'extern "C" void std::exit (int) throw (); using std::exit;' \
2715    'extern "C" void std::exit (int); using std::exit;' \
2716    'extern "C" void exit (int) throw ();' \
2717    'extern "C" void exit (int);' \
2718    'void exit (int);'
2719 do
2720   cat >conftest.$ac_ext <<_ACEOF
2721 /* confdefs.h.  */
2722 _ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h.  */
2726 $ac_declaration
2727 #include <stdlib.h>
2728 int
2729 main ()
2730 {
2731 exit (42);
2732   ;
2733   return 0;
2734 }
2735 _ACEOF
2736 rm -f conftest.$ac_objext
2737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2738   (eval $ac_compile) 2>conftest.er1
2739   ac_status=$?
2740   grep -v '^ *+' conftest.er1 >conftest.err
2741   rm -f conftest.er1
2742   cat conftest.err >&5
2743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744   (exit $ac_status); } &&
2745          { ac_try='test -z "$ac_c_werror_flag"
2746                          || test ! -s conftest.err'
2747   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2748   (eval $ac_try) 2>&5
2749   ac_status=$?
2750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2751   (exit $ac_status); }; } &&
2752          { ac_try='test -s conftest.$ac_objext'
2753   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2754   (eval $ac_try) 2>&5
2755   ac_status=$?
2756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757   (exit $ac_status); }; }; then
2758   :
2759 else
2760   echo "$as_me: failed program was:" >&5
2761 sed 's/^/| /' conftest.$ac_ext >&5
2762
2763 continue
2764 fi
2765 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2766   cat >conftest.$ac_ext <<_ACEOF
2767 /* confdefs.h.  */
2768 _ACEOF
2769 cat confdefs.h >>conftest.$ac_ext
2770 cat >>conftest.$ac_ext <<_ACEOF
2771 /* end confdefs.h.  */
2772 $ac_declaration
2773 int
2774 main ()
2775 {
2776 exit (42);
2777   ;
2778   return 0;
2779 }
2780 _ACEOF
2781 rm -f conftest.$ac_objext
2782 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2783   (eval $ac_compile) 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } &&
2790          { ac_try='test -z "$ac_c_werror_flag"
2791                          || test ! -s conftest.err'
2792   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2793   (eval $ac_try) 2>&5
2794   ac_status=$?
2795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796   (exit $ac_status); }; } &&
2797          { ac_try='test -s conftest.$ac_objext'
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); }; }; then
2803   break
2804 else
2805   echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2807
2808 fi
2809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2810 done
2811 rm -f conftest*
2812 if test -n "$ac_declaration"; then
2813   echo '#ifdef __cplusplus' >>confdefs.h
2814   echo $ac_declaration      >>confdefs.h
2815   echo '#endif'             >>confdefs.h
2816 fi
2817
2818 else
2819   echo "$as_me: failed program was:" >&5
2820 sed 's/^/| /' conftest.$ac_ext >&5
2821
2822 fi
2823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2824 ac_ext=c
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2829 DEPDIR="${am__leading_dot}deps"
2830
2831           ac_config_commands="$ac_config_commands depfiles"
2832
2833
2834 am_make=${MAKE-make}
2835 cat > confinc << 'END'
2836 am__doit:
2837         @echo done
2838 .PHONY: am__doit
2839 END
2840 # If we don't find an include directive, just comment out the code.
2841 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2842 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2843 am__include="#"
2844 am__quote=
2845 _am_result=none
2846 # First try GNU make style include.
2847 echo "include confinc" > confmf
2848 # We grep out `Entering directory' and `Leaving directory'
2849 # messages which can occur if `w' ends up in MAKEFLAGS.
2850 # In particular we don't look at `^make:' because GNU make might
2851 # be invoked under some other name (usually "gmake"), in which
2852 # case it prints its new name instead of `make'.
2853 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2854    am__include=include
2855    am__quote=
2856    _am_result=GNU
2857 fi
2858 # Now try BSD make style include.
2859 if test "$am__include" = "#"; then
2860    echo '.include "confinc"' > confmf
2861    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2862       am__include=.include
2863       am__quote="\""
2864       _am_result=BSD
2865    fi
2866 fi
2867
2868
2869 echo "$as_me:$LINENO: result: $_am_result" >&5
2870 echo "${ECHO_T}$_am_result" >&6
2871 rm -f confinc confmf
2872
2873 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2874 if test "${enable_dependency_tracking+set}" = set; then
2875   enableval="$enable_dependency_tracking"
2876
2877 fi;
2878 if test "x$enable_dependency_tracking" != xno; then
2879   am_depcomp="$ac_aux_dir/depcomp"
2880   AMDEPBACKSLASH='\'
2881 fi
2882
2883
2884 if test "x$enable_dependency_tracking" != xno; then
2885   AMDEP_TRUE=
2886   AMDEP_FALSE='#'
2887 else
2888   AMDEP_TRUE='#'
2889   AMDEP_FALSE=
2890 fi
2891
2892
2893
2894
2895 depcc="$CC"   am_compiler_list=
2896
2897 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2898 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2899 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2900   echo $ECHO_N "(cached) $ECHO_C" >&6
2901 else
2902   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2903   # We make a subdir and do the tests there.  Otherwise we can end up
2904   # making bogus files that we don't know about and never remove.  For
2905   # instance it was reported that on HP-UX the gcc test will end up
2906   # making a dummy file named `D' -- because `-MD' means `put the output
2907   # in D'.
2908   mkdir conftest.dir
2909   # Copy depcomp to subdir because otherwise we won't find it if we're
2910   # using a relative directory.
2911   cp "$am_depcomp" conftest.dir
2912   cd conftest.dir
2913   # We will build objects and dependencies in a subdirectory because
2914   # it helps to detect inapplicable dependency modes.  For instance
2915   # both Tru64's cc and ICC support -MD to output dependencies as a
2916   # side effect of compilation, but ICC will put the dependencies in
2917   # the current directory while Tru64 will put them in the object
2918   # directory.
2919   mkdir sub
2920
2921   am_cv_CC_dependencies_compiler_type=none
2922   if test "$am_compiler_list" = ""; then
2923      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2924   fi
2925   for depmode in $am_compiler_list; do
2926     # Setup a source with many dependencies, because some compilers
2927     # like to wrap large dependency lists on column 80 (with \), and
2928     # we should not choose a depcomp mode which is confused by this.
2929     #
2930     # We need to recreate these files for each test, as the compiler may
2931     # overwrite some of them when testing with obscure command lines.
2932     # This happens at least with the AIX C compiler.
2933     : > sub/conftest.c
2934     for i in 1 2 3 4 5 6; do
2935       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2936       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2937       # Solaris 8's {/usr,}/bin/sh.
2938       touch sub/conftst$i.h
2939     done
2940     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2941
2942     case $depmode in
2943     nosideeffect)
2944       # after this tag, mechanisms are not by side-effect, so they'll
2945       # only be used when explicitly requested
2946       if test "x$enable_dependency_tracking" = xyes; then
2947         continue
2948       else
2949         break
2950       fi
2951       ;;
2952     none) break ;;
2953     esac
2954     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2955     # mode.  It turns out that the SunPro C++ compiler does not properly
2956     # handle `-M -o', and we need to detect this.
2957     if depmode=$depmode \
2958        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2959        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2960        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2961          >/dev/null 2>conftest.err &&
2962        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2963        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2964        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2965       # icc doesn't choke on unknown options, it will just issue warnings
2966       # or remarks (even with -Werror).  So we grep stderr for any message
2967       # that says an option was ignored or not supported.
2968       # When given -MP, icc 7.0 and 7.1 complain thusly:
2969       #   icc: Command line warning: ignoring option '-M'; no argument required
2970       # The diagnosis changed in icc 8.0:
2971       #   icc: Command line remark: option '-MP' not supported
2972       if (grep 'ignoring option' conftest.err ||
2973           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2974         am_cv_CC_dependencies_compiler_type=$depmode
2975         break
2976       fi
2977     fi
2978   done
2979
2980   cd ..
2981   rm -rf conftest.dir
2982 else
2983   am_cv_CC_dependencies_compiler_type=none
2984 fi
2985
2986 fi
2987 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2988 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2989 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2990
2991
2992
2993 if
2994   test "x$enable_dependency_tracking" != xno \
2995   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2996   am__fastdepCC_TRUE=
2997   am__fastdepCC_FALSE='#'
2998 else
2999   am__fastdepCC_TRUE='#'
3000   am__fastdepCC_FALSE=
3001 fi
3002
3003
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3010 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3011 # On Suns, sometimes $CPP names a directory.
3012 if test -n "$CPP" && test -d "$CPP"; then
3013   CPP=
3014 fi
3015 if test -z "$CPP"; then
3016   if test "${ac_cv_prog_CPP+set}" = set; then
3017   echo $ECHO_N "(cached) $ECHO_C" >&6
3018 else
3019       # Double quotes because CPP needs to be expanded
3020     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3021     do
3022       ac_preproc_ok=false
3023 for ac_c_preproc_warn_flag in '' yes
3024 do
3025   # Use a header file that comes with gcc, so configuring glibc
3026   # with a fresh cross-compiler works.
3027   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3028   # <limits.h> exists even on freestanding compilers.
3029   # On the NeXT, cc -E runs the code through the compiler's parser,
3030   # not just through cpp. "Syntax error" is here to catch this case.
3031   cat >conftest.$ac_ext <<_ACEOF
3032 /* confdefs.h.  */
3033 _ACEOF
3034 cat confdefs.h >>conftest.$ac_ext
3035 cat >>conftest.$ac_ext <<_ACEOF
3036 /* end confdefs.h.  */
3037 #ifdef __STDC__
3038 # include <limits.h>
3039 #else
3040 # include <assert.h>
3041 #endif
3042                      Syntax error
3043 _ACEOF
3044 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3045   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3046   ac_status=$?
3047   grep -v '^ *+' conftest.er1 >conftest.err
3048   rm -f conftest.er1
3049   cat conftest.err >&5
3050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051   (exit $ac_status); } >/dev/null; then
3052   if test -s conftest.err; then
3053     ac_cpp_err=$ac_c_preproc_warn_flag
3054     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3055   else
3056     ac_cpp_err=
3057   fi
3058 else
3059   ac_cpp_err=yes
3060 fi
3061 if test -z "$ac_cpp_err"; then
3062   :
3063 else
3064   echo "$as_me: failed program was:" >&5
3065 sed 's/^/| /' conftest.$ac_ext >&5
3066
3067   # Broken: fails on valid input.
3068 continue
3069 fi
3070 rm -f conftest.err conftest.$ac_ext
3071
3072   # OK, works on sane cases.  Now check whether non-existent headers
3073   # can be detected and how.
3074   cat >conftest.$ac_ext <<_ACEOF
3075 /* confdefs.h.  */
3076 _ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h.  */
3080 #include <ac_nonexistent.h>
3081 _ACEOF
3082 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3083   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3084   ac_status=$?
3085   grep -v '^ *+' conftest.er1 >conftest.err
3086   rm -f conftest.er1
3087   cat conftest.err >&5
3088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3089   (exit $ac_status); } >/dev/null; then
3090   if test -s conftest.err; then
3091     ac_cpp_err=$ac_c_preproc_warn_flag
3092     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3093   else
3094     ac_cpp_err=
3095   fi
3096 else
3097   ac_cpp_err=yes
3098 fi
3099 if test -z "$ac_cpp_err"; then
3100   # Broken: success on invalid input.
3101 continue
3102 else
3103   echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3105
3106   # Passes both tests.
3107 ac_preproc_ok=:
3108 break
3109 fi
3110 rm -f conftest.err conftest.$ac_ext
3111
3112 done
3113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3114 rm -f conftest.err conftest.$ac_ext
3115 if $ac_preproc_ok; then
3116   break
3117 fi
3118
3119     done
3120     ac_cv_prog_CPP=$CPP
3121
3122 fi
3123   CPP=$ac_cv_prog_CPP
3124 else
3125   ac_cv_prog_CPP=$CPP
3126 fi
3127 echo "$as_me:$LINENO: result: $CPP" >&5
3128 echo "${ECHO_T}$CPP" >&6
3129 ac_preproc_ok=false
3130 for ac_c_preproc_warn_flag in '' yes
3131 do
3132   # Use a header file that comes with gcc, so configuring glibc
3133   # with a fresh cross-compiler works.
3134   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3135   # <limits.h> exists even on freestanding compilers.
3136   # On the NeXT, cc -E runs the code through the compiler's parser,
3137   # not just through cpp. "Syntax error" is here to catch this case.
3138   cat >conftest.$ac_ext <<_ACEOF
3139 /* confdefs.h.  */
3140 _ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h.  */
3144 #ifdef __STDC__
3145 # include <limits.h>
3146 #else
3147 # include <assert.h>
3148 #endif
3149                      Syntax error
3150 _ACEOF
3151 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3152   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3153   ac_status=$?
3154   grep -v '^ *+' conftest.er1 >conftest.err
3155   rm -f conftest.er1
3156   cat conftest.err >&5
3157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158   (exit $ac_status); } >/dev/null; then
3159   if test -s conftest.err; then
3160     ac_cpp_err=$ac_c_preproc_warn_flag
3161     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3162   else
3163     ac_cpp_err=
3164   fi
3165 else
3166   ac_cpp_err=yes
3167 fi
3168 if test -z "$ac_cpp_err"; then
3169   :
3170 else
3171   echo "$as_me: failed program was:" >&5
3172 sed 's/^/| /' conftest.$ac_ext >&5
3173
3174   # Broken: fails on valid input.
3175 continue
3176 fi
3177 rm -f conftest.err conftest.$ac_ext
3178
3179   # OK, works on sane cases.  Now check whether non-existent headers
3180   # can be detected and how.
3181   cat >conftest.$ac_ext <<_ACEOF
3182 /* confdefs.h.  */
3183 _ACEOF
3184 cat confdefs.h >>conftest.$ac_ext
3185 cat >>conftest.$ac_ext <<_ACEOF
3186 /* end confdefs.h.  */
3187 #include <ac_nonexistent.h>
3188 _ACEOF
3189 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3190   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } >/dev/null; then
3197   if test -s conftest.err; then
3198     ac_cpp_err=$ac_c_preproc_warn_flag
3199     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3200   else
3201     ac_cpp_err=
3202   fi
3203 else
3204   ac_cpp_err=yes
3205 fi
3206 if test -z "$ac_cpp_err"; then
3207   # Broken: success on invalid input.
3208 continue
3209 else
3210   echo "$as_me: failed program was:" >&5
3211 sed 's/^/| /' conftest.$ac_ext >&5
3212
3213   # Passes both tests.
3214 ac_preproc_ok=:
3215 break
3216 fi
3217 rm -f conftest.err conftest.$ac_ext
3218
3219 done
3220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3221 rm -f conftest.err conftest.$ac_ext
3222 if $ac_preproc_ok; then
3223   :
3224 else
3225   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3226 See \`config.log' for more details." >&5
3227 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3228 See \`config.log' for more details." >&2;}
3229    { (exit 1); exit 1; }; }
3230 fi
3231
3232 ac_ext=c
3233 ac_cpp='$CPP $CPPFLAGS'
3234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3237
3238 ac_ext=cc
3239 ac_cpp='$CXXCPP $CPPFLAGS'
3240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3243 if test -n "$ac_tool_prefix"; then
3244   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3245   do
3246     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3247 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3248 echo "$as_me:$LINENO: checking for $ac_word" >&5
3249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3250 if test "${ac_cv_prog_CXX+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   if test -n "$CXX"; then
3254   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3258 do
3259   IFS=$as_save_IFS
3260   test -z "$as_dir" && as_dir=.
3261   for ac_exec_ext in '' $ac_executable_extensions; do
3262   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3264     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3265     break 2
3266   fi
3267 done
3268 done
3269
3270 fi
3271 fi
3272 CXX=$ac_cv_prog_CXX
3273 if test -n "$CXX"; then
3274   echo "$as_me:$LINENO: result: $CXX" >&5
3275 echo "${ECHO_T}$CXX" >&6
3276 else
3277   echo "$as_me:$LINENO: result: no" >&5
3278 echo "${ECHO_T}no" >&6
3279 fi
3280
3281     test -n "$CXX" && break
3282   done
3283 fi
3284 if test -z "$CXX"; then
3285   ac_ct_CXX=$CXX
3286   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3287 do
3288   # Extract the first word of "$ac_prog", so it can be a program name with args.
3289 set dummy $ac_prog; ac_word=$2
3290 echo "$as_me:$LINENO: checking for $ac_word" >&5
3291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3292 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3293   echo $ECHO_N "(cached) $ECHO_C" >&6
3294 else
3295   if test -n "$ac_ct_CXX"; then
3296   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3297 else
3298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299 for as_dir in $PATH
3300 do
3301   IFS=$as_save_IFS
3302   test -z "$as_dir" && as_dir=.
3303   for ac_exec_ext in '' $ac_executable_extensions; do
3304   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3305     ac_cv_prog_ac_ct_CXX="$ac_prog"
3306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3307     break 2
3308   fi
3309 done
3310 done
3311
3312 fi
3313 fi
3314 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3315 if test -n "$ac_ct_CXX"; then
3316   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3317 echo "${ECHO_T}$ac_ct_CXX" >&6
3318 else
3319   echo "$as_me:$LINENO: result: no" >&5
3320 echo "${ECHO_T}no" >&6
3321 fi
3322
3323   test -n "$ac_ct_CXX" && break
3324 done
3325 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3326
3327   CXX=$ac_ct_CXX
3328 fi
3329
3330
3331 # Provide some information about the compiler.
3332 echo "$as_me:$LINENO:" \
3333      "checking for C++ compiler version" >&5
3334 ac_compiler=`set X $ac_compile; echo $2`
3335 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3336   (eval $ac_compiler --version </dev/null >&5) 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }
3340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3341   (eval $ac_compiler -v </dev/null >&5) 2>&5
3342   ac_status=$?
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); }
3345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3346   (eval $ac_compiler -V </dev/null >&5) 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }
3350
3351 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3352 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3353 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3354   echo $ECHO_N "(cached) $ECHO_C" >&6
3355 else
3356   cat >conftest.$ac_ext <<_ACEOF
3357 /* confdefs.h.  */
3358 _ACEOF
3359 cat confdefs.h >>conftest.$ac_ext
3360 cat >>conftest.$ac_ext <<_ACEOF
3361 /* end confdefs.h.  */
3362
3363 int
3364 main ()
3365 {
3366 #ifndef __GNUC__
3367        choke me
3368 #endif
3369
3370   ;
3371   return 0;
3372 }
3373 _ACEOF
3374 rm -f conftest.$ac_objext
3375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3376   (eval $ac_compile) 2>conftest.er1
3377   ac_status=$?
3378   grep -v '^ *+' conftest.er1 >conftest.err
3379   rm -f conftest.er1
3380   cat conftest.err >&5
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } &&
3383          { ac_try='test -z "$ac_cxx_werror_flag"
3384                          || test ! -s conftest.err'
3385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3386   (eval $ac_try) 2>&5
3387   ac_status=$?
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); }; } &&
3390          { ac_try='test -s conftest.$ac_objext'
3391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3392   (eval $ac_try) 2>&5
3393   ac_status=$?
3394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395   (exit $ac_status); }; }; then
3396   ac_compiler_gnu=yes
3397 else
3398   echo "$as_me: failed program was:" >&5
3399 sed 's/^/| /' conftest.$ac_ext >&5
3400
3401 ac_compiler_gnu=no
3402 fi
3403 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3404 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3405
3406 fi
3407 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3408 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3409 GXX=`test $ac_compiler_gnu = yes && echo yes`
3410 ac_test_CXXFLAGS=${CXXFLAGS+set}
3411 ac_save_CXXFLAGS=$CXXFLAGS
3412 CXXFLAGS="-g"
3413 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3414 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3415 if test "${ac_cv_prog_cxx_g+set}" = set; then
3416   echo $ECHO_N "(cached) $ECHO_C" >&6
3417 else
3418   cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h.  */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h.  */
3424
3425 int
3426 main ()
3427 {
3428
3429   ;
3430   return 0;
3431 }
3432 _ACEOF
3433 rm -f conftest.$ac_objext
3434 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3435   (eval $ac_compile) 2>conftest.er1
3436   ac_status=$?
3437   grep -v '^ *+' conftest.er1 >conftest.err
3438   rm -f conftest.er1
3439   cat conftest.err >&5
3440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3441   (exit $ac_status); } &&
3442          { ac_try='test -z "$ac_cxx_werror_flag"
3443                          || test ! -s conftest.err'
3444   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3445   (eval $ac_try) 2>&5
3446   ac_status=$?
3447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448   (exit $ac_status); }; } &&
3449          { ac_try='test -s conftest.$ac_objext'
3450   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3451   (eval $ac_try) 2>&5
3452   ac_status=$?
3453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454   (exit $ac_status); }; }; then
3455   ac_cv_prog_cxx_g=yes
3456 else
3457   echo "$as_me: failed program was:" >&5
3458 sed 's/^/| /' conftest.$ac_ext >&5
3459
3460 ac_cv_prog_cxx_g=no
3461 fi
3462 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3463 fi
3464 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3466 if test "$ac_test_CXXFLAGS" = set; then
3467   CXXFLAGS=$ac_save_CXXFLAGS
3468 elif test $ac_cv_prog_cxx_g = yes; then
3469   if test "$GXX" = yes; then
3470     CXXFLAGS="-g -O2"
3471   else
3472     CXXFLAGS="-g"
3473   fi
3474 else
3475   if test "$GXX" = yes; then
3476     CXXFLAGS="-O2"
3477   else
3478     CXXFLAGS=
3479   fi
3480 fi
3481 for ac_declaration in \
3482    '' \
3483    'extern "C" void std::exit (int) throw (); using std::exit;' \
3484    'extern "C" void std::exit (int); using std::exit;' \
3485    'extern "C" void exit (int) throw ();' \
3486    'extern "C" void exit (int);' \
3487    'void exit (int);'
3488 do
3489   cat >conftest.$ac_ext <<_ACEOF
3490 /* confdefs.h.  */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h.  */
3495 $ac_declaration
3496 #include <stdlib.h>
3497 int
3498 main ()
3499 {
3500 exit (42);
3501   ;
3502   return 0;
3503 }
3504 _ACEOF
3505 rm -f conftest.$ac_objext
3506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3507   (eval $ac_compile) 2>conftest.er1
3508   ac_status=$?
3509   grep -v '^ *+' conftest.er1 >conftest.err
3510   rm -f conftest.er1
3511   cat conftest.err >&5
3512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3513   (exit $ac_status); } &&
3514          { ac_try='test -z "$ac_cxx_werror_flag"
3515                          || test ! -s conftest.err'
3516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3517   (eval $ac_try) 2>&5
3518   ac_status=$?
3519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520   (exit $ac_status); }; } &&
3521          { ac_try='test -s conftest.$ac_objext'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; }; then
3527   :
3528 else
3529   echo "$as_me: failed program was:" >&5
3530 sed 's/^/| /' conftest.$ac_ext >&5
3531
3532 continue
3533 fi
3534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3535   cat >conftest.$ac_ext <<_ACEOF
3536 /* confdefs.h.  */
3537 _ACEOF
3538 cat confdefs.h >>conftest.$ac_ext
3539 cat >>conftest.$ac_ext <<_ACEOF
3540 /* end confdefs.h.  */
3541 $ac_declaration
3542 int
3543 main ()
3544 {
3545 exit (42);
3546   ;
3547   return 0;
3548 }
3549 _ACEOF
3550 rm -f conftest.$ac_objext
3551 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3552   (eval $ac_compile) 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } &&
3559          { ac_try='test -z "$ac_cxx_werror_flag"
3560                          || test ! -s conftest.err'
3561   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562   (eval $ac_try) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); }; } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   break
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 fi
3578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3579 done
3580 rm -f conftest*
3581 if test -n "$ac_declaration"; then
3582   echo '#ifdef __cplusplus' >>confdefs.h
3583   echo $ac_declaration      >>confdefs.h
3584   echo '#endif'             >>confdefs.h
3585 fi
3586
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592
3593 depcc="$CXX"  am_compiler_list=
3594
3595 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3596 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3597 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3598   echo $ECHO_N "(cached) $ECHO_C" >&6
3599 else
3600   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3601   # We make a subdir and do the tests there.  Otherwise we can end up
3602   # making bogus files that we don't know about and never remove.  For
3603   # instance it was reported that on HP-UX the gcc test will end up
3604   # making a dummy file named `D' -- because `-MD' means `put the output
3605   # in D'.
3606   mkdir conftest.dir
3607   # Copy depcomp to subdir because otherwise we won't find it if we're
3608   # using a relative directory.
3609   cp "$am_depcomp" conftest.dir
3610   cd conftest.dir
3611   # We will build objects and dependencies in a subdirectory because
3612   # it helps to detect inapplicable dependency modes.  For instance
3613   # both Tru64's cc and ICC support -MD to output dependencies as a
3614   # side effect of compilation, but ICC will put the dependencies in
3615   # the current directory while Tru64 will put them in the object
3616   # directory.
3617   mkdir sub
3618
3619   am_cv_CXX_dependencies_compiler_type=none
3620   if test "$am_compiler_list" = ""; then
3621      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3622   fi
3623   for depmode in $am_compiler_list; do
3624     # Setup a source with many dependencies, because some compilers
3625     # like to wrap large dependency lists on column 80 (with \), and
3626     # we should not choose a depcomp mode which is confused by this.
3627     #
3628     # We need to recreate these files for each test, as the compiler may
3629     # overwrite some of them when testing with obscure command lines.
3630     # This happens at least with the AIX C compiler.
3631     : > sub/conftest.c
3632     for i in 1 2 3 4 5 6; do
3633       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3634       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3635       # Solaris 8's {/usr,}/bin/sh.
3636       touch sub/conftst$i.h
3637     done
3638     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3639
3640     case $depmode in
3641     nosideeffect)
3642       # after this tag, mechanisms are not by side-effect, so they'll
3643       # only be used when explicitly requested
3644       if test "x$enable_dependency_tracking" = xyes; then
3645         continue
3646       else
3647         break
3648       fi
3649       ;;
3650     none) break ;;
3651     esac
3652     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3653     # mode.  It turns out that the SunPro C++ compiler does not properly
3654     # handle `-M -o', and we need to detect this.
3655     if depmode=$depmode \
3656        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3657        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3658        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3659          >/dev/null 2>conftest.err &&
3660        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3661        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3662        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3663       # icc doesn't choke on unknown options, it will just issue warnings
3664       # or remarks (even with -Werror).  So we grep stderr for any message
3665       # that says an option was ignored or not supported.
3666       # When given -MP, icc 7.0 and 7.1 complain thusly:
3667       #   icc: Command line warning: ignoring option '-M'; no argument required
3668       # The diagnosis changed in icc 8.0:
3669       #   icc: Command line remark: option '-MP' not supported
3670       if (grep 'ignoring option' conftest.err ||
3671           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3672         am_cv_CXX_dependencies_compiler_type=$depmode
3673         break
3674       fi
3675     fi
3676   done
3677
3678   cd ..
3679   rm -rf conftest.dir
3680 else
3681   am_cv_CXX_dependencies_compiler_type=none
3682 fi
3683
3684 fi
3685 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3686 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3687 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3688
3689
3690
3691 if
3692   test "x$enable_dependency_tracking" != xno \
3693   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3694   am__fastdepCXX_TRUE=
3695   am__fastdepCXX_FALSE='#'
3696 else
3697   am__fastdepCXX_TRUE='#'
3698   am__fastdepCXX_FALSE=
3699 fi
3700
3701
3702 ac_ext=cc
3703 ac_cpp='$CXXCPP $CPPFLAGS'
3704 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3705 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3706 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3707 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3708 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3709 if test -z "$CXXCPP"; then
3710   if test "${ac_cv_prog_CXXCPP+set}" = set; then
3711   echo $ECHO_N "(cached) $ECHO_C" >&6
3712 else
3713       # Double quotes because CXXCPP needs to be expanded
3714     for CXXCPP in "$CXX -E" "/lib/cpp"
3715     do
3716       ac_preproc_ok=false
3717 for ac_cxx_preproc_warn_flag in '' yes
3718 do
3719   # Use a header file that comes with gcc, so configuring glibc
3720   # with a fresh cross-compiler works.
3721   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3722   # <limits.h> exists even on freestanding compilers.
3723   # On the NeXT, cc -E runs the code through the compiler's parser,
3724   # not just through cpp. "Syntax error" is here to catch this case.
3725   cat >conftest.$ac_ext <<_ACEOF
3726 /* confdefs.h.  */
3727 _ACEOF
3728 cat confdefs.h >>conftest.$ac_ext
3729 cat >>conftest.$ac_ext <<_ACEOF
3730 /* end confdefs.h.  */
3731 #ifdef __STDC__
3732 # include <limits.h>
3733 #else
3734 # include <assert.h>
3735 #endif
3736                      Syntax error
3737 _ACEOF
3738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3740   ac_status=$?
3741   grep -v '^ *+' conftest.er1 >conftest.err
3742   rm -f conftest.er1
3743   cat conftest.err >&5
3744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3745   (exit $ac_status); } >/dev/null; then
3746   if test -s conftest.err; then
3747     ac_cpp_err=$ac_cxx_preproc_warn_flag
3748     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3749   else
3750     ac_cpp_err=
3751   fi
3752 else
3753   ac_cpp_err=yes
3754 fi
3755 if test -z "$ac_cpp_err"; then
3756   :
3757 else
3758   echo "$as_me: failed program was:" >&5
3759 sed 's/^/| /' conftest.$ac_ext >&5
3760
3761   # Broken: fails on valid input.
3762 continue
3763 fi
3764 rm -f conftest.err conftest.$ac_ext
3765
3766   # OK, works on sane cases.  Now check whether non-existent headers
3767   # can be detected and how.
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.  */
3774 #include <ac_nonexistent.h>
3775 _ACEOF
3776 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3777   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3778   ac_status=$?
3779   grep -v '^ *+' conftest.er1 >conftest.err
3780   rm -f conftest.er1
3781   cat conftest.err >&5
3782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3783   (exit $ac_status); } >/dev/null; then
3784   if test -s conftest.err; then
3785     ac_cpp_err=$ac_cxx_preproc_warn_flag
3786     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3787   else
3788     ac_cpp_err=
3789   fi
3790 else
3791   ac_cpp_err=yes
3792 fi
3793 if test -z "$ac_cpp_err"; then
3794   # Broken: success on invalid input.
3795 continue
3796 else
3797   echo "$as_me: failed program was:" >&5
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800   # Passes both tests.
3801 ac_preproc_ok=:
3802 break
3803 fi
3804 rm -f conftest.err conftest.$ac_ext
3805
3806 done
3807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3808 rm -f conftest.err conftest.$ac_ext
3809 if $ac_preproc_ok; then
3810   break
3811 fi
3812
3813     done
3814     ac_cv_prog_CXXCPP=$CXXCPP
3815
3816 fi
3817   CXXCPP=$ac_cv_prog_CXXCPP
3818 else
3819   ac_cv_prog_CXXCPP=$CXXCPP
3820 fi
3821 echo "$as_me:$LINENO: result: $CXXCPP" >&5
3822 echo "${ECHO_T}$CXXCPP" >&6
3823 ac_preproc_ok=false
3824 for ac_cxx_preproc_warn_flag in '' yes
3825 do
3826   # Use a header file that comes with gcc, so configuring glibc
3827   # with a fresh cross-compiler works.
3828   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3829   # <limits.h> exists even on freestanding compilers.
3830   # On the NeXT, cc -E runs the code through the compiler's parser,
3831   # not just through cpp. "Syntax error" is here to catch this case.
3832   cat >conftest.$ac_ext <<_ACEOF
3833 /* confdefs.h.  */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h.  */
3838 #ifdef __STDC__
3839 # include <limits.h>
3840 #else
3841 # include <assert.h>
3842 #endif
3843                      Syntax error
3844 _ACEOF
3845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } >/dev/null; then
3853   if test -s conftest.err; then
3854     ac_cpp_err=$ac_cxx_preproc_warn_flag
3855     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3856   else
3857     ac_cpp_err=
3858   fi
3859 else
3860   ac_cpp_err=yes
3861 fi
3862 if test -z "$ac_cpp_err"; then
3863   :
3864 else
3865   echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868   # Broken: fails on valid input.
3869 continue
3870 fi
3871 rm -f conftest.err conftest.$ac_ext
3872
3873   # OK, works on sane cases.  Now check whether non-existent headers
3874   # can be detected and how.
3875   cat >conftest.$ac_ext <<_ACEOF
3876 /* confdefs.h.  */
3877 _ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h.  */
3881 #include <ac_nonexistent.h>
3882 _ACEOF
3883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3884   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3885   ac_status=$?
3886   grep -v '^ *+' conftest.er1 >conftest.err
3887   rm -f conftest.er1
3888   cat conftest.err >&5
3889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890   (exit $ac_status); } >/dev/null; then
3891   if test -s conftest.err; then
3892     ac_cpp_err=$ac_cxx_preproc_warn_flag
3893     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3894   else
3895     ac_cpp_err=
3896   fi
3897 else
3898   ac_cpp_err=yes
3899 fi
3900 if test -z "$ac_cpp_err"; then
3901   # Broken: success on invalid input.
3902 continue
3903 else
3904   echo "$as_me: failed program was:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3906
3907   # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3910 fi
3911 rm -f conftest.err conftest.$ac_ext
3912
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then
3917   :
3918 else
3919   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3920 See \`config.log' for more details." >&5
3921 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
3922 See \`config.log' for more details." >&2;}
3923    { (exit 1); exit 1; }; }
3924 fi
3925
3926 ac_ext=c
3927 ac_cpp='$CPP $CPPFLAGS'
3928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
3932
3933
3934 echo "$as_me:$LINENO: checking for egrep" >&5
3935 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3936 if test "${ac_cv_prog_egrep+set}" = set; then
3937   echo $ECHO_N "(cached) $ECHO_C" >&6
3938 else
3939   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3940     then ac_cv_prog_egrep='grep -E'
3941     else ac_cv_prog_egrep='egrep'
3942     fi
3943 fi
3944 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3945 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3946  EGREP=$ac_cv_prog_egrep
3947
3948
3949 if test $ac_cv_c_compiler_gnu = yes; then
3950     echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3951 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3952 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3953   echo $ECHO_N "(cached) $ECHO_C" >&6
3954 else
3955     ac_pattern="Autoconf.*'x'"
3956   cat >conftest.$ac_ext <<_ACEOF
3957 /* confdefs.h.  */
3958 _ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h.  */
3962 #include <sgtty.h>
3963 Autoconf TIOCGETP
3964 _ACEOF
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3967   ac_cv_prog_gcc_traditional=yes
3968 else
3969   ac_cv_prog_gcc_traditional=no
3970 fi
3971 rm -f conftest*
3972
3973
3974   if test $ac_cv_prog_gcc_traditional = no; then
3975     cat >conftest.$ac_ext <<_ACEOF
3976 /* confdefs.h.  */
3977 _ACEOF
3978 cat confdefs.h >>conftest.$ac_ext
3979 cat >>conftest.$ac_ext <<_ACEOF
3980 /* end confdefs.h.  */
3981 #include <termio.h>
3982 Autoconf TCGETA
3983 _ACEOF
3984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3985   $EGREP "$ac_pattern" >/dev/null 2>&1; then
3986   ac_cv_prog_gcc_traditional=yes
3987 fi
3988 rm -f conftest*
3989
3990   fi
3991 fi
3992 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
3993 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
3994   if test $ac_cv_prog_gcc_traditional = yes; then
3995     CC="$CC -traditional"
3996   fi
3997 fi
3998
3999 # Find a good install program.  We prefer a C program (faster),
4000 # so one script is as good as another.  But avoid the broken or
4001 # incompatible versions:
4002 # SysV /etc/install, /usr/sbin/install
4003 # SunOS /usr/etc/install
4004 # IRIX /sbin/install
4005 # AIX /bin/install
4006 # AmigaOS /C/install, which installs bootblocks on floppy discs
4007 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4008 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4009 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4010 # OS/2's system install, which has a completely different semantic
4011 # ./install, which can be erroneously created by make from ./install.sh.
4012 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4013 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4014 if test -z "$INSTALL"; then
4015 if test "${ac_cv_path_install+set}" = set; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019 for as_dir in $PATH
4020 do
4021   IFS=$as_save_IFS
4022   test -z "$as_dir" && as_dir=.
4023   # Account for people who put trailing slashes in PATH elements.
4024 case $as_dir/ in
4025   ./ | .// | /cC/* | \
4026   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4027   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4028   /usr/ucb/* ) ;;
4029   *)
4030     # OSF1 and SCO ODT 3.0 have their own names for install.
4031     # Don't use installbsd from OSF since it installs stuff as root
4032     # by default.
4033     for ac_prog in ginstall scoinst install; do
4034       for ac_exec_ext in '' $ac_executable_extensions; do
4035         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4036           if test $ac_prog = install &&
4037             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4038             # AIX install.  It has an incompatible calling convention.
4039             :
4040           elif test $ac_prog = install &&
4041             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4042             # program-specific install script used by HP pwplus--don't use.
4043             :
4044           else
4045             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4046             break 3
4047           fi
4048         fi
4049       done
4050     done
4051     ;;
4052 esac
4053 done
4054
4055
4056 fi
4057   if test "${ac_cv_path_install+set}" = set; then
4058     INSTALL=$ac_cv_path_install
4059   else
4060     # As a last resort, use the slow shell script.  We don't cache a
4061     # path for INSTALL within a source directory, because that will
4062     # break other packages using the cache if that directory is
4063     # removed, or if the path is relative.
4064     INSTALL=$ac_install_sh
4065   fi
4066 fi
4067 echo "$as_me:$LINENO: result: $INSTALL" >&5
4068 echo "${ECHO_T}$INSTALL" >&6
4069
4070 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4071 # It thinks the first close brace ends the variable substitution.
4072 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4073
4074 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4075
4076 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4077
4078
4079 # Checks for languages.
4080 ac_ext=c
4081 ac_cpp='$CPP $CPPFLAGS'
4082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4085
4086 ac_ext=cc
4087 ac_cpp='$CXXCPP $CPPFLAGS'
4088 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4091
4092
4093 # Checks for header files.
4094
4095
4096 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4097 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4098 if test "${ac_cv_header_stdc+set}" = set; then
4099   echo $ECHO_N "(cached) $ECHO_C" >&6
4100 else
4101   cat >conftest.$ac_ext <<_ACEOF
4102 /* confdefs.h.  */
4103 _ACEOF
4104 cat confdefs.h >>conftest.$ac_ext
4105 cat >>conftest.$ac_ext <<_ACEOF
4106 /* end confdefs.h.  */
4107 #include <stdlib.h>
4108 #include <stdarg.h>
4109 #include <string.h>
4110 #include <float.h>
4111
4112 int
4113 main ()
4114 {
4115
4116   ;
4117   return 0;
4118 }
4119 _ACEOF
4120 rm -f conftest.$ac_objext
4121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4122   (eval $ac_compile) 2>conftest.er1
4123   ac_status=$?
4124   grep -v '^ *+' conftest.er1 >conftest.err
4125   rm -f conftest.er1
4126   cat conftest.err >&5
4127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4128   (exit $ac_status); } &&
4129          { ac_try='test -z "$ac_cxx_werror_flag"
4130                          || test ! -s conftest.err'
4131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4132   (eval $ac_try) 2>&5
4133   ac_status=$?
4134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135   (exit $ac_status); }; } &&
4136          { ac_try='test -s conftest.$ac_objext'
4137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4138   (eval $ac_try) 2>&5
4139   ac_status=$?
4140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141   (exit $ac_status); }; }; then
4142   ac_cv_header_stdc=yes
4143 else
4144   echo "$as_me: failed program was:" >&5
4145 sed 's/^/| /' conftest.$ac_ext >&5
4146
4147 ac_cv_header_stdc=no
4148 fi
4149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4150
4151 if test $ac_cv_header_stdc = yes; then
4152   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4153   cat >conftest.$ac_ext <<_ACEOF
4154 /* confdefs.h.  */
4155 _ACEOF
4156 cat confdefs.h >>conftest.$ac_ext
4157 cat >>conftest.$ac_ext <<_ACEOF
4158 /* end confdefs.h.  */
4159 #include <string.h>
4160
4161 _ACEOF
4162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4163   $EGREP "memchr" >/dev/null 2>&1; then
4164   :
4165 else
4166   ac_cv_header_stdc=no
4167 fi
4168 rm -f conftest*
4169
4170 fi
4171
4172 if test $ac_cv_header_stdc = yes; then
4173   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4174   cat >conftest.$ac_ext <<_ACEOF
4175 /* confdefs.h.  */
4176 _ACEOF
4177 cat confdefs.h >>conftest.$ac_ext
4178 cat >>conftest.$ac_ext <<_ACEOF
4179 /* end confdefs.h.  */
4180 #include <stdlib.h>
4181
4182 _ACEOF
4183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184   $EGREP "free" >/dev/null 2>&1; then
4185   :
4186 else
4187   ac_cv_header_stdc=no
4188 fi
4189 rm -f conftest*
4190
4191 fi
4192
4193 if test $ac_cv_header_stdc = yes; then
4194   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4195   if test "$cross_compiling" = yes; then
4196   :
4197 else
4198   cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h.  */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h.  */
4204 #include <ctype.h>
4205 #if ((' ' & 0x0FF) == 0x020)
4206 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4207 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4208 #else
4209 # define ISLOWER(c) \
4210                    (('a' <= (c) && (c) <= 'i') \
4211                      || ('j' <= (c) && (c) <= 'r') \
4212                      || ('s' <= (c) && (c) <= 'z'))
4213 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4214 #endif
4215
4216 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4217 int
4218 main ()
4219 {
4220   int i;
4221   for (i = 0; i < 256; i++)
4222     if (XOR (islower (i), ISLOWER (i))
4223         || toupper (i) != TOUPPER (i))
4224       exit(2);
4225   exit (0);
4226 }
4227 _ACEOF
4228 rm -f conftest$ac_exeext
4229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4230   (eval $ac_link) 2>&5
4231   ac_status=$?
4232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4234   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235   (eval $ac_try) 2>&5
4236   ac_status=$?
4237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238   (exit $ac_status); }; }; then
4239   :
4240 else
4241   echo "$as_me: program exited with status $ac_status" >&5
4242 echo "$as_me: failed program was:" >&5
4243 sed 's/^/| /' conftest.$ac_ext >&5
4244
4245 ( exit $ac_status )
4246 ac_cv_header_stdc=no
4247 fi
4248 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4249 fi
4250 fi
4251 fi
4252 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4253 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4254 if test $ac_cv_header_stdc = yes; then
4255
4256 cat >>confdefs.h <<\_ACEOF
4257 #define STDC_HEADERS 1
4258 _ACEOF
4259
4260 fi
4261
4262 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4273                   inttypes.h stdint.h unistd.h
4274 do
4275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4276 echo "$as_me:$LINENO: checking for $ac_header" >&5
4277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4278 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4279   echo $ECHO_N "(cached) $ECHO_C" >&6
4280 else
4281   cat >conftest.$ac_ext <<_ACEOF
4282 /* confdefs.h.  */
4283 _ACEOF
4284 cat confdefs.h >>conftest.$ac_ext
4285 cat >>conftest.$ac_ext <<_ACEOF
4286 /* end confdefs.h.  */
4287 $ac_includes_default
4288
4289 #include <$ac_header>
4290 _ACEOF
4291 rm -f conftest.$ac_objext
4292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4293   (eval $ac_compile) 2>conftest.er1
4294   ac_status=$?
4295   grep -v '^ *+' conftest.er1 >conftest.err
4296   rm -f conftest.er1
4297   cat conftest.err >&5
4298   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299   (exit $ac_status); } &&
4300          { ac_try='test -z "$ac_cxx_werror_flag"
4301                          || test ! -s conftest.err'
4302   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4303   (eval $ac_try) 2>&5
4304   ac_status=$?
4305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4306   (exit $ac_status); }; } &&
4307          { ac_try='test -s conftest.$ac_objext'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; }; then
4313   eval "$as_ac_Header=yes"
4314 else
4315   echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4317
4318 eval "$as_ac_Header=no"
4319 fi
4320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4321 fi
4322 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4323 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4324 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4325   cat >>confdefs.h <<_ACEOF
4326 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4327 _ACEOF
4328
4329 fi
4330
4331 done
4332
4333
4334
4335
4336 for ac_header in stdlib.h unistd.h
4337 do
4338 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4339 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4340   echo "$as_me:$LINENO: checking for $ac_header" >&5
4341 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4342 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4343   echo $ECHO_N "(cached) $ECHO_C" >&6
4344 fi
4345 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4346 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4347 else
4348   # Is the header compilable?
4349 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4351 cat >conftest.$ac_ext <<_ACEOF
4352 /* confdefs.h.  */
4353 _ACEOF
4354 cat confdefs.h >>conftest.$ac_ext
4355 cat >>conftest.$ac_ext <<_ACEOF
4356 /* end confdefs.h.  */
4357 $ac_includes_default
4358 #include <$ac_header>
4359 _ACEOF
4360 rm -f conftest.$ac_objext
4361 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4362   (eval $ac_compile) 2>conftest.er1
4363   ac_status=$?
4364   grep -v '^ *+' conftest.er1 >conftest.err
4365   rm -f conftest.er1
4366   cat conftest.err >&5
4367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4368   (exit $ac_status); } &&
4369          { ac_try='test -z "$ac_cxx_werror_flag"
4370                          || test ! -s conftest.err'
4371   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4372   (eval $ac_try) 2>&5
4373   ac_status=$?
4374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375   (exit $ac_status); }; } &&
4376          { ac_try='test -s conftest.$ac_objext'
4377   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4378   (eval $ac_try) 2>&5
4379   ac_status=$?
4380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4381   (exit $ac_status); }; }; then
4382   ac_header_compiler=yes
4383 else
4384   echo "$as_me: failed program was:" >&5
4385 sed 's/^/| /' conftest.$ac_ext >&5
4386
4387 ac_header_compiler=no
4388 fi
4389 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4390 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4391 echo "${ECHO_T}$ac_header_compiler" >&6
4392
4393 # Is the header present?
4394 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4395 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4396 cat >conftest.$ac_ext <<_ACEOF
4397 /* confdefs.h.  */
4398 _ACEOF
4399 cat confdefs.h >>conftest.$ac_ext
4400 cat >>conftest.$ac_ext <<_ACEOF
4401 /* end confdefs.h.  */
4402 #include <$ac_header>
4403 _ACEOF
4404 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4405   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4406   ac_status=$?
4407   grep -v '^ *+' conftest.er1 >conftest.err
4408   rm -f conftest.er1
4409   cat conftest.err >&5
4410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411   (exit $ac_status); } >/dev/null; then
4412   if test -s conftest.err; then
4413     ac_cpp_err=$ac_cxx_preproc_warn_flag
4414     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4415   else
4416     ac_cpp_err=
4417   fi
4418 else
4419   ac_cpp_err=yes
4420 fi
4421 if test -z "$ac_cpp_err"; then
4422   ac_header_preproc=yes
4423 else
4424   echo "$as_me: failed program was:" >&5
4425 sed 's/^/| /' conftest.$ac_ext >&5
4426
4427   ac_header_preproc=no
4428 fi
4429 rm -f conftest.err conftest.$ac_ext
4430 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4431 echo "${ECHO_T}$ac_header_preproc" >&6
4432
4433 # So?  What about this header?
4434 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
4435   yes:no: )
4436     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4437 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4439 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4440     ac_header_preproc=yes
4441     ;;
4442   no:yes:* )
4443     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4444 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4445     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4446 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4447     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4448 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4449     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4450 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4452 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4453     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4454 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4455     (
4456       cat <<\_ASBOX
4457 ## ------------------------------- ##
4458 ## Report this to the fmit lists.  ##
4459 ## ------------------------------- ##
4460 _ASBOX
4461     ) |
4462       sed "s/^/$as_me: WARNING:     /" >&2
4463     ;;
4464 esac
4465 echo "$as_me:$LINENO: checking for $ac_header" >&5
4466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4467 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   eval "$as_ac_Header=\$ac_header_preproc"
4471 fi
4472 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4473 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4474
4475 fi
4476 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4477   cat >>confdefs.h <<_ACEOF
4478 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4479 _ACEOF
4480
4481 fi
4482
4483 done
4484
4485
4486 # Checks for typedefs, structures, and compiler characteristics.
4487 echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
4488 echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
4489 if test "${ac_cv_header_stdbool_h+set}" = set; then
4490   echo $ECHO_N "(cached) $ECHO_C" >&6
4491 else
4492   cat >conftest.$ac_ext <<_ACEOF
4493 /* confdefs.h.  */
4494 _ACEOF
4495 cat confdefs.h >>conftest.$ac_ext
4496 cat >>conftest.$ac_ext <<_ACEOF
4497 /* end confdefs.h.  */
4498
4499 #include <stdbool.h>
4500 #ifndef bool
4501 # error bool is not defined
4502 #endif
4503 #ifndef false
4504 # error false is not defined
4505 #endif
4506 #if false
4507 # error false is not 0
4508 #endif
4509 #ifndef true
4510 # error true is not defined
4511 #endif
4512 #if true != 1
4513 # error true is not 1
4514 #endif
4515 #ifndef __bool_true_false_are_defined
4516 # error __bool_true_false_are_defined is not defined
4517 #endif
4518
4519         struct s { _Bool s: 1; _Bool t; } s;
4520
4521         char a[true == 1 ? 1 : -1];
4522         char b[false == 0 ? 1 : -1];
4523         char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4524         char d[(bool) -0.5 == true ? 1 : -1];
4525         bool e = &s;
4526         char f[(_Bool) -0.0 == false ? 1 : -1];
4527         char g[true];
4528         char h[sizeof (_Bool)];
4529         char i[sizeof s.t];
4530
4531 int
4532 main ()
4533 {
4534  return !a + !b + !c + !d + !e + !f + !g + !h + !i;
4535   ;
4536   return 0;
4537 }
4538 _ACEOF
4539 rm -f conftest.$ac_objext
4540 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4541   (eval $ac_compile) 2>conftest.er1
4542   ac_status=$?
4543   grep -v '^ *+' conftest.er1 >conftest.err
4544   rm -f conftest.er1
4545   cat conftest.err >&5
4546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547   (exit $ac_status); } &&
4548          { ac_try='test -z "$ac_cxx_werror_flag"
4549                          || test ! -s conftest.err'
4550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4551   (eval $ac_try) 2>&5
4552   ac_status=$?
4553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4554   (exit $ac_status); }; } &&
4555          { ac_try='test -s conftest.$ac_objext'
4556   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4557   (eval $ac_try) 2>&5
4558   ac_status=$?
4559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4560   (exit $ac_status); }; }; then
4561   ac_cv_header_stdbool_h=yes
4562 else
4563   echo "$as_me: failed program was:" >&5
4564 sed 's/^/| /' conftest.$ac_ext >&5
4565
4566 ac_cv_header_stdbool_h=no
4567 fi
4568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4569 fi
4570 echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
4571 echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
4572 echo "$as_me:$LINENO: checking for _Bool" >&5
4573 echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
4574 if test "${ac_cv_type__Bool+set}" = set; then
4575   echo $ECHO_N "(cached) $ECHO_C" >&6
4576 else
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.  */
4583 $ac_includes_default
4584 int
4585 main ()
4586 {
4587 if ((_Bool *) 0)
4588   return 0;
4589 if (sizeof (_Bool))
4590   return 0;
4591   ;
4592   return 0;
4593 }
4594 _ACEOF
4595 rm -f conftest.$ac_objext
4596 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4597   (eval $ac_compile) 2>conftest.er1
4598   ac_status=$?
4599   grep -v '^ *+' conftest.er1 >conftest.err
4600   rm -f conftest.er1
4601   cat conftest.err >&5
4602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603   (exit $ac_status); } &&
4604          { ac_try='test -z "$ac_cxx_werror_flag"
4605                          || test ! -s conftest.err'
4606   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607   (eval $ac_try) 2>&5
4608   ac_status=$?
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; } &&
4611          { ac_try='test -s conftest.$ac_objext'
4612   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4613   (eval $ac_try) 2>&5
4614   ac_status=$?
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); }; }; then
4617   ac_cv_type__Bool=yes
4618 else
4619   echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4621
4622 ac_cv_type__Bool=no
4623 fi
4624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4625 fi
4626 echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
4627 echo "${ECHO_T}$ac_cv_type__Bool" >&6
4628 if test $ac_cv_type__Bool = yes; then
4629
4630 cat >>confdefs.h <<_ACEOF
4631 #define HAVE__BOOL 1
4632 _ACEOF
4633
4634
4635 fi
4636
4637 if test $ac_cv_header_stdbool_h = yes; then
4638
4639 cat >>confdefs.h <<\_ACEOF
4640 #define HAVE_STDBOOL_H 1
4641 _ACEOF
4642
4643 fi
4644
4645 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4646 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4647 if test "${ac_cv_c_const+set}" = set; then
4648   echo $ECHO_N "(cached) $ECHO_C" >&6
4649 else
4650   cat >conftest.$ac_ext <<_ACEOF
4651 /* confdefs.h.  */
4652 _ACEOF
4653 cat confdefs.h >>conftest.$ac_ext
4654 cat >>conftest.$ac_ext <<_ACEOF
4655 /* end confdefs.h.  */
4656
4657 int
4658 main ()
4659 {
4660 /* FIXME: Include the comments suggested by Paul. */
4661 #ifndef __cplusplus
4662   /* Ultrix mips cc rejects this.  */
4663   typedef int charset[2];
4664   const charset x;
4665   /* SunOS 4.1.1 cc rejects this.  */
4666   char const *const *ccp;
4667   char **p;
4668   /* NEC SVR4.0.2 mips cc rejects this.  */
4669   struct point {int x, y;};
4670   static struct point const zero = {0,0};
4671   /* AIX XL C 1.02.0.0 rejects this.
4672      It does not let you subtract one const X* pointer from another in
4673      an arm of an if-expression whose if-part is not a constant
4674      expression */
4675   const char *g = "string";
4676   ccp = &g + (g ? g-g : 0);
4677   /* HPUX 7.0 cc rejects these. */
4678   ++ccp;
4679   p = (char**) ccp;
4680   ccp = (char const *const *) p;
4681   { /* SCO 3.2v4 cc rejects this.  */
4682     char *t;
4683     char const *s = 0 ? (char *) 0 : (char const *) 0;
4684
4685     *t++ = 0;
4686   }
4687   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4688     int x[] = {25, 17};
4689     const int *foo = &x[0];
4690     ++foo;
4691   }
4692   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4693     typedef const int *iptr;
4694     iptr p = 0;
4695     ++p;
4696   }
4697   { /* AIX XL C 1.02.0.0 rejects this saying
4698        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4699     struct s { int j; const int *ap[3]; };
4700     struct s *b; b->j = 5;
4701   }
4702   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4703     const int foo = 10;
4704   }
4705 #endif
4706
4707   ;
4708   return 0;
4709 }
4710 _ACEOF
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713   (eval $ac_compile) 2>conftest.er1
4714   ac_status=$?
4715   grep -v '^ *+' conftest.er1 >conftest.err
4716   rm -f conftest.er1
4717   cat conftest.err >&5
4718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719   (exit $ac_status); } &&
4720          { ac_try='test -z "$ac_cxx_werror_flag"
4721                          || test ! -s conftest.err'
4722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4723   (eval $ac_try) 2>&5
4724   ac_status=$?
4725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726   (exit $ac_status); }; } &&
4727          { ac_try='test -s conftest.$ac_objext'
4728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4729   (eval $ac_try) 2>&5
4730   ac_status=$?
4731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732   (exit $ac_status); }; }; then
4733   ac_cv_c_const=yes
4734 else
4735   echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_cv_c_const=no
4739 fi
4740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4741 fi
4742 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4743 echo "${ECHO_T}$ac_cv_c_const" >&6
4744 if test $ac_cv_c_const = no; then
4745
4746 cat >>confdefs.h <<\_ACEOF
4747 #define const
4748 _ACEOF
4749
4750 fi
4751
4752 echo "$as_me:$LINENO: checking for inline" >&5
4753 echo $ECHO_N "checking for inline... $ECHO_C" >&6
4754 if test "${ac_cv_c_inline+set}" = set; then
4755   echo $ECHO_N "(cached) $ECHO_C" >&6
4756 else
4757   ac_cv_c_inline=no
4758 for ac_kw in inline __inline__ __inline; do
4759   cat >conftest.$ac_ext <<_ACEOF
4760 /* confdefs.h.  */
4761 _ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h.  */
4765 #ifndef __cplusplus
4766 typedef int foo_t;
4767 static $ac_kw foo_t static_foo () {return 0; }
4768 $ac_kw foo_t foo () {return 0; }
4769 #endif
4770
4771 _ACEOF
4772 rm -f conftest.$ac_objext
4773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774   (eval $ac_compile) 2>conftest.er1
4775   ac_status=$?
4776   grep -v '^ *+' conftest.er1 >conftest.err
4777   rm -f conftest.er1
4778   cat conftest.err >&5
4779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4780   (exit $ac_status); } &&
4781          { ac_try='test -z "$ac_cxx_werror_flag"
4782                          || test ! -s conftest.err'
4783   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4784   (eval $ac_try) 2>&5
4785   ac_status=$?
4786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787   (exit $ac_status); }; } &&
4788          { ac_try='test -s conftest.$ac_objext'
4789   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790   (eval $ac_try) 2>&5
4791   ac_status=$?
4792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4793   (exit $ac_status); }; }; then
4794   ac_cv_c_inline=$ac_kw; break
4795 else
4796   echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799 fi
4800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4801 done
4802
4803 fi
4804 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
4805 echo "${ECHO_T}$ac_cv_c_inline" >&6
4806
4807
4808 case $ac_cv_c_inline in
4809   inline | yes) ;;
4810   *)
4811     case $ac_cv_c_inline in
4812       no) ac_val=;;
4813       *) ac_val=$ac_cv_c_inline;;
4814     esac
4815     cat >>confdefs.h <<_ACEOF
4816 #ifndef __cplusplus
4817 #define inline $ac_val
4818 #endif
4819 _ACEOF
4820     ;;
4821 esac
4822
4823 echo "$as_me:$LINENO: checking for working volatile" >&5
4824 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
4825 if test "${ac_cv_c_volatile+set}" = set; then
4826   echo $ECHO_N "(cached) $ECHO_C" >&6
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.  */
4834
4835 int
4836 main ()
4837 {
4838
4839 volatile int x;
4840 int * volatile y;
4841   ;
4842   return 0;
4843 }
4844 _ACEOF
4845 rm -f conftest.$ac_objext
4846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4847   (eval $ac_compile) 2>conftest.er1
4848   ac_status=$?
4849   grep -v '^ *+' conftest.er1 >conftest.err
4850   rm -f conftest.er1
4851   cat conftest.err >&5
4852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853   (exit $ac_status); } &&
4854          { ac_try='test -z "$ac_cxx_werror_flag"
4855                          || test ! -s conftest.err'
4856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4857   (eval $ac_try) 2>&5
4858   ac_status=$?
4859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860   (exit $ac_status); }; } &&
4861          { ac_try='test -s conftest.$ac_objext'
4862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863   (eval $ac_try) 2>&5
4864   ac_status=$?
4865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4866   (exit $ac_status); }; }; then
4867   ac_cv_c_volatile=yes
4868 else
4869   echo "$as_me: failed program was:" >&5
4870 sed 's/^/| /' conftest.$ac_ext >&5
4871
4872 ac_cv_c_volatile=no
4873 fi
4874 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4875 fi
4876 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
4877 echo "${ECHO_T}$ac_cv_c_volatile" >&6
4878 if test $ac_cv_c_volatile = no; then
4879
4880 cat >>confdefs.h <<\_ACEOF
4881 #define volatile
4882 _ACEOF
4883
4884 fi
4885
4886 echo "$as_me:$LINENO: checking for size_t" >&5
4887 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
4888 if test "${ac_cv_type_size_t+set}" = set; then
4889   echo $ECHO_N "(cached) $ECHO_C" >&6
4890 else
4891   cat >conftest.$ac_ext <<_ACEOF
4892 /* confdefs.h.  */
4893 _ACEOF
4894 cat confdefs.h >>conftest.$ac_ext
4895 cat >>conftest.$ac_ext <<_ACEOF
4896 /* end confdefs.h.  */
4897 $ac_includes_default
4898 int
4899 main ()
4900 {
4901 if ((size_t *) 0)
4902   return 0;
4903 if (sizeof (size_t))
4904   return 0;
4905   ;
4906   return 0;
4907 }
4908 _ACEOF
4909 rm -f conftest.$ac_objext
4910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4911   (eval $ac_compile) 2>conftest.er1
4912   ac_status=$?
4913   grep -v '^ *+' conftest.er1 >conftest.err
4914   rm -f conftest.er1
4915   cat conftest.err >&5
4916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917   (exit $ac_status); } &&
4918          { ac_try='test -z "$ac_cxx_werror_flag"
4919                          || test ! -s conftest.err'
4920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4921   (eval $ac_try) 2>&5
4922   ac_status=$?
4923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4924   (exit $ac_status); }; } &&
4925          { ac_try='test -s conftest.$ac_objext'
4926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4927   (eval $ac_try) 2>&5
4928   ac_status=$?
4929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930   (exit $ac_status); }; }; then
4931   ac_cv_type_size_t=yes
4932 else
4933   echo "$as_me: failed program was:" >&5
4934 sed 's/^/| /' conftest.$ac_ext >&5
4935
4936 ac_cv_type_size_t=no
4937 fi
4938 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4939 fi
4940 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4941 echo "${ECHO_T}$ac_cv_type_size_t" >&6
4942 if test $ac_cv_type_size_t = yes; then
4943   :
4944 else
4945
4946 cat >>confdefs.h <<_ACEOF
4947 #define size_t unsigned
4948 _ACEOF
4949
4950 fi
4951
4952 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
4953 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
4954 if test "${ac_cv_cxx_namespaces+set}" = set; then
4955   echo $ECHO_N "(cached) $ECHO_C" >&6
4956 else
4957
4958
4959  ac_ext=cc
4960 ac_cpp='$CXXCPP $CPPFLAGS'
4961 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4964
4965  cat >conftest.$ac_ext <<_ACEOF
4966 /* confdefs.h.  */
4967 _ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h.  */
4971 namespace Outer { namespace Inner { int i = 0; }}
4972 int
4973 main ()
4974 {
4975 using namespace Outer::Inner; return i;
4976   ;
4977   return 0;
4978 }
4979 _ACEOF
4980 rm -f conftest.$ac_objext
4981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4982   (eval $ac_compile) 2>conftest.er1
4983   ac_status=$?
4984   grep -v '^ *+' conftest.er1 >conftest.err
4985   rm -f conftest.er1
4986   cat conftest.err >&5
4987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988   (exit $ac_status); } &&
4989          { ac_try='test -z "$ac_cxx_werror_flag"
4990                          || test ! -s conftest.err'
4991   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4992   (eval $ac_try) 2>&5
4993   ac_status=$?
4994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }; } &&
4996          { ac_try='test -s conftest.$ac_objext'
4997   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4998   (eval $ac_try) 2>&5
4999   ac_status=$?
5000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5001   (exit $ac_status); }; }; then
5002   ac_cv_cxx_namespaces=yes
5003 else
5004   echo "$as_me: failed program was:" >&5
5005 sed 's/^/| /' conftest.$ac_ext >&5
5006
5007 ac_cv_cxx_namespaces=no
5008 fi
5009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5010  ac_ext=cc
5011 ac_cpp='$CXXCPP $CPPFLAGS'
5012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5015
5016
5017 fi
5018 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
5019 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
5020 if test "$ac_cv_cxx_namespaces" = yes; then
5021
5022 cat >>confdefs.h <<\_ACEOF
5023 #define HAVE_NAMESPACES
5024 _ACEOF
5025
5026 fi
5027
5028 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
5029 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
5030 if test "${ac_cv_cxx_have_stl+set}" = set; then
5031   echo $ECHO_N "(cached) $ECHO_C" >&6
5032 else
5033
5034
5035
5036  ac_ext=cc
5037 ac_cpp='$CXXCPP $CPPFLAGS'
5038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5041
5042  cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #include <list>
5049 #include <deque>
5050 #ifdef HAVE_NAMESPACES
5051 using namespace std;
5052 #endif
5053 int
5054 main ()
5055 {
5056 list<int> x; x.push_back(5);
5057 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
5058   ;
5059   return 0;
5060 }
5061 _ACEOF
5062 rm -f conftest.$ac_objext
5063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5064   (eval $ac_compile) 2>conftest.er1
5065   ac_status=$?
5066   grep -v '^ *+' conftest.er1 >conftest.err
5067   rm -f conftest.er1
5068   cat conftest.err >&5
5069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5070   (exit $ac_status); } &&
5071          { ac_try='test -z "$ac_cxx_werror_flag"
5072                          || test ! -s conftest.err'
5073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5074   (eval $ac_try) 2>&5
5075   ac_status=$?
5076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077   (exit $ac_status); }; } &&
5078          { ac_try='test -s conftest.$ac_objext'
5079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5080   (eval $ac_try) 2>&5
5081   ac_status=$?
5082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083   (exit $ac_status); }; }; then
5084   ac_cv_cxx_have_stl=yes
5085 else
5086   echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5088
5089 ac_cv_cxx_have_stl=no
5090 fi
5091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5092  ac_ext=cc
5093 ac_cpp='$CXXCPP $CPPFLAGS'
5094 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5097
5098
5099 fi
5100 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
5101 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
5102 if test "$ac_cv_cxx_have_stl" = yes; then
5103
5104 cat >>confdefs.h <<\_ACEOF
5105 #define HAVE_STL
5106 _ACEOF
5107
5108 fi
5109
5110 echo "$as_me:$LINENO: checking whether the compiler has numeric_limits<T>" >&5
5111 echo $ECHO_N "checking whether the compiler has numeric_limits<T>... $ECHO_C" >&6
5112 if test "${ac_cv_cxx_have_numeric_limits+set}" = set; then
5113   echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115
5116
5117
5118  ac_ext=cc
5119 ac_cpp='$CXXCPP $CPPFLAGS'
5120 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5121 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5122 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5123
5124  cat >conftest.$ac_ext <<_ACEOF
5125 /* confdefs.h.  */
5126 _ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h.  */
5130 #include <limits>
5131 #ifdef HAVE_NAMESPACES
5132 using namespace std;
5133 #endif
5134 int
5135 main ()
5136 {
5137 double e = numeric_limits<double>::epsilon(); return 0;
5138   ;
5139   return 0;
5140 }
5141 _ACEOF
5142 rm -f conftest.$ac_objext
5143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5144   (eval $ac_compile) 2>conftest.er1
5145   ac_status=$?
5146   grep -v '^ *+' conftest.er1 >conftest.err
5147   rm -f conftest.er1
5148   cat conftest.err >&5
5149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5150   (exit $ac_status); } &&
5151          { ac_try='test -z "$ac_cxx_werror_flag"
5152                          || test ! -s conftest.err'
5153   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154   (eval $ac_try) 2>&5
5155   ac_status=$?
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); }; } &&
5158          { ac_try='test -s conftest.$ac_objext'
5159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160   (eval $ac_try) 2>&5
5161   ac_status=$?
5162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163   (exit $ac_status); }; }; then
5164   ac_cv_cxx_have_numeric_limits=yes
5165 else
5166   echo "$as_me: failed program was:" >&5
5167 sed 's/^/| /' conftest.$ac_ext >&5
5168
5169 ac_cv_cxx_have_numeric_limits=no
5170 fi
5171 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5172  ac_ext=cc
5173 ac_cpp='$CXXCPP $CPPFLAGS'
5174 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5177
5178
5179 fi
5180 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_numeric_limits" >&5
5181 echo "${ECHO_T}$ac_cv_cxx_have_numeric_limits" >&6
5182 if test "$ac_cv_cxx_have_numeric_limits" = yes; then
5183
5184 cat >>confdefs.h <<\_ACEOF
5185 #define HAVE_NUMERIC_LIMITS
5186 _ACEOF
5187
5188 fi
5189
5190 echo "$as_me:$LINENO: checking whether the compiler has stringstream" >&5
5191 echo $ECHO_N "checking whether the compiler has stringstream... $ECHO_C" >&6
5192 if test "${ac_cv_cxx_have_sstream+set}" = set; then
5193   echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195
5196
5197
5198  ac_ext=cc
5199 ac_cpp='$CXXCPP $CPPFLAGS'
5200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5203
5204  cat >conftest.$ac_ext <<_ACEOF
5205 /* confdefs.h.  */
5206 _ACEOF
5207 cat confdefs.h >>conftest.$ac_ext
5208 cat >>conftest.$ac_ext <<_ACEOF
5209 /* end confdefs.h.  */
5210 #include <sstream>
5211 #ifdef HAVE_NAMESPACES
5212 using namespace std;
5213 #endif
5214 int
5215 main ()
5216 {
5217 stringstream message; message << "Hello"; return 0;
5218   ;
5219   return 0;
5220 }
5221 _ACEOF
5222 rm -f conftest.$ac_objext
5223 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5224   (eval $ac_compile) 2>conftest.er1
5225   ac_status=$?
5226   grep -v '^ *+' conftest.er1 >conftest.err
5227   rm -f conftest.er1
5228   cat conftest.err >&5
5229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230   (exit $ac_status); } &&
5231          { ac_try='test -z "$ac_cxx_werror_flag"
5232                          || test ! -s conftest.err'
5233   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5234   (eval $ac_try) 2>&5
5235   ac_status=$?
5236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5237   (exit $ac_status); }; } &&
5238          { ac_try='test -s conftest.$ac_objext'
5239   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5240   (eval $ac_try) 2>&5
5241   ac_status=$?
5242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5243   (exit $ac_status); }; }; then
5244   ac_cv_cxx_have_sstream=yes
5245 else
5246   echo "$as_me: failed program was:" >&5
5247 sed 's/^/| /' conftest.$ac_ext >&5
5248
5249 ac_cv_cxx_have_sstream=no
5250 fi
5251 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5252  ac_ext=cc
5253 ac_cpp='$CXXCPP $CPPFLAGS'
5254 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5255 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5256 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5257
5258
5259 fi
5260 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_sstream" >&5
5261 echo "${ECHO_T}$ac_cv_cxx_have_sstream" >&6
5262 if test "$ac_cv_cxx_have_sstream" = yes; then
5263
5264 cat >>confdefs.h <<\_ACEOF
5265 #define HAVE_SSTREAM
5266 _ACEOF
5267
5268 fi
5269
5270 echo "$as_me:$LINENO: checking whether the compiler supports basic templates" >&5
5271 echo $ECHO_N "checking whether the compiler supports basic templates... $ECHO_C" >&6
5272 if test "${ac_cv_cxx_templates+set}" = set; then
5273   echo $ECHO_N "(cached) $ECHO_C" >&6
5274 else
5275
5276
5277  ac_ext=cc
5278 ac_cpp='$CXXCPP $CPPFLAGS'
5279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5282
5283  cat >conftest.$ac_ext <<_ACEOF
5284 /* confdefs.h.  */
5285 _ACEOF
5286 cat confdefs.h >>conftest.$ac_ext
5287 cat >>conftest.$ac_ext <<_ACEOF
5288 /* end confdefs.h.  */
5289 template<class T> class A {public:A(){}};
5290 template<class T> void f(const A<T>& ){}
5291 int
5292 main ()
5293 {
5294
5295 A<double> d; A<int> i; f(d); f(i); return 0;
5296   ;
5297   return 0;
5298 }
5299 _ACEOF
5300 rm -f conftest.$ac_objext
5301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5302   (eval $ac_compile) 2>conftest.er1
5303   ac_status=$?
5304   grep -v '^ *+' conftest.er1 >conftest.err
5305   rm -f conftest.er1
5306   cat conftest.err >&5
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); } &&
5309          { ac_try='test -z "$ac_cxx_werror_flag"
5310                          || test ! -s conftest.err'
5311   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5312   (eval $ac_try) 2>&5
5313   ac_status=$?
5314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315   (exit $ac_status); }; } &&
5316          { ac_try='test -s conftest.$ac_objext'
5317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5318   (eval $ac_try) 2>&5
5319   ac_status=$?
5320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321   (exit $ac_status); }; }; then
5322   ac_cv_cxx_templates=yes
5323 else
5324   echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 ac_cv_cxx_templates=no
5328 fi
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5330  ac_ext=cc
5331 ac_cpp='$CXXCPP $CPPFLAGS'
5332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5335
5336
5337 fi
5338 echo "$as_me:$LINENO: result: $ac_cv_cxx_templates" >&5
5339 echo "${ECHO_T}$ac_cv_cxx_templates" >&6
5340 if test "$ac_cv_cxx_templates" = yes; then
5341
5342 cat >>confdefs.h <<\_ACEOF
5343 #define HAVE_TEMPLATES
5344 _ACEOF
5345
5346 fi
5347
5348 echo "$as_me:$LINENO: checking whether the compiler supports exceptions" >&5
5349 echo $ECHO_N "checking whether the compiler supports exceptions... $ECHO_C" >&6
5350 if test "${ac_cv_cxx_exceptions+set}" = set; then
5351   echo $ECHO_N "(cached) $ECHO_C" >&6
5352 else
5353
5354
5355  ac_ext=cc
5356 ac_cpp='$CXXCPP $CPPFLAGS'
5357 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5358 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5359 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5360
5361  cat >conftest.$ac_ext <<_ACEOF
5362 /* confdefs.h.  */
5363 _ACEOF
5364 cat confdefs.h >>conftest.$ac_ext
5365 cat >>conftest.$ac_ext <<_ACEOF
5366 /* end confdefs.h.  */
5367
5368 int
5369 main ()
5370 {
5371 try { throw  1; } catch (int i) { return i; }
5372   ;
5373   return 0;
5374 }
5375 _ACEOF
5376 rm -f conftest.$ac_objext
5377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5378   (eval $ac_compile) 2>conftest.er1
5379   ac_status=$?
5380   grep -v '^ *+' conftest.er1 >conftest.err
5381   rm -f conftest.er1
5382   cat conftest.err >&5
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); } &&
5385          { ac_try='test -z "$ac_cxx_werror_flag"
5386                          || test ! -s conftest.err'
5387   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5388   (eval $ac_try) 2>&5
5389   ac_status=$?
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); }; } &&
5392          { ac_try='test -s conftest.$ac_objext'
5393   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5394   (eval $ac_try) 2>&5
5395   ac_status=$?
5396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397   (exit $ac_status); }; }; then
5398   ac_cv_cxx_exceptions=yes
5399 else
5400   echo "$as_me: failed program was:" >&5
5401 sed 's/^/| /' conftest.$ac_ext >&5
5402
5403 ac_cv_cxx_exceptions=no
5404 fi
5405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5406  ac_ext=cc
5407 ac_cpp='$CXXCPP $CPPFLAGS'
5408 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5411
5412
5413 fi
5414 echo "$as_me:$LINENO: result: $ac_cv_cxx_exceptions" >&5
5415 echo "${ECHO_T}$ac_cv_cxx_exceptions" >&6
5416 if test "$ac_cv_cxx_exceptions" = yes; then
5417
5418 cat >>confdefs.h <<\_ACEOF
5419 #define HAVE_EXCEPTIONS
5420 _ACEOF
5421
5422 fi
5423
5424 echo "$as_me:$LINENO: checking whether the compiler has complex<T>" >&5
5425 echo $ECHO_N "checking whether the compiler has complex<T>... $ECHO_C" >&6
5426 if test "${ac_cv_cxx_have_complex+set}" = set; then
5427   echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429
5430
5431
5432  ac_ext=cc
5433 ac_cpp='$CXXCPP $CPPFLAGS'
5434 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5435 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5436 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5437
5438  cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h.  */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h.  */
5444 #include <complex>
5445 #ifdef HAVE_NAMESPACES
5446 using namespace std;
5447 #endif
5448 int
5449 main ()
5450 {
5451 complex<float> a; complex<double> b; return 0;
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 rm -f conftest.$ac_objext
5457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5458   (eval $ac_compile) 2>conftest.er1
5459   ac_status=$?
5460   grep -v '^ *+' conftest.er1 >conftest.err
5461   rm -f conftest.er1
5462   cat conftest.err >&5
5463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5464   (exit $ac_status); } &&
5465          { ac_try='test -z "$ac_cxx_werror_flag"
5466                          || test ! -s conftest.err'
5467   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5468   (eval $ac_try) 2>&5
5469   ac_status=$?
5470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5471   (exit $ac_status); }; } &&
5472          { ac_try='test -s conftest.$ac_objext'
5473   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474   (eval $ac_try) 2>&5
5475   ac_status=$?
5476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5477   (exit $ac_status); }; }; then
5478   ac_cv_cxx_have_complex=yes
5479 else
5480   echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483 ac_cv_cxx_have_complex=no
5484 fi
5485 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5486  ac_ext=cc
5487 ac_cpp='$CXXCPP $CPPFLAGS'
5488 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5489 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5490 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5491
5492
5493 fi
5494 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_complex" >&5
5495 echo "${ECHO_T}$ac_cv_cxx_have_complex" >&6
5496 if test "$ac_cv_cxx_have_complex" = yes; then
5497
5498 cat >>confdefs.h <<\_ACEOF
5499 #define HAVE_COMPLEX
5500 _ACEOF
5501
5502 fi
5503
5504
5505 # Checks for library functions.
5506 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
5507 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
5508 if test "${ac_cv_type_signal+set}" = set; then
5509   echo $ECHO_N "(cached) $ECHO_C" >&6
5510 else
5511   cat >conftest.$ac_ext <<_ACEOF
5512 /* confdefs.h.  */
5513 _ACEOF
5514 cat confdefs.h >>conftest.$ac_ext
5515 cat >>conftest.$ac_ext <<_ACEOF
5516 /* end confdefs.h.  */
5517 #include <sys/types.h>
5518 #include <signal.h>
5519 #ifdef signal
5520 # undef signal
5521 #endif
5522 #ifdef __cplusplus
5523 extern "C" void (*signal (int, void (*)(int)))(int);
5524 #else
5525 void (*signal ()) ();
5526 #endif
5527
5528 int
5529 main ()
5530 {
5531 int i;
5532   ;
5533   return 0;
5534 }
5535 _ACEOF
5536 rm -f conftest.$ac_objext
5537 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5538   (eval $ac_compile) 2>conftest.er1
5539   ac_status=$?
5540   grep -v '^ *+' conftest.er1 >conftest.err
5541   rm -f conftest.er1
5542   cat conftest.err >&5
5543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5544   (exit $ac_status); } &&
5545          { ac_try='test -z "$ac_cxx_werror_flag"
5546                          || test ! -s conftest.err'
5547   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5548   (eval $ac_try) 2>&5
5549   ac_status=$?
5550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551   (exit $ac_status); }; } &&
5552          { ac_try='test -s conftest.$ac_objext'
5553   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5554   (eval $ac_try) 2>&5
5555   ac_status=$?
5556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557   (exit $ac_status); }; }; then
5558   ac_cv_type_signal=void
5559 else
5560   echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5562
5563 ac_cv_type_signal=int
5564 fi
5565 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5566 fi
5567 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
5568 echo "${ECHO_T}$ac_cv_type_signal" >&6
5569
5570 cat >>confdefs.h <<_ACEOF
5571 #define RETSIGTYPE $ac_cv_type_signal
5572 _ACEOF
5573
5574
5575
5576
5577 for ac_func in pow sqrt
5578 do
5579 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5580 echo "$as_me:$LINENO: checking for $ac_func" >&5
5581 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5582 if eval "test \"\${$as_ac_var+set}\" = set"; then
5583   echo $ECHO_N "(cached) $ECHO_C" >&6
5584 else
5585   cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h.  */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h.  */
5591 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5592    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5593 #define $ac_func innocuous_$ac_func
5594
5595 /* System header to define __stub macros and hopefully few prototypes,
5596     which can conflict with char $ac_func (); below.
5597     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5598     <limits.h> exists even on freestanding compilers.  */
5599
5600 #ifdef __STDC__
5601 # include <limits.h>
5602 #else
5603 # include <assert.h>
5604 #endif
5605
5606 #undef $ac_func
5607
5608 /* Override any gcc2 internal prototype to avoid an error.  */
5609 #ifdef __cplusplus
5610 extern "C"
5611 {
5612 #endif
5613 /* We use char because int might match the return type of a gcc2
5614    builtin and then its argument prototype would still apply.  */
5615 char $ac_func ();
5616 /* The GNU C library defines this for functions which it implements
5617     to always fail with ENOSYS.  Some functions are actually named
5618     something starting with __ and the normal name is an alias.  */
5619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5620 choke me
5621 #else
5622 char (*f) () = $ac_func;
5623 #endif
5624 #ifdef __cplusplus
5625 }
5626 #endif
5627
5628 int
5629 main ()
5630 {
5631 return f != $ac_func;
5632   ;
5633   return 0;
5634 }
5635 _ACEOF
5636 rm -f conftest.$ac_objext conftest$ac_exeext
5637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5638   (eval $ac_link) 2>conftest.er1
5639   ac_status=$?
5640   grep -v '^ *+' conftest.er1 >conftest.err
5641   rm -f conftest.er1
5642   cat conftest.err >&5
5643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644   (exit $ac_status); } &&
5645          { ac_try='test -z "$ac_cxx_werror_flag"
5646                          || test ! -s conftest.err'
5647   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5648   (eval $ac_try) 2>&5
5649   ac_status=$?
5650   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5651   (exit $ac_status); }; } &&
5652          { ac_try='test -s conftest$ac_exeext'
5653   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5654   (eval $ac_try) 2>&5
5655   ac_status=$?
5656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5657   (exit $ac_status); }; }; then
5658   eval "$as_ac_var=yes"
5659 else
5660   echo "$as_me: failed program was:" >&5
5661 sed 's/^/| /' conftest.$ac_ext >&5
5662
5663 eval "$as_ac_var=no"
5664 fi
5665 rm -f conftest.err conftest.$ac_objext \
5666       conftest$ac_exeext conftest.$ac_ext
5667 fi
5668 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5669 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5670 if test `eval echo '${'$as_ac_var'}'` = yes; then
5671   cat >>confdefs.h <<_ACEOF
5672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5673 _ACEOF
5674
5675 fi
5676 done
5677
5678
5679
5680 for ac_header in fftw3.h
5681 do
5682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5684   echo "$as_me:$LINENO: checking for $ac_header" >&5
5685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5687   echo $ECHO_N "(cached) $ECHO_C" >&6
5688 fi
5689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5691 else
5692   # Is the header compilable?
5693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h.  */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h.  */
5701 $ac_includes_default
5702 #include <$ac_header>
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5706   (eval $ac_compile) 2>conftest.er1
5707   ac_status=$?
5708   grep -v '^ *+' conftest.er1 >conftest.err
5709   rm -f conftest.er1
5710   cat conftest.err >&5
5711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712   (exit $ac_status); } &&
5713          { ac_try='test -z "$ac_cxx_werror_flag"
5714                          || test ! -s conftest.err'
5715   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5716   (eval $ac_try) 2>&5
5717   ac_status=$?
5718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5719   (exit $ac_status); }; } &&
5720          { ac_try='test -s conftest.$ac_objext'
5721   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5722   (eval $ac_try) 2>&5
5723   ac_status=$?
5724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725   (exit $ac_status); }; }; then
5726   ac_header_compiler=yes
5727 else
5728   echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731 ac_header_compiler=no
5732 fi
5733 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5734 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5735 echo "${ECHO_T}$ac_header_compiler" >&6
5736
5737 # Is the header present?
5738 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5739 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5740 cat >conftest.$ac_ext <<_ACEOF
5741 /* confdefs.h.  */
5742 _ACEOF
5743 cat confdefs.h >>conftest.$ac_ext
5744 cat >>conftest.$ac_ext <<_ACEOF
5745 /* end confdefs.h.  */
5746 #include <$ac_header>
5747 _ACEOF
5748 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5749   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5750   ac_status=$?
5751   grep -v '^ *+' conftest.er1 >conftest.err
5752   rm -f conftest.er1
5753   cat conftest.err >&5
5754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5755   (exit $ac_status); } >/dev/null; then
5756   if test -s conftest.err; then
5757     ac_cpp_err=$ac_cxx_preproc_warn_flag
5758     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5759   else
5760     ac_cpp_err=
5761   fi
5762 else
5763   ac_cpp_err=yes
5764 fi
5765 if test -z "$ac_cpp_err"; then
5766   ac_header_preproc=yes
5767 else
5768   echo "$as_me: failed program was:" >&5
5769 sed 's/^/| /' conftest.$ac_ext >&5
5770
5771   ac_header_preproc=no
5772 fi
5773 rm -f conftest.err conftest.$ac_ext
5774 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5775 echo "${ECHO_T}$ac_header_preproc" >&6
5776
5777 # So?  What about this header?
5778 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5779   yes:no: )
5780     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5781 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5782     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5784     ac_header_preproc=yes
5785     ;;
5786   no:yes:* )
5787     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5788 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5789     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5790 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5791     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5792 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5793     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5794 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5795     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5797     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5798 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5799     (
5800       cat <<\_ASBOX
5801 ## ------------------------------- ##
5802 ## Report this to the fmit lists.  ##
5803 ## ------------------------------- ##
5804 _ASBOX
5805     ) |
5806       sed "s/^/$as_me: WARNING:     /" >&2
5807     ;;
5808 esac
5809 echo "$as_me:$LINENO: checking for $ac_header" >&5
5810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5811 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5812   echo $ECHO_N "(cached) $ECHO_C" >&6
5813 else
5814   eval "$as_ac_Header=\$ac_header_preproc"
5815 fi
5816 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5817 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5818
5819 fi
5820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5821   cat >>confdefs.h <<_ACEOF
5822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5823 _ACEOF
5824
5825 fi
5826
5827 done
5828
5829
5830 echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
5831 echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6
5832 if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then
5833   echo $ECHO_N "(cached) $ECHO_C" >&6
5834 else
5835   ac_check_lib_save_LIBS=$LIBS
5836 LIBS="-lfftw3  $LIBS"
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h.  */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h.  */
5843
5844 /* Override any gcc2 internal prototype to avoid an error.  */
5845 #ifdef __cplusplus
5846 extern "C"
5847 #endif
5848 /* We use char because int might match the return type of a gcc2
5849    builtin and then its argument prototype would still apply.  */
5850 char fftw_plan_dft_1d ();
5851 int
5852 main ()
5853 {
5854 fftw_plan_dft_1d ();
5855   ;
5856   return 0;
5857 }
5858 _ACEOF
5859 rm -f conftest.$ac_objext conftest$ac_exeext
5860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5861   (eval $ac_link) 2>conftest.er1
5862   ac_status=$?
5863   grep -v '^ *+' conftest.er1 >conftest.err
5864   rm -f conftest.er1
5865   cat conftest.err >&5
5866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867   (exit $ac_status); } &&
5868          { ac_try='test -z "$ac_cxx_werror_flag"
5869                          || test ! -s conftest.err'
5870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5871   (eval $ac_try) 2>&5
5872   ac_status=$?
5873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874   (exit $ac_status); }; } &&
5875          { ac_try='test -s conftest$ac_exeext'
5876   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5877   (eval $ac_try) 2>&5
5878   ac_status=$?
5879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880   (exit $ac_status); }; }; then
5881   ac_cv_lib_fftw3_fftw_plan_dft_1d=yes
5882 else
5883   echo "$as_me: failed program was:" >&5
5884 sed 's/^/| /' conftest.$ac_ext >&5
5885
5886 ac_cv_lib_fftw3_fftw_plan_dft_1d=no
5887 fi
5888 rm -f conftest.err conftest.$ac_objext \
5889       conftest$ac_exeext conftest.$ac_ext
5890 LIBS=$ac_check_lib_save_LIBS
5891 fi
5892 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5
5893 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6
5894 if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then
5895   cat >>confdefs.h <<_ACEOF
5896 #define HAVE_LIBFFTW3 1
5897 _ACEOF
5898
5899   LIBS="-lfftw3 $LIBS"
5900
5901 fi
5902
5903
5904 # --- Qt ---
5905 echo "$as_me:$LINENO: checking for X" >&5
5906 echo $ECHO_N "checking for X... $ECHO_C" >&6
5907
5908
5909 # Check whether --with-x or --without-x was given.
5910 if test "${with_x+set}" = set; then
5911   withval="$with_x"
5912
5913 fi;
5914 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5915 if test "x$with_x" = xno; then
5916   # The user explicitly disabled X.
5917   have_x=disabled
5918 else
5919   if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
5920     # Both variables are already set.
5921     have_x=yes
5922   else
5923     if test "${ac_cv_have_x+set}" = set; then
5924   echo $ECHO_N "(cached) $ECHO_C" >&6
5925 else
5926   # One or both of the vars are not set, and there is no cached value.
5927 ac_x_includes=no ac_x_libraries=no
5928 rm -fr conftest.dir
5929 if mkdir conftest.dir; then
5930   cd conftest.dir
5931   # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5932   cat >Imakefile <<'_ACEOF'
5933 acfindx:
5934         @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
5935 _ACEOF
5936   if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
5937     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5938     eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
5939     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5940     for ac_extension in a so sl; do
5941       if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
5942          test -f $ac_im_libdir/libX11.$ac_extension; then
5943         ac_im_usrlibdir=$ac_im_libdir; break
5944       fi
5945     done
5946     # Screen out bogus values from the imake configuration.  They are
5947     # bogus both because they are the default anyway, and because
5948     # using them would break gcc on systems where it needs fixed includes.
5949     case $ac_im_incroot in
5950         /usr/include) ;;
5951         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5952     esac
5953     case $ac_im_usrlibdir in
5954         /usr/lib | /lib) ;;
5955         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5956     esac
5957   fi
5958   cd ..
5959   rm -fr conftest.dir
5960 fi
5961
5962 # Standard set of common directories for X headers.
5963 # Check X11 before X11Rn because it is often a symlink to the current release.
5964 ac_x_header_dirs='
5965 /usr/X11/include
5966 /usr/X11R6/include
5967 /usr/X11R5/include
5968 /usr/X11R4/include
5969
5970 /usr/include/X11
5971 /usr/include/X11R6
5972 /usr/include/X11R5
5973 /usr/include/X11R4
5974
5975 /usr/local/X11/include
5976 /usr/local/X11R6/include
5977 /usr/local/X11R5/include
5978 /usr/local/X11R4/include
5979
5980 /usr/local/include/X11
5981 /usr/local/include/X11R6
5982 /usr/local/include/X11R5
5983 /usr/local/include/X11R4
5984
5985 /usr/X386/include
5986 /usr/x386/include
5987 /usr/XFree86/include/X11
5988
5989 /usr/include
5990 /usr/local/include
5991 /usr/unsupported/include
5992 /usr/athena/include
5993 /usr/local/x11r5/include
5994 /usr/lpp/Xamples/include
5995
5996 /usr/openwin/include
5997 /usr/openwin/share/include'
5998
5999 if test "$ac_x_includes" = no; then
6000   # Guess where to find include files, by looking for Intrinsic.h.
6001   # First, try using that file with no special directory specified.
6002   cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h.  */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h.  */
6008 #include <X11/Intrinsic.h>
6009 _ACEOF
6010 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6011   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6012   ac_status=$?
6013   grep -v '^ *+' conftest.er1 >conftest.err
6014   rm -f conftest.er1
6015   cat conftest.err >&5
6016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017   (exit $ac_status); } >/dev/null; then
6018   if test -s conftest.err; then
6019     ac_cpp_err=$ac_cxx_preproc_warn_flag
6020     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6021   else
6022     ac_cpp_err=
6023   fi
6024 else
6025   ac_cpp_err=yes
6026 fi
6027 if test -z "$ac_cpp_err"; then
6028   # We can compile using X headers with no special include directory.
6029 ac_x_includes=
6030 else
6031   echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6033
6034   for ac_dir in $ac_x_header_dirs; do
6035   if test -r "$ac_dir/X11/Intrinsic.h"; then
6036     ac_x_includes=$ac_dir
6037     break
6038   fi
6039 done
6040 fi
6041 rm -f conftest.err conftest.$ac_ext
6042 fi # $ac_x_includes = no
6043
6044 if test "$ac_x_libraries" = no; then
6045   # Check for the libraries.
6046   # See if we find them without any special options.
6047   # Don't add to $LIBS permanently.
6048   ac_save_LIBS=$LIBS
6049   LIBS="-lXt $LIBS"
6050   cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h.  */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h.  */
6056 #include <X11/Intrinsic.h>
6057 int
6058 main ()
6059 {
6060 XtMalloc (0)
6061   ;
6062   return 0;
6063 }
6064 _ACEOF
6065 rm -f conftest.$ac_objext conftest$ac_exeext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6067   (eval $ac_link) 2>conftest.er1
6068   ac_status=$?
6069   grep -v '^ *+' conftest.er1 >conftest.err
6070   rm -f conftest.er1
6071   cat conftest.err >&5
6072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073   (exit $ac_status); } &&
6074          { ac_try='test -z "$ac_cxx_werror_flag"
6075                          || test ! -s conftest.err'
6076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6077   (eval $ac_try) 2>&5
6078   ac_status=$?
6079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6080   (exit $ac_status); }; } &&
6081          { ac_try='test -s conftest$ac_exeext'
6082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6083   (eval $ac_try) 2>&5
6084   ac_status=$?
6085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086   (exit $ac_status); }; }; then
6087   LIBS=$ac_save_LIBS
6088 # We can link X programs with no special library path.
6089 ac_x_libraries=
6090 else
6091   echo "$as_me: failed program was:" >&5
6092 sed 's/^/| /' conftest.$ac_ext >&5
6093
6094 LIBS=$ac_save_LIBS
6095 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
6096 do
6097   # Don't even attempt the hair of trying to link an X program!
6098   for ac_extension in a so sl; do
6099     if test -r $ac_dir/libXt.$ac_extension; then
6100       ac_x_libraries=$ac_dir
6101       break 2
6102     fi
6103   done
6104 done
6105 fi
6106 rm -f conftest.err conftest.$ac_objext \
6107       conftest$ac_exeext conftest.$ac_ext
6108 fi # $ac_x_libraries = no
6109
6110 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
6111   # Didn't find X anywhere.  Cache the known absence of X.
6112   ac_cv_have_x="have_x=no"
6113 else
6114   # Record where we found X for the cache.
6115   ac_cv_have_x="have_x=yes \
6116                 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
6117 fi
6118 fi
6119
6120   fi
6121   eval "$ac_cv_have_x"
6122 fi # $with_x != no
6123
6124 if test "$have_x" != yes; then
6125   echo "$as_me:$LINENO: result: $have_x" >&5
6126 echo "${ECHO_T}$have_x" >&6
6127   no_x=yes
6128 else
6129   # If each of the values was on the command line, it overrides each guess.
6130   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
6131   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
6132   # Update the cache value to reflect the command line values.
6133   ac_cv_have_x="have_x=yes \
6134                 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
6135   echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
6136 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
6137 fi
6138
6139 if test "$no_x" = yes; then
6140   # Not all programs may use this symbol, but it does not hurt to define it.
6141
6142 cat >>confdefs.h <<\_ACEOF
6143 #define X_DISPLAY_MISSING 1
6144 _ACEOF
6145
6146   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
6147 else
6148   if test -n "$x_includes"; then
6149     X_CFLAGS="$X_CFLAGS -I$x_includes"
6150   fi
6151
6152   # It would also be nice to do this for all -L options, not just this one.
6153   if test -n "$x_libraries"; then
6154     X_LIBS="$X_LIBS -L$x_libraries"
6155     # For Solaris; some versions of Sun CC require a space after -R and
6156     # others require no space.  Words are not sufficient . . . .
6157     case `(uname -sr) 2>/dev/null` in
6158     "SunOS 5"*)
6159       echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
6160 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
6161       ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
6162       cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h.  */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h.  */
6168
6169 int
6170 main ()
6171 {
6172
6173   ;
6174   return 0;
6175 }
6176 _ACEOF
6177 rm -f conftest.$ac_objext conftest$ac_exeext
6178 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6179   (eval $ac_link) 2>conftest.er1
6180   ac_status=$?
6181   grep -v '^ *+' conftest.er1 >conftest.err
6182   rm -f conftest.er1
6183   cat conftest.err >&5
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); } &&
6186          { ac_try='test -z "$ac_cxx_werror_flag"
6187                          || test ! -s conftest.err'
6188   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6189   (eval $ac_try) 2>&5
6190   ac_status=$?
6191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6192   (exit $ac_status); }; } &&
6193          { ac_try='test -s conftest$ac_exeext'
6194   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6195   (eval $ac_try) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; }; then
6199   ac_R_nospace=yes
6200 else
6201   echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6203
6204 ac_R_nospace=no
6205 fi
6206 rm -f conftest.err conftest.$ac_objext \
6207       conftest$ac_exeext conftest.$ac_ext
6208       if test $ac_R_nospace = yes; then
6209         echo "$as_me:$LINENO: result: no" >&5
6210 echo "${ECHO_T}no" >&6
6211         X_LIBS="$X_LIBS -R$x_libraries"
6212       else
6213         LIBS="$ac_xsave_LIBS -R $x_libraries"
6214         cat >conftest.$ac_ext <<_ACEOF
6215 /* confdefs.h.  */
6216 _ACEOF
6217 cat confdefs.h >>conftest.$ac_ext
6218 cat >>conftest.$ac_ext <<_ACEOF
6219 /* end confdefs.h.  */
6220
6221 int
6222 main ()
6223 {
6224
6225   ;
6226   return 0;
6227 }
6228 _ACEOF
6229 rm -f conftest.$ac_objext conftest$ac_exeext
6230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6231   (eval $ac_link) 2>conftest.er1
6232   ac_status=$?
6233   grep -v '^ *+' conftest.er1 >conftest.err
6234   rm -f conftest.er1
6235   cat conftest.err >&5
6236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237   (exit $ac_status); } &&
6238          { ac_try='test -z "$ac_cxx_werror_flag"
6239                          || test ! -s conftest.err'
6240   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6241   (eval $ac_try) 2>&5
6242   ac_status=$?
6243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244   (exit $ac_status); }; } &&
6245          { ac_try='test -s conftest$ac_exeext'
6246   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247   (eval $ac_try) 2>&5
6248   ac_status=$?
6249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250   (exit $ac_status); }; }; then
6251   ac_R_space=yes
6252 else
6253   echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6255
6256 ac_R_space=no
6257 fi
6258 rm -f conftest.err conftest.$ac_objext \
6259       conftest$ac_exeext conftest.$ac_ext
6260         if test $ac_R_space = yes; then
6261           echo "$as_me:$LINENO: result: yes" >&5
6262 echo "${ECHO_T}yes" >&6
6263           X_LIBS="$X_LIBS -R $x_libraries"
6264         else
6265           echo "$as_me:$LINENO: result: neither works" >&5
6266 echo "${ECHO_T}neither works" >&6
6267         fi
6268       fi
6269       LIBS=$ac_xsave_LIBS
6270     esac
6271   fi
6272
6273   # Check for system-dependent libraries X programs must link with.
6274   # Do this before checking for the system-independent R6 libraries
6275   # (-lICE), since we may need -lsocket or whatever for X linking.
6276
6277   if test "$ISC" = yes; then
6278     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
6279   else
6280     # Martyn Johnson says this is needed for Ultrix, if the X
6281     # libraries were built with DECnet support.  And Karl Berry says
6282     # the Alpha needs dnet_stub (dnet does not exist).
6283     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
6284     cat >conftest.$ac_ext <<_ACEOF
6285 /* confdefs.h.  */
6286 _ACEOF
6287 cat confdefs.h >>conftest.$ac_ext
6288 cat >>conftest.$ac_ext <<_ACEOF
6289 /* end confdefs.h.  */
6290
6291 /* Override any gcc2 internal prototype to avoid an error.  */
6292 #ifdef __cplusplus
6293 extern "C"
6294 #endif
6295 /* We use char because int might match the return type of a gcc2
6296    builtin and then its argument prototype would still apply.  */
6297 char XOpenDisplay ();
6298 int
6299 main ()
6300 {
6301 XOpenDisplay ();
6302   ;
6303   return 0;
6304 }
6305 _ACEOF
6306 rm -f conftest.$ac_objext conftest$ac_exeext
6307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6308   (eval $ac_link) 2>conftest.er1
6309   ac_status=$?
6310   grep -v '^ *+' conftest.er1 >conftest.err
6311   rm -f conftest.er1
6312   cat conftest.err >&5
6313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314   (exit $ac_status); } &&
6315          { ac_try='test -z "$ac_cxx_werror_flag"
6316                          || test ! -s conftest.err'
6317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6318   (eval $ac_try) 2>&5
6319   ac_status=$?
6320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321   (exit $ac_status); }; } &&
6322          { ac_try='test -s conftest$ac_exeext'
6323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6324   (eval $ac_try) 2>&5
6325   ac_status=$?
6326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327   (exit $ac_status); }; }; then
6328   :
6329 else
6330   echo "$as_me: failed program was:" >&5
6331 sed 's/^/| /' conftest.$ac_ext >&5
6332
6333 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
6334 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
6335 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
6336   echo $ECHO_N "(cached) $ECHO_C" >&6
6337 else
6338   ac_check_lib_save_LIBS=$LIBS
6339 LIBS="-ldnet  $LIBS"
6340 cat >conftest.$ac_ext <<_ACEOF
6341 /* confdefs.h.  */
6342 _ACEOF
6343 cat confdefs.h >>conftest.$ac_ext
6344 cat >>conftest.$ac_ext <<_ACEOF
6345 /* end confdefs.h.  */
6346
6347 /* Override any gcc2 internal prototype to avoid an error.  */
6348 #ifdef __cplusplus
6349 extern "C"
6350 #endif
6351 /* We use char because int might match the return type of a gcc2
6352    builtin and then its argument prototype would still apply.  */
6353 char dnet_ntoa ();
6354 int
6355 main ()
6356 {
6357 dnet_ntoa ();
6358   ;
6359   return 0;
6360 }
6361 _ACEOF
6362 rm -f conftest.$ac_objext conftest$ac_exeext
6363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6364   (eval $ac_link) 2>conftest.er1
6365   ac_status=$?
6366   grep -v '^ *+' conftest.er1 >conftest.err
6367   rm -f conftest.er1
6368   cat conftest.err >&5
6369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370   (exit $ac_status); } &&
6371          { ac_try='test -z "$ac_cxx_werror_flag"
6372                          || test ! -s conftest.err'
6373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6374   (eval $ac_try) 2>&5
6375   ac_status=$?
6376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377   (exit $ac_status); }; } &&
6378          { ac_try='test -s conftest$ac_exeext'
6379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6380   (eval $ac_try) 2>&5
6381   ac_status=$?
6382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6383   (exit $ac_status); }; }; then
6384   ac_cv_lib_dnet_dnet_ntoa=yes
6385 else
6386   echo "$as_me: failed program was:" >&5
6387 sed 's/^/| /' conftest.$ac_ext >&5
6388
6389 ac_cv_lib_dnet_dnet_ntoa=no
6390 fi
6391 rm -f conftest.err conftest.$ac_objext \
6392       conftest$ac_exeext conftest.$ac_ext
6393 LIBS=$ac_check_lib_save_LIBS
6394 fi
6395 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
6396 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
6397 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
6398   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
6399 fi
6400
6401     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
6402       echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
6403 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
6404 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
6405   echo $ECHO_N "(cached) $ECHO_C" >&6
6406 else
6407   ac_check_lib_save_LIBS=$LIBS
6408 LIBS="-ldnet_stub  $LIBS"
6409 cat >conftest.$ac_ext <<_ACEOF
6410 /* confdefs.h.  */
6411 _ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h.  */
6415
6416 /* Override any gcc2 internal prototype to avoid an error.  */
6417 #ifdef __cplusplus
6418 extern "C"
6419 #endif
6420 /* We use char because int might match the return type of a gcc2
6421    builtin and then its argument prototype would still apply.  */
6422 char dnet_ntoa ();
6423 int
6424 main ()
6425 {
6426 dnet_ntoa ();
6427   ;
6428   return 0;
6429 }
6430 _ACEOF
6431 rm -f conftest.$ac_objext conftest$ac_exeext
6432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6433   (eval $ac_link) 2>conftest.er1
6434   ac_status=$?
6435   grep -v '^ *+' conftest.er1 >conftest.err
6436   rm -f conftest.er1
6437   cat conftest.err >&5
6438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439   (exit $ac_status); } &&
6440          { ac_try='test -z "$ac_cxx_werror_flag"
6441                          || test ! -s conftest.err'
6442   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6443   (eval $ac_try) 2>&5
6444   ac_status=$?
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); }; } &&
6447          { ac_try='test -s conftest$ac_exeext'
6448   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6449   (eval $ac_try) 2>&5
6450   ac_status=$?
6451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6452   (exit $ac_status); }; }; then
6453   ac_cv_lib_dnet_stub_dnet_ntoa=yes
6454 else
6455   echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458 ac_cv_lib_dnet_stub_dnet_ntoa=no
6459 fi
6460 rm -f conftest.err conftest.$ac_objext \
6461       conftest$ac_exeext conftest.$ac_ext
6462 LIBS=$ac_check_lib_save_LIBS
6463 fi
6464 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
6465 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
6466 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
6467   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
6468 fi
6469
6470     fi
6471 fi
6472 rm -f conftest.err conftest.$ac_objext \
6473       conftest$ac_exeext conftest.$ac_ext
6474     LIBS="$ac_xsave_LIBS"
6475
6476     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
6477     # to get the SysV transport functions.
6478     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
6479     # needs -lnsl.
6480     # The nsl library prevents programs from opening the X display
6481     # on Irix 5.2, according to T.E. Dickey.
6482     # The functions gethostbyname, getservbyname, and inet_addr are
6483     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
6484     echo "$as_me:$LINENO: checking for gethostbyname" >&5
6485 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
6486 if test "${ac_cv_func_gethostbyname+set}" = set; then
6487   echo $ECHO_N "(cached) $ECHO_C" >&6
6488 else
6489   cat >conftest.$ac_ext <<_ACEOF
6490 /* confdefs.h.  */
6491 _ACEOF
6492 cat confdefs.h >>conftest.$ac_ext
6493 cat >>conftest.$ac_ext <<_ACEOF
6494 /* end confdefs.h.  */
6495 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
6496    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6497 #define gethostbyname innocuous_gethostbyname
6498
6499 /* System header to define __stub macros and hopefully few prototypes,
6500     which can conflict with char gethostbyname (); below.
6501     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6502     <limits.h> exists even on freestanding compilers.  */
6503
6504 #ifdef __STDC__
6505 # include <limits.h>
6506 #else
6507 # include <assert.h>
6508 #endif
6509
6510 #undef gethostbyname
6511
6512 /* Override any gcc2 internal prototype to avoid an error.  */
6513 #ifdef __cplusplus
6514 extern "C"
6515 {
6516 #endif
6517 /* We use char because int might match the return type of a gcc2
6518    builtin and then its argument prototype would still apply.  */
6519 char gethostbyname ();
6520 /* The GNU C library defines this for functions which it implements
6521     to always fail with ENOSYS.  Some functions are actually named
6522     something starting with __ and the normal name is an alias.  */
6523 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
6524 choke me
6525 #else
6526 char (*f) () = gethostbyname;
6527 #endif
6528 #ifdef __cplusplus
6529 }
6530 #endif
6531
6532 int
6533 main ()
6534 {
6535 return f != gethostbyname;
6536   ;
6537   return 0;
6538 }
6539 _ACEOF
6540 rm -f conftest.$ac_objext conftest$ac_exeext
6541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542   (eval $ac_link) 2>conftest.er1
6543   ac_status=$?
6544   grep -v '^ *+' conftest.er1 >conftest.err
6545   rm -f conftest.er1
6546   cat conftest.err >&5
6547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548   (exit $ac_status); } &&
6549          { ac_try='test -z "$ac_cxx_werror_flag"
6550                          || test ! -s conftest.err'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; } &&
6556          { ac_try='test -s conftest$ac_exeext'
6557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6558   (eval $ac_try) 2>&5
6559   ac_status=$?
6560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6561   (exit $ac_status); }; }; then
6562   ac_cv_func_gethostbyname=yes
6563 else
6564   echo "$as_me: failed program was:" >&5
6565 sed 's/^/| /' conftest.$ac_ext >&5
6566
6567 ac_cv_func_gethostbyname=no
6568 fi
6569 rm -f conftest.err conftest.$ac_objext \
6570       conftest$ac_exeext conftest.$ac_ext
6571 fi
6572 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6573 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
6574
6575     if test $ac_cv_func_gethostbyname = no; then
6576       echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
6577 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6578 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6579   echo $ECHO_N "(cached) $ECHO_C" >&6
6580 else
6581   ac_check_lib_save_LIBS=$LIBS
6582 LIBS="-lnsl  $LIBS"
6583 cat >conftest.$ac_ext <<_ACEOF
6584 /* confdefs.h.  */
6585 _ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h.  */
6589
6590 /* Override any gcc2 internal prototype to avoid an error.  */
6591 #ifdef __cplusplus
6592 extern "C"
6593 #endif
6594 /* We use char because int might match the return type of a gcc2
6595    builtin and then its argument prototype would still apply.  */
6596 char gethostbyname ();
6597 int
6598 main ()
6599 {
6600 gethostbyname ();
6601   ;
6602   return 0;
6603 }
6604 _ACEOF
6605 rm -f conftest.$ac_objext conftest$ac_exeext
6606 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6607   (eval $ac_link) 2>conftest.er1
6608   ac_status=$?
6609   grep -v '^ *+' conftest.er1 >conftest.err
6610   rm -f conftest.er1
6611   cat conftest.err >&5
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); } &&
6614          { ac_try='test -z "$ac_cxx_werror_flag"
6615                          || test ! -s conftest.err'
6616   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6617   (eval $ac_try) 2>&5
6618   ac_status=$?
6619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620   (exit $ac_status); }; } &&
6621          { ac_try='test -s conftest$ac_exeext'
6622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6623   (eval $ac_try) 2>&5
6624   ac_status=$?
6625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6626   (exit $ac_status); }; }; then
6627   ac_cv_lib_nsl_gethostbyname=yes
6628 else
6629   echo "$as_me: failed program was:" >&5
6630 sed 's/^/| /' conftest.$ac_ext >&5
6631
6632 ac_cv_lib_nsl_gethostbyname=no
6633 fi
6634 rm -f conftest.err conftest.$ac_objext \
6635       conftest$ac_exeext conftest.$ac_ext
6636 LIBS=$ac_check_lib_save_LIBS
6637 fi
6638 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
6639 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6640 if test $ac_cv_lib_nsl_gethostbyname = yes; then
6641   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6642 fi
6643
6644       if test $ac_cv_lib_nsl_gethostbyname = no; then
6645         echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
6646 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
6647 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   ac_check_lib_save_LIBS=$LIBS
6651 LIBS="-lbsd  $LIBS"
6652 cat >conftest.$ac_ext <<_ACEOF
6653 /* confdefs.h.  */
6654 _ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h.  */
6658
6659 /* Override any gcc2 internal prototype to avoid an error.  */
6660 #ifdef __cplusplus
6661 extern "C"
6662 #endif
6663 /* We use char because int might match the return type of a gcc2
6664    builtin and then its argument prototype would still apply.  */
6665 char gethostbyname ();
6666 int
6667 main ()
6668 {
6669 gethostbyname ();
6670   ;
6671   return 0;
6672 }
6673 _ACEOF
6674 rm -f conftest.$ac_objext conftest$ac_exeext
6675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6676   (eval $ac_link) 2>conftest.er1
6677   ac_status=$?
6678   grep -v '^ *+' conftest.er1 >conftest.err
6679   rm -f conftest.er1
6680   cat conftest.err >&5
6681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6682   (exit $ac_status); } &&
6683          { ac_try='test -z "$ac_cxx_werror_flag"
6684                          || test ! -s conftest.err'
6685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686   (eval $ac_try) 2>&5
6687   ac_status=$?
6688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689   (exit $ac_status); }; } &&
6690          { ac_try='test -s conftest$ac_exeext'
6691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6692   (eval $ac_try) 2>&5
6693   ac_status=$?
6694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6695   (exit $ac_status); }; }; then
6696   ac_cv_lib_bsd_gethostbyname=yes
6697 else
6698   echo "$as_me: failed program was:" >&5
6699 sed 's/^/| /' conftest.$ac_ext >&5
6700
6701 ac_cv_lib_bsd_gethostbyname=no
6702 fi
6703 rm -f conftest.err conftest.$ac_objext \
6704       conftest$ac_exeext conftest.$ac_ext
6705 LIBS=$ac_check_lib_save_LIBS
6706 fi
6707 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
6708 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
6709 if test $ac_cv_lib_bsd_gethostbyname = yes; then
6710   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6711 fi
6712
6713       fi
6714     fi
6715
6716     # lieder@skyler.mavd.honeywell.com says without -lsocket,
6717     # socket/setsockopt and other routines are undefined under SCO ODT
6718     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
6719     # on later versions), says Simon Leinen: it contains gethostby*
6720     # variants that don't use the name server (or something).  -lsocket
6721     # must be given before -lnsl if both are needed.  We assume that
6722     # if connect needs -lnsl, so does gethostbyname.
6723     echo "$as_me:$LINENO: checking for connect" >&5
6724 echo $ECHO_N "checking for connect... $ECHO_C" >&6
6725 if test "${ac_cv_func_connect+set}" = set; then
6726   echo $ECHO_N "(cached) $ECHO_C" >&6
6727 else
6728   cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
6735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6736 #define connect innocuous_connect
6737
6738 /* System header to define __stub macros and hopefully few prototypes,
6739     which can conflict with char connect (); below.
6740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6741     <limits.h> exists even on freestanding compilers.  */
6742
6743 #ifdef __STDC__
6744 # include <limits.h>
6745 #else
6746 # include <assert.h>
6747 #endif
6748
6749 #undef connect
6750
6751 /* Override any gcc2 internal prototype to avoid an error.  */
6752 #ifdef __cplusplus
6753 extern "C"
6754 {
6755 #endif
6756 /* We use char because int might match the return type of a gcc2
6757    builtin and then its argument prototype would still apply.  */
6758 char connect ();
6759 /* The GNU C library defines this for functions which it implements
6760     to always fail with ENOSYS.  Some functions are actually named
6761     something starting with __ and the normal name is an alias.  */
6762 #if defined (__stub_connect) || defined (__stub___connect)
6763 choke me
6764 #else
6765 char (*f) () = connect;
6766 #endif
6767 #ifdef __cplusplus
6768 }
6769 #endif
6770
6771 int
6772 main ()
6773 {
6774 return f != connect;
6775   ;
6776   return 0;
6777 }
6778 _ACEOF
6779 rm -f conftest.$ac_objext conftest$ac_exeext
6780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6781   (eval $ac_link) 2>conftest.er1
6782   ac_status=$?
6783   grep -v '^ *+' conftest.er1 >conftest.err
6784   rm -f conftest.er1
6785   cat conftest.err >&5
6786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6787   (exit $ac_status); } &&
6788          { ac_try='test -z "$ac_cxx_werror_flag"
6789                          || test ! -s conftest.err'
6790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6791   (eval $ac_try) 2>&5
6792   ac_status=$?
6793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794   (exit $ac_status); }; } &&
6795          { ac_try='test -s conftest$ac_exeext'
6796   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6797   (eval $ac_try) 2>&5
6798   ac_status=$?
6799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6800   (exit $ac_status); }; }; then
6801   ac_cv_func_connect=yes
6802 else
6803   echo "$as_me: failed program was:" >&5
6804 sed 's/^/| /' conftest.$ac_ext >&5
6805
6806 ac_cv_func_connect=no
6807 fi
6808 rm -f conftest.err conftest.$ac_objext \
6809       conftest$ac_exeext conftest.$ac_ext
6810 fi
6811 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6812 echo "${ECHO_T}$ac_cv_func_connect" >&6
6813
6814     if test $ac_cv_func_connect = no; then
6815       echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
6816 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6817 if test "${ac_cv_lib_socket_connect+set}" = set; then
6818   echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820   ac_check_lib_save_LIBS=$LIBS
6821 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6822 cat >conftest.$ac_ext <<_ACEOF
6823 /* confdefs.h.  */
6824 _ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h.  */
6828
6829 /* Override any gcc2 internal prototype to avoid an error.  */
6830 #ifdef __cplusplus
6831 extern "C"
6832 #endif
6833 /* We use char because int might match the return type of a gcc2
6834    builtin and then its argument prototype would still apply.  */
6835 char connect ();
6836 int
6837 main ()
6838 {
6839 connect ();
6840   ;
6841   return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext conftest$ac_exeext
6845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6846   (eval $ac_link) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } &&
6853          { ac_try='test -z "$ac_cxx_werror_flag"
6854                          || test ! -s conftest.err'
6855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6856   (eval $ac_try) 2>&5
6857   ac_status=$?
6858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6859   (exit $ac_status); }; } &&
6860          { ac_try='test -s conftest$ac_exeext'
6861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6862   (eval $ac_try) 2>&5
6863   ac_status=$?
6864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865   (exit $ac_status); }; }; then
6866   ac_cv_lib_socket_connect=yes
6867 else
6868   echo "$as_me: failed program was:" >&5
6869 sed 's/^/| /' conftest.$ac_ext >&5
6870
6871 ac_cv_lib_socket_connect=no
6872 fi
6873 rm -f conftest.err conftest.$ac_objext \
6874       conftest$ac_exeext conftest.$ac_ext
6875 LIBS=$ac_check_lib_save_LIBS
6876 fi
6877 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
6878 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6879 if test $ac_cv_lib_socket_connect = yes; then
6880   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6881 fi
6882
6883     fi
6884
6885     # Guillermo Gomez says -lposix is necessary on A/UX.
6886     echo "$as_me:$LINENO: checking for remove" >&5
6887 echo $ECHO_N "checking for remove... $ECHO_C" >&6
6888 if test "${ac_cv_func_remove+set}" = set; then
6889   echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891   cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h.  */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h.  */
6897 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
6898    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
6899 #define remove innocuous_remove
6900
6901 /* System header to define __stub macros and hopefully few prototypes,
6902     which can conflict with char remove (); below.
6903     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6904     <limits.h> exists even on freestanding compilers.  */
6905
6906 #ifdef __STDC__
6907 # include <limits.h>
6908 #else
6909 # include <assert.h>
6910 #endif
6911
6912 #undef remove
6913
6914 /* Override any gcc2 internal prototype to avoid an error.  */
6915 #ifdef __cplusplus
6916 extern "C"
6917 {
6918 #endif
6919 /* We use char because int might match the return type of a gcc2
6920    builtin and then its argument prototype would still apply.  */
6921 char remove ();
6922 /* The GNU C library defines this for functions which it implements
6923     to always fail with ENOSYS.  Some functions are actually named
6924     something starting with __ and the normal name is an alias.  */
6925 #if defined (__stub_remove) || defined (__stub___remove)
6926 choke me
6927 #else
6928 char (*f) () = remove;
6929 #endif
6930 #ifdef __cplusplus
6931 }
6932 #endif
6933
6934 int
6935 main ()
6936 {
6937 return f != remove;
6938   ;
6939   return 0;
6940 }
6941 _ACEOF
6942 rm -f conftest.$ac_objext conftest$ac_exeext
6943 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6944   (eval $ac_link) 2>conftest.er1
6945   ac_status=$?
6946   grep -v '^ *+' conftest.er1 >conftest.err
6947   rm -f conftest.er1
6948   cat conftest.err >&5
6949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950   (exit $ac_status); } &&
6951          { ac_try='test -z "$ac_cxx_werror_flag"
6952                          || test ! -s conftest.err'
6953   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6954   (eval $ac_try) 2>&5
6955   ac_status=$?
6956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6957   (exit $ac_status); }; } &&
6958          { ac_try='test -s conftest$ac_exeext'
6959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6960   (eval $ac_try) 2>&5
6961   ac_status=$?
6962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963   (exit $ac_status); }; }; then
6964   ac_cv_func_remove=yes
6965 else
6966   echo "$as_me: failed program was:" >&5
6967 sed 's/^/| /' conftest.$ac_ext >&5
6968
6969 ac_cv_func_remove=no
6970 fi
6971 rm -f conftest.err conftest.$ac_objext \
6972       conftest$ac_exeext conftest.$ac_ext
6973 fi
6974 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6975 echo "${ECHO_T}$ac_cv_func_remove" >&6
6976
6977     if test $ac_cv_func_remove = no; then
6978       echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6979 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6980 if test "${ac_cv_lib_posix_remove+set}" = set; then
6981   echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983   ac_check_lib_save_LIBS=$LIBS
6984 LIBS="-lposix  $LIBS"
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991
6992 /* Override any gcc2 internal prototype to avoid an error.  */
6993 #ifdef __cplusplus
6994 extern "C"
6995 #endif
6996 /* We use char because int might match the return type of a gcc2
6997    builtin and then its argument prototype would still apply.  */
6998 char remove ();
6999 int
7000 main ()
7001 {
7002 remove ();
7003   ;
7004   return 0;
7005 }
7006 _ACEOF
7007 rm -f conftest.$ac_objext conftest$ac_exeext
7008 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7009   (eval $ac_link) 2>conftest.er1
7010   ac_status=$?
7011   grep -v '^ *+' conftest.er1 >conftest.err
7012   rm -f conftest.er1
7013   cat conftest.err >&5
7014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7015   (exit $ac_status); } &&
7016          { ac_try='test -z "$ac_cxx_werror_flag"
7017                          || test ! -s conftest.err'
7018   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7019   (eval $ac_try) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; } &&
7023          { ac_try='test -s conftest$ac_exeext'
7024   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7025   (eval $ac_try) 2>&5
7026   ac_status=$?
7027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7028   (exit $ac_status); }; }; then
7029   ac_cv_lib_posix_remove=yes
7030 else
7031   echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ac_cv_lib_posix_remove=no
7035 fi
7036 rm -f conftest.err conftest.$ac_objext \
7037       conftest$ac_exeext conftest.$ac_ext
7038 LIBS=$ac_check_lib_save_LIBS
7039 fi
7040 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
7041 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
7042 if test $ac_cv_lib_posix_remove = yes; then
7043   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7044 fi
7045
7046     fi
7047
7048     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
7049     echo "$as_me:$LINENO: checking for shmat" >&5
7050 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
7051 if test "${ac_cv_func_shmat+set}" = set; then
7052   echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054   cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h.  */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h.  */
7060 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
7061    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7062 #define shmat innocuous_shmat
7063
7064 /* System header to define __stub macros and hopefully few prototypes,
7065     which can conflict with char shmat (); below.
7066     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7067     <limits.h> exists even on freestanding compilers.  */
7068
7069 #ifdef __STDC__
7070 # include <limits.h>
7071 #else
7072 # include <assert.h>
7073 #endif
7074
7075 #undef shmat
7076
7077 /* Override any gcc2 internal prototype to avoid an error.  */
7078 #ifdef __cplusplus
7079 extern "C"
7080 {
7081 #endif
7082 /* We use char because int might match the return type of a gcc2
7083    builtin and then its argument prototype would still apply.  */
7084 char shmat ();
7085 /* The GNU C library defines this for functions which it implements
7086     to always fail with ENOSYS.  Some functions are actually named
7087     something starting with __ and the normal name is an alias.  */
7088 #if defined (__stub_shmat) || defined (__stub___shmat)
7089 choke me
7090 #else
7091 char (*f) () = shmat;
7092 #endif
7093 #ifdef __cplusplus
7094 }
7095 #endif
7096
7097 int
7098 main ()
7099 {
7100 return f != shmat;
7101   ;
7102   return 0;
7103 }
7104 _ACEOF
7105 rm -f conftest.$ac_objext conftest$ac_exeext
7106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7107   (eval $ac_link) 2>conftest.er1
7108   ac_status=$?
7109   grep -v '^ *+' conftest.er1 >conftest.err
7110   rm -f conftest.er1
7111   cat conftest.err >&5
7112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113   (exit $ac_status); } &&
7114          { ac_try='test -z "$ac_cxx_werror_flag"
7115                          || test ! -s conftest.err'
7116   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117   (eval $ac_try) 2>&5
7118   ac_status=$?
7119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120   (exit $ac_status); }; } &&
7121          { ac_try='test -s conftest$ac_exeext'
7122   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7123   (eval $ac_try) 2>&5
7124   ac_status=$?
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); }; }; then
7127   ac_cv_func_shmat=yes
7128 else
7129   echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_func_shmat=no
7133 fi
7134 rm -f conftest.err conftest.$ac_objext \
7135       conftest$ac_exeext conftest.$ac_ext
7136 fi
7137 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
7138 echo "${ECHO_T}$ac_cv_func_shmat" >&6
7139
7140     if test $ac_cv_func_shmat = no; then
7141       echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
7142 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
7143 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
7144   echo $ECHO_N "(cached) $ECHO_C" >&6
7145 else
7146   ac_check_lib_save_LIBS=$LIBS
7147 LIBS="-lipc  $LIBS"
7148 cat >conftest.$ac_ext <<_ACEOF
7149 /* confdefs.h.  */
7150 _ACEOF
7151 cat confdefs.h >>conftest.$ac_ext
7152 cat >>conftest.$ac_ext <<_ACEOF
7153 /* end confdefs.h.  */
7154
7155 /* Override any gcc2 internal prototype to avoid an error.  */
7156 #ifdef __cplusplus
7157 extern "C"
7158 #endif
7159 /* We use char because int might match the return type of a gcc2
7160    builtin and then its argument prototype would still apply.  */
7161 char shmat ();
7162 int
7163 main ()
7164 {
7165 shmat ();
7166   ;
7167   return 0;
7168 }
7169 _ACEOF
7170 rm -f conftest.$ac_objext conftest$ac_exeext
7171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7172   (eval $ac_link) 2>conftest.er1
7173   ac_status=$?
7174   grep -v '^ *+' conftest.er1 >conftest.err
7175   rm -f conftest.er1
7176   cat conftest.err >&5
7177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178   (exit $ac_status); } &&
7179          { ac_try='test -z "$ac_cxx_werror_flag"
7180                          || test ! -s conftest.err'
7181   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7182   (eval $ac_try) 2>&5
7183   ac_status=$?
7184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185   (exit $ac_status); }; } &&
7186          { ac_try='test -s conftest$ac_exeext'
7187   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7188   (eval $ac_try) 2>&5
7189   ac_status=$?
7190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); }; }; then
7192   ac_cv_lib_ipc_shmat=yes
7193 else
7194   echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 ac_cv_lib_ipc_shmat=no
7198 fi
7199 rm -f conftest.err conftest.$ac_objext \
7200       conftest$ac_exeext conftest.$ac_ext
7201 LIBS=$ac_check_lib_save_LIBS
7202 fi
7203 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
7204 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
7205 if test $ac_cv_lib_ipc_shmat = yes; then
7206   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7207 fi
7208
7209     fi
7210   fi
7211
7212   # Check for libraries that X11R6 Xt/Xaw programs need.
7213   ac_save_LDFLAGS=$LDFLAGS
7214   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7215   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7216   # check for ICE first), but we must link in the order -lSM -lICE or
7217   # we get undefined symbols.  So assume we have SM if we have ICE.
7218   # These have to be linked with before -lX11, unlike the other
7219   # libraries we check for below, so use a different variable.
7220   # John Interrante, Karl Berry
7221   echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
7222 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
7223 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   ac_check_lib_save_LIBS=$LIBS
7227 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
7228 cat >conftest.$ac_ext <<_ACEOF
7229 /* confdefs.h.  */
7230 _ACEOF
7231 cat confdefs.h >>conftest.$ac_ext
7232 cat >>conftest.$ac_ext <<_ACEOF
7233 /* end confdefs.h.  */
7234
7235 /* Override any gcc2 internal prototype to avoid an error.  */
7236 #ifdef __cplusplus
7237 extern "C"
7238 #endif
7239 /* We use char because int might match the return type of a gcc2
7240    builtin and then its argument prototype would still apply.  */
7241 char IceConnectionNumber ();
7242 int
7243 main ()
7244 {
7245 IceConnectionNumber ();
7246   ;
7247   return 0;
7248 }
7249 _ACEOF
7250 rm -f conftest.$ac_objext conftest$ac_exeext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7252   (eval $ac_link) 2>conftest.er1
7253   ac_status=$?
7254   grep -v '^ *+' conftest.er1 >conftest.err
7255   rm -f conftest.er1
7256   cat conftest.err >&5
7257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258   (exit $ac_status); } &&
7259          { ac_try='test -z "$ac_cxx_werror_flag"
7260                          || test ! -s conftest.err'
7261   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7262   (eval $ac_try) 2>&5
7263   ac_status=$?
7264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); }; } &&
7266          { ac_try='test -s conftest$ac_exeext'
7267   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7268   (eval $ac_try) 2>&5
7269   ac_status=$?
7270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271   (exit $ac_status); }; }; then
7272   ac_cv_lib_ICE_IceConnectionNumber=yes
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 ac_cv_lib_ICE_IceConnectionNumber=no
7278 fi
7279 rm -f conftest.err conftest.$ac_objext \
7280       conftest$ac_exeext conftest.$ac_ext
7281 LIBS=$ac_check_lib_save_LIBS
7282 fi
7283 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
7284 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
7285 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
7286   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7287 fi
7288
7289   LDFLAGS=$ac_save_LDFLAGS
7290
7291 fi
7292
7293
7294
7295
7296
7297
7298   echo "$as_me:$LINENO: checking for Qt" >&5
7299 echo $ECHO_N "checking for Qt... $ECHO_C" >&6
7300
7301
7302 # Check whether --with-Qt-dir or --without-Qt-dir was given.
7303 if test "${with_Qt_dir+set}" = set; then
7304   withval="$with_Qt_dir"
7305
7306 fi;
7307
7308 # Check whether --with-Qt-include-dir or --without-Qt-include-dir was given.
7309 if test "${with_Qt_include_dir+set}" = set; then
7310   withval="$with_Qt_include_dir"
7311
7312 fi;
7313
7314 # Check whether --with-Qt-bin-dir or --without-Qt-bin-dir was given.
7315 if test "${with_Qt_bin_dir+set}" = set; then
7316   withval="$with_Qt_bin_dir"
7317
7318 fi;
7319
7320 # Check whether --with-Qt-lib-dir or --without-Qt-lib-dir was given.
7321 if test "${with_Qt_lib_dir+set}" = set; then
7322   withval="$with_Qt_lib_dir"
7323
7324 fi;
7325
7326 # Check whether --with-Qt-lib or --without-Qt-lib was given.
7327 if test "${with_Qt_lib+set}" = set; then
7328   withval="$with_Qt_lib"
7329
7330 fi;
7331   if test x"$with_Qt_dir" = x"no" ||
7332      test x"$with_Qt_include-dir" = x"no" ||
7333      test x"$with_Qt_bin_dir" = x"no" ||
7334      test x"$with_Qt_lib_dir" = x"no" ||
7335      test x"$with_Qt_lib" = x"no"; then
7336     # user disabled Qt. Leave cache alone.
7337     have_qt="User disabled Qt."
7338   else
7339     # "yes" is a bogus option
7340     if test x"$with_Qt_dir" = xyes; then
7341       with_Qt_dir=
7342     fi
7343     if test x"$with_Qt_include_dir" = xyes; then
7344       with_Qt_include_dir=
7345     fi
7346     if test x"$with_Qt_bin_dir" = xyes; then
7347       with_Qt_bin_dir=
7348     fi
7349     if test x"$with_Qt_lib_dir" = xyes; then
7350       with_Qt_lib_dir=
7351     fi
7352     if test x"$with_Qt_lib" = xyes; then
7353       with_Qt_lib=
7354     fi
7355     # No Qt unless we discover otherwise
7356     have_qt=no
7357     # Check whether we are requested to link with a specific version
7358     if test x"$with_Qt_lib" != x; then
7359       bnv_qt_lib="$with_Qt_lib"
7360     fi
7361     # Check whether we were supplied with an answer already
7362     if test x"$with_Qt_dir" != x; then
7363       have_qt=yes
7364       bnv_qt_dir="$with_Qt_dir"
7365       bnv_qt_include_dir="$with_Qt_dir/include"
7366       bnv_qt_bin_dir="$with_Qt_dir/bin"
7367       bnv_qt_lib_dir="$with_Qt_dir/lib"
7368       # Only search for the lib if the user did not define one already
7369       if test x"$bnv_qt_lib" = x; then
7370         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7371                      sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7372       fi
7373       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7374     else
7375       # Use cached value or do search, starting with suggestions from
7376       # the command line
7377       if test "${bnv_cv_have_qt+set}" = set; then
7378   echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380
7381         # We are not given a solution and there is no cached value.
7382         bnv_qt_dir=NO
7383         bnv_qt_include_dir=NO
7384         bnv_qt_lib_dir=NO
7385         if test x"$bnv_qt_lib" = x; then
7386           bnv_qt_lib=NO
7387         fi
7388
7389   ## Binary utilities ##
7390   if test x"$with_Qt_bin_dir" != x; then
7391     bnv_qt_bin_dir=$with_Qt_bin_dir
7392   fi
7393   ## Look for header files ##
7394   if test x"$with_Qt_include_dir" != x; then
7395     bnv_qt_include_dir="$with_Qt_include_dir"
7396   else
7397     # The following header file is expected to define QT_VERSION.
7398     qt_direct_test_header=qglobal.h
7399     # Look for the header file in a standard set of common directories.
7400     bnv_include_path_list="
7401       /usr/include
7402       `ls -dr ${QTDIR}/include 2>/dev/null`
7403       `ls -dr /usr/include/qt* 2>/dev/null`
7404       `ls -dr /usr/lib/qt*/include 2>/dev/null`
7405       `ls -dr /usr/local/qt*/include 2>/dev/null`
7406       `ls -dr /opt/qt*/include 2>/dev/null`
7407       `ls -dr /Developer/qt*/include 2>/dev/null`
7408     "
7409     for bnv_dir in $bnv_include_path_list; do
7410       if test -r "$bnv_dir/$qt_direct_test_header"; then
7411         bnv_dirs="$bnv_dirs $bnv_dir"
7412       fi
7413     done
7414     # Now look for the newest in this list
7415     bnv_prev_ver=0
7416     for bnv_dir in $bnv_dirs; do
7417       bnv_this_ver=`egrep -w '#define QT_VERSION' $bnv_dir/$qt_direct_test_header | sed s/'#define QT_VERSION'//`
7418       if expr $bnv_this_ver '>' $bnv_prev_ver > /dev/null; then
7419         bnv_qt_include_dir=$bnv_dir
7420         bnv_prev_ver=$bnv_this_ver
7421       fi
7422     done
7423   fi
7424   # Are these headers located in a traditional Trolltech installation?
7425   # That would be $bnv_qt_include_dir stripped from its last element:
7426   bnv_possible_qt_dir=`dirname $bnv_qt_include_dir`
7427   if (test -x $bnv_possible_qt_dir/bin/moc) &&
7428      ((ls $bnv_possible_qt_dir/lib/libqt* > /dev/null 2>/dev/null) ||
7429       (ls $bnv_possible_qt_dir/lib64/libqt* > /dev/null 2>/dev/null)); then
7430     # Then the rest is a piece of cake
7431     bnv_qt_dir=$bnv_possible_qt_dir
7432     bnv_qt_bin_dir="$bnv_qt_dir/bin"
7433     if test x"$with_Qt_lib_dir" != x; then
7434       bnv_qt_lib_dir="$with_Qt_lib_dir"
7435     else
7436       if (test -d $bnv_qt_dir/lib64); then
7437         bnv_qt_lib_dir="$bnv_qt_dir/lib64"
7438       else
7439         bnv_qt_lib_dir="$bnv_qt_dir/lib"
7440       fi
7441     fi
7442     # Only look for lib if the user did not supply it already
7443     if test x"$bnv_qt_lib" = xNO; then
7444       bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7445                    sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7446     fi
7447     bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7448   else
7449     # There is no valid definition for $QTDIR as Trolltech likes to see it
7450     bnv_qt_dir=
7451     ## Look for Qt library ##
7452     if test x"$with_Qt_lib_dir" != x; then
7453       bnv_qt_lib_dir="$with_Qt_lib_dir"
7454       # Only look for lib if the user did not supply it already
7455       if test x"$bnv_qt_lib" = xNO; then
7456         bnv_qt_lib="`ls $bnv_qt_lib_dir/libqt* | sed -n 1p |
7457                      sed s@$bnv_qt_lib_dir/lib@@ | sed s@[.].*@@`"
7458       fi
7459       bnv_qt_LIBS="-L$bnv_qt_lib_dir -l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7460     else
7461       # Normally, when there is no traditional Trolltech installation,
7462       # the library is installed in a place where the linker finds it
7463       # automatically.
7464       # If the user did not define the library name, try with qt
7465       if test x"$bnv_qt_lib" = xNO; then
7466         bnv_qt_lib=qt
7467       fi
7468       qt_direct_test_header=qapplication.h
7469       qt_direct_test_main="
7470         int argc;
7471         char ** argv;
7472         QApplication app(argc,argv);
7473       "
7474       # See if we find the library without any special options.
7475       # Don't add top $LIBS permanently yet
7476       bnv_save_LIBS="$LIBS"
7477       LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7478       bnv_qt_LIBS="$LIBS"
7479       bnv_save_CXXFLAGS="$CXXFLAGS"
7480       CXXFLAGS="-I$bnv_qt_include_dir"
7481       cat >conftest.$ac_ext <<_ACEOF
7482 /* confdefs.h.  */
7483 _ACEOF
7484 cat confdefs.h >>conftest.$ac_ext
7485 cat >>conftest.$ac_ext <<_ACEOF
7486 /* end confdefs.h.  */
7487 #include <$qt_direct_test_header>
7488 int
7489 main ()
7490 {
7491 $qt_direct_test_main
7492   ;
7493   return 0;
7494 }
7495 _ACEOF
7496 rm -f conftest.$ac_objext conftest$ac_exeext
7497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7498   (eval $ac_link) 2>conftest.er1
7499   ac_status=$?
7500   grep -v '^ *+' conftest.er1 >conftest.err
7501   rm -f conftest.er1
7502   cat conftest.err >&5
7503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7504   (exit $ac_status); } &&
7505          { ac_try='test -z "$ac_cxx_werror_flag"
7506                          || test ! -s conftest.err'
7507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7508   (eval $ac_try) 2>&5
7509   ac_status=$?
7510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511   (exit $ac_status); }; } &&
7512          { ac_try='test -s conftest$ac_exeext'
7513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7514   (eval $ac_try) 2>&5
7515   ac_status=$?
7516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517   (exit $ac_status); }; }; then
7518
7519         # Success.
7520         # We can link with no special library directory.
7521         bnv_qt_lib_dir=
7522
7523 else
7524   echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527
7528         # That did not work. Try the multi-threaded version
7529         echo "Non-critical error, please neglect the above." >&5
7530         bnv_qt_lib=qt-mt
7531         LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7532         cat >conftest.$ac_ext <<_ACEOF
7533 /* confdefs.h.  */
7534 _ACEOF
7535 cat confdefs.h >>conftest.$ac_ext
7536 cat >>conftest.$ac_ext <<_ACEOF
7537 /* end confdefs.h.  */
7538 #include <$qt_direct_test_header>
7539 int
7540 main ()
7541 {
7542 $qt_direct_test_main
7543   ;
7544   return 0;
7545 }
7546 _ACEOF
7547 rm -f conftest.$ac_objext conftest$ac_exeext
7548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7549   (eval $ac_link) 2>conftest.er1
7550   ac_status=$?
7551   grep -v '^ *+' conftest.er1 >conftest.err
7552   rm -f conftest.er1
7553   cat conftest.err >&5
7554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555   (exit $ac_status); } &&
7556          { ac_try='test -z "$ac_cxx_werror_flag"
7557                          || test ! -s conftest.err'
7558   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7559   (eval $ac_try) 2>&5
7560   ac_status=$?
7561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); }; } &&
7563          { ac_try='test -s conftest$ac_exeext'
7564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7565   (eval $ac_try) 2>&5
7566   ac_status=$?
7567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568   (exit $ac_status); }; }; then
7569
7570           # Success.
7571           # We can link with no special library directory.
7572           bnv_qt_lib_dir=
7573
7574 else
7575   echo "$as_me: failed program was:" >&5
7576 sed 's/^/| /' conftest.$ac_ext >&5
7577
7578
7579           # That did not work. Try the OpenGL version
7580           echo "Non-critical error, please neglect the above." >&5
7581           bnv_qt_lib=qt-gl
7582           LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7583           cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h.  */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h.  */
7589 #include <$qt_direct_test_header>
7590 int
7591 main ()
7592 {
7593 $qt_direct_test_main
7594   ;
7595   return 0;
7596 }
7597 _ACEOF
7598 rm -f conftest.$ac_objext conftest$ac_exeext
7599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7600   (eval $ac_link) 2>conftest.er1
7601   ac_status=$?
7602   grep -v '^ *+' conftest.er1 >conftest.err
7603   rm -f conftest.er1
7604   cat conftest.err >&5
7605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606   (exit $ac_status); } &&
7607          { ac_try='test -z "$ac_cxx_werror_flag"
7608                          || test ! -s conftest.err'
7609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610   (eval $ac_try) 2>&5
7611   ac_status=$?
7612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613   (exit $ac_status); }; } &&
7614          { ac_try='test -s conftest$ac_exeext'
7615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616   (eval $ac_try) 2>&5
7617   ac_status=$?
7618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619   (exit $ac_status); }; }; then
7620
7621             # Success.
7622             # We can link with no special library directory.
7623             bnv_qt_lib_dir=
7624
7625 else
7626   echo "$as_me: failed program was:" >&5
7627 sed 's/^/| /' conftest.$ac_ext >&5
7628
7629
7630             # That did not work. Maybe a library version I don't know about?
7631             echo "Non-critical error, please neglect the above." >&5
7632             # Look for some Qt lib in a standard set of common directories.
7633             bnv_dir_list="
7634               `echo $bnv_qt_includes | sed ss/includess`
7635               /lib
7636               /usr/lib64
7637               /usr/lib
7638               /usr/local/lib64
7639               /usr/local/lib
7640               /opt/lib64
7641               /opt/lib
7642               `ls -dr /usr/lib64/qt* 2>/dev/null`
7643               `ls -dr /usr/lib64/qt*/lib64 2>/dev/null`
7644               `ls -dr /usr/lib/qt* 2>/dev/null`
7645               `ls -dr /usr/local/qt* 2>/dev/null`
7646               `ls -dr /opt/qt* 2>/dev/null`
7647             "
7648             for bnv_dir in $bnv_dir_list; do
7649               if ls $bnv_dir/libqt* >/dev/null 2>/dev/null; then
7650                 # Gamble that it's the first one...
7651                 bnv_qt_lib="`ls $bnv_dir/libqt* | sed -n 1p |
7652                             sed s@$bnv_dir/lib@@ | sed s/[.].*//`"
7653                 bnv_qt_lib_dir="$bnv_dir"
7654                 break
7655               fi
7656             done
7657             # Try with that one
7658             LIBS="-l$bnv_qt_lib $X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7659             cat >conftest.$ac_ext <<_ACEOF
7660 /* confdefs.h.  */
7661 _ACEOF
7662 cat confdefs.h >>conftest.$ac_ext
7663 cat >>conftest.$ac_ext <<_ACEOF
7664 /* end confdefs.h.  */
7665 #include <$qt_direct_test_header>
7666 int
7667 main ()
7668 {
7669 $qt_direct_test_main
7670   ;
7671   return 0;
7672 }
7673 _ACEOF
7674 rm -f conftest.$ac_objext conftest$ac_exeext
7675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7676   (eval $ac_link) 2>conftest.er1
7677   ac_status=$?
7678   grep -v '^ *+' conftest.er1 >conftest.err
7679   rm -f conftest.er1
7680   cat conftest.err >&5
7681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682   (exit $ac_status); } &&
7683          { ac_try='test -z "$ac_cxx_werror_flag"
7684                          || test ! -s conftest.err'
7685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7686   (eval $ac_try) 2>&5
7687   ac_status=$?
7688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7689   (exit $ac_status); }; } &&
7690          { ac_try='test -s conftest$ac_exeext'
7691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7692   (eval $ac_try) 2>&5
7693   ac_status=$?
7694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695   (exit $ac_status); }; }; then
7696
7697               # Success.
7698               # We can link with no special library directory.
7699               bnv_qt_lib_dir=
7700
7701 else
7702   echo "$as_me: failed program was:" >&5
7703 sed 's/^/| /' conftest.$ac_ext >&5
7704
7705
7706               # Leave bnv_qt_lib_dir defined
7707
7708 fi
7709 rm -f conftest.err conftest.$ac_objext \
7710       conftest$ac_exeext conftest.$ac_ext
7711
7712 fi
7713 rm -f conftest.err conftest.$ac_objext \
7714       conftest$ac_exeext conftest.$ac_ext
7715
7716 fi
7717 rm -f conftest.err conftest.$ac_objext \
7718       conftest$ac_exeext conftest.$ac_ext
7719
7720 fi
7721 rm -f conftest.err conftest.$ac_objext \
7722       conftest$ac_exeext conftest.$ac_ext
7723       if test x"$bnv_qt_lib_dir" != x; then
7724         bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
7725       else
7726         bnv_qt_LIBS="$LIBS"
7727       fi
7728       LIBS="$bnv_save_LIBS"
7729       CXXFLAGS="$bnv_save_CXXFLAGS"
7730     fi   fi
7731         if test "$bnv_qt_dir" = NO ||
7732            test "$bnv_qt_include_dir" = NO ||
7733            test "$bnv_qt_lib_dir" = NO ||
7734            test "$bnv_qt_lib" = NO; then
7735           # Problem with finding complete Qt.  Cache the known absence of Qt.
7736           bnv_cv_have_qt="have_qt=no"
7737         else
7738           # Record where we found Qt for the cache.
7739           bnv_cv_have_qt="have_qt=yes                  \
7740                        bnv_qt_dir=$bnv_qt_dir          \
7741                bnv_qt_include_dir=$bnv_qt_include_dir  \
7742                    bnv_qt_bin_dir=$bnv_qt_bin_dir      \
7743                       bnv_qt_LIBS=\"$bnv_qt_LIBS\""
7744         fi
7745
7746 fi
7747       eval "$bnv_cv_have_qt"
7748     fi # all $bnv_qt_* are set
7749   fi   # $have_qt reflects the system status
7750   if test x"$have_qt" = xyes; then
7751     QT_CXXFLAGS="-I$bnv_qt_include_dir"
7752     if test x"$bnv_qt_lib" = xqt-mt; then
7753         QT_CXXFLAGS="$QT_CXXFLAGS -DQT_THREAD_SUPPORT"
7754     fi
7755     QT_DIR="$bnv_qt_dir"
7756     QT_LIBS="$bnv_qt_LIBS"
7757     # If bnv_qt_dir is defined, utilities are expected to be in the
7758     # bin subdirectory
7759     if test x"$bnv_qt_dir" != x; then
7760         if test -x "$bnv_qt_dir/bin/uic"; then
7761           QT_UIC="$bnv_qt_dir/bin/uic"
7762         else
7763           # Old versions of Qt don't have uic
7764           QT_UIC=
7765         fi
7766       QT_MOC="$bnv_qt_dir/bin/moc"
7767     else
7768       # Or maybe we are told where to look for the utilities
7769       if test x"$bnv_qt_bin_dir" != x; then
7770         if test -x "$bnv_qt_bin_dir/uic"; then
7771           QT_UIC="$bnv_qt_bin_dir/uic"
7772         else
7773           # Old versions of Qt don't have uic
7774           QT_UIC=
7775         fi
7776         QT_MOC="$bnv_qt_bin_dir/moc"
7777       else
7778       # Last possibility is that they are in $PATH
7779         QT_UIC="`which uic`"
7780         QT_MOC="`which moc`"
7781       fi
7782     fi
7783     # All variables are defined, report the result
7784     echo "$as_me:$LINENO: result: $have_qt:
7785     QT_CXXFLAGS=$QT_CXXFLAGS
7786     QT_DIR=$QT_DIR
7787     QT_LIBS=$QT_LIBS
7788     QT_UIC=$QT_UIC
7789     QT_MOC=$QT_MOC" >&5
7790 echo "${ECHO_T}$have_qt:
7791     QT_CXXFLAGS=$QT_CXXFLAGS
7792     QT_DIR=$QT_DIR
7793     QT_LIBS=$QT_LIBS
7794     QT_UIC=$QT_UIC
7795     QT_MOC=$QT_MOC" >&6
7796   else
7797     # Qt was not found
7798     QT_CXXFLAGS=
7799     QT_DIR=
7800     QT_LIBS=
7801     QT_UIC=
7802     QT_MOC=
7803     echo "$as_me:$LINENO: result: $have_qt" >&5
7804 echo "${ECHO_T}$have_qt" >&6
7805   fi
7806
7807
7808
7809
7810
7811
7812   #### Being paranoid:
7813   if test x"$have_qt" = xyes; then
7814     echo "$as_me:$LINENO: checking correct functioning of Qt installation" >&5
7815 echo $ECHO_N "checking correct functioning of Qt installation... $ECHO_C" >&6
7816     if test "${bnv_cv_qt_test_result+set}" = set; then
7817   echo $ECHO_N "(cached) $ECHO_C" >&6
7818 else
7819
7820       cat > bnv_qt_test.h << EOF
7821 #include <qobject.h>
7822 class Test : public QObject
7823 {
7824 Q_OBJECT
7825 public:
7826   Test() {}
7827   ~Test() {}
7828 public slots:
7829   void receive() {}
7830 signals:
7831   void send();
7832 };
7833 EOF
7834
7835       cat > bnv_qt_main.$ac_ext << EOF
7836 #include "bnv_qt_test.h"
7837 #include <qapplication.h>
7838 int main( int argc, char **argv )
7839 {
7840   QApplication app( argc, argv );
7841   Test t;
7842   QObject::connect( &t, SIGNAL(send()), &t, SLOT(receive()) );
7843 }
7844 EOF
7845
7846       bnv_cv_qt_test_result="failure"
7847       bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
7848       { (eval echo "$as_me:$LINENO: \"$bnv_try_1\"") >&5
7849   (eval $bnv_try_1) 2>&5
7850   ac_status=$?
7851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852   (exit $ac_status); }
7853       if test x"$ac_status" != x0; then
7854         echo "$bnv_err_1" >&5
7855         echo "configure: could not run $QT_MOC on:" >&5
7856         cat bnv_qt_test.h >&5
7857       else
7858         bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>/dev/null"
7859         { (eval echo "$as_me:$LINENO: \"$bnv_try_2\"") >&5
7860   (eval $bnv_try_2) 2>&5
7861   ac_status=$?
7862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7863   (exit $ac_status); }
7864         if test x"$ac_status" != x0; then
7865           echo "$bnv_err_2" >&5
7866           echo "configure: could not compile:" >&5
7867           cat moc_bnv_qt_test.$ac_ext >&5
7868         else
7869           bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>/dev/null"
7870           { (eval echo "$as_me:$LINENO: \"$bnv_try_3\"") >&5
7871   (eval $bnv_try_3) 2>&5
7872   ac_status=$?
7873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7874   (exit $ac_status); }
7875           if test x"$ac_status" != x0; then
7876             echo "$bnv_err_3" >&5
7877             echo "configure: could not compile:" >&5
7878             cat bnv_qt_main.$ac_ext >&5
7879           else
7880             bnv_try_4="$CXX $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o $QT_LIBS >/dev/null 2>/dev/null"
7881             { (eval echo "$as_me:$LINENO: \"$bnv_try_4\"") >&5
7882   (eval $bnv_try_4) 2>&5
7883   ac_status=$?
7884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885   (exit $ac_status); }
7886             if test x"$ac_status" != x0; then
7887               echo "$bnv_err_4" >&5
7888             else
7889               bnv_cv_qt_test_result="success"
7890             fi
7891           fi
7892         fi
7893       fi
7894
7895 fi
7896     echo "$as_me:$LINENO: result: $bnv_cv_qt_test_result" >&5
7897 echo "${ECHO_T}$bnv_cv_qt_test_result" >&6;
7898     if test x"$bnv_cv_qt_test_result" = "xfailure"; then
7899       { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
7900                   Qt installation. Try using more options,
7901                   see ./configure --help." >&5
7902 echo "$as_me: error: Failed to find matching components of a complete
7903                   Qt installation. Try using more options,
7904                   see ./configure --help." >&2;}
7905    { (exit 1); exit 1; }; }
7906     fi
7907
7908     rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
7909           bnv_qt_main.$ac_ext bnv_qt_main.o bnv_qt_main
7910   fi
7911
7912
7913 QTDIR="$QT_DIR"
7914 CFLAGS="$CFLAGS $QT_CXXFLAGS"
7915 CPPFLAGS="$CPPFLAGS $QT_CXXFLAGS"
7916 LIBS="$LIBS $QT_LIBS"
7917
7918
7919 # --- OpenGL ---
7920
7921
7922
7923
7924
7925   echo "$as_me:$LINENO: checking for OpenGL" >&5
7926 echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6
7927 if test "${mdl_cv_have_OpenGL+set}" = set; then
7928   echo $ECHO_N "(cached) $ECHO_C" >&6
7929 else
7930
7931     # Check whether --enable-Mesa or --disable-Mesa was given.
7932 if test "${enable_Mesa+set}" = set; then
7933   enableval="$enable_Mesa"
7934   use_Mesa=$enableval
7935 else
7936   use_Mesa=yes
7937 fi;
7938
7939     if test x"$use_Mesa" = xyes; then
7940        GL_search_list="MesaGL   GL"
7941       GLU_search_list="MesaGLU GLU"
7942       GLX_search_list="MesaGLX GLX"
7943     else
7944        GL_search_list="GL  MesaGL"
7945       GLU_search_list="GLU MesaGLU"
7946       GLX_search_list="GLX MesaGLX"
7947     fi
7948
7949
7950
7951     ac_ext=c
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956
7957
7958 if test x"$no_x" != xyes; then
7959   GL_CFLAGS="$X_CFLAGS"
7960   GL_X_LIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
7961 fi
7962     GL_save_CPPFLAGS="$CPPFLAGS"
7963     CPPFLAGS="$GL_CFLAGS"
7964
7965     GL_save_LIBS="$LIBS"
7966     LIBS="$GL_X_LIBS"
7967
7968
7969     # Save the "AC_MSG_RESULT file descriptor" to FD 8.
7970     exec 8>&6
7971
7972     # Temporarily turn off AC_MSG_RESULT so that the user gets pretty
7973     # messages.
7974     exec 6>/dev/null
7975
7976     echo "$as_me:$LINENO: checking for library containing glAccum" >&5
7977 echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6
7978 if test "${ac_cv_search_glAccum+set}" = set; then
7979   echo $ECHO_N "(cached) $ECHO_C" >&6
7980 else
7981   ac_func_search_save_LIBS=$LIBS
7982 ac_cv_search_glAccum=no
7983 cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989
7990 /* Override any gcc2 internal prototype to avoid an error.  */
7991 #ifdef __cplusplus
7992 extern "C"
7993 #endif
7994 /* We use char because int might match the return type of a gcc2
7995    builtin and then its argument prototype would still apply.  */
7996 char glAccum ();
7997 int
7998 main ()
7999 {
8000 glAccum ();
8001   ;
8002   return 0;
8003 }
8004 _ACEOF
8005 rm -f conftest.$ac_objext conftest$ac_exeext
8006 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8007   (eval $ac_link) 2>conftest.er1
8008   ac_status=$?
8009   grep -v '^ *+' conftest.er1 >conftest.err
8010   rm -f conftest.er1
8011   cat conftest.err >&5
8012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013   (exit $ac_status); } &&
8014          { ac_try='test -z "$ac_c_werror_flag"
8015                          || test ! -s conftest.err'
8016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8017   (eval $ac_try) 2>&5
8018   ac_status=$?
8019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020   (exit $ac_status); }; } &&
8021          { ac_try='test -s conftest$ac_exeext'
8022   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023   (eval $ac_try) 2>&5
8024   ac_status=$?
8025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026   (exit $ac_status); }; }; then
8027   ac_cv_search_glAccum="none required"
8028 else
8029   echo "$as_me: failed program was:" >&5
8030 sed 's/^/| /' conftest.$ac_ext >&5
8031
8032 fi
8033 rm -f conftest.err conftest.$ac_objext \
8034       conftest$ac_exeext conftest.$ac_ext
8035 if test "$ac_cv_search_glAccum" = no; then
8036   for ac_lib in $GL_search_list; do
8037     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8038     cat >conftest.$ac_ext <<_ACEOF
8039 /* confdefs.h.  */
8040 _ACEOF
8041 cat confdefs.h >>conftest.$ac_ext
8042 cat >>conftest.$ac_ext <<_ACEOF
8043 /* end confdefs.h.  */
8044
8045 /* Override any gcc2 internal prototype to avoid an error.  */
8046 #ifdef __cplusplus
8047 extern "C"
8048 #endif
8049 /* We use char because int might match the return type of a gcc2
8050    builtin and then its argument prototype would still apply.  */
8051 char glAccum ();
8052 int
8053 main ()
8054 {
8055 glAccum ();
8056   ;
8057   return 0;
8058 }
8059 _ACEOF
8060 rm -f conftest.$ac_objext conftest$ac_exeext
8061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8062   (eval $ac_link) 2>conftest.er1
8063   ac_status=$?
8064   grep -v '^ *+' conftest.er1 >conftest.err
8065   rm -f conftest.er1
8066   cat conftest.err >&5
8067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068   (exit $ac_status); } &&
8069          { ac_try='test -z "$ac_c_werror_flag"
8070                          || test ! -s conftest.err'
8071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8072   (eval $ac_try) 2>&5
8073   ac_status=$?
8074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075   (exit $ac_status); }; } &&
8076          { ac_try='test -s conftest$ac_exeext'
8077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078   (eval $ac_try) 2>&5
8079   ac_status=$?
8080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8081   (exit $ac_status); }; }; then
8082   ac_cv_search_glAccum="-l$ac_lib"
8083 break
8084 else
8085   echo "$as_me: failed program was:" >&5
8086 sed 's/^/| /' conftest.$ac_ext >&5
8087
8088 fi
8089 rm -f conftest.err conftest.$ac_objext \
8090       conftest$ac_exeext conftest.$ac_ext
8091   done
8092 fi
8093 LIBS=$ac_func_search_save_LIBS
8094 fi
8095 echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
8096 echo "${ECHO_T}$ac_cv_search_glAccum" >&6
8097 if test "$ac_cv_search_glAccum" != no; then
8098   test "$ac_cv_search_glAccum" = "none required" || LIBS="$ac_cv_search_glAccum $LIBS"
8099   have_GL=yes
8100 else
8101   have_GL=no
8102 fi
8103
8104     echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
8105 echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6
8106 if test "${ac_cv_search_gluBeginCurve+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   ac_func_search_save_LIBS=$LIBS
8110 ac_cv_search_gluBeginCurve=no
8111 cat >conftest.$ac_ext <<_ACEOF
8112 /* confdefs.h.  */
8113 _ACEOF
8114 cat confdefs.h >>conftest.$ac_ext
8115 cat >>conftest.$ac_ext <<_ACEOF
8116 /* end confdefs.h.  */
8117
8118 /* Override any gcc2 internal prototype to avoid an error.  */
8119 #ifdef __cplusplus
8120 extern "C"
8121 #endif
8122 /* We use char because int might match the return type of a gcc2
8123    builtin and then its argument prototype would still apply.  */
8124 char gluBeginCurve ();
8125 int
8126 main ()
8127 {
8128 gluBeginCurve ();
8129   ;
8130   return 0;
8131 }
8132 _ACEOF
8133 rm -f conftest.$ac_objext conftest$ac_exeext
8134 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8135   (eval $ac_link) 2>conftest.er1
8136   ac_status=$?
8137   grep -v '^ *+' conftest.er1 >conftest.err
8138   rm -f conftest.er1
8139   cat conftest.err >&5
8140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8141   (exit $ac_status); } &&
8142          { ac_try='test -z "$ac_c_werror_flag"
8143                          || test ! -s conftest.err'
8144   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8145   (eval $ac_try) 2>&5
8146   ac_status=$?
8147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8148   (exit $ac_status); }; } &&
8149          { ac_try='test -s conftest$ac_exeext'
8150   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8151   (eval $ac_try) 2>&5
8152   ac_status=$?
8153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154   (exit $ac_status); }; }; then
8155   ac_cv_search_gluBeginCurve="none required"
8156 else
8157   echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 fi
8161 rm -f conftest.err conftest.$ac_objext \
8162       conftest$ac_exeext conftest.$ac_ext
8163 if test "$ac_cv_search_gluBeginCurve" = no; then
8164   for ac_lib in $GLU_search_list; do
8165     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8166     cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h.  */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h.  */
8172
8173 /* Override any gcc2 internal prototype to avoid an error.  */
8174 #ifdef __cplusplus
8175 extern "C"
8176 #endif
8177 /* We use char because int might match the return type of a gcc2
8178    builtin and then its argument prototype would still apply.  */
8179 char gluBeginCurve ();
8180 int
8181 main ()
8182 {
8183 gluBeginCurve ();
8184   ;
8185   return 0;
8186 }
8187 _ACEOF
8188 rm -f conftest.$ac_objext conftest$ac_exeext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8190   (eval $ac_link) 2>conftest.er1
8191   ac_status=$?
8192   grep -v '^ *+' conftest.er1 >conftest.err
8193   rm -f conftest.er1
8194   cat conftest.err >&5
8195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196   (exit $ac_status); } &&
8197          { ac_try='test -z "$ac_c_werror_flag"
8198                          || test ! -s conftest.err'
8199   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200   (eval $ac_try) 2>&5
8201   ac_status=$?
8202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203   (exit $ac_status); }; } &&
8204          { ac_try='test -s conftest$ac_exeext'
8205   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206   (eval $ac_try) 2>&5
8207   ac_status=$?
8208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209   (exit $ac_status); }; }; then
8210   ac_cv_search_gluBeginCurve="-l$ac_lib"
8211 break
8212 else
8213   echo "$as_me: failed program was:" >&5
8214 sed 's/^/| /' conftest.$ac_ext >&5
8215
8216 fi
8217 rm -f conftest.err conftest.$ac_objext \
8218       conftest$ac_exeext conftest.$ac_ext
8219   done
8220 fi
8221 LIBS=$ac_func_search_save_LIBS
8222 fi
8223 echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
8224 echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6
8225 if test "$ac_cv_search_gluBeginCurve" != no; then
8226   test "$ac_cv_search_gluBeginCurve" = "none required" || LIBS="$ac_cv_search_gluBeginCurve $LIBS"
8227   have_GLU=yes
8228 else
8229   have_GLU=no
8230 fi
8231
8232     echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
8233 echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6
8234 if test "${ac_cv_search_glXChooseVisual+set}" = set; then
8235   echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237   ac_func_search_save_LIBS=$LIBS
8238 ac_cv_search_glXChooseVisual=no
8239 cat >conftest.$ac_ext <<_ACEOF
8240 /* confdefs.h.  */
8241 _ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h.  */
8245
8246 /* Override any gcc2 internal prototype to avoid an error.  */
8247 #ifdef __cplusplus
8248 extern "C"
8249 #endif
8250 /* We use char because int might match the return type of a gcc2
8251    builtin and then its argument prototype would still apply.  */
8252 char glXChooseVisual ();
8253 int
8254 main ()
8255 {
8256 glXChooseVisual ();
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263   (eval $ac_link) 2>conftest.er1
8264   ac_status=$?
8265   grep -v '^ *+' conftest.er1 >conftest.err
8266   rm -f conftest.er1
8267   cat conftest.err >&5
8268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8269   (exit $ac_status); } &&
8270          { ac_try='test -z "$ac_c_werror_flag"
8271                          || test ! -s conftest.err'
8272   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8273   (eval $ac_try) 2>&5
8274   ac_status=$?
8275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8276   (exit $ac_status); }; } &&
8277          { ac_try='test -s conftest$ac_exeext'
8278   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8279   (eval $ac_try) 2>&5
8280   ac_status=$?
8281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282   (exit $ac_status); }; }; then
8283   ac_cv_search_glXChooseVisual="none required"
8284 else
8285   echo "$as_me: failed program was:" >&5
8286 sed 's/^/| /' conftest.$ac_ext >&5
8287
8288 fi
8289 rm -f conftest.err conftest.$ac_objext \
8290       conftest$ac_exeext conftest.$ac_ext
8291 if test "$ac_cv_search_glXChooseVisual" = no; then
8292   for ac_lib in $GLX_search_list; do
8293     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8294     cat >conftest.$ac_ext <<_ACEOF
8295 /* confdefs.h.  */
8296 _ACEOF
8297 cat confdefs.h >>conftest.$ac_ext
8298 cat >>conftest.$ac_ext <<_ACEOF
8299 /* end confdefs.h.  */
8300
8301 /* Override any gcc2 internal prototype to avoid an error.  */
8302 #ifdef __cplusplus
8303 extern "C"
8304 #endif
8305 /* We use char because int might match the return type of a gcc2
8306    builtin and then its argument prototype would still apply.  */
8307 char glXChooseVisual ();
8308 int
8309 main ()
8310 {
8311 glXChooseVisual ();
8312   ;
8313   return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext conftest$ac_exeext
8317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8318   (eval $ac_link) 2>conftest.er1
8319   ac_status=$?
8320   grep -v '^ *+' conftest.er1 >conftest.err
8321   rm -f conftest.er1
8322   cat conftest.err >&5
8323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324   (exit $ac_status); } &&
8325          { ac_try='test -z "$ac_c_werror_flag"
8326                          || test ! -s conftest.err'
8327   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8328   (eval $ac_try) 2>&5
8329   ac_status=$?
8330   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8331   (exit $ac_status); }; } &&
8332          { ac_try='test -s conftest$ac_exeext'
8333   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8334   (eval $ac_try) 2>&5
8335   ac_status=$?
8336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337   (exit $ac_status); }; }; then
8338   ac_cv_search_glXChooseVisual="-l$ac_lib"
8339 break
8340 else
8341   echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
8344 fi
8345 rm -f conftest.err conftest.$ac_objext \
8346       conftest$ac_exeext conftest.$ac_ext
8347   done
8348 fi
8349 LIBS=$ac_func_search_save_LIBS
8350 fi
8351 echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
8352 echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6
8353 if test "$ac_cv_search_glXChooseVisual" != no; then
8354   test "$ac_cv_search_glXChooseVisual" = "none required" || LIBS="$ac_cv_search_glXChooseVisual $LIBS"
8355   have_GLX=yes
8356 else
8357   have_GLX=no
8358 fi
8359
8360     echo "$as_me:$LINENO: checking for library containing glutInit" >&5
8361 echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6
8362 if test "${ac_cv_search_glutInit+set}" = set; then
8363   echo $ECHO_N "(cached) $ECHO_C" >&6
8364 else
8365   ac_func_search_save_LIBS=$LIBS
8366 ac_cv_search_glutInit=no
8367 cat >conftest.$ac_ext <<_ACEOF
8368 /* confdefs.h.  */
8369 _ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h.  */
8373
8374 /* Override any gcc2 internal prototype to avoid an error.  */
8375 #ifdef __cplusplus
8376 extern "C"
8377 #endif
8378 /* We use char because int might match the return type of a gcc2
8379    builtin and then its argument prototype would still apply.  */
8380 char glutInit ();
8381 int
8382 main ()
8383 {
8384 glutInit ();
8385   ;
8386   return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext conftest$ac_exeext
8390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8391   (eval $ac_link) 2>conftest.er1
8392   ac_status=$?
8393   grep -v '^ *+' conftest.er1 >conftest.err
8394   rm -f conftest.er1
8395   cat conftest.err >&5
8396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397   (exit $ac_status); } &&
8398          { ac_try='test -z "$ac_c_werror_flag"
8399                          || test ! -s conftest.err'
8400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8401   (eval $ac_try) 2>&5
8402   ac_status=$?
8403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404   (exit $ac_status); }; } &&
8405          { ac_try='test -s conftest$ac_exeext'
8406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8407   (eval $ac_try) 2>&5
8408   ac_status=$?
8409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8410   (exit $ac_status); }; }; then
8411   ac_cv_search_glutInit="none required"
8412 else
8413   echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 fi
8417 rm -f conftest.err conftest.$ac_objext \
8418       conftest$ac_exeext conftest.$ac_ext
8419 if test "$ac_cv_search_glutInit" = no; then
8420   for ac_lib in glut; do
8421     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8422     cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h.  */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h.  */
8428
8429 /* Override any gcc2 internal prototype to avoid an error.  */
8430 #ifdef __cplusplus
8431 extern "C"
8432 #endif
8433 /* We use char because int might match the return type of a gcc2
8434    builtin and then its argument prototype would still apply.  */
8435 char glutInit ();
8436 int
8437 main ()
8438 {
8439 glutInit ();
8440   ;
8441   return 0;
8442 }
8443 _ACEOF
8444 rm -f conftest.$ac_objext conftest$ac_exeext
8445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8446   (eval $ac_link) 2>conftest.er1
8447   ac_status=$?
8448   grep -v '^ *+' conftest.er1 >conftest.err
8449   rm -f conftest.er1
8450   cat conftest.err >&5
8451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452   (exit $ac_status); } &&
8453          { ac_try='test -z "$ac_c_werror_flag"
8454                          || test ! -s conftest.err'
8455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456   (eval $ac_try) 2>&5
8457   ac_status=$?
8458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459   (exit $ac_status); }; } &&
8460          { ac_try='test -s conftest$ac_exeext'
8461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462   (eval $ac_try) 2>&5
8463   ac_status=$?
8464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8465   (exit $ac_status); }; }; then
8466   ac_cv_search_glutInit="-l$ac_lib"
8467 break
8468 else
8469   echo "$as_me: failed program was:" >&5
8470 sed 's/^/| /' conftest.$ac_ext >&5
8471
8472 fi
8473 rm -f conftest.err conftest.$ac_objext \
8474       conftest$ac_exeext conftest.$ac_ext
8475   done
8476 fi
8477 LIBS=$ac_func_search_save_LIBS
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
8480 echo "${ECHO_T}$ac_cv_search_glutInit" >&6
8481 if test "$ac_cv_search_glutInit" != no; then
8482   test "$ac_cv_search_glutInit" = "none required" || LIBS="$ac_cv_search_glutInit $LIBS"
8483   have_glut=yes
8484 else
8485   have_glut=no
8486 fi
8487
8488
8489
8490
8491     # Restore pretty messages.
8492     exec 6>&8
8493
8494     if test -n "$LIBS"; then
8495       mdl_cv_have_OpenGL=yes
8496       GL_LIBS="$LIBS"
8497
8498
8499     else
8500       mdl_cv_have_OpenGL=no
8501       GL_CFLAGS=
8502     fi
8503
8504     GL_X_LIBS=
8505
8506     LIBS="$GL_save_LIBS"
8507     CPPFLAGS="$GL_save_CPPFLAGS"
8508
8509     ac_ext=cc
8510 ac_cpp='$CXXCPP $CPPFLAGS'
8511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8514
8515
8516     mdl_cv_GL_CFLAGS="$GL_CFLAGS"
8517     mdl_cv_GL_LIBS="$GL_LIBS"
8518     mdl_cv_have_GL="$have_GL"
8519     mdl_cv_have_GLU="$have_GLU"
8520     mdl_cv_have_GLX="$have_GLX"
8521     mdl_cv_have_glut="$have_glut"
8522
8523 fi
8524 echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5
8525 echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6
8526   GL_CFLAGS="$mdl_cv_GL_CFLAGS"
8527   GL_LIBS="$mdl_cv_GL_LIBS"
8528   have_GL="$mdl_cv_have_GL"
8529   have_GLU="$mdl_cv_have_GLU"
8530   have_GLX="$mdl_cv_have_GLX"
8531   have_glut="$mdl_cv_have_glut"
8532
8533 echo "$as_me:$LINENO: checking for GL" >&5
8534 echo $ECHO_N "checking for GL... $ECHO_C" >&6
8535 if test "x$have_GL" = "xyes"; then
8536         echo "$as_me:$LINENO: result: yes" >&5
8537 echo "${ECHO_T}yes" >&6
8538 else
8539         echo "$as_me:$LINENO: result: no" >&5
8540 echo "${ECHO_T}no" >&6
8541         { { echo "$as_me:$LINENO: error: no GL library found" >&5
8542 echo "$as_me: error: no GL library found" >&2;}
8543    { (exit 1); exit 1; }; }
8544 fi
8545 echo "$as_me:$LINENO: checking for GLU" >&5
8546 echo $ECHO_N "checking for GLU... $ECHO_C" >&6
8547 if test "x$have_GLU" = "xyes"; then
8548         echo "$as_me:$LINENO: result: yes" >&5
8549 echo "${ECHO_T}yes" >&6
8550 else
8551         echo "$as_me:$LINENO: result: no" >&5
8552 echo "${ECHO_T}no" >&6
8553         { { echo "$as_me:$LINENO: error: no GLU library found" >&5
8554 echo "$as_me: error: no GLU library found" >&2;}
8555    { (exit 1); exit 1; }; }
8556 fi
8557 echo "$as_me:$LINENO: checking for glut" >&5
8558 echo $ECHO_N "checking for glut... $ECHO_C" >&6
8559 if test "x$have_glut" = "xyes"; then
8560         echo "$as_me:$LINENO: result: yes" >&5
8561 echo "${ECHO_T}yes" >&6
8562 else
8563         echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6
8565         { { echo "$as_me:$LINENO: error: no glut library found" >&5
8566 echo "$as_me: error: no glut library found" >&2;}
8567    { (exit 1); exit 1; }; }
8568 fi
8569
8570
8571 # Checks for features
8572 # --- ALSA ---
8573 echo "$as_me:$LINENO: checking whether to enable ALSA" >&5
8574 echo $ECHO_N "checking whether to enable ALSA... $ECHO_C" >&6
8575 # Check whether --enable-alsa or --disable-alsa was given.
8576 if test "${enable_alsa+set}" = set; then
8577   enableval="$enable_alsa"
8578   enable_alsa=$enableval
8579 else
8580   enable_alsa=yes
8581 fi;
8582 if test "x$enable_alsa" = "xyes"; then
8583         echo "$as_me:$LINENO: result: yes" >&5
8584 echo "${ECHO_T}yes" >&6
8585         alsa_save_CFLAGS="$CFLAGS"
8586 alsa_save_LDFLAGS="$LDFLAGS"
8587 alsa_save_LIBS="$LIBS"
8588 alsa_found=yes
8589
8590
8591 # Check whether --with-alsa-prefix or --without-alsa-prefix was given.
8592 if test "${with_alsa_prefix+set}" = set; then
8593   withval="$with_alsa_prefix"
8594   alsa_prefix="$withval"
8595 else
8596   alsa_prefix=""
8597 fi;
8598
8599
8600 # Check whether --with-alsa-inc-prefix or --without-alsa-inc-prefix was given.
8601 if test "${with_alsa_inc_prefix+set}" = set; then
8602   withval="$with_alsa_inc_prefix"
8603   alsa_inc_prefix="$withval"
8604 else
8605   alsa_inc_prefix=""
8606 fi;
8607
8608 # Check whether --enable-alsatest or --disable-alsatest was given.
8609 if test "${enable_alsatest+set}" = set; then
8610   enableval="$enable_alsatest"
8611   enable_alsatest="$enableval"
8612 else
8613   enable_alsatest=yes
8614 fi;
8615
8616 echo "$as_me:$LINENO: checking for ALSA CFLAGS" >&5
8617 echo $ECHO_N "checking for ALSA CFLAGS... $ECHO_C" >&6
8618 if test "$alsa_inc_prefix" != "" ; then
8619         ALSA_CFLAGS="$ALSA_CFLAGS -I$alsa_inc_prefix"
8620         CFLAGS="$CFLAGS -I$alsa_inc_prefix"
8621 fi
8622 echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
8623 echo "${ECHO_T}$ALSA_CFLAGS" >&6
8624
8625 echo "$as_me:$LINENO: checking for ALSA LDFLAGS" >&5
8626 echo $ECHO_N "checking for ALSA LDFLAGS... $ECHO_C" >&6
8627 if test "$alsa_prefix" != "" ; then
8628         ALSA_LIBS="$ALSA_LIBS -L$alsa_prefix"
8629         LDFLAGS="$LDFLAGS $ALSA_LIBS"
8630 fi
8631
8632 ALSA_LIBS="$ALSA_LIBS -lasound -lm -ldl -lpthread"
8633 LIBS="$ALSA_LIBS $LIBS"
8634 echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
8635 echo "${ECHO_T}$ALSA_LIBS" >&6
8636
8637 min_alsa_version=0.9
8638 echo "$as_me:$LINENO: checking for libasound headers version >= $min_alsa_version" >&5
8639 echo $ECHO_N "checking for libasound headers version >= $min_alsa_version... $ECHO_C" >&6
8640 no_alsa=""
8641     alsa_min_major_version=`echo $min_alsa_version | \
8642            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8643     alsa_min_minor_version=`echo $min_alsa_version | \
8644            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8645     alsa_min_micro_version=`echo $min_alsa_version | \
8646            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8647
8648
8649
8650 ac_ext=c
8651 ac_cpp='$CPP $CPPFLAGS'
8652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8655
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h.  */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h.  */
8662
8663 #include <alsa/asoundlib.h>
8664
8665 int
8666 main ()
8667 {
8668
8669 /* ensure backward compatibility */
8670 #if !defined(SND_LIB_MAJOR) && defined(SOUNDLIB_VERSION_MAJOR)
8671 #define SND_LIB_MAJOR SOUNDLIB_VERSION_MAJOR
8672 #endif
8673 #if !defined(SND_LIB_MINOR) && defined(SOUNDLIB_VERSION_MINOR)
8674 #define SND_LIB_MINOR SOUNDLIB_VERSION_MINOR
8675 #endif
8676 #if !defined(SND_LIB_SUBMINOR) && defined(SOUNDLIB_VERSION_SUBMINOR)
8677 #define SND_LIB_SUBMINOR SOUNDLIB_VERSION_SUBMINOR
8678 #endif
8679
8680 #  if(SND_LIB_MAJOR > $alsa_min_major_version)
8681   exit(0);
8682 #  else
8683 #    if(SND_LIB_MAJOR < $alsa_min_major_version)
8684 #       error not present
8685 #    endif
8686
8687 #   if(SND_LIB_MINOR > $alsa_min_minor_version)
8688   exit(0);
8689 #   else
8690 #     if(SND_LIB_MINOR < $alsa_min_minor_version)
8691 #          error not present
8692 #      endif
8693
8694 #      if(SND_LIB_SUBMINOR < $alsa_min_micro_version)
8695 #        error not present
8696 #      endif
8697 #    endif
8698 #  endif
8699 exit(0);
8700
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8707   (eval $ac_compile) 2>conftest.er1
8708   ac_status=$?
8709   grep -v '^ *+' conftest.er1 >conftest.err
8710   rm -f conftest.er1
8711   cat conftest.err >&5
8712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713   (exit $ac_status); } &&
8714          { ac_try='test -z "$ac_c_werror_flag"
8715                          || test ! -s conftest.err'
8716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717   (eval $ac_try) 2>&5
8718   ac_status=$?
8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8720   (exit $ac_status); }; } &&
8721          { ac_try='test -s conftest.$ac_objext'
8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723   (eval $ac_try) 2>&5
8724   ac_status=$?
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); }; }; then
8727   echo "$as_me:$LINENO: result: found." >&5
8728 echo "${ECHO_T}found." >&6
8729 else
8730   echo "$as_me: failed program was:" >&5
8731 sed 's/^/| /' conftest.$ac_ext >&5
8732
8733 echo "$as_me:$LINENO: result: not present." >&5
8734 echo "${ECHO_T}not present." >&6
8735    { { echo "$as_me:$LINENO: error: Sufficiently new version of libasound not found." >&5
8736 echo "$as_me: error: Sufficiently new version of libasound not found." >&2;}
8737    { (exit 1); exit 1; }; }
8738    alsa_found=no
8739
8740 fi
8741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8742 ac_ext=cc
8743 ac_cpp='$CXXCPP $CPPFLAGS'
8744 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8745 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8746 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8747
8748
8749 if test "x$enable_alsatest" = "xyes"; then
8750
8751 echo "$as_me:$LINENO: checking for snd_ctl_open in -lasound" >&5
8752 echo $ECHO_N "checking for snd_ctl_open in -lasound... $ECHO_C" >&6
8753 if test "${ac_cv_lib_asound_snd_ctl_open+set}" = set; then
8754   echo $ECHO_N "(cached) $ECHO_C" >&6
8755 else
8756   ac_check_lib_save_LIBS=$LIBS
8757 LIBS="-lasound  $LIBS"
8758 cat >conftest.$ac_ext <<_ACEOF
8759 /* confdefs.h.  */
8760 _ACEOF
8761 cat confdefs.h >>conftest.$ac_ext
8762 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h.  */
8764
8765 /* Override any gcc2 internal prototype to avoid an error.  */
8766 #ifdef __cplusplus
8767 extern "C"
8768 #endif
8769 /* We use char because int might match the return type of a gcc2
8770    builtin and then its argument prototype would still apply.  */
8771 char snd_ctl_open ();
8772 int
8773 main ()
8774 {
8775 snd_ctl_open ();
8776   ;
8777   return 0;
8778 }
8779 _ACEOF
8780 rm -f conftest.$ac_objext conftest$ac_exeext
8781 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8782   (eval $ac_link) 2>conftest.er1
8783   ac_status=$?
8784   grep -v '^ *+' conftest.er1 >conftest.err
8785   rm -f conftest.er1
8786   cat conftest.err >&5
8787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8788   (exit $ac_status); } &&
8789          { ac_try='test -z "$ac_cxx_werror_flag"
8790                          || test ! -s conftest.err'
8791   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8792   (eval $ac_try) 2>&5
8793   ac_status=$?
8794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8795   (exit $ac_status); }; } &&
8796          { ac_try='test -s conftest$ac_exeext'
8797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8798   (eval $ac_try) 2>&5
8799   ac_status=$?
8800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801   (exit $ac_status); }; }; then
8802   ac_cv_lib_asound_snd_ctl_open=yes
8803 else
8804   echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.$ac_ext >&5
8806
8807 ac_cv_lib_asound_snd_ctl_open=no
8808 fi
8809 rm -f conftest.err conftest.$ac_objext \
8810       conftest$ac_exeext conftest.$ac_ext
8811 LIBS=$ac_check_lib_save_LIBS
8812 fi
8813 echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_ctl_open" >&5
8814 echo "${ECHO_T}$ac_cv_lib_asound_snd_ctl_open" >&6
8815 if test $ac_cv_lib_asound_snd_ctl_open = yes; then
8816   cat >>confdefs.h <<_ACEOF
8817 #define HAVE_LIBASOUND 1
8818 _ACEOF
8819
8820   LIBS="-lasound $LIBS"
8821
8822 else
8823   { { echo "$as_me:$LINENO: error: No linkable libasound was found." >&5
8824 echo "$as_me: error: No linkable libasound was found." >&2;}
8825    { (exit 1); exit 1; }; }
8826          alsa_found=no
8827
8828 fi
8829
8830 fi
8831
8832 if test "x$alsa_found" = "xyes" ; then
8833    CXXFLAGS="$CXXFLAGS -DCAPTURE_ALSA"
8834    LIBS=`echo $LIBS | sed 's/-lasound//g'`
8835    LIBS=`echo $LIBS | sed 's/  //'`
8836    LIBS="-lasound $LIBS"
8837 fi
8838 if test "x$alsa_found" = "xno" ; then
8839    :
8840    CFLAGS="$alsa_save_CFLAGS"
8841    LDFLAGS="$alsa_save_LDFLAGS"
8842    LIBS="$alsa_save_LIBS"
8843    ALSA_CFLAGS=""
8844    ALSA_LIBS=""
8845 fi
8846
8847
8848
8849
8850 else
8851         echo "$as_me:$LINENO: result: no" >&5
8852 echo "${ECHO_T}no" >&6
8853 fi
8854
8855 # --- OSS ---
8856 echo "$as_me:$LINENO: checking whether to enable OSS" >&5
8857 echo $ECHO_N "checking whether to enable OSS... $ECHO_C" >&6
8858 # Check whether --enable-oss or --disable-oss was given.
8859 if test "${enable_oss+set}" = set; then
8860   enableval="$enable_oss"
8861   enable_oss=$enableval
8862 else
8863   enable_oss=yes
8864 fi;
8865 if test "x$enable_oss" = "xyes"; then
8866         echo "$as_me:$LINENO: result: yes" >&5
8867 echo "${ECHO_T}yes" >&6
8868         CXXFLAGS="$CXXFLAGS -DCAPTURE_OSS"
8869         if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8870   echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8871 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8872 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8873   echo $ECHO_N "(cached) $ECHO_C" >&6
8874 fi
8875 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
8876 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
8877 else
8878   # Is the header compilable?
8879 echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
8880 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6
8881 cat >conftest.$ac_ext <<_ACEOF
8882 /* confdefs.h.  */
8883 _ACEOF
8884 cat confdefs.h >>conftest.$ac_ext
8885 cat >>conftest.$ac_ext <<_ACEOF
8886 /* end confdefs.h.  */
8887 $ac_includes_default
8888 #include <sys/soundcard.h>
8889 _ACEOF
8890 rm -f conftest.$ac_objext
8891 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8892   (eval $ac_compile) 2>conftest.er1
8893   ac_status=$?
8894   grep -v '^ *+' conftest.er1 >conftest.err
8895   rm -f conftest.er1
8896   cat conftest.err >&5
8897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8898   (exit $ac_status); } &&
8899          { ac_try='test -z "$ac_cxx_werror_flag"
8900                          || test ! -s conftest.err'
8901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902   (eval $ac_try) 2>&5
8903   ac_status=$?
8904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8905   (exit $ac_status); }; } &&
8906          { ac_try='test -s conftest.$ac_objext'
8907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908   (eval $ac_try) 2>&5
8909   ac_status=$?
8910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911   (exit $ac_status); }; }; then
8912   ac_header_compiler=yes
8913 else
8914   echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 ac_header_compiler=no
8918 fi
8919 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8920 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8921 echo "${ECHO_T}$ac_header_compiler" >&6
8922
8923 # Is the header present?
8924 echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
8925 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h.  */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h.  */
8932 #include <sys/soundcard.h>
8933 _ACEOF
8934 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8935   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8936   ac_status=$?
8937   grep -v '^ *+' conftest.er1 >conftest.err
8938   rm -f conftest.er1
8939   cat conftest.err >&5
8940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941   (exit $ac_status); } >/dev/null; then
8942   if test -s conftest.err; then
8943     ac_cpp_err=$ac_cxx_preproc_warn_flag
8944     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8945   else
8946     ac_cpp_err=
8947   fi
8948 else
8949   ac_cpp_err=yes
8950 fi
8951 if test -z "$ac_cpp_err"; then
8952   ac_header_preproc=yes
8953 else
8954   echo "$as_me: failed program was:" >&5
8955 sed 's/^/| /' conftest.$ac_ext >&5
8956
8957   ac_header_preproc=no
8958 fi
8959 rm -f conftest.err conftest.$ac_ext
8960 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8961 echo "${ECHO_T}$ac_header_preproc" >&6
8962
8963 # So?  What about this header?
8964 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
8965   yes:no: )
8966     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
8967 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8968     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
8969 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
8970     ac_header_preproc=yes
8971     ;;
8972   no:yes:* )
8973     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
8974 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
8975     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&5
8976 echo "$as_me: WARNING: sys/soundcard.h:     check for missing prerequisite headers?" >&2;}
8977     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
8978 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
8979     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&5
8980 echo "$as_me: WARNING: sys/soundcard.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8981     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
8982 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
8983     { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
8984 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
8985     (
8986       cat <<\_ASBOX
8987 ## ------------------------------- ##
8988 ## Report this to the fmit lists.  ##
8989 ## ------------------------------- ##
8990 _ASBOX
8991     ) |
8992       sed "s/^/$as_me: WARNING:     /" >&2
8993     ;;
8994 esac
8995 echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
8996 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6
8997 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
8998   echo $ECHO_N "(cached) $ECHO_C" >&6
8999 else
9000   ac_cv_header_sys_soundcard_h=$ac_header_preproc
9001 fi
9002 echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
9003 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6
9004
9005 fi
9006 if test $ac_cv_header_sys_soundcard_h = yes; then
9007   :
9008 else
9009   { { echo "$as_me:$LINENO: error: OSS header not found." >&5
9010 echo "$as_me: error: OSS header not found." >&2;}
9011    { (exit 1); exit 1; }; }
9012 fi
9013
9014
9015 else
9016         echo "$as_me:$LINENO: result: no" >&5
9017 echo "${ECHO_T}no" >&6
9018 fi
9019
9020 # --- JACK ---
9021 echo "$as_me:$LINENO: checking whether to enable JACK" >&5
9022 echo $ECHO_N "checking whether to enable JACK... $ECHO_C" >&6
9023 # Check whether --enable-jack or --disable-jack was given.
9024 if test "${enable_jack+set}" = set; then
9025   enableval="$enable_jack"
9026   enable_jack=$enableval
9027 else
9028   enable_jack=yes
9029 fi;
9030 if test "x$enable_jack" = "xyes"; then
9031         echo "$as_me:$LINENO: result: yes" >&5
9032 echo "${ECHO_T}yes" >&6
9033         CXXFLAGS="$CXXFLAGS -DCAPTURE_JACK"
9034         if test "${ac_cv_header_jack_jack_h+set}" = set; then
9035   echo "$as_me:$LINENO: checking for jack/jack.h" >&5
9036 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6
9037 if test "${ac_cv_header_jack_jack_h+set}" = set; then
9038   echo $ECHO_N "(cached) $ECHO_C" >&6
9039 fi
9040 echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
9041 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6
9042 else
9043   # Is the header compilable?
9044 echo "$as_me:$LINENO: checking jack/jack.h usability" >&5
9045 echo $ECHO_N "checking jack/jack.h usability... $ECHO_C" >&6
9046 cat >conftest.$ac_ext <<_ACEOF
9047 /* confdefs.h.  */
9048 _ACEOF
9049 cat confdefs.h >>conftest.$ac_ext
9050 cat >>conftest.$ac_ext <<_ACEOF
9051 /* end confdefs.h.  */
9052 $ac_includes_default
9053 #include <jack/jack.h>
9054 _ACEOF
9055 rm -f conftest.$ac_objext
9056 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9057   (eval $ac_compile) 2>conftest.er1
9058   ac_status=$?
9059   grep -v '^ *+' conftest.er1 >conftest.err
9060   rm -f conftest.er1
9061   cat conftest.err >&5
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); } &&
9064          { ac_try='test -z "$ac_cxx_werror_flag"
9065                          || test ! -s conftest.err'
9066   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9067   (eval $ac_try) 2>&5
9068   ac_status=$?
9069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070   (exit $ac_status); }; } &&
9071          { ac_try='test -s conftest.$ac_objext'
9072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9073   (eval $ac_try) 2>&5
9074   ac_status=$?
9075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076   (exit $ac_status); }; }; then
9077   ac_header_compiler=yes
9078 else
9079   echo "$as_me: failed program was:" >&5
9080 sed 's/^/| /' conftest.$ac_ext >&5
9081
9082 ac_header_compiler=no
9083 fi
9084 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9085 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9086 echo "${ECHO_T}$ac_header_compiler" >&6
9087
9088 # Is the header present?
9089 echo "$as_me:$LINENO: checking jack/jack.h presence" >&5
9090 echo $ECHO_N "checking jack/jack.h presence... $ECHO_C" >&6
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097 #include <jack/jack.h>
9098 _ACEOF
9099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101   ac_status=$?
9102   grep -v '^ *+' conftest.er1 >conftest.err
9103   rm -f conftest.er1
9104   cat conftest.err >&5
9105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106   (exit $ac_status); } >/dev/null; then
9107   if test -s conftest.err; then
9108     ac_cpp_err=$ac_cxx_preproc_warn_flag
9109     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9110   else
9111     ac_cpp_err=
9112   fi
9113 else
9114   ac_cpp_err=yes
9115 fi
9116 if test -z "$ac_cpp_err"; then
9117   ac_header_preproc=yes
9118 else
9119   echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9121
9122   ac_header_preproc=no
9123 fi
9124 rm -f conftest.err conftest.$ac_ext
9125 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9126 echo "${ECHO_T}$ac_header_preproc" >&6
9127
9128 # So?  What about this header?
9129 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9130   yes:no: )
9131     { echo "$as_me:$LINENO: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&5
9132 echo "$as_me: WARNING: jack/jack.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9133     { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the compiler's result" >&5
9134 echo "$as_me: WARNING: jack/jack.h: proceeding with the compiler's result" >&2;}
9135     ac_header_preproc=yes
9136     ;;
9137   no:yes:* )
9138     { echo "$as_me:$LINENO: WARNING: jack/jack.h: present but cannot be compiled" >&5
9139 echo "$as_me: WARNING: jack/jack.h: present but cannot be compiled" >&2;}
9140     { echo "$as_me:$LINENO: WARNING: jack/jack.h:     check for missing prerequisite headers?" >&5
9141 echo "$as_me: WARNING: jack/jack.h:     check for missing prerequisite headers?" >&2;}
9142     { echo "$as_me:$LINENO: WARNING: jack/jack.h: see the Autoconf documentation" >&5
9143 echo "$as_me: WARNING: jack/jack.h: see the Autoconf documentation" >&2;}
9144     { echo "$as_me:$LINENO: WARNING: jack/jack.h:     section \"Present But Cannot Be Compiled\"" >&5
9145 echo "$as_me: WARNING: jack/jack.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9146     { echo "$as_me:$LINENO: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&5
9147 echo "$as_me: WARNING: jack/jack.h: proceeding with the preprocessor's result" >&2;}
9148     { echo "$as_me:$LINENO: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&5
9149 echo "$as_me: WARNING: jack/jack.h: in the future, the compiler will take precedence" >&2;}
9150     (
9151       cat <<\_ASBOX
9152 ## ------------------------------- ##
9153 ## Report this to the fmit lists.  ##
9154 ## ------------------------------- ##
9155 _ASBOX
9156     ) |
9157       sed "s/^/$as_me: WARNING:     /" >&2
9158     ;;
9159 esac
9160 echo "$as_me:$LINENO: checking for jack/jack.h" >&5
9161 echo $ECHO_N "checking for jack/jack.h... $ECHO_C" >&6
9162 if test "${ac_cv_header_jack_jack_h+set}" = set; then
9163   echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165   ac_cv_header_jack_jack_h=$ac_header_preproc
9166 fi
9167 echo "$as_me:$LINENO: result: $ac_cv_header_jack_jack_h" >&5
9168 echo "${ECHO_T}$ac_cv_header_jack_jack_h" >&6
9169
9170 fi
9171 if test $ac_cv_header_jack_jack_h = yes; then
9172   :
9173 else
9174   { { echo "$as_me:$LINENO: error: JACK headers not found." >&5
9175 echo "$as_me: error: JACK headers not found." >&2;}
9176    { (exit 1); exit 1; }; }
9177 fi
9178
9179
9180
9181 echo "$as_me:$LINENO: checking for main in -ljack" >&5
9182 echo $ECHO_N "checking for main in -ljack... $ECHO_C" >&6
9183 if test "${ac_cv_lib_jack_main+set}" = set; then
9184   echo $ECHO_N "(cached) $ECHO_C" >&6
9185 else
9186   ac_check_lib_save_LIBS=$LIBS
9187 LIBS="-ljack  $LIBS"
9188 cat >conftest.$ac_ext <<_ACEOF
9189 /* confdefs.h.  */
9190 _ACEOF
9191 cat confdefs.h >>conftest.$ac_ext
9192 cat >>conftest.$ac_ext <<_ACEOF
9193 /* end confdefs.h.  */
9194
9195
9196 int
9197 main ()
9198 {
9199 main ();
9200   ;
9201   return 0;
9202 }
9203 _ACEOF
9204 rm -f conftest.$ac_objext conftest$ac_exeext
9205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9206   (eval $ac_link) 2>conftest.er1
9207   ac_status=$?
9208   grep -v '^ *+' conftest.er1 >conftest.err
9209   rm -f conftest.er1
9210   cat conftest.err >&5
9211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212   (exit $ac_status); } &&
9213          { ac_try='test -z "$ac_cxx_werror_flag"
9214                          || test ! -s conftest.err'
9215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9216   (eval $ac_try) 2>&5
9217   ac_status=$?
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   (exit $ac_status); }; } &&
9220          { ac_try='test -s conftest$ac_exeext'
9221   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9222   (eval $ac_try) 2>&5
9223   ac_status=$?
9224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9225   (exit $ac_status); }; }; then
9226   ac_cv_lib_jack_main=yes
9227 else
9228   echo "$as_me: failed program was:" >&5
9229 sed 's/^/| /' conftest.$ac_ext >&5
9230
9231 ac_cv_lib_jack_main=no
9232 fi
9233 rm -f conftest.err conftest.$ac_objext \
9234       conftest$ac_exeext conftest.$ac_ext
9235 LIBS=$ac_check_lib_save_LIBS
9236 fi
9237 echo "$as_me:$LINENO: result: $ac_cv_lib_jack_main" >&5
9238 echo "${ECHO_T}$ac_cv_lib_jack_main" >&6
9239 if test $ac_cv_lib_jack_main = yes; then
9240   cat >>confdefs.h <<_ACEOF
9241 #define HAVE_LIBJACK 1
9242 _ACEOF
9243
9244   LIBS="-ljack $LIBS"
9245
9246 else
9247   { { echo "$as_me:$LINENO: error: JACK library not found." >&5
9248 echo "$as_me: error: JACK library not found." >&2;}
9249    { (exit 1); exit 1; }; }
9250 fi
9251
9252 else
9253         echo "$as_me:$LINENO: result: no" >&5
9254 echo "${ECHO_T}no" >&6
9255 fi
9256
9257 # --- PortAudio ---
9258 echo "$as_me:$LINENO: checking whether to enable PortAudio" >&5
9259 echo $ECHO_N "checking whether to enable PortAudio... $ECHO_C" >&6
9260 # Check whether --enable-portaudio or --disable-portaudio was given.
9261 if test "${enable_portaudio+set}" = set; then
9262   enableval="$enable_portaudio"
9263   enable_portaudio=$enableval
9264 else
9265   enable_portaudio=no
9266 fi;
9267 if test "x$enable_portaudio" = "xyes"; then
9268         echo "$as_me:$LINENO: result: yes" >&5
9269 echo "${ECHO_T}yes" >&6
9270         CXXFLAGS="$CXXFLAGS -DCAPTURE_PORTAUDIO"
9271         if test "${ac_cv_header_portaudio_h+set}" = set; then
9272   echo "$as_me:$LINENO: checking for portaudio.h" >&5
9273 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
9274 if test "${ac_cv_header_portaudio_h+set}" = set; then
9275   echo $ECHO_N "(cached) $ECHO_C" >&6
9276 fi
9277 echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
9278 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
9279 else
9280   # Is the header compilable?
9281 echo "$as_me:$LINENO: checking portaudio.h usability" >&5
9282 echo $ECHO_N "checking portaudio.h usability... $ECHO_C" >&6
9283 cat >conftest.$ac_ext <<_ACEOF
9284 /* confdefs.h.  */
9285 _ACEOF
9286 cat confdefs.h >>conftest.$ac_ext
9287 cat >>conftest.$ac_ext <<_ACEOF
9288 /* end confdefs.h.  */
9289 $ac_includes_default
9290 #include <portaudio.h>
9291 _ACEOF
9292 rm -f conftest.$ac_objext
9293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9294   (eval $ac_compile) 2>conftest.er1
9295   ac_status=$?
9296   grep -v '^ *+' conftest.er1 >conftest.err
9297   rm -f conftest.er1
9298   cat conftest.err >&5
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } &&
9301          { ac_try='test -z "$ac_cxx_werror_flag"
9302                          || test ! -s conftest.err'
9303   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9304   (eval $ac_try) 2>&5
9305   ac_status=$?
9306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307   (exit $ac_status); }; } &&
9308          { ac_try='test -s conftest.$ac_objext'
9309   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9310   (eval $ac_try) 2>&5
9311   ac_status=$?
9312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9313   (exit $ac_status); }; }; then
9314   ac_header_compiler=yes
9315 else
9316   echo "$as_me: failed program was:" >&5
9317 sed 's/^/| /' conftest.$ac_ext >&5
9318
9319 ac_header_compiler=no
9320 fi
9321 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9322 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9323 echo "${ECHO_T}$ac_header_compiler" >&6
9324
9325 # Is the header present?
9326 echo "$as_me:$LINENO: checking portaudio.h presence" >&5
9327 echo $ECHO_N "checking portaudio.h presence... $ECHO_C" >&6
9328 cat >conftest.$ac_ext <<_ACEOF
9329 /* confdefs.h.  */
9330 _ACEOF
9331 cat confdefs.h >>conftest.$ac_ext
9332 cat >>conftest.$ac_ext <<_ACEOF
9333 /* end confdefs.h.  */
9334 #include <portaudio.h>
9335 _ACEOF
9336 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9337   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9338   ac_status=$?
9339   grep -v '^ *+' conftest.er1 >conftest.err
9340   rm -f conftest.er1
9341   cat conftest.err >&5
9342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9343   (exit $ac_status); } >/dev/null; then
9344   if test -s conftest.err; then
9345     ac_cpp_err=$ac_cxx_preproc_warn_flag
9346     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
9347   else
9348     ac_cpp_err=
9349   fi
9350 else
9351   ac_cpp_err=yes
9352 fi
9353 if test -z "$ac_cpp_err"; then
9354   ac_header_preproc=yes
9355 else
9356   echo "$as_me: failed program was:" >&5
9357 sed 's/^/| /' conftest.$ac_ext >&5
9358
9359   ac_header_preproc=no
9360 fi
9361 rm -f conftest.err conftest.$ac_ext
9362 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9363 echo "${ECHO_T}$ac_header_preproc" >&6
9364
9365 # So?  What about this header?
9366 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
9367   yes:no: )
9368     { echo "$as_me:$LINENO: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
9369 echo "$as_me: WARNING: portaudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9370     { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the compiler's result" >&5
9371 echo "$as_me: WARNING: portaudio.h: proceeding with the compiler's result" >&2;}
9372     ac_header_preproc=yes
9373     ;;
9374   no:yes:* )
9375     { echo "$as_me:$LINENO: WARNING: portaudio.h: present but cannot be compiled" >&5
9376 echo "$as_me: WARNING: portaudio.h: present but cannot be compiled" >&2;}
9377     { echo "$as_me:$LINENO: WARNING: portaudio.h:     check for missing prerequisite headers?" >&5
9378 echo "$as_me: WARNING: portaudio.h:     check for missing prerequisite headers?" >&2;}
9379     { echo "$as_me:$LINENO: WARNING: portaudio.h: see the Autoconf documentation" >&5
9380 echo "$as_me: WARNING: portaudio.h: see the Autoconf documentation" >&2;}
9381     { echo "$as_me:$LINENO: WARNING: portaudio.h:     section \"Present But Cannot Be Compiled\"" >&5
9382 echo "$as_me: WARNING: portaudio.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9383     { echo "$as_me:$LINENO: WARNING: portaudio.h: proceeding with the preprocessor's result" >&5
9384 echo "$as_me: WARNING: portaudio.h: proceeding with the preprocessor's result" >&2;}
9385     { echo "$as_me:$LINENO: WARNING: portaudio.h: in the future, the compiler will take precedence" >&5
9386 echo "$as_me: WARNING: portaudio.h: in the future, the compiler will take precedence" >&2;}
9387     (
9388       cat <<\_ASBOX
9389 ## ------------------------------- ##
9390 ## Report this to the fmit lists.  ##
9391 ## ------------------------------- ##
9392 _ASBOX
9393     ) |
9394       sed "s/^/$as_me: WARNING:     /" >&2
9395     ;;
9396 esac
9397 echo "$as_me:$LINENO: checking for portaudio.h" >&5
9398 echo $ECHO_N "checking for portaudio.h... $ECHO_C" >&6
9399 if test "${ac_cv_header_portaudio_h+set}" = set; then
9400   echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402   ac_cv_header_portaudio_h=$ac_header_preproc
9403 fi
9404 echo "$as_me:$LINENO: result: $ac_cv_header_portaudio_h" >&5
9405 echo "${ECHO_T}$ac_cv_header_portaudio_h" >&6
9406
9407 fi
9408 if test $ac_cv_header_portaudio_h = yes; then
9409   :
9410 else
9411   { { echo "$as_me:$LINENO: error: PortAudio header not found." >&5
9412 echo "$as_me: error: PortAudio header not found." >&2;}
9413    { (exit 1); exit 1; }; }
9414 fi
9415
9416
9417
9418 echo "$as_me:$LINENO: checking for main in -lportaudio" >&5
9419 echo $ECHO_N "checking for main in -lportaudio... $ECHO_C" >&6
9420 if test "${ac_cv_lib_portaudio_main+set}" = set; then
9421   echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423   ac_check_lib_save_LIBS=$LIBS
9424 LIBS="-lportaudio  $LIBS"
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h.  */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h.  */
9431
9432
9433 int
9434 main ()
9435 {
9436 main ();
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext conftest$ac_exeext
9442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9443   (eval $ac_link) 2>conftest.er1
9444   ac_status=$?
9445   grep -v '^ *+' conftest.er1 >conftest.err
9446   rm -f conftest.er1
9447   cat conftest.err >&5
9448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449   (exit $ac_status); } &&
9450          { ac_try='test -z "$ac_cxx_werror_flag"
9451                          || test ! -s conftest.err'
9452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9453   (eval $ac_try) 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; } &&
9457          { ac_try='test -s conftest$ac_exeext'
9458   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9459   (eval $ac_try) 2>&5
9460   ac_status=$?
9461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462   (exit $ac_status); }; }; then
9463   ac_cv_lib_portaudio_main=yes
9464 else
9465   echo "$as_me: failed program was:" >&5
9466 sed 's/^/| /' conftest.$ac_ext >&5
9467
9468 ac_cv_lib_portaudio_main=no
9469 fi
9470 rm -f conftest.err conftest.$ac_objext \
9471       conftest$ac_exeext conftest.$ac_ext
9472 LIBS=$ac_check_lib_save_LIBS
9473 fi
9474 echo "$as_me:$LINENO: result: $ac_cv_lib_portaudio_main" >&5
9475 echo "${ECHO_T}$ac_cv_lib_portaudio_main" >&6
9476 if test $ac_cv_lib_portaudio_main = yes; then
9477   cat >>confdefs.h <<_ACEOF
9478 #define HAVE_LIBPORTAUDIO 1
9479 _ACEOF
9480
9481   LIBS="-lportaudio $LIBS"
9482
9483 else
9484   { { echo "$as_me:$LINENO: error: PortAudio library not found." >&5
9485 echo "$as_me: error: PortAudio library not found." >&2;}
9486    { (exit 1); exit 1; }; }
9487 fi
9488
9489 else
9490         echo "$as_me:$LINENO: result: no" >&5
9491 echo "${ECHO_T}no" >&6
9492 fi
9493
9494                                                                                           ac_config_files="$ac_config_files Makefile m4/Makefile libs/Makefile libs/CppAddons/Makefile libs/Music/Makefile ui/Makefile src/Makefile src/modules/Makefile tr/Makefile"
9495
9496
9497
9498 echo "$as_me:$LINENO: checking packager string" >&5
9499 echo $ECHO_N "checking packager string... $ECHO_C" >&6
9500 # Check whether --enable-packager-string or --disable-packager-string was given.
9501 if test "${enable_packager_string+set}" = set; then
9502   enableval="$enable_packager_string"
9503   enable_packager_string=$enableval
9504 else
9505   enable_packager_string=""
9506 fi;
9507 if test -n "$enable_packager_string"; then
9508         echo "$as_me:$LINENO: result: $enable_packager_string" >&5
9509 echo "${ECHO_T}$enable_packager_string" >&6
9510
9511 cat >>confdefs.h <<_ACEOF
9512 #define PACKAGER_STRING "${enable_packager_string}"
9513 _ACEOF
9514
9515 else
9516         echo "$as_me:$LINENO: result: no" >&5
9517 echo "${ECHO_T}no" >&6
9518 fi
9519
9520 cat >confcache <<\_ACEOF
9521 # This file is a shell script that caches the results of configure
9522 # tests run on this system so they can be shared between configure
9523 # scripts and configure runs, see configure's option --config-cache.
9524 # It is not useful on other systems.  If it contains results you don't
9525 # want to keep, you may remove or edit it.
9526 #
9527 # config.status only pays attention to the cache file if you give it
9528 # the --recheck option to rerun configure.
9529 #
9530 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9531 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9532 # following values.
9533
9534 _ACEOF
9535
9536 # The following way of writing the cache mishandles newlines in values,
9537 # but we know of no workaround that is simple, portable, and efficient.
9538 # So, don't put newlines in cache variables' values.
9539 # Ultrix sh set writes to stderr and can't be redirected directly,
9540 # and sets the high bit in the cache file unless we assign to the vars.
9541 {
9542   (set) 2>&1 |
9543     case `(ac_space=' '; set | grep ac_space) 2>&1` in
9544     *ac_space=\ *)
9545       # `set' does not quote correctly, so add quotes (double-quote
9546       # substitution turns \\\\ into \\, and sed turns \\ into \).
9547       sed -n \
9548         "s/'/'\\\\''/g;
9549           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9550       ;;
9551     *)
9552       # `set' quotes correctly as required by POSIX, so do not add quotes.
9553       sed -n \
9554         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9555       ;;
9556     esac;
9557 } |
9558   sed '
9559      t clear
9560      : clear
9561      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9562      t end
9563      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9564      : end' >>confcache
9565 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9566   if test -w $cache_file; then
9567     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9568     cat confcache >$cache_file
9569   else
9570     echo "not updating unwritable cache $cache_file"
9571   fi
9572 fi
9573 rm -f confcache
9574
9575 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9576 # Let make expand exec_prefix.
9577 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9578
9579 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9580 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9581 # trailing colons and then remove the whole line if VPATH becomes empty
9582 # (actually we leave an empty line to preserve line numbers).
9583 if test "x$srcdir" = x.; then
9584   ac_vpsub='/^[  ]*VPATH[        ]*=/{
9585 s/:*\$(srcdir):*/:/;
9586 s/:*\${srcdir}:*/:/;
9587 s/:*@srcdir@:*/:/;
9588 s/^\([^=]*=[     ]*\):*/\1/;
9589 s/:*$//;
9590 s/^[^=]*=[       ]*$//;
9591 }'
9592 fi
9593
9594 DEFS=-DHAVE_CONFIG_H
9595
9596 ac_libobjs=
9597 ac_ltlibobjs=
9598 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9599   # 1. Remove the extension, and $U if already installed.
9600   ac_i=`echo "$ac_i" |
9601          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9602   # 2. Add them.
9603   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9604   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9605 done
9606 LIBOBJS=$ac_libobjs
9607
9608 LTLIBOBJS=$ac_ltlibobjs
9609
9610
9611 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
9612   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
9613 Usually this means the macro was only invoked conditionally." >&5
9614 echo "$as_me: error: conditional \"AMDEP\" was never defined.
9615 Usually this means the macro was only invoked conditionally." >&2;}
9616    { (exit 1); exit 1; }; }
9617 fi
9618 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
9619   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
9620 Usually this means the macro was only invoked conditionally." >&5
9621 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
9622 Usually this means the macro was only invoked conditionally." >&2;}
9623    { (exit 1); exit 1; }; }
9624 fi
9625 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
9626   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
9627 Usually this means the macro was only invoked conditionally." >&5
9628 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
9629 Usually this means the macro was only invoked conditionally." >&2;}
9630    { (exit 1); exit 1; }; }
9631 fi
9632
9633 : ${CONFIG_STATUS=./config.status}
9634 ac_clean_files_save=$ac_clean_files
9635 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9636 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9637 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9638 cat >$CONFIG_STATUS <<_ACEOF
9639 #! $SHELL
9640 # Generated by $as_me.
9641 # Run this file to recreate the current configuration.
9642 # Compiler output produced by configure, useful for debugging
9643 # configure, is in config.log if it exists.
9644
9645 debug=false
9646 ac_cs_recheck=false
9647 ac_cs_silent=false
9648 SHELL=\${CONFIG_SHELL-$SHELL}
9649 _ACEOF
9650
9651 cat >>$CONFIG_STATUS <<\_ACEOF
9652 ## --------------------- ##
9653 ## M4sh Initialization.  ##
9654 ## --------------------- ##
9655
9656 # Be Bourne compatible
9657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9658   emulate sh
9659   NULLCMD=:
9660   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9661   # is contrary to our usage.  Disable this feature.
9662   alias -g '${1+"$@"}'='"$@"'
9663 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9664   set -o posix
9665 fi
9666 DUALCASE=1; export DUALCASE # for MKS sh
9667
9668 # Support unset when possible.
9669 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9670   as_unset=unset
9671 else
9672   as_unset=false
9673 fi
9674
9675
9676 # Work around bugs in pre-3.0 UWIN ksh.
9677 $as_unset ENV MAIL MAILPATH
9678 PS1='$ '
9679 PS2='> '
9680 PS4='+ '
9681
9682 # NLS nuisances.
9683 for as_var in \
9684   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9685   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9686   LC_TELEPHONE LC_TIME
9687 do
9688   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9689     eval $as_var=C; export $as_var
9690   else
9691     $as_unset $as_var
9692   fi
9693 done
9694
9695 # Required to use basename.
9696 if expr a : '\(a\)' >/dev/null 2>&1; then
9697   as_expr=expr
9698 else
9699   as_expr=false
9700 fi
9701
9702 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9703   as_basename=basename
9704 else
9705   as_basename=false
9706 fi
9707
9708
9709 # Name of the executable.
9710 as_me=`$as_basename "$0" ||
9711 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9712          X"$0" : 'X\(//\)$' \| \
9713          X"$0" : 'X\(/\)$' \| \
9714          .     : '\(.\)' 2>/dev/null ||
9715 echo X/"$0" |
9716     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9717           /^X\/\(\/\/\)$/{ s//\1/; q; }
9718           /^X\/\(\/\).*/{ s//\1/; q; }
9719           s/.*/./; q'`
9720
9721
9722 # PATH needs CR, and LINENO needs CR and PATH.
9723 # Avoid depending upon Character Ranges.
9724 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9725 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9726 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9727 as_cr_digits='0123456789'
9728 as_cr_alnum=$as_cr_Letters$as_cr_digits
9729
9730 # The user is always right.
9731 if test "${PATH_SEPARATOR+set}" != set; then
9732   echo "#! /bin/sh" >conf$$.sh
9733   echo  "exit 0"   >>conf$$.sh
9734   chmod +x conf$$.sh
9735   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9736     PATH_SEPARATOR=';'
9737   else
9738     PATH_SEPARATOR=:
9739   fi
9740   rm -f conf$$.sh
9741 fi
9742
9743
9744   as_lineno_1=$LINENO
9745   as_lineno_2=$LINENO
9746   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9747   test "x$as_lineno_1" != "x$as_lineno_2" &&
9748   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
9749   # Find who we are.  Look in the path if we contain no path at all
9750   # relative or not.
9751   case $0 in
9752     *[\\/]* ) as_myself=$0 ;;
9753     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9755 do
9756   IFS=$as_save_IFS
9757   test -z "$as_dir" && as_dir=.
9758   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9759 done
9760
9761        ;;
9762   esac
9763   # We did not find ourselves, most probably we were run as `sh COMMAND'
9764   # in which case we are not to be found in the path.
9765   if test "x$as_myself" = x; then
9766     as_myself=$0
9767   fi
9768   if test ! -f "$as_myself"; then
9769     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9770 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9771    { (exit 1); exit 1; }; }
9772   fi
9773   case $CONFIG_SHELL in
9774   '')
9775     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9777 do
9778   IFS=$as_save_IFS
9779   test -z "$as_dir" && as_dir=.
9780   for as_base in sh bash ksh sh5; do
9781          case $as_dir in
9782          /*)
9783            if ("$as_dir/$as_base" -c '
9784   as_lineno_1=$LINENO
9785   as_lineno_2=$LINENO
9786   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9787   test "x$as_lineno_1" != "x$as_lineno_2" &&
9788   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
9789              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9790              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9791              CONFIG_SHELL=$as_dir/$as_base
9792              export CONFIG_SHELL
9793              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9794            fi;;
9795          esac
9796        done
9797 done
9798 ;;
9799   esac
9800
9801   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9802   # uniformly replaced by the line number.  The first 'sed' inserts a
9803   # line-number line before each line; the second 'sed' does the real
9804   # work.  The second script uses 'N' to pair each line-number line
9805   # with the numbered line, and appends trailing '-' during
9806   # substitution so that $LINENO is not a special case at line end.
9807   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9808   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
9809   sed '=' <$as_myself |
9810     sed '
9811       N
9812       s,$,-,
9813       : loop
9814       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9815       t loop
9816       s,-$,,
9817       s,^['$as_cr_digits']*\n,,
9818     ' >$as_me.lineno &&
9819   chmod +x $as_me.lineno ||
9820     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9821 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9822    { (exit 1); exit 1; }; }
9823
9824   # Don't try to exec as it changes $[0], causing all sort of problems
9825   # (the dirname of $[0] is not the place where we might find the
9826   # original and so on.  Autoconf is especially sensible to this).
9827   . ./$as_me.lineno
9828   # Exit status is that of the last command.
9829   exit
9830 }
9831
9832
9833 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9834   *c*,-n*) ECHO_N= ECHO_C='
9835 ' ECHO_T='      ' ;;
9836   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9837   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
9838 esac
9839
9840 if expr a : '\(a\)' >/dev/null 2>&1; then
9841   as_expr=expr
9842 else
9843   as_expr=false
9844 fi
9845
9846 rm -f conf$$ conf$$.exe conf$$.file
9847 echo >conf$$.file
9848 if ln -s conf$$.file conf$$ 2>/dev/null; then
9849   # We could just check for DJGPP; but this test a) works b) is more generic
9850   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9851   if test -f conf$$.exe; then
9852     # Don't use ln at all; we don't have any links
9853     as_ln_s='cp -p'
9854   else
9855     as_ln_s='ln -s'
9856   fi
9857 elif ln conf$$.file conf$$ 2>/dev/null; then
9858   as_ln_s=ln
9859 else
9860   as_ln_s='cp -p'
9861 fi
9862 rm -f conf$$ conf$$.exe conf$$.file
9863
9864 if mkdir -p . 2>/dev/null; then
9865   as_mkdir_p=:
9866 else
9867   test -d ./-p && rmdir ./-p
9868   as_mkdir_p=false
9869 fi
9870
9871 as_executable_p="test -f"
9872
9873 # Sed expression to map a string onto a valid CPP name.
9874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9875
9876 # Sed expression to map a string onto a valid variable name.
9877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9878
9879
9880 # IFS
9881 # We need space, tab and new line, in precisely that order.
9882 as_nl='
9883 '
9884 IFS="   $as_nl"
9885
9886 # CDPATH.
9887 $as_unset CDPATH
9888
9889 exec 6>&1
9890
9891 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9892 # report actual input values of CONFIG_FILES etc. instead of their
9893 # values after options handling.  Logging --version etc. is OK.
9894 exec 5>>config.log
9895 {
9896   echo
9897   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9898 ## Running $as_me. ##
9899 _ASBOX
9900 } >&5
9901 cat >&5 <<_CSEOF
9902
9903 This file was extended by fmit $as_me 0.97.7, which was
9904 generated by GNU Autoconf 2.59.  Invocation command line was
9905
9906   CONFIG_FILES    = $CONFIG_FILES
9907   CONFIG_HEADERS  = $CONFIG_HEADERS
9908   CONFIG_LINKS    = $CONFIG_LINKS
9909   CONFIG_COMMANDS = $CONFIG_COMMANDS
9910   $ $0 $@
9911
9912 _CSEOF
9913 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9914 echo >&5
9915 _ACEOF
9916
9917 # Files that config.status was made for.
9918 if test -n "$ac_config_files"; then
9919   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9920 fi
9921
9922 if test -n "$ac_config_headers"; then
9923   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9924 fi
9925
9926 if test -n "$ac_config_links"; then
9927   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9928 fi
9929
9930 if test -n "$ac_config_commands"; then
9931   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9932 fi
9933
9934 cat >>$CONFIG_STATUS <<\_ACEOF
9935
9936 ac_cs_usage="\
9937 \`$as_me' instantiates files from templates according to the
9938 current configuration.
9939
9940 Usage: $0 [OPTIONS] [FILE]...
9941
9942   -h, --help       print this help, then exit
9943   -V, --version    print version number, then exit
9944   -q, --quiet      do not print progress messages
9945   -d, --debug      don't remove temporary files
9946       --recheck    update $as_me by reconfiguring in the same conditions
9947   --file=FILE[:TEMPLATE]
9948                    instantiate the configuration file FILE
9949   --header=FILE[:TEMPLATE]
9950                    instantiate the configuration header FILE
9951
9952 Configuration files:
9953 $config_files
9954
9955 Configuration headers:
9956 $config_headers
9957
9958 Configuration commands:
9959 $config_commands
9960
9961 Report bugs to <bug-autoconf@gnu.org>."
9962 _ACEOF
9963
9964 cat >>$CONFIG_STATUS <<_ACEOF
9965 ac_cs_version="\\
9966 fmit config.status 0.97.7
9967 configured by $0, generated by GNU Autoconf 2.59,
9968   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9969
9970 Copyright (C) 2003 Free Software Foundation, Inc.
9971 This config.status script is free software; the Free Software Foundation
9972 gives unlimited permission to copy, distribute and modify it."
9973 srcdir=$srcdir
9974 INSTALL="$INSTALL"
9975 _ACEOF
9976
9977 cat >>$CONFIG_STATUS <<\_ACEOF
9978 # If no file are specified by the user, then we need to provide default
9979 # value.  By we need to know if files were specified by the user.
9980 ac_need_defaults=:
9981 while test $# != 0
9982 do
9983   case $1 in
9984   --*=*)
9985     ac_option=`expr "x$1" : 'x\([^=]*\)='`
9986     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9987     ac_shift=:
9988     ;;
9989   -*)
9990     ac_option=$1
9991     ac_optarg=$2
9992     ac_shift=shift
9993     ;;
9994   *) # This is not an option, so the user has probably given explicit
9995      # arguments.
9996      ac_option=$1
9997      ac_need_defaults=false;;
9998   esac
9999
10000   case $ac_option in
10001   # Handling of the options.
10002 _ACEOF
10003 cat >>$CONFIG_STATUS <<\_ACEOF
10004   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10005     ac_cs_recheck=: ;;
10006   --version | --vers* | -V )
10007     echo "$ac_cs_version"; exit 0 ;;
10008   --he | --h)
10009     # Conflict between --help and --header
10010     { { echo "$as_me:$LINENO: error: ambiguous option: $1
10011 Try \`$0 --help' for more information." >&5
10012 echo "$as_me: error: ambiguous option: $1
10013 Try \`$0 --help' for more information." >&2;}
10014    { (exit 1); exit 1; }; };;
10015   --help | --hel | -h )
10016     echo "$ac_cs_usage"; exit 0 ;;
10017   --debug | --d* | -d )
10018     debug=: ;;
10019   --file | --fil | --fi | --f )
10020     $ac_shift
10021     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
10022     ac_need_defaults=false;;
10023   --header | --heade | --head | --hea )
10024     $ac_shift
10025     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
10026     ac_need_defaults=false;;
10027   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10028   | -silent | --silent | --silen | --sile | --sil | --si | --s)
10029     ac_cs_silent=: ;;
10030
10031   # This is an error.
10032   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10033 Try \`$0 --help' for more information." >&5
10034 echo "$as_me: error: unrecognized option: $1
10035 Try \`$0 --help' for more information." >&2;}
10036    { (exit 1); exit 1; }; } ;;
10037
10038   *) ac_config_targets="$ac_config_targets $1" ;;
10039
10040   esac
10041   shift
10042 done
10043
10044 ac_configure_extra_args=
10045
10046 if $ac_cs_silent; then
10047   exec 6>/dev/null
10048   ac_configure_extra_args="$ac_configure_extra_args --silent"
10049 fi
10050
10051 _ACEOF
10052 cat >>$CONFIG_STATUS <<_ACEOF
10053 if \$ac_cs_recheck; then
10054   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
10055   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10056 fi
10057
10058 _ACEOF
10059
10060 cat >>$CONFIG_STATUS <<_ACEOF
10061 #
10062 # INIT-COMMANDS section.
10063 #
10064
10065 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
10066
10067 _ACEOF
10068
10069
10070
10071 cat >>$CONFIG_STATUS <<\_ACEOF
10072 for ac_config_target in $ac_config_targets
10073 do
10074   case "$ac_config_target" in
10075   # Handling of arguments.
10076   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10077   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
10078   "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
10079   "libs/CppAddons/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/CppAddons/Makefile" ;;
10080   "libs/Music/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Music/Makefile" ;;
10081   "ui/Makefile" ) CONFIG_FILES="$CONFIG_FILES ui/Makefile" ;;
10082   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10083   "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
10084   "tr/Makefile" ) CONFIG_FILES="$CONFIG_FILES tr/Makefile" ;;
10085   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
10086   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10087   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10089    { (exit 1); exit 1; }; };;
10090   esac
10091 done
10092
10093 # If the user did not use the arguments to specify the items to instantiate,
10094 # then the envvar interface is used.  Set only those that are not.
10095 # We use the long form for the default assignment because of an extremely
10096 # bizarre bug on SunOS 4.1.3.
10097 if $ac_need_defaults; then
10098   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10099   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10100   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10101 fi
10102
10103 # Have a temporary directory for convenience.  Make it in the build tree
10104 # simply because there is no reason to put it here, and in addition,
10105 # creating and moving files from /tmp can sometimes cause problems.
10106 # Create a temporary directory, and hook for its removal unless debugging.
10107 $debug ||
10108 {
10109   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10110   trap '{ (exit 1); exit 1; }' 1 2 13 15
10111 }
10112
10113 # Create a (secure) tmp directory for tmp files.
10114
10115 {
10116   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
10117   test -n "$tmp" && test -d "$tmp"
10118 }  ||
10119 {
10120   tmp=./confstat$$-$RANDOM
10121   (umask 077 && mkdir $tmp)
10122 } ||
10123 {
10124    echo "$me: cannot create a temporary directory in ." >&2
10125    { (exit 1); exit 1; }
10126 }
10127
10128 _ACEOF
10129
10130 cat >>$CONFIG_STATUS <<_ACEOF
10131
10132 #
10133 # CONFIG_FILES section.
10134 #
10135
10136 # No need to generate the scripts if there are no CONFIG_FILES.
10137 # This happens for instance when ./config.status config.h
10138 if test -n "\$CONFIG_FILES"; then
10139   # Protect against being on the right side of a sed subst in config.status.
10140   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10141    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10142 s,@SHELL@,$SHELL,;t t
10143 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10144 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10145 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10146 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10147 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10148 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10149 s,@exec_prefix@,$exec_prefix,;t t
10150 s,@prefix@,$prefix,;t t
10151 s,@program_transform_name@,$program_transform_name,;t t
10152 s,@bindir@,$bindir,;t t
10153 s,@sbindir@,$sbindir,;t t
10154 s,@libexecdir@,$libexecdir,;t t
10155 s,@datadir@,$datadir,;t t
10156 s,@sysconfdir@,$sysconfdir,;t t
10157 s,@sharedstatedir@,$sharedstatedir,;t t
10158 s,@localstatedir@,$localstatedir,;t t
10159 s,@libdir@,$libdir,;t t
10160 s,@includedir@,$includedir,;t t
10161 s,@oldincludedir@,$oldincludedir,;t t
10162 s,@infodir@,$infodir,;t t
10163 s,@mandir@,$mandir,;t t
10164 s,@build_alias@,$build_alias,;t t
10165 s,@host_alias@,$host_alias,;t t
10166 s,@target_alias@,$target_alias,;t t
10167 s,@DEFS@,$DEFS,;t t
10168 s,@ECHO_C@,$ECHO_C,;t t
10169 s,@ECHO_N@,$ECHO_N,;t t
10170 s,@ECHO_T@,$ECHO_T,;t t
10171 s,@LIBS@,$LIBS,;t t
10172 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10173 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10174 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10175 s,@CYGPATH_W@,$CYGPATH_W,;t t
10176 s,@PACKAGE@,$PACKAGE,;t t
10177 s,@VERSION@,$VERSION,;t t
10178 s,@ACLOCAL@,$ACLOCAL,;t t
10179 s,@AUTOCONF@,$AUTOCONF,;t t
10180 s,@AUTOMAKE@,$AUTOMAKE,;t t
10181 s,@AUTOHEADER@,$AUTOHEADER,;t t
10182 s,@MAKEINFO@,$MAKEINFO,;t t
10183 s,@install_sh@,$install_sh,;t t
10184 s,@STRIP@,$STRIP,;t t
10185 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10186 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
10187 s,@mkdir_p@,$mkdir_p,;t t
10188 s,@AWK@,$AWK,;t t
10189 s,@SET_MAKE@,$SET_MAKE,;t t
10190 s,@am__leading_dot@,$am__leading_dot,;t t
10191 s,@AMTAR@,$AMTAR,;t t
10192 s,@am__tar@,$am__tar,;t t
10193 s,@am__untar@,$am__untar,;t t
10194 s,@ac_prefix@,$ac_prefix,;t t
10195 s,@RANLIB@,$RANLIB,;t t
10196 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10197 s,@CC@,$CC,;t t
10198 s,@CFLAGS@,$CFLAGS,;t t
10199 s,@LDFLAGS@,$LDFLAGS,;t t
10200 s,@CPPFLAGS@,$CPPFLAGS,;t t
10201 s,@ac_ct_CC@,$ac_ct_CC,;t t
10202 s,@EXEEXT@,$EXEEXT,;t t
10203 s,@OBJEXT@,$OBJEXT,;t t
10204 s,@DEPDIR@,$DEPDIR,;t t
10205 s,@am__include@,$am__include,;t t
10206 s,@am__quote@,$am__quote,;t t
10207 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
10208 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
10209 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
10210 s,@CCDEPMODE@,$CCDEPMODE,;t t
10211 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
10212 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
10213 s,@CPP@,$CPP,;t t
10214 s,@CXX@,$CXX,;t t
10215 s,@CXXFLAGS@,$CXXFLAGS,;t t
10216 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
10217 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
10218 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
10219 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
10220 s,@CXXCPP@,$CXXCPP,;t t
10221 s,@EGREP@,$EGREP,;t t
10222 s,@X_CFLAGS@,$X_CFLAGS,;t t
10223 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
10224 s,@X_LIBS@,$X_LIBS,;t t
10225 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
10226 s,@QT_CXXFLAGS@,$QT_CXXFLAGS,;t t
10227 s,@QT_DIR@,$QT_DIR,;t t
10228 s,@QT_LIBS@,$QT_LIBS,;t t
10229 s,@QT_UIC@,$QT_UIC,;t t
10230 s,@QT_MOC@,$QT_MOC,;t t
10231 s,@GL_CFLAGS@,$GL_CFLAGS,;t t
10232 s,@GL_LIBS@,$GL_LIBS,;t t
10233 s,@ALSA_CFLAGS@,$ALSA_CFLAGS,;t t
10234 s,@ALSA_LIBS@,$ALSA_LIBS,;t t
10235 s,@LIBOBJS@,$LIBOBJS,;t t
10236 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10237 CEOF
10238
10239 _ACEOF
10240
10241   cat >>$CONFIG_STATUS <<\_ACEOF
10242   # Split the substitutions into bite-sized pieces for seds with
10243   # small command number limits, like on Digital OSF/1 and HP-UX.
10244   ac_max_sed_lines=48
10245   ac_sed_frag=1 # Number of current file.
10246   ac_beg=1 # First line for current file.
10247   ac_end=$ac_max_sed_lines # Line after last line for current file.
10248   ac_more_lines=:
10249   ac_sed_cmds=
10250   while $ac_more_lines; do
10251     if test $ac_beg -gt 1; then
10252       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10253     else
10254       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10255     fi
10256     if test ! -s $tmp/subs.frag; then
10257       ac_more_lines=false
10258     else
10259       # The purpose of the label and of the branching condition is to
10260       # speed up the sed processing (if there are no `@' at all, there
10261       # is no need to browse any of the substitutions).
10262       # These are the two extra sed commands mentioned above.
10263       (echo ':t
10264   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10265       if test -z "$ac_sed_cmds"; then
10266         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10267       else
10268         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10269       fi
10270       ac_sed_frag=`expr $ac_sed_frag + 1`
10271       ac_beg=$ac_end
10272       ac_end=`expr $ac_end + $ac_max_sed_lines`
10273     fi
10274   done
10275   if test -z "$ac_sed_cmds"; then
10276     ac_sed_cmds=cat
10277   fi
10278 fi # test -n "$CONFIG_FILES"
10279
10280 _ACEOF
10281 cat >>$CONFIG_STATUS <<\_ACEOF
10282 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10283   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10284   case $ac_file in
10285   - | *:- | *:-:* ) # input from stdin
10286         cat >$tmp/stdin
10287         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10288         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10289   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10290         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10291   * )   ac_file_in=$ac_file.in ;;
10292   esac
10293
10294   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10295   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10296 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10297          X"$ac_file" : 'X\(//\)[^/]' \| \
10298          X"$ac_file" : 'X\(//\)$' \| \
10299          X"$ac_file" : 'X\(/\)' \| \
10300          .     : '\(.\)' 2>/dev/null ||
10301 echo X"$ac_file" |
10302     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10303           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10304           /^X\(\/\/\)$/{ s//\1/; q; }
10305           /^X\(\/\).*/{ s//\1/; q; }
10306           s/.*/./; q'`
10307   { if $as_mkdir_p; then
10308     mkdir -p "$ac_dir"
10309   else
10310     as_dir="$ac_dir"
10311     as_dirs=
10312     while test ! -d "$as_dir"; do
10313       as_dirs="$as_dir $as_dirs"
10314       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10315 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10316          X"$as_dir" : 'X\(//\)[^/]' \| \
10317          X"$as_dir" : 'X\(//\)$' \| \
10318          X"$as_dir" : 'X\(/\)' \| \
10319          .     : '\(.\)' 2>/dev/null ||
10320 echo X"$as_dir" |
10321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10322           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10323           /^X\(\/\/\)$/{ s//\1/; q; }
10324           /^X\(\/\).*/{ s//\1/; q; }
10325           s/.*/./; q'`
10326     done
10327     test ! -n "$as_dirs" || mkdir $as_dirs
10328   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10329 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10330    { (exit 1); exit 1; }; }; }
10331
10332   ac_builddir=.
10333
10334 if test "$ac_dir" != .; then
10335   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10336   # A "../" for each directory in $ac_dir_suffix.
10337   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10338 else
10339   ac_dir_suffix= ac_top_builddir=
10340 fi
10341
10342 case $srcdir in
10343   .)  # No --srcdir option.  We are building in place.
10344     ac_srcdir=.
10345     if test -z "$ac_top_builddir"; then
10346        ac_top_srcdir=.
10347     else
10348        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10349     fi ;;
10350   [\\/]* | ?:[\\/]* )  # Absolute path.
10351     ac_srcdir=$srcdir$ac_dir_suffix;
10352     ac_top_srcdir=$srcdir ;;
10353   *) # Relative path.
10354     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10355     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10356 esac
10357
10358 # Do not use `cd foo && pwd` to compute absolute paths, because
10359 # the directories may not exist.
10360 case `pwd` in
10361 .) ac_abs_builddir="$ac_dir";;
10362 *)
10363   case "$ac_dir" in
10364   .) ac_abs_builddir=`pwd`;;
10365   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10366   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10367   esac;;
10368 esac
10369 case $ac_abs_builddir in
10370 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10371 *)
10372   case ${ac_top_builddir}. in
10373   .) ac_abs_top_builddir=$ac_abs_builddir;;
10374   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10375   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10376   esac;;
10377 esac
10378 case $ac_abs_builddir in
10379 .) ac_abs_srcdir=$ac_srcdir;;
10380 *)
10381   case $ac_srcdir in
10382   .) ac_abs_srcdir=$ac_abs_builddir;;
10383   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10384   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10385   esac;;
10386 esac
10387 case $ac_abs_builddir in
10388 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10389 *)
10390   case $ac_top_srcdir in
10391   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10392   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10393   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10394   esac;;
10395 esac
10396
10397
10398   case $INSTALL in
10399   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10400   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10401   esac
10402
10403   if test x"$ac_file" != x-; then
10404     { echo "$as_me:$LINENO: creating $ac_file" >&5
10405 echo "$as_me: creating $ac_file" >&6;}
10406     rm -f "$ac_file"
10407   fi
10408   # Let's still pretend it is `configure' which instantiates (i.e., don't
10409   # use $as_me), people would be surprised to read:
10410   #    /* config.h.  Generated by config.status.  */
10411   if test x"$ac_file" = x-; then
10412     configure_input=
10413   else
10414     configure_input="$ac_file.  "
10415   fi
10416   configure_input=$configure_input"Generated from `echo $ac_file_in |
10417                                      sed 's,.*/,,'` by configure."
10418
10419   # First look for the input files in the build tree, otherwise in the
10420   # src tree.
10421   ac_file_inputs=`IFS=:
10422     for f in $ac_file_in; do
10423       case $f in
10424       -) echo $tmp/stdin ;;
10425       [\\/$]*)
10426          # Absolute (can't be DOS-style, as IFS=:)
10427          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10428 echo "$as_me: error: cannot find input file: $f" >&2;}
10429    { (exit 1); exit 1; }; }
10430          echo "$f";;
10431       *) # Relative
10432          if test -f "$f"; then
10433            # Build tree
10434            echo "$f"
10435          elif test -f "$srcdir/$f"; then
10436            # Source tree
10437            echo "$srcdir/$f"
10438          else
10439            # /dev/null tree
10440            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10441 echo "$as_me: error: cannot find input file: $f" >&2;}
10442    { (exit 1); exit 1; }; }
10443          fi;;
10444       esac
10445     done` || { (exit 1); exit 1; }
10446 _ACEOF
10447 cat >>$CONFIG_STATUS <<_ACEOF
10448   sed "$ac_vpsub
10449 $extrasub
10450 _ACEOF
10451 cat >>$CONFIG_STATUS <<\_ACEOF
10452 :t
10453 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10454 s,@configure_input@,$configure_input,;t t
10455 s,@srcdir@,$ac_srcdir,;t t
10456 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10457 s,@top_srcdir@,$ac_top_srcdir,;t t
10458 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10459 s,@builddir@,$ac_builddir,;t t
10460 s,@abs_builddir@,$ac_abs_builddir,;t t
10461 s,@top_builddir@,$ac_top_builddir,;t t
10462 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10463 s,@INSTALL@,$ac_INSTALL,;t t
10464 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10465   rm -f $tmp/stdin
10466   if test x"$ac_file" != x-; then
10467     mv $tmp/out $ac_file
10468   else
10469     cat $tmp/out
10470     rm -f $tmp/out
10471   fi
10472
10473 done
10474 _ACEOF
10475 cat >>$CONFIG_STATUS <<\_ACEOF
10476
10477 #
10478 # CONFIG_HEADER section.
10479 #
10480
10481 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10482 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10483 #
10484 # ac_d sets the value in "#define NAME VALUE" lines.
10485 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
10486 ac_dB='[         ].*$,\1#\2'
10487 ac_dC=' '
10488 ac_dD=',;t'
10489 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10490 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10491 ac_uB='$,\1#\2define\3'
10492 ac_uC=' '
10493 ac_uD=',;t'
10494
10495 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10496   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10497   case $ac_file in
10498   - | *:- | *:-:* ) # input from stdin
10499         cat >$tmp/stdin
10500         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10501         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10502   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10503         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10504   * )   ac_file_in=$ac_file.in ;;
10505   esac
10506
10507   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10508 echo "$as_me: creating $ac_file" >&6;}
10509
10510   # First look for the input files in the build tree, otherwise in the
10511   # src tree.
10512   ac_file_inputs=`IFS=:
10513     for f in $ac_file_in; do
10514       case $f in
10515       -) echo $tmp/stdin ;;
10516       [\\/$]*)
10517          # Absolute (can't be DOS-style, as IFS=:)
10518          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10519 echo "$as_me: error: cannot find input file: $f" >&2;}
10520    { (exit 1); exit 1; }; }
10521          # Do quote $f, to prevent DOS paths from being IFS'd.
10522          echo "$f";;
10523       *) # Relative
10524          if test -f "$f"; then
10525            # Build tree
10526            echo "$f"
10527          elif test -f "$srcdir/$f"; then
10528            # Source tree
10529            echo "$srcdir/$f"
10530          else
10531            # /dev/null tree
10532            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10533 echo "$as_me: error: cannot find input file: $f" >&2;}
10534    { (exit 1); exit 1; }; }
10535          fi;;
10536       esac
10537     done` || { (exit 1); exit 1; }
10538   # Remove the trailing spaces.
10539   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10540
10541 _ACEOF
10542
10543 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10544 # `conftest.undefs', that substitutes the proper values into
10545 # config.h.in to produce config.h.  The first handles `#define'
10546 # templates, and the second `#undef' templates.
10547 # And first: Protect against being on the right side of a sed subst in
10548 # config.status.  Protect against being in an unquoted here document
10549 # in config.status.
10550 rm -f conftest.defines conftest.undefs
10551 # Using a here document instead of a string reduces the quoting nightmare.
10552 # Putting comments in sed scripts is not portable.
10553 #
10554 # `end' is used to avoid that the second main sed command (meant for
10555 # 0-ary CPP macros) applies to n-ary macro definitions.
10556 # See the Autoconf documentation for `clear'.
10557 cat >confdef2sed.sed <<\_ACEOF
10558 s/[\\&,]/\\&/g
10559 s,[\\$`],\\&,g
10560 t clear
10561 : clear
10562 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10563 t end
10564 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10565 : end
10566 _ACEOF
10567 # If some macros were called several times there might be several times
10568 # the same #defines, which is useless.  Nevertheless, we may not want to
10569 # sort them, since we want the *last* AC-DEFINE to be honored.
10570 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10571 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10572 rm -f confdef2sed.sed
10573
10574 # This sed command replaces #undef with comments.  This is necessary, for
10575 # example, in the case of _POSIX_SOURCE, which is predefined and required
10576 # on some systems where configure will not decide to define it.
10577 cat >>conftest.undefs <<\_ACEOF
10578 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10579 _ACEOF
10580
10581 # Break up conftest.defines because some shells have a limit on the size
10582 # of here documents, and old seds have small limits too (100 cmds).
10583 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10584 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10585 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10586 echo '  :' >>$CONFIG_STATUS
10587 rm -f conftest.tail
10588 while grep . conftest.defines >/dev/null
10589 do
10590   # Write a limited-size here document to $tmp/defines.sed.
10591   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10592   # Speed up: don't consider the non `#define' lines.
10593   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10594   # Work around the forget-to-reset-the-flag bug.
10595   echo 't clr' >>$CONFIG_STATUS
10596   echo ': clr' >>$CONFIG_STATUS
10597   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10598   echo 'CEOF
10599   sed -f $tmp/defines.sed $tmp/in >$tmp/out
10600   rm -f $tmp/in
10601   mv $tmp/out $tmp/in
10602 ' >>$CONFIG_STATUS
10603   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10604   rm -f conftest.defines
10605   mv conftest.tail conftest.defines
10606 done
10607 rm -f conftest.defines
10608 echo '  fi # grep' >>$CONFIG_STATUS
10609 echo >>$CONFIG_STATUS
10610
10611 # Break up conftest.undefs because some shells have a limit on the size
10612 # of here documents, and old seds have small limits too (100 cmds).
10613 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
10614 rm -f conftest.tail
10615 while grep . conftest.undefs >/dev/null
10616 do
10617   # Write a limited-size here document to $tmp/undefs.sed.
10618   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10619   # Speed up: don't consider the non `#undef'
10620   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10621   # Work around the forget-to-reset-the-flag bug.
10622   echo 't clr' >>$CONFIG_STATUS
10623   echo ': clr' >>$CONFIG_STATUS
10624   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10625   echo 'CEOF
10626   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10627   rm -f $tmp/in
10628   mv $tmp/out $tmp/in
10629 ' >>$CONFIG_STATUS
10630   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10631   rm -f conftest.undefs
10632   mv conftest.tail conftest.undefs
10633 done
10634 rm -f conftest.undefs
10635
10636 cat >>$CONFIG_STATUS <<\_ACEOF
10637   # Let's still pretend it is `configure' which instantiates (i.e., don't
10638   # use $as_me), people would be surprised to read:
10639   #    /* config.h.  Generated by config.status.  */
10640   if test x"$ac_file" = x-; then
10641     echo "/* Generated by configure.  */" >$tmp/config.h
10642   else
10643     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10644   fi
10645   cat $tmp/in >>$tmp/config.h
10646   rm -f $tmp/in
10647   if test x"$ac_file" != x-; then
10648     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10649       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10650 echo "$as_me: $ac_file is unchanged" >&6;}
10651     else
10652       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10654          X"$ac_file" : 'X\(//\)[^/]' \| \
10655          X"$ac_file" : 'X\(//\)$' \| \
10656          X"$ac_file" : 'X\(/\)' \| \
10657          .     : '\(.\)' 2>/dev/null ||
10658 echo X"$ac_file" |
10659     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10660           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10661           /^X\(\/\/\)$/{ s//\1/; q; }
10662           /^X\(\/\).*/{ s//\1/; q; }
10663           s/.*/./; q'`
10664       { if $as_mkdir_p; then
10665     mkdir -p "$ac_dir"
10666   else
10667     as_dir="$ac_dir"
10668     as_dirs=
10669     while test ! -d "$as_dir"; do
10670       as_dirs="$as_dir $as_dirs"
10671       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10672 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10673          X"$as_dir" : 'X\(//\)[^/]' \| \
10674          X"$as_dir" : 'X\(//\)$' \| \
10675          X"$as_dir" : 'X\(/\)' \| \
10676          .     : '\(.\)' 2>/dev/null ||
10677 echo X"$as_dir" |
10678     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10679           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10680           /^X\(\/\/\)$/{ s//\1/; q; }
10681           /^X\(\/\).*/{ s//\1/; q; }
10682           s/.*/./; q'`
10683     done
10684     test ! -n "$as_dirs" || mkdir $as_dirs
10685   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10686 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10687    { (exit 1); exit 1; }; }; }
10688
10689       rm -f $ac_file
10690       mv $tmp/config.h $ac_file
10691     fi
10692   else
10693     cat $tmp/config.h
10694     rm -f $tmp/config.h
10695   fi
10696 # Compute $ac_file's index in $config_headers.
10697 _am_stamp_count=1
10698 for _am_header in $config_headers :; do
10699   case $_am_header in
10700     $ac_file | $ac_file:* )
10701       break ;;
10702     * )
10703       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10704   esac
10705 done
10706 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
10707 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10708          X$ac_file : 'X\(//\)[^/]' \| \
10709          X$ac_file : 'X\(//\)$' \| \
10710          X$ac_file : 'X\(/\)' \| \
10711          .     : '\(.\)' 2>/dev/null ||
10712 echo X$ac_file |
10713     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10714           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10715           /^X\(\/\/\)$/{ s//\1/; q; }
10716           /^X\(\/\).*/{ s//\1/; q; }
10717           s/.*/./; q'`/stamp-h$_am_stamp_count
10718 done
10719 _ACEOF
10720 cat >>$CONFIG_STATUS <<\_ACEOF
10721
10722 #
10723 # CONFIG_COMMANDS section.
10724 #
10725 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10726   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10727   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10728   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10729 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10730          X"$ac_dest" : 'X\(//\)[^/]' \| \
10731          X"$ac_dest" : 'X\(//\)$' \| \
10732          X"$ac_dest" : 'X\(/\)' \| \
10733          .     : '\(.\)' 2>/dev/null ||
10734 echo X"$ac_dest" |
10735     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10736           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10737           /^X\(\/\/\)$/{ s//\1/; q; }
10738           /^X\(\/\).*/{ s//\1/; q; }
10739           s/.*/./; q'`
10740   { if $as_mkdir_p; then
10741     mkdir -p "$ac_dir"
10742   else
10743     as_dir="$ac_dir"
10744     as_dirs=
10745     while test ! -d "$as_dir"; do
10746       as_dirs="$as_dir $as_dirs"
10747       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10749          X"$as_dir" : 'X\(//\)[^/]' \| \
10750          X"$as_dir" : 'X\(//\)$' \| \
10751          X"$as_dir" : 'X\(/\)' \| \
10752          .     : '\(.\)' 2>/dev/null ||
10753 echo X"$as_dir" |
10754     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10755           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10756           /^X\(\/\/\)$/{ s//\1/; q; }
10757           /^X\(\/\).*/{ s//\1/; q; }
10758           s/.*/./; q'`
10759     done
10760     test ! -n "$as_dirs" || mkdir $as_dirs
10761   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10763    { (exit 1); exit 1; }; }; }
10764
10765   ac_builddir=.
10766
10767 if test "$ac_dir" != .; then
10768   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10769   # A "../" for each directory in $ac_dir_suffix.
10770   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10771 else
10772   ac_dir_suffix= ac_top_builddir=
10773 fi
10774
10775 case $srcdir in
10776   .)  # No --srcdir option.  We are building in place.
10777     ac_srcdir=.
10778     if test -z "$ac_top_builddir"; then
10779        ac_top_srcdir=.
10780     else
10781        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10782     fi ;;
10783   [\\/]* | ?:[\\/]* )  # Absolute path.
10784     ac_srcdir=$srcdir$ac_dir_suffix;
10785     ac_top_srcdir=$srcdir ;;
10786   *) # Relative path.
10787     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10788     ac_top_srcdir=$ac_top_builddir$srcdir ;;
10789 esac
10790
10791 # Do not use `cd foo && pwd` to compute absolute paths, because
10792 # the directories may not exist.
10793 case `pwd` in
10794 .) ac_abs_builddir="$ac_dir";;
10795 *)
10796   case "$ac_dir" in
10797   .) ac_abs_builddir=`pwd`;;
10798   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
10799   *) ac_abs_builddir=`pwd`/"$ac_dir";;
10800   esac;;
10801 esac
10802 case $ac_abs_builddir in
10803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
10804 *)
10805   case ${ac_top_builddir}. in
10806   .) ac_abs_top_builddir=$ac_abs_builddir;;
10807   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
10808   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
10809   esac;;
10810 esac
10811 case $ac_abs_builddir in
10812 .) ac_abs_srcdir=$ac_srcdir;;
10813 *)
10814   case $ac_srcdir in
10815   .) ac_abs_srcdir=$ac_abs_builddir;;
10816   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
10817   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
10818   esac;;
10819 esac
10820 case $ac_abs_builddir in
10821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
10822 *)
10823   case $ac_top_srcdir in
10824   .) ac_abs_top_srcdir=$ac_abs_builddir;;
10825   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
10826   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
10827   esac;;
10828 esac
10829
10830
10831   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
10832 echo "$as_me: executing $ac_dest commands" >&6;}
10833   case $ac_dest in
10834     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10835   # Strip MF so we end up with the name of the file.
10836   mf=`echo "$mf" | sed -e 's/:.*$//'`
10837   # Check whether this is an Automake generated Makefile or not.
10838   # We used to match only the files named `Makefile.in', but
10839   # some people rename them; so instead we look at the file content.
10840   # Grep'ing the first line is not enough: some people post-process
10841   # each Makefile.in and add a new line on top of each file to say so.
10842   # So let's grep whole file.
10843   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10844     dirpart=`(dirname "$mf") 2>/dev/null ||
10845 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10846          X"$mf" : 'X\(//\)[^/]' \| \
10847          X"$mf" : 'X\(//\)$' \| \
10848          X"$mf" : 'X\(/\)' \| \
10849          .     : '\(.\)' 2>/dev/null ||
10850 echo X"$mf" |
10851     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10852           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10853           /^X\(\/\/\)$/{ s//\1/; q; }
10854           /^X\(\/\).*/{ s//\1/; q; }
10855           s/.*/./; q'`
10856   else
10857     continue
10858   fi
10859   # Extract the definition of DEPDIR, am__include, and am__quote
10860   # from the Makefile without running `make'.
10861   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10862   test -z "$DEPDIR" && continue
10863   am__include=`sed -n 's/^am__include = //p' < "$mf"`
10864   test -z "am__include" && continue
10865   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10866   # When using ansi2knr, U may be empty or an underscore; expand it
10867   U=`sed -n 's/^U = //p' < "$mf"`
10868   # Find all dependency output files, they are included files with
10869   # $(DEPDIR) in their names.  We invoke sed twice because it is the
10870   # simplest approach to changing $(DEPDIR) to its actual value in the
10871   # expansion.
10872   for file in `sed -n "
10873     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10874        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10875     # Make sure the directory exists.
10876     test -f "$dirpart/$file" && continue
10877     fdir=`(dirname "$file") 2>/dev/null ||
10878 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10879          X"$file" : 'X\(//\)[^/]' \| \
10880          X"$file" : 'X\(//\)$' \| \
10881          X"$file" : 'X\(/\)' \| \
10882          .     : '\(.\)' 2>/dev/null ||
10883 echo X"$file" |
10884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10885           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10886           /^X\(\/\/\)$/{ s//\1/; q; }
10887           /^X\(\/\).*/{ s//\1/; q; }
10888           s/.*/./; q'`
10889     { if $as_mkdir_p; then
10890     mkdir -p $dirpart/$fdir
10891   else
10892     as_dir=$dirpart/$fdir
10893     as_dirs=
10894     while test ! -d "$as_dir"; do
10895       as_dirs="$as_dir $as_dirs"
10896       as_dir=`(dirname "$as_dir") 2>/dev/null ||
10897 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10898          X"$as_dir" : 'X\(//\)[^/]' \| \
10899          X"$as_dir" : 'X\(//\)$' \| \
10900          X"$as_dir" : 'X\(/\)' \| \
10901          .     : '\(.\)' 2>/dev/null ||
10902 echo X"$as_dir" |
10903     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10904           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10905           /^X\(\/\/\)$/{ s//\1/; q; }
10906           /^X\(\/\).*/{ s//\1/; q; }
10907           s/.*/./; q'`
10908     done
10909     test ! -n "$as_dirs" || mkdir $as_dirs
10910   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
10911 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
10912    { (exit 1); exit 1; }; }; }
10913
10914     # echo "creating $dirpart/$file"
10915     echo '# dummy' > "$dirpart/$file"
10916   done
10917 done
10918  ;;
10919   esac
10920 done
10921 _ACEOF
10922
10923 cat >>$CONFIG_STATUS <<\_ACEOF
10924
10925 { (exit 0); exit 0; }
10926 _ACEOF
10927 chmod +x $CONFIG_STATUS
10928 ac_clean_files=$ac_clean_files_save
10929
10930
10931 # configure is writing to config.log, and then calls config.status.
10932 # config.status does its own redirection, appending to config.log.
10933 # Unfortunately, on DOS this fails, as config.log is still kept open
10934 # by configure, so config.status won't be able to write to it; its
10935 # output is simply discarded.  So we exec the FD to /dev/null,
10936 # effectively closing config.log, so it can be properly (re)opened and
10937 # appended to by config.status.  When coming back to configure, we
10938 # need to make the FD available again.
10939 if test "$no_create" != yes; then
10940   ac_cs_success=:
10941   ac_config_status_args=
10942   test "$silent" = yes &&
10943     ac_config_status_args="$ac_config_status_args --quiet"
10944   exec 5>/dev/null
10945   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10946   exec 5>>config.log
10947   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10948   # would make configure fail if this is the last instruction.
10949   $ac_cs_success || { (exit 1); exit 1; }
10950 fi
10951
10952
10953 echo ""
10954 echo "Now type 'make', followed by 'make install' as root."
10955 echo ""
10956