1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.59 for FULL-PACKAGE-NAME VERSION.
4@%:@
5@%:@ Report bugs to <BUG-REPORT-ADDRESS>.
6@%:@
7@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
8@%:@ This configure script is free software; the Free Software Foundation
9@%:@ gives unlimited permission to copy, distribute and modify it.
10## --------------------- ##
11## M4sh Initialization.  ##
12## --------------------- ##
13
14# Be Bourne compatible
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16  emulate sh
17  NULLCMD=:
18  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19  # is contrary to our usage.  Disable this feature.
20  alias -g '${1+"$@"}'='"$@"'
21elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22  set -o posix
23fi
24DUALCASE=1; export DUALCASE # for MKS sh
25
26# Support unset when possible.
27if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
28  as_unset=unset
29else
30  as_unset=false
31fi
32
33
34# Work around bugs in pre-3.0 UWIN ksh.
35$as_unset ENV MAIL MAILPATH
36PS1='$ '
37PS2='> '
38PS4='+ '
39
40# NLS nuisances.
41for as_var in \
42  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44  LC_TELEPHONE LC_TIME
45do
46  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47    eval $as_var=C; export $as_var
48  else
49    $as_unset $as_var
50  fi
51done
52
53# Required to use basename.
54if expr a : '\(a\)' >/dev/null 2>&1; then
55  as_expr=expr
56else
57  as_expr=false
58fi
59
60if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
61  as_basename=basename
62else
63  as_basename=false
64fi
65
66
67# Name of the executable.
68as_me=`$as_basename "$0" ||
69$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70	 X"$0" : 'X\(//\)$' \| \
71	 X"$0" : 'X\(/\)$' \| \
72	 .     : '\(.\)' 2>/dev/null ||
73echo X/"$0" |
74    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
76  	  /^X\/\(\/\).*/{ s//\1/; q; }
77  	  s/.*/./; q'`
78
79
80# PATH needs CR, and LINENO needs CR and PATH.
81# Avoid depending upon Character Ranges.
82as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85as_cr_digits='0123456789'
86as_cr_alnum=$as_cr_Letters$as_cr_digits
87
88# The user is always right.
89if test "${PATH_SEPARATOR+set}" != set; then
90  echo "#! /bin/sh" >conf$$.sh
91  echo  "exit 0"   >>conf$$.sh
92  chmod +x conf$$.sh
93  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
94    PATH_SEPARATOR=';'
95  else
96    PATH_SEPARATOR=:
97  fi
98  rm -f conf$$.sh
99fi
100
101
102  as_lineno_1=$LINENO
103  as_lineno_2=$LINENO
104  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105  test "x$as_lineno_1" != "x$as_lineno_2" &&
106  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
107  # Find who we are.  Look in the path if we contain no path at all
108  # relative or not.
109  case $0 in
110    *[\\/]* ) as_myself=$0 ;;
111    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
112for as_dir in $PATH
113do
114  IFS=$as_save_IFS
115  test -z "$as_dir" && as_dir=.
116  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
117done
118
119       ;;
120  esac
121  # We did not find ourselves, most probably we were run as `sh COMMAND'
122  # in which case we are not to be found in the path.
123  if test "x$as_myself" = x; then
124    as_myself=$0
125  fi
126  if test ! -f "$as_myself"; then
127    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128   { (exit 1); exit 1; }; }
129  fi
130  case $CONFIG_SHELL in
131  '')
132    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134do
135  IFS=$as_save_IFS
136  test -z "$as_dir" && as_dir=.
137  for as_base in sh bash ksh sh5; do
138	 case $as_dir in
139	 /*)
140	   if ("$as_dir/$as_base" -c '
141  as_lineno_1=$LINENO
142  as_lineno_2=$LINENO
143  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144  test "x$as_lineno_1" != "x$as_lineno_2" &&
145  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
146	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148	     CONFIG_SHELL=$as_dir/$as_base
149	     export CONFIG_SHELL
150	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151	   fi;;
152	 esac
153       done
154done
155;;
156  esac
157
158  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159  # uniformly replaced by the line number.  The first 'sed' inserts a
160  # line-number line before each line; the second 'sed' does the real
161  # work.  The second script uses 'N' to pair each line-number line
162  # with the numbered line, and appends trailing '-' during
163  # substitution so that $LINENO is not a special case at line end.
164  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
166  sed '=' <$as_myself |
167    sed '
168      N
169      s,$,-,
170      : loop
171      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172      t loop
173      s,-$,,
174      s,^['$as_cr_digits']*\n,,
175    ' >$as_me.lineno &&
176  chmod +x $as_me.lineno ||
177    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178   { (exit 1); exit 1; }; }
179
180  # Don't try to exec as it changes $[0], causing all sort of problems
181  # (the dirname of $[0] is not the place where we might find the
182  # original and so on.  Autoconf is especially sensible to this).
183  . ./$as_me.lineno
184  # Exit status is that of the last command.
185  exit
186}
187
188
189case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190  *c*,-n*) ECHO_N= ECHO_C='
191' ECHO_T='	' ;;
192  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
194esac
195
196if expr a : '\(a\)' >/dev/null 2>&1; then
197  as_expr=expr
198else
199  as_expr=false
200fi
201
202rm -f conf$$ conf$$.exe conf$$.file
203echo >conf$$.file
204if ln -s conf$$.file conf$$ 2>/dev/null; then
205  # We could just check for DJGPP; but this test a) works b) is more generic
206  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207  if test -f conf$$.exe; then
208    # Don't use ln at all; we don't have any links
209    as_ln_s='cp -p'
210  else
211    as_ln_s='ln -s'
212  fi
213elif ln conf$$.file conf$$ 2>/dev/null; then
214  as_ln_s=ln
215else
216  as_ln_s='cp -p'
217fi
218rm -f conf$$ conf$$.exe conf$$.file
219
220if mkdir -p . 2>/dev/null; then
221  as_mkdir_p=:
222else
223  test -d ./-p && rmdir ./-p
224  as_mkdir_p=false
225fi
226
227as_executable_p="test -f"
228
229# Sed expression to map a string onto a valid CPP name.
230as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
232# Sed expression to map a string onto a valid variable name.
233as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234
235
236# IFS
237# We need space, tab and new line, in precisely that order.
238as_nl='
239'
240IFS=" 	$as_nl"
241
242# CDPATH.
243$as_unset CDPATH
244
245
246# Name of the host.
247# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
248# so uname gets run too.
249ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250
251exec 6>&1
252
253#
254# Initializations.
255#
256ac_default_prefix=/usr/local
257ac_config_libobj_dir=.
258cross_compiling=no
259subdirs=
260MFLAGS=
261MAKEFLAGS=
262SHELL=${CONFIG_SHELL-/bin/sh}
263
264# Maximum number of lines to put in a shell here document.
265# This variable seems obsolete.  It should probably be removed, and
266# only ac_max_sed_lines should be used.
267: ${ac_max_here_lines=38}
268
269# Identity of this package.
270PACKAGE_NAME='FULL-PACKAGE-NAME'
271PACKAGE_TARNAME='full-package-name'
272PACKAGE_VERSION='VERSION'
273PACKAGE_STRING='FULL-PACKAGE-NAME VERSION'
274PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS'
275
276ac_unique_file="config.h.in"
277# Factoring default headers for most tests.
278ac_includes_default="\
279#include <stdio.h>
280#if HAVE_SYS_TYPES_H
281# include <sys/types.h>
282#endif
283#if HAVE_SYS_STAT_H
284# include <sys/stat.h>
285#endif
286#if STDC_HEADERS
287# include <stdlib.h>
288# include <stddef.h>
289#else
290# if HAVE_STDLIB_H
291#  include <stdlib.h>
292# endif
293#endif
294#if HAVE_STRING_H
295# if !STDC_HEADERS && HAVE_MEMORY_H
296#  include <memory.h>
297# endif
298# include <string.h>
299#endif
300#if HAVE_STRINGS_H
301# include <strings.h>
302#endif
303#if HAVE_INTTYPES_H
304# include <inttypes.h>
305#else
306# if HAVE_STDINT_H
307#  include <stdint.h>
308# endif
309#endif
310#if HAVE_UNISTD_H
311# include <unistd.h>
312#endif"
313
314ac_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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT CC CFLAGS ac_ct_CC CPP EGREP LIB@&t@OBJS LTLIBOBJS'
315ac_subst_files=''
316
317# Initialize some variables set by options.
318ac_init_help=
319ac_init_version=false
320# The variables have the same names as the options, with
321# dashes changed to underlines.
322cache_file=/dev/null
323exec_prefix=NONE
324no_create=
325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
333verbose=
334x_includes=NONE
335x_libraries=NONE
336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
354
355ac_prev=
356for ac_option
357do
358  # If the previous option needs an argument, assign it.
359  if test -n "$ac_prev"; then
360    eval "$ac_prev=\$ac_option"
361    ac_prev=
362    continue
363  fi
364
365  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
366
367  # Accept the important Cygnus configure options, so we can diagnose typos.
368
369  case $ac_option in
370
371  -bindir | --bindir | --bindi | --bind | --bin | --bi)
372    ac_prev=bindir ;;
373  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
374    bindir=$ac_optarg ;;
375
376  -build | --build | --buil | --bui | --bu)
377    ac_prev=build_alias ;;
378  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
379    build_alias=$ac_optarg ;;
380
381  -cache-file | --cache-file | --cache-fil | --cache-fi \
382  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383    ac_prev=cache_file ;;
384  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
386    cache_file=$ac_optarg ;;
387
388  --config-cache | -C)
389    cache_file=config.cache ;;
390
391  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392    ac_prev=datadir ;;
393  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394  | --da=*)
395    datadir=$ac_optarg ;;
396
397  -disable-* | --disable-*)
398    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
399    # Reject names that are not valid shell variable names.
400    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402   { (exit 1); exit 1; }; }
403    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404    eval "enable_$ac_feature=no" ;;
405
406  -enable-* | --enable-*)
407    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
408    # Reject names that are not valid shell variable names.
409    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411   { (exit 1); exit 1; }; }
412    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413    case $ac_option in
414      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
415      *) ac_optarg=yes ;;
416    esac
417    eval "enable_$ac_feature='$ac_optarg'" ;;
418
419  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421  | --exec | --exe | --ex)
422    ac_prev=exec_prefix ;;
423  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425  | --exec=* | --exe=* | --ex=*)
426    exec_prefix=$ac_optarg ;;
427
428  -gas | --gas | --ga | --g)
429    # Obsolete; use --with-gas.
430    with_gas=yes ;;
431
432  -help | --help | --hel | --he | -h)
433    ac_init_help=long ;;
434  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435    ac_init_help=recursive ;;
436  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437    ac_init_help=short ;;
438
439  -host | --host | --hos | --ho)
440    ac_prev=host_alias ;;
441  -host=* | --host=* | --hos=* | --ho=*)
442    host_alias=$ac_optarg ;;
443
444  -includedir | --includedir | --includedi | --included | --include \
445  | --includ | --inclu | --incl | --inc)
446    ac_prev=includedir ;;
447  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448  | --includ=* | --inclu=* | --incl=* | --inc=*)
449    includedir=$ac_optarg ;;
450
451  -infodir | --infodir | --infodi | --infod | --info | --inf)
452    ac_prev=infodir ;;
453  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
454    infodir=$ac_optarg ;;
455
456  -libdir | --libdir | --libdi | --libd)
457    ac_prev=libdir ;;
458  -libdir=* | --libdir=* | --libdi=* | --libd=*)
459    libdir=$ac_optarg ;;
460
461  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462  | --libexe | --libex | --libe)
463    ac_prev=libexecdir ;;
464  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465  | --libexe=* | --libex=* | --libe=*)
466    libexecdir=$ac_optarg ;;
467
468  -localstatedir | --localstatedir | --localstatedi | --localstated \
469  | --localstate | --localstat | --localsta | --localst \
470  | --locals | --local | --loca | --loc | --lo)
471    ac_prev=localstatedir ;;
472  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
475    localstatedir=$ac_optarg ;;
476
477  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478    ac_prev=mandir ;;
479  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480    mandir=$ac_optarg ;;
481
482  -nfp | --nfp | --nf)
483    # Obsolete; use --without-fp.
484    with_fp=no ;;
485
486  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
487  | --no-cr | --no-c | -n)
488    no_create=yes ;;
489
490  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492    no_recursion=yes ;;
493
494  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496  | --oldin | --oldi | --old | --ol | --o)
497    ac_prev=oldincludedir ;;
498  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
501    oldincludedir=$ac_optarg ;;
502
503  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504    ac_prev=prefix ;;
505  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
506    prefix=$ac_optarg ;;
507
508  -program-prefix | --program-prefix | --program-prefi | --program-pref \
509  | --program-pre | --program-pr | --program-p)
510    ac_prev=program_prefix ;;
511  -program-prefix=* | --program-prefix=* | --program-prefi=* \
512  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
513    program_prefix=$ac_optarg ;;
514
515  -program-suffix | --program-suffix | --program-suffi | --program-suff \
516  | --program-suf | --program-su | --program-s)
517    ac_prev=program_suffix ;;
518  -program-suffix=* | --program-suffix=* | --program-suffi=* \
519  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
520    program_suffix=$ac_optarg ;;
521
522  -program-transform-name | --program-transform-name \
523  | --program-transform-nam | --program-transform-na \
524  | --program-transform-n | --program-transform- \
525  | --program-transform | --program-transfor \
526  | --program-transfo | --program-transf \
527  | --program-trans | --program-tran \
528  | --progr-tra | --program-tr | --program-t)
529    ac_prev=program_transform_name ;;
530  -program-transform-name=* | --program-transform-name=* \
531  | --program-transform-nam=* | --program-transform-na=* \
532  | --program-transform-n=* | --program-transform-=* \
533  | --program-transform=* | --program-transfor=* \
534  | --program-transfo=* | --program-transf=* \
535  | --program-trans=* | --program-tran=* \
536  | --progr-tra=* | --program-tr=* | --program-t=*)
537    program_transform_name=$ac_optarg ;;
538
539  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540  | -silent | --silent | --silen | --sile | --sil)
541    silent=yes ;;
542
543  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544    ac_prev=sbindir ;;
545  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546  | --sbi=* | --sb=*)
547    sbindir=$ac_optarg ;;
548
549  -sharedstatedir | --sharedstatedir | --sharedstatedi \
550  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551  | --sharedst | --shareds | --shared | --share | --shar \
552  | --sha | --sh)
553    ac_prev=sharedstatedir ;;
554  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557  | --sha=* | --sh=*)
558    sharedstatedir=$ac_optarg ;;
559
560  -site | --site | --sit)
561    ac_prev=site ;;
562  -site=* | --site=* | --sit=*)
563    site=$ac_optarg ;;
564
565  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566    ac_prev=srcdir ;;
567  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
568    srcdir=$ac_optarg ;;
569
570  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571  | --syscon | --sysco | --sysc | --sys | --sy)
572    ac_prev=sysconfdir ;;
573  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
575    sysconfdir=$ac_optarg ;;
576
577  -target | --target | --targe | --targ | --tar | --ta | --t)
578    ac_prev=target_alias ;;
579  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
580    target_alias=$ac_optarg ;;
581
582  -v | -verbose | --verbose | --verbos | --verbo | --verb)
583    verbose=yes ;;
584
585  -version | --version | --versio | --versi | --vers | -V)
586    ac_init_version=: ;;
587
588  -with-* | --with-*)
589    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
590    # Reject names that are not valid shell variable names.
591    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592      { echo "$as_me: error: invalid package name: $ac_package" >&2
593   { (exit 1); exit 1; }; }
594    ac_package=`echo $ac_package| sed 's/-/_/g'`
595    case $ac_option in
596      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
597      *) ac_optarg=yes ;;
598    esac
599    eval "with_$ac_package='$ac_optarg'" ;;
600
601  -without-* | --without-*)
602    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
603    # Reject names that are not valid shell variable names.
604    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605      { echo "$as_me: error: invalid package name: $ac_package" >&2
606   { (exit 1); exit 1; }; }
607    ac_package=`echo $ac_package | sed 's/-/_/g'`
608    eval "with_$ac_package=no" ;;
609
610  --x)
611    # Obsolete; use --with-x.
612    with_x=yes ;;
613
614  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615  | --x-incl | --x-inc | --x-in | --x-i)
616    ac_prev=x_includes ;;
617  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
619    x_includes=$ac_optarg ;;
620
621  -x-libraries | --x-libraries | --x-librarie | --x-librari \
622  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623    ac_prev=x_libraries ;;
624  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
626    x_libraries=$ac_optarg ;;
627
628  -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630   { (exit 1); exit 1; }; }
631    ;;
632
633  *=*)
634    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635    # Reject names that are not valid shell variable names.
636    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638   { (exit 1); exit 1; }; }
639    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640    eval "$ac_envvar='$ac_optarg'"
641    export $ac_envvar ;;
642
643  *)
644    # FIXME: should be removed in autoconf 3.0.
645    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649    ;;
650
651  esac
652done
653
654if test -n "$ac_prev"; then
655  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656  { echo "$as_me: error: missing argument to $ac_option" >&2
657   { (exit 1); exit 1; }; }
658fi
659
660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
662do
663  eval ac_val=$`echo $ac_var`
664  case $ac_val in
665    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
666    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
667   { (exit 1); exit 1; }; };;
668  esac
669done
670
671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
673	      localstatedir libdir includedir oldincludedir infodir mandir
674do
675  eval ac_val=$`echo $ac_var`
676  case $ac_val in
677    [\\/$]* | ?:[\\/]* ) ;;
678    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
679   { (exit 1); exit 1; }; };;
680  esac
681done
682
683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
685# FIXME: To remove some day.
686build=$build_alias
687host=$host_alias
688target=$target_alias
689
690# FIXME: To remove some day.
691if test "x$host_alias" != x; then
692  if test "x$build_alias" = x; then
693    cross_compiling=maybe
694    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695    If a cross compiler is detected then cross compile mode will be used." >&2
696  elif test "x$build_alias" != "x$host_alias"; then
697    cross_compiling=yes
698  fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
705
706
707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709  ac_srcdir_defaulted=yes
710  # Try the directory containing this script, then its parent.
711  ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
713	 X"$0" : 'X\(//\)[^/]' \| \
714	 X"$0" : 'X\(//\)$' \| \
715	 X"$0" : 'X\(/\)' \| \
716	 .     : '\(.\)' 2>/dev/null ||
717echo X"$0" |
718    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720  	  /^X\(\/\/\)$/{ s//\1/; q; }
721  	  /^X\(\/\).*/{ s//\1/; q; }
722  	  s/.*/./; q'`
723  srcdir=$ac_confdir
724  if test ! -r $srcdir/$ac_unique_file; then
725    srcdir=..
726  fi
727else
728  ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731  if test "$ac_srcdir_defaulted" = yes; then
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
733   { (exit 1); exit 1; }; }
734  else
735    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
736   { (exit 1); exit 1; }; }
737  fi
738fi
739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741   { (exit 1); exit 1; }; }
742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CXX_set=${CXX+set}
756ac_env_CXX_value=$CXX
757ac_cv_env_CXX_set=${CXX+set}
758ac_cv_env_CXX_value=$CXX
759ac_env_CXXFLAGS_set=${CXXFLAGS+set}
760ac_env_CXXFLAGS_value=$CXXFLAGS
761ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
762ac_cv_env_CXXFLAGS_value=$CXXFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
771ac_env_CC_set=${CC+set}
772ac_env_CC_value=$CC
773ac_cv_env_CC_set=${CC+set}
774ac_cv_env_CC_value=$CC
775ac_env_CFLAGS_set=${CFLAGS+set}
776ac_env_CFLAGS_value=$CFLAGS
777ac_cv_env_CFLAGS_set=${CFLAGS+set}
778ac_cv_env_CFLAGS_value=$CFLAGS
779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
783
784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788  # Omit some internal or obsolete options to make the list less imposing.
789  # This message is too long to be a string in the A/UX 3.1 sh.
790  cat <<_ACEOF
791\`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems.
792
793Usage: $0 [OPTION]... [VAR=VALUE]...
794
795To assign environment variables (e.g., CC, CFLAGS...), specify them as
796VAR=VALUE.  See below for descriptions of some of the useful variables.
797
798Defaults for the options are specified in brackets.
799
800Configuration:
801  -h, --help              display this help and exit
802      --help=short        display options specific to this package
803      --help=recursive    display the short help of all the included packages
804  -V, --version           display version information and exit
805  -q, --quiet, --silent   do not print \`checking...' messages
806      --cache-file=FILE   cache test results in FILE [disabled]
807  -C, --config-cache      alias for \`--cache-file=config.cache'
808  -n, --no-create         do not create output files
809      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
810
811_ACEOF
812
813  cat <<_ACEOF
814Installation directories:
815  --prefix=PREFIX         install architecture-independent files in PREFIX
816			  [$ac_default_prefix]
817  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
818			  [PREFIX]
819
820By default, \`make install' will install all the files in
821\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
822an installation prefix other than \`$ac_default_prefix' using \`--prefix',
823for instance \`--prefix=\$HOME'.
824
825For better control, use the options below.
826
827Fine tuning of the installation directories:
828  --bindir=DIR           user executables [EPREFIX/bin]
829  --sbindir=DIR          system admin executables [EPREFIX/sbin]
830  --libexecdir=DIR       program executables [EPREFIX/libexec]
831  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
832  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
833  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
834  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
835  --libdir=DIR           object code libraries [EPREFIX/lib]
836  --includedir=DIR       C header files [PREFIX/include]
837  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
838  --infodir=DIR          info documentation [PREFIX/info]
839  --mandir=DIR           man documentation [PREFIX/man]
840_ACEOF
841
842  cat <<\_ACEOF
843_ACEOF
844fi
845
846if test -n "$ac_init_help"; then
847  case $ac_init_help in
848     short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";;
849   esac
850  cat <<\_ACEOF
851
852Some influential environment variables:
853  CXX         C++ compiler command
854  CXXFLAGS    C++ compiler flags
855  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
856              nonstandard directory <lib dir>
857  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
858              headers in a nonstandard directory <include dir>
859  CC          C compiler command
860  CFLAGS      C compiler flags
861  CPP         C preprocessor
862
863Use these variables to override the choices made by `configure' or to help
864it to find libraries and programs with nonstandard names/locations.
865
866Report bugs to <BUG-REPORT-ADDRESS>.
867_ACEOF
868fi
869
870if test "$ac_init_help" = "recursive"; then
871  # If there are subdirs, report their specific --help.
872  ac_popdir=`pwd`
873  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
874    test -d $ac_dir || continue
875    ac_builddir=.
876
877if test "$ac_dir" != .; then
878  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
879  # A "../" for each directory in $ac_dir_suffix.
880  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
881else
882  ac_dir_suffix= ac_top_builddir=
883fi
884
885case $srcdir in
886  .)  # No --srcdir option.  We are building in place.
887    ac_srcdir=.
888    if test -z "$ac_top_builddir"; then
889       ac_top_srcdir=.
890    else
891       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
892    fi ;;
893  [\\/]* | ?:[\\/]* )  # Absolute path.
894    ac_srcdir=$srcdir$ac_dir_suffix;
895    ac_top_srcdir=$srcdir ;;
896  *) # Relative path.
897    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
898    ac_top_srcdir=$ac_top_builddir$srcdir ;;
899esac
900
901# Do not use `cd foo && pwd` to compute absolute paths, because
902# the directories may not exist.
903case `pwd` in
904.) ac_abs_builddir="$ac_dir";;
905*)
906  case "$ac_dir" in
907  .) ac_abs_builddir=`pwd`;;
908  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
909  *) ac_abs_builddir=`pwd`/"$ac_dir";;
910  esac;;
911esac
912case $ac_abs_builddir in
913.) ac_abs_top_builddir=${ac_top_builddir}.;;
914*)
915  case ${ac_top_builddir}. in
916  .) ac_abs_top_builddir=$ac_abs_builddir;;
917  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
918  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
919  esac;;
920esac
921case $ac_abs_builddir in
922.) ac_abs_srcdir=$ac_srcdir;;
923*)
924  case $ac_srcdir in
925  .) ac_abs_srcdir=$ac_abs_builddir;;
926  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
927  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
928  esac;;
929esac
930case $ac_abs_builddir in
931.) ac_abs_top_srcdir=$ac_top_srcdir;;
932*)
933  case $ac_top_srcdir in
934  .) ac_abs_top_srcdir=$ac_abs_builddir;;
935  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
936  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
937  esac;;
938esac
939
940    cd $ac_dir
941    # Check for guested configure; otherwise get Cygnus style configure.
942    if test -f $ac_srcdir/configure.gnu; then
943      echo
944      $SHELL $ac_srcdir/configure.gnu  --help=recursive
945    elif test -f $ac_srcdir/configure; then
946      echo
947      $SHELL $ac_srcdir/configure  --help=recursive
948    elif test -f $ac_srcdir/configure.ac ||
949	   test -f $ac_srcdir/configure.in; then
950      echo
951      $ac_configure --help
952    else
953      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
954    fi
955    cd $ac_popdir
956  done
957fi
958
959test -n "$ac_init_help" && exit 0
960if $ac_init_version; then
961  cat <<\_ACEOF
962FULL-PACKAGE-NAME configure VERSION
963generated by GNU Autoconf 2.59
964
965Copyright (C) 2003 Free Software Foundation, Inc.
966This configure script is free software; the Free Software Foundation
967gives unlimited permission to copy, distribute and modify it.
968_ACEOF
969  exit 0
970fi
971exec 5>config.log
972cat >&5 <<_ACEOF
973This file contains any messages produced by compilers while
974running configure, to aid debugging if configure makes a mistake.
975
976It was created by FULL-PACKAGE-NAME $as_me VERSION, which was
977generated by GNU Autoconf 2.59.  Invocation command line was
978
979  $ $0 $@
980
981_ACEOF
982{
983cat <<_ASUNAME
984@%:@@%:@ --------- @%:@@%:@
985@%:@@%:@ Platform. @%:@@%:@
986@%:@@%:@ --------- @%:@@%:@
987
988hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
989uname -m = `(uname -m) 2>/dev/null || echo unknown`
990uname -r = `(uname -r) 2>/dev/null || echo unknown`
991uname -s = `(uname -s) 2>/dev/null || echo unknown`
992uname -v = `(uname -v) 2>/dev/null || echo unknown`
993
994/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
995/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
996
997/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
998/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
999/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1000hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1001/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1002/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1003/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1004
1005_ASUNAME
1006
1007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1008for as_dir in $PATH
1009do
1010  IFS=$as_save_IFS
1011  test -z "$as_dir" && as_dir=.
1012  echo "PATH: $as_dir"
1013done
1014
1015} >&5
1016
1017cat >&5 <<_ACEOF
1018
1019
1020@%:@@%:@ ----------- @%:@@%:@
1021@%:@@%:@ Core tests. @%:@@%:@
1022@%:@@%:@ ----------- @%:@@%:@
1023
1024_ACEOF
1025
1026
1027# Keep a trace of the command line.
1028# Strip out --no-create and --no-recursion so they do not pile up.
1029# Strip out --silent because we don't want to record it for future runs.
1030# Also quote any args containing shell meta-characters.
1031# Make two passes to allow for proper duplicate-argument suppression.
1032ac_configure_args=
1033ac_configure_args0=
1034ac_configure_args1=
1035ac_sep=
1036ac_must_keep_next=false
1037for ac_pass in 1 2
1038do
1039  for ac_arg
1040  do
1041    case $ac_arg in
1042    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1043    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1044    | -silent | --silent | --silen | --sile | --sil)
1045      continue ;;
1046    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1047      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1048    esac
1049    case $ac_pass in
1050    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1051    2)
1052      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1053      if test $ac_must_keep_next = true; then
1054	ac_must_keep_next=false # Got value, back to normal.
1055      else
1056	case $ac_arg in
1057	  *=* | --config-cache | -C | -disable-* | --disable-* \
1058	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1059	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1060	  | -with-* | --with-* | -without-* | --without-* | --x)
1061	    case "$ac_configure_args0 " in
1062	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1063	    esac
1064	    ;;
1065	  -* ) ac_must_keep_next=true ;;
1066	esac
1067      fi
1068      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1069      # Get rid of the leading space.
1070      ac_sep=" "
1071      ;;
1072    esac
1073  done
1074done
1075$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1076$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1077
1078# When interrupted or exit'd, cleanup temporary files, and complete
1079# config.log.  We remove comments because anyway the quotes in there
1080# would cause problems or look ugly.
1081# WARNING: Be sure not to use single quotes in there, as some shells,
1082# such as our DU 5.0 friend, will then `close' the trap.
1083trap 'exit_status=$?
1084  # Save into config.log some information that might help in debugging.
1085  {
1086    echo
1087
1088    cat <<\_ASBOX
1089@%:@@%:@ ---------------- @%:@@%:@
1090@%:@@%:@ Cache variables. @%:@@%:@
1091@%:@@%:@ ---------------- @%:@@%:@
1092_ASBOX
1093    echo
1094    # The following way of writing the cache mishandles newlines in values,
1095{
1096  (set) 2>&1 |
1097    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1098    *ac_space=\ *)
1099      sed -n \
1100	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1101	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1102      ;;
1103    *)
1104      sed -n \
1105	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1106      ;;
1107    esac;
1108}
1109    echo
1110
1111    cat <<\_ASBOX
1112@%:@@%:@ ----------------- @%:@@%:@
1113@%:@@%:@ Output variables. @%:@@%:@
1114@%:@@%:@ ----------------- @%:@@%:@
1115_ASBOX
1116    echo
1117    for ac_var in $ac_subst_vars
1118    do
1119      eval ac_val=$`echo $ac_var`
1120      echo "$ac_var='"'"'$ac_val'"'"'"
1121    done | sort
1122    echo
1123
1124    if test -n "$ac_subst_files"; then
1125      cat <<\_ASBOX
1126@%:@@%:@ ------------- @%:@@%:@
1127@%:@@%:@ Output files. @%:@@%:@
1128@%:@@%:@ ------------- @%:@@%:@
1129_ASBOX
1130      echo
1131      for ac_var in $ac_subst_files
1132      do
1133	eval ac_val=$`echo $ac_var`
1134	echo "$ac_var='"'"'$ac_val'"'"'"
1135      done | sort
1136      echo
1137    fi
1138
1139    if test -s confdefs.h; then
1140      cat <<\_ASBOX
1141@%:@@%:@ ----------- @%:@@%:@
1142@%:@@%:@ confdefs.h. @%:@@%:@
1143@%:@@%:@ ----------- @%:@@%:@
1144_ASBOX
1145      echo
1146      sed "/^$/d" confdefs.h | sort
1147      echo
1148    fi
1149    test "$ac_signal" != 0 &&
1150      echo "$as_me: caught signal $ac_signal"
1151    echo "$as_me: exit $exit_status"
1152  } >&5
1153  rm -f core *.core &&
1154  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1155    exit $exit_status
1156     ' 0
1157for ac_signal in 1 2 13 15; do
1158  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1159done
1160ac_signal=0
1161
1162# confdefs.h avoids OS command line length limits that DEFS can exceed.
1163rm -rf conftest* confdefs.h
1164# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1165echo >confdefs.h
1166
1167# Predefined preprocessor variables.
1168
1169cat >>confdefs.h <<_ACEOF
1170@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1171_ACEOF
1172
1173
1174cat >>confdefs.h <<_ACEOF
1175@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1176_ACEOF
1177
1178
1179cat >>confdefs.h <<_ACEOF
1180@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1181_ACEOF
1182
1183
1184cat >>confdefs.h <<_ACEOF
1185@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1186_ACEOF
1187
1188
1189cat >>confdefs.h <<_ACEOF
1190@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1191_ACEOF
1192
1193
1194# Let the site file select an alternate cache file if it wants to.
1195# Prefer explicitly selected file to automatically selected ones.
1196if test -z "$CONFIG_SITE"; then
1197  if test "x$prefix" != xNONE; then
1198    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1199  else
1200    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1201  fi
1202fi
1203for ac_site_file in $CONFIG_SITE; do
1204  if test -r "$ac_site_file"; then
1205    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1206echo "$as_me: loading site script $ac_site_file" >&6;}
1207    sed 's/^/| /' "$ac_site_file" >&5
1208    . "$ac_site_file"
1209  fi
1210done
1211
1212if test -r "$cache_file"; then
1213  # Some versions of bash will fail to source /dev/null (special
1214  # files actually), so we avoid doing that.
1215  if test -f "$cache_file"; then
1216    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1217echo "$as_me: loading cache $cache_file" >&6;}
1218    case $cache_file in
1219      [\\/]* | ?:[\\/]* ) . $cache_file;;
1220      *)                      . ./$cache_file;;
1221    esac
1222  fi
1223else
1224  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1225echo "$as_me: creating cache $cache_file" >&6;}
1226  >$cache_file
1227fi
1228
1229# Check that the precious variables saved in the cache have kept the same
1230# value.
1231ac_cache_corrupted=false
1232for ac_var in `(set) 2>&1 |
1233	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1234  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1235  eval ac_new_set=\$ac_env_${ac_var}_set
1236  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1237  eval ac_new_val="\$ac_env_${ac_var}_value"
1238  case $ac_old_set,$ac_new_set in
1239    set,)
1240      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1241echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1242      ac_cache_corrupted=: ;;
1243    ,set)
1244      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1245echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1246      ac_cache_corrupted=: ;;
1247    ,);;
1248    *)
1249      if test "x$ac_old_val" != "x$ac_new_val"; then
1250	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1251echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1252	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1253echo "$as_me:   former value:  $ac_old_val" >&2;}
1254	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1255echo "$as_me:   current value: $ac_new_val" >&2;}
1256	ac_cache_corrupted=:
1257      fi;;
1258  esac
1259  # Pass precious variables to config.status.
1260  if test "$ac_new_set" = set; then
1261    case $ac_new_val in
1262    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1263      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1264    *) ac_arg=$ac_var=$ac_new_val ;;
1265    esac
1266    case " $ac_configure_args " in
1267      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1268      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1269    esac
1270  fi
1271done
1272if $ac_cache_corrupted; then
1273  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1274echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1275  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1276echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1277   { (exit 1); exit 1; }; }
1278fi
1279
1280ac_ext=c
1281ac_cpp='$CPP $CPPFLAGS'
1282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1284ac_compiler_gnu=$ac_cv_c_compiler_gnu
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313          ac_config_headers="$ac_config_headers config.h"
1314
1315
1316# Checks for programs.
1317ac_ext=cc
1318ac_cpp='$CXXCPP $CPPFLAGS'
1319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1322if test -n "$ac_tool_prefix"; then
1323  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1324  do
1325    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1326set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1327echo "$as_me:$LINENO: checking for $ac_word" >&5
1328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1329if test "${ac_cv_prog_CXX+set}" = set; then
1330  echo $ECHO_N "(cached) $ECHO_C" >&6
1331else
1332  if test -n "$CXX"; then
1333  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1334else
1335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1336for as_dir in $PATH
1337do
1338  IFS=$as_save_IFS
1339  test -z "$as_dir" && as_dir=.
1340  for ac_exec_ext in '' $ac_executable_extensions; do
1341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1342    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1344    break 2
1345  fi
1346done
1347done
1348
1349fi
1350fi
1351CXX=$ac_cv_prog_CXX
1352if test -n "$CXX"; then
1353  echo "$as_me:$LINENO: result: $CXX" >&5
1354echo "${ECHO_T}$CXX" >&6
1355else
1356  echo "$as_me:$LINENO: result: no" >&5
1357echo "${ECHO_T}no" >&6
1358fi
1359
1360    test -n "$CXX" && break
1361  done
1362fi
1363if test -z "$CXX"; then
1364  ac_ct_CXX=$CXX
1365  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1366do
1367  # Extract the first word of "$ac_prog", so it can be a program name with args.
1368set dummy $ac_prog; ac_word=$2
1369echo "$as_me:$LINENO: checking for $ac_word" >&5
1370echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1371if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1372  echo $ECHO_N "(cached) $ECHO_C" >&6
1373else
1374  if test -n "$ac_ct_CXX"; then
1375  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1376else
1377as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1378for as_dir in $PATH
1379do
1380  IFS=$as_save_IFS
1381  test -z "$as_dir" && as_dir=.
1382  for ac_exec_ext in '' $ac_executable_extensions; do
1383  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1384    ac_cv_prog_ac_ct_CXX="$ac_prog"
1385    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1386    break 2
1387  fi
1388done
1389done
1390
1391fi
1392fi
1393ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1394if test -n "$ac_ct_CXX"; then
1395  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1396echo "${ECHO_T}$ac_ct_CXX" >&6
1397else
1398  echo "$as_me:$LINENO: result: no" >&5
1399echo "${ECHO_T}no" >&6
1400fi
1401
1402  test -n "$ac_ct_CXX" && break
1403done
1404test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1405
1406  CXX=$ac_ct_CXX
1407fi
1408
1409
1410# Provide some information about the compiler.
1411echo "$as_me:$LINENO:" \
1412     "checking for C++ compiler version" >&5
1413ac_compiler=`set X $ac_compile; echo $2`
1414{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1415  (eval $ac_compiler --version </dev/null >&5) 2>&5
1416  ac_status=$?
1417  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1418  (exit $ac_status); }
1419{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1420  (eval $ac_compiler -v </dev/null >&5) 2>&5
1421  ac_status=$?
1422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1423  (exit $ac_status); }
1424{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1425  (eval $ac_compiler -V </dev/null >&5) 2>&5
1426  ac_status=$?
1427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1428  (exit $ac_status); }
1429
1430cat >conftest.$ac_ext <<_ACEOF
1431/* confdefs.h.  */
1432_ACEOF
1433cat confdefs.h >>conftest.$ac_ext
1434cat >>conftest.$ac_ext <<_ACEOF
1435/* end confdefs.h.  */
1436
1437int
1438main ()
1439{
1440
1441  ;
1442  return 0;
1443}
1444_ACEOF
1445ac_clean_files_save=$ac_clean_files
1446ac_clean_files="$ac_clean_files a.out a.exe b.out"
1447# Try to create an executable without -o first, disregard a.out.
1448# It will help us diagnose broken compilers, and finding out an intuition
1449# of exeext.
1450echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1451echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1452ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1453if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1454  (eval $ac_link_default) 2>&5
1455  ac_status=$?
1456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1457  (exit $ac_status); }; then
1458  # Find the output, starting from the most likely.  This scheme is
1459# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1460# resort.
1461
1462# Be careful to initialize this variable, since it used to be cached.
1463# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1464ac_cv_exeext=
1465# b.out is created by i960 compilers.
1466for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1467do
1468  test -f "$ac_file" || continue
1469  case $ac_file in
1470    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1471	;;
1472    conftest.$ac_ext )
1473	# This is the source file.
1474	;;
1475    [ab].out )
1476	# We found the default executable, but exeext='' is most
1477	# certainly right.
1478	break;;
1479    *.* )
1480	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1481	# FIXME: I believe we export ac_cv_exeext for Libtool,
1482	# but it would be cool to find out if it's true.  Does anybody
1483	# maintain Libtool? --akim.
1484	export ac_cv_exeext
1485	break;;
1486    * )
1487	break;;
1488  esac
1489done
1490else
1491  echo "$as_me: failed program was:" >&5
1492sed 's/^/| /' conftest.$ac_ext >&5
1493
1494{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1495See \`config.log' for more details." >&5
1496echo "$as_me: error: C++ compiler cannot create executables
1497See \`config.log' for more details." >&2;}
1498   { (exit 77); exit 77; }; }
1499fi
1500
1501ac_exeext=$ac_cv_exeext
1502echo "$as_me:$LINENO: result: $ac_file" >&5
1503echo "${ECHO_T}$ac_file" >&6
1504
1505# Check the compiler produces executables we can run.  If not, either
1506# the compiler is broken, or we cross compile.
1507echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1508echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1509# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1510# If not cross compiling, check that we can run a simple program.
1511if test "$cross_compiling" != yes; then
1512  if { ac_try='./$ac_file'
1513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1514  (eval $ac_try) 2>&5
1515  ac_status=$?
1516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1517  (exit $ac_status); }; }; then
1518    cross_compiling=no
1519  else
1520    if test "$cross_compiling" = maybe; then
1521	cross_compiling=yes
1522    else
1523	{ { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1524If you meant to cross compile, use \`--host'.
1525See \`config.log' for more details." >&5
1526echo "$as_me: error: cannot run C++ compiled programs.
1527If you meant to cross compile, use \`--host'.
1528See \`config.log' for more details." >&2;}
1529   { (exit 1); exit 1; }; }
1530    fi
1531  fi
1532fi
1533echo "$as_me:$LINENO: result: yes" >&5
1534echo "${ECHO_T}yes" >&6
1535
1536rm -f a.out a.exe conftest$ac_cv_exeext b.out
1537ac_clean_files=$ac_clean_files_save
1538# Check the compiler produces executables we can run.  If not, either
1539# the compiler is broken, or we cross compile.
1540echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1541echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1542echo "$as_me:$LINENO: result: $cross_compiling" >&5
1543echo "${ECHO_T}$cross_compiling" >&6
1544
1545echo "$as_me:$LINENO: checking for suffix of executables" >&5
1546echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1548  (eval $ac_link) 2>&5
1549  ac_status=$?
1550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1551  (exit $ac_status); }; then
1552  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1553# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1554# work properly (i.e., refer to `conftest.exe'), while it won't with
1555# `rm'.
1556for ac_file in conftest.exe conftest conftest.*; do
1557  test -f "$ac_file" || continue
1558  case $ac_file in
1559    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1560    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1561	  export ac_cv_exeext
1562	  break;;
1563    * ) break;;
1564  esac
1565done
1566else
1567  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1568See \`config.log' for more details." >&5
1569echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1570See \`config.log' for more details." >&2;}
1571   { (exit 1); exit 1; }; }
1572fi
1573
1574rm -f conftest$ac_cv_exeext
1575echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1576echo "${ECHO_T}$ac_cv_exeext" >&6
1577
1578rm -f conftest.$ac_ext
1579EXEEXT=$ac_cv_exeext
1580ac_exeext=$EXEEXT
1581echo "$as_me:$LINENO: checking for suffix of object files" >&5
1582echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1583if test "${ac_cv_objext+set}" = set; then
1584  echo $ECHO_N "(cached) $ECHO_C" >&6
1585else
1586  cat >conftest.$ac_ext <<_ACEOF
1587/* confdefs.h.  */
1588_ACEOF
1589cat confdefs.h >>conftest.$ac_ext
1590cat >>conftest.$ac_ext <<_ACEOF
1591/* end confdefs.h.  */
1592
1593int
1594main ()
1595{
1596
1597  ;
1598  return 0;
1599}
1600_ACEOF
1601rm -f conftest.o conftest.obj
1602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1603  (eval $ac_compile) 2>&5
1604  ac_status=$?
1605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1606  (exit $ac_status); }; then
1607  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1608  case $ac_file in
1609    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1610    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1611       break;;
1612  esac
1613done
1614else
1615  echo "$as_me: failed program was:" >&5
1616sed 's/^/| /' conftest.$ac_ext >&5
1617
1618{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1619See \`config.log' for more details." >&5
1620echo "$as_me: error: cannot compute suffix of object files: cannot compile
1621See \`config.log' for more details." >&2;}
1622   { (exit 1); exit 1; }; }
1623fi
1624
1625rm -f conftest.$ac_cv_objext conftest.$ac_ext
1626fi
1627echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1628echo "${ECHO_T}$ac_cv_objext" >&6
1629OBJEXT=$ac_cv_objext
1630ac_objext=$OBJEXT
1631echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
1632echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
1633if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
1634  echo $ECHO_N "(cached) $ECHO_C" >&6
1635else
1636  cat >conftest.$ac_ext <<_ACEOF
1637/* confdefs.h.  */
1638_ACEOF
1639cat confdefs.h >>conftest.$ac_ext
1640cat >>conftest.$ac_ext <<_ACEOF
1641/* end confdefs.h.  */
1642
1643int
1644main ()
1645{
1646#ifndef __GNUC__
1647       choke me
1648#endif
1649
1650  ;
1651  return 0;
1652}
1653_ACEOF
1654rm -f conftest.$ac_objext
1655if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1656  (eval $ac_compile) 2>conftest.er1
1657  ac_status=$?
1658  grep -v '^ *+' conftest.er1 >conftest.err
1659  rm -f conftest.er1
1660  cat conftest.err >&5
1661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1662  (exit $ac_status); } &&
1663	 { ac_try='test -z "$ac_cxx_werror_flag"
1664			 || test ! -s conftest.err'
1665  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1666  (eval $ac_try) 2>&5
1667  ac_status=$?
1668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1669  (exit $ac_status); }; } &&
1670	 { ac_try='test -s conftest.$ac_objext'
1671  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1672  (eval $ac_try) 2>&5
1673  ac_status=$?
1674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675  (exit $ac_status); }; }; then
1676  ac_compiler_gnu=yes
1677else
1678  echo "$as_me: failed program was:" >&5
1679sed 's/^/| /' conftest.$ac_ext >&5
1680
1681ac_compiler_gnu=no
1682fi
1683rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1684ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
1685
1686fi
1687echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
1688echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
1689GXX=`test $ac_compiler_gnu = yes && echo yes`
1690ac_test_CXXFLAGS=${CXXFLAGS+set}
1691ac_save_CXXFLAGS=$CXXFLAGS
1692CXXFLAGS="-g"
1693echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
1694echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
1695if test "${ac_cv_prog_cxx_g+set}" = set; then
1696  echo $ECHO_N "(cached) $ECHO_C" >&6
1697else
1698  cat >conftest.$ac_ext <<_ACEOF
1699/* confdefs.h.  */
1700_ACEOF
1701cat confdefs.h >>conftest.$ac_ext
1702cat >>conftest.$ac_ext <<_ACEOF
1703/* end confdefs.h.  */
1704
1705int
1706main ()
1707{
1708
1709  ;
1710  return 0;
1711}
1712_ACEOF
1713rm -f conftest.$ac_objext
1714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1715  (eval $ac_compile) 2>conftest.er1
1716  ac_status=$?
1717  grep -v '^ *+' conftest.er1 >conftest.err
1718  rm -f conftest.er1
1719  cat conftest.err >&5
1720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1721  (exit $ac_status); } &&
1722	 { ac_try='test -z "$ac_cxx_werror_flag"
1723			 || test ! -s conftest.err'
1724  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1725  (eval $ac_try) 2>&5
1726  ac_status=$?
1727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1728  (exit $ac_status); }; } &&
1729	 { ac_try='test -s conftest.$ac_objext'
1730  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1731  (eval $ac_try) 2>&5
1732  ac_status=$?
1733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1734  (exit $ac_status); }; }; then
1735  ac_cv_prog_cxx_g=yes
1736else
1737  echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
1739
1740ac_cv_prog_cxx_g=no
1741fi
1742rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1743fi
1744echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
1745echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
1746if test "$ac_test_CXXFLAGS" = set; then
1747  CXXFLAGS=$ac_save_CXXFLAGS
1748elif test $ac_cv_prog_cxx_g = yes; then
1749  if test "$GXX" = yes; then
1750    CXXFLAGS="-g -O2"
1751  else
1752    CXXFLAGS="-g"
1753  fi
1754else
1755  if test "$GXX" = yes; then
1756    CXXFLAGS="-O2"
1757  else
1758    CXXFLAGS=
1759  fi
1760fi
1761for ac_declaration in \
1762   '' \
1763   'extern "C" void std::exit (int) throw (); using std::exit;' \
1764   'extern "C" void std::exit (int); using std::exit;' \
1765   'extern "C" void exit (int) throw ();' \
1766   'extern "C" void exit (int);' \
1767   'void exit (int);'
1768do
1769  cat >conftest.$ac_ext <<_ACEOF
1770/* confdefs.h.  */
1771_ACEOF
1772cat confdefs.h >>conftest.$ac_ext
1773cat >>conftest.$ac_ext <<_ACEOF
1774/* end confdefs.h.  */
1775$ac_declaration
1776@%:@include <stdlib.h>
1777int
1778main ()
1779{
1780exit (42);
1781  ;
1782  return 0;
1783}
1784_ACEOF
1785rm -f conftest.$ac_objext
1786if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1787  (eval $ac_compile) 2>conftest.er1
1788  ac_status=$?
1789  grep -v '^ *+' conftest.er1 >conftest.err
1790  rm -f conftest.er1
1791  cat conftest.err >&5
1792  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1793  (exit $ac_status); } &&
1794	 { ac_try='test -z "$ac_cxx_werror_flag"
1795			 || test ! -s conftest.err'
1796  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1797  (eval $ac_try) 2>&5
1798  ac_status=$?
1799  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800  (exit $ac_status); }; } &&
1801	 { ac_try='test -s conftest.$ac_objext'
1802  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1803  (eval $ac_try) 2>&5
1804  ac_status=$?
1805  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1806  (exit $ac_status); }; }; then
1807  :
1808else
1809  echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
1811
1812continue
1813fi
1814rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1815  cat >conftest.$ac_ext <<_ACEOF
1816/* confdefs.h.  */
1817_ACEOF
1818cat confdefs.h >>conftest.$ac_ext
1819cat >>conftest.$ac_ext <<_ACEOF
1820/* end confdefs.h.  */
1821$ac_declaration
1822int
1823main ()
1824{
1825exit (42);
1826  ;
1827  return 0;
1828}
1829_ACEOF
1830rm -f conftest.$ac_objext
1831if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832  (eval $ac_compile) 2>conftest.er1
1833  ac_status=$?
1834  grep -v '^ *+' conftest.er1 >conftest.err
1835  rm -f conftest.er1
1836  cat conftest.err >&5
1837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1838  (exit $ac_status); } &&
1839	 { ac_try='test -z "$ac_cxx_werror_flag"
1840			 || test ! -s conftest.err'
1841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1842  (eval $ac_try) 2>&5
1843  ac_status=$?
1844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845  (exit $ac_status); }; } &&
1846	 { ac_try='test -s conftest.$ac_objext'
1847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1848  (eval $ac_try) 2>&5
1849  ac_status=$?
1850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851  (exit $ac_status); }; }; then
1852  break
1853else
1854  echo "$as_me: failed program was:" >&5
1855sed 's/^/| /' conftest.$ac_ext >&5
1856
1857fi
1858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1859done
1860rm -f conftest*
1861if test -n "$ac_declaration"; then
1862  echo '#ifdef __cplusplus' >>confdefs.h
1863  echo $ac_declaration      >>confdefs.h
1864  echo '#endif'             >>confdefs.h
1865fi
1866
1867ac_ext=c
1868ac_cpp='$CPP $CPPFLAGS'
1869ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1870ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1871ac_compiler_gnu=$ac_cv_c_compiler_gnu
1872
1873ac_ext=c
1874ac_cpp='$CPP $CPPFLAGS'
1875ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1876ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1877ac_compiler_gnu=$ac_cv_c_compiler_gnu
1878if test -n "$ac_tool_prefix"; then
1879  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1880set dummy ${ac_tool_prefix}gcc; ac_word=$2
1881echo "$as_me:$LINENO: checking for $ac_word" >&5
1882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1883if test "${ac_cv_prog_CC+set}" = set; then
1884  echo $ECHO_N "(cached) $ECHO_C" >&6
1885else
1886  if test -n "$CC"; then
1887  ac_cv_prog_CC="$CC" # Let the user override the test.
1888else
1889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1890for as_dir in $PATH
1891do
1892  IFS=$as_save_IFS
1893  test -z "$as_dir" && as_dir=.
1894  for ac_exec_ext in '' $ac_executable_extensions; do
1895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1896    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1898    break 2
1899  fi
1900done
1901done
1902
1903fi
1904fi
1905CC=$ac_cv_prog_CC
1906if test -n "$CC"; then
1907  echo "$as_me:$LINENO: result: $CC" >&5
1908echo "${ECHO_T}$CC" >&6
1909else
1910  echo "$as_me:$LINENO: result: no" >&5
1911echo "${ECHO_T}no" >&6
1912fi
1913
1914fi
1915if test -z "$ac_cv_prog_CC"; then
1916  ac_ct_CC=$CC
1917  # Extract the first word of "gcc", so it can be a program name with args.
1918set dummy gcc; ac_word=$2
1919echo "$as_me:$LINENO: checking for $ac_word" >&5
1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1921if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1922  echo $ECHO_N "(cached) $ECHO_C" >&6
1923else
1924  if test -n "$ac_ct_CC"; then
1925  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1926else
1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1928for as_dir in $PATH
1929do
1930  IFS=$as_save_IFS
1931  test -z "$as_dir" && as_dir=.
1932  for ac_exec_ext in '' $ac_executable_extensions; do
1933  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934    ac_cv_prog_ac_ct_CC="gcc"
1935    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1936    break 2
1937  fi
1938done
1939done
1940
1941fi
1942fi
1943ac_ct_CC=$ac_cv_prog_ac_ct_CC
1944if test -n "$ac_ct_CC"; then
1945  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1946echo "${ECHO_T}$ac_ct_CC" >&6
1947else
1948  echo "$as_me:$LINENO: result: no" >&5
1949echo "${ECHO_T}no" >&6
1950fi
1951
1952  CC=$ac_ct_CC
1953else
1954  CC="$ac_cv_prog_CC"
1955fi
1956
1957if test -z "$CC"; then
1958  if test -n "$ac_tool_prefix"; then
1959  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1960set dummy ${ac_tool_prefix}cc; ac_word=$2
1961echo "$as_me:$LINENO: checking for $ac_word" >&5
1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963if test "${ac_cv_prog_CC+set}" = set; then
1964  echo $ECHO_N "(cached) $ECHO_C" >&6
1965else
1966  if test -n "$CC"; then
1967  ac_cv_prog_CC="$CC" # Let the user override the test.
1968else
1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970for as_dir in $PATH
1971do
1972  IFS=$as_save_IFS
1973  test -z "$as_dir" && as_dir=.
1974  for ac_exec_ext in '' $ac_executable_extensions; do
1975  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976    ac_cv_prog_CC="${ac_tool_prefix}cc"
1977    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978    break 2
1979  fi
1980done
1981done
1982
1983fi
1984fi
1985CC=$ac_cv_prog_CC
1986if test -n "$CC"; then
1987  echo "$as_me:$LINENO: result: $CC" >&5
1988echo "${ECHO_T}$CC" >&6
1989else
1990  echo "$as_me:$LINENO: result: no" >&5
1991echo "${ECHO_T}no" >&6
1992fi
1993
1994fi
1995if test -z "$ac_cv_prog_CC"; then
1996  ac_ct_CC=$CC
1997  # Extract the first word of "cc", so it can be a program name with args.
1998set dummy cc; ac_word=$2
1999echo "$as_me:$LINENO: checking for $ac_word" >&5
2000echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2001if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2002  echo $ECHO_N "(cached) $ECHO_C" >&6
2003else
2004  if test -n "$ac_ct_CC"; then
2005  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2006else
2007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2008for as_dir in $PATH
2009do
2010  IFS=$as_save_IFS
2011  test -z "$as_dir" && as_dir=.
2012  for ac_exec_ext in '' $ac_executable_extensions; do
2013  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2014    ac_cv_prog_ac_ct_CC="cc"
2015    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2016    break 2
2017  fi
2018done
2019done
2020
2021fi
2022fi
2023ac_ct_CC=$ac_cv_prog_ac_ct_CC
2024if test -n "$ac_ct_CC"; then
2025  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2026echo "${ECHO_T}$ac_ct_CC" >&6
2027else
2028  echo "$as_me:$LINENO: result: no" >&5
2029echo "${ECHO_T}no" >&6
2030fi
2031
2032  CC=$ac_ct_CC
2033else
2034  CC="$ac_cv_prog_CC"
2035fi
2036
2037fi
2038if test -z "$CC"; then
2039  # Extract the first word of "cc", so it can be a program name with args.
2040set dummy cc; ac_word=$2
2041echo "$as_me:$LINENO: checking for $ac_word" >&5
2042echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2043if test "${ac_cv_prog_CC+set}" = set; then
2044  echo $ECHO_N "(cached) $ECHO_C" >&6
2045else
2046  if test -n "$CC"; then
2047  ac_cv_prog_CC="$CC" # Let the user override the test.
2048else
2049  ac_prog_rejected=no
2050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051for as_dir in $PATH
2052do
2053  IFS=$as_save_IFS
2054  test -z "$as_dir" && as_dir=.
2055  for ac_exec_ext in '' $ac_executable_extensions; do
2056  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2058       ac_prog_rejected=yes
2059       continue
2060     fi
2061    ac_cv_prog_CC="cc"
2062    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2063    break 2
2064  fi
2065done
2066done
2067
2068if test $ac_prog_rejected = yes; then
2069  # We found a bogon in the path, so make sure we never use it.
2070  set dummy $ac_cv_prog_CC
2071  shift
2072  if test $@%:@ != 0; then
2073    # We chose a different compiler from the bogus one.
2074    # However, it has the same basename, so the bogon will be chosen
2075    # first if we set CC to just the basename; use the full file name.
2076    shift
2077    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2078  fi
2079fi
2080fi
2081fi
2082CC=$ac_cv_prog_CC
2083if test -n "$CC"; then
2084  echo "$as_me:$LINENO: result: $CC" >&5
2085echo "${ECHO_T}$CC" >&6
2086else
2087  echo "$as_me:$LINENO: result: no" >&5
2088echo "${ECHO_T}no" >&6
2089fi
2090
2091fi
2092if test -z "$CC"; then
2093  if test -n "$ac_tool_prefix"; then
2094  for ac_prog in cl
2095  do
2096    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2098echo "$as_me:$LINENO: checking for $ac_word" >&5
2099echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2100if test "${ac_cv_prog_CC+set}" = set; then
2101  echo $ECHO_N "(cached) $ECHO_C" >&6
2102else
2103  if test -n "$CC"; then
2104  ac_cv_prog_CC="$CC" # Let the user override the test.
2105else
2106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2107for as_dir in $PATH
2108do
2109  IFS=$as_save_IFS
2110  test -z "$as_dir" && as_dir=.
2111  for ac_exec_ext in '' $ac_executable_extensions; do
2112  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2113    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2114    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2115    break 2
2116  fi
2117done
2118done
2119
2120fi
2121fi
2122CC=$ac_cv_prog_CC
2123if test -n "$CC"; then
2124  echo "$as_me:$LINENO: result: $CC" >&5
2125echo "${ECHO_T}$CC" >&6
2126else
2127  echo "$as_me:$LINENO: result: no" >&5
2128echo "${ECHO_T}no" >&6
2129fi
2130
2131    test -n "$CC" && break
2132  done
2133fi
2134if test -z "$CC"; then
2135  ac_ct_CC=$CC
2136  for ac_prog in cl
2137do
2138  # Extract the first word of "$ac_prog", so it can be a program name with args.
2139set dummy $ac_prog; ac_word=$2
2140echo "$as_me:$LINENO: checking for $ac_word" >&5
2141echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2142if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2143  echo $ECHO_N "(cached) $ECHO_C" >&6
2144else
2145  if test -n "$ac_ct_CC"; then
2146  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2147else
2148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149for as_dir in $PATH
2150do
2151  IFS=$as_save_IFS
2152  test -z "$as_dir" && as_dir=.
2153  for ac_exec_ext in '' $ac_executable_extensions; do
2154  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2155    ac_cv_prog_ac_ct_CC="$ac_prog"
2156    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157    break 2
2158  fi
2159done
2160done
2161
2162fi
2163fi
2164ac_ct_CC=$ac_cv_prog_ac_ct_CC
2165if test -n "$ac_ct_CC"; then
2166  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2167echo "${ECHO_T}$ac_ct_CC" >&6
2168else
2169  echo "$as_me:$LINENO: result: no" >&5
2170echo "${ECHO_T}no" >&6
2171fi
2172
2173  test -n "$ac_ct_CC" && break
2174done
2175
2176  CC=$ac_ct_CC
2177fi
2178
2179fi
2180
2181
2182test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2183See \`config.log' for more details." >&5
2184echo "$as_me: error: no acceptable C compiler found in \$PATH
2185See \`config.log' for more details." >&2;}
2186   { (exit 1); exit 1; }; }
2187
2188# Provide some information about the compiler.
2189echo "$as_me:$LINENO:" \
2190     "checking for C compiler version" >&5
2191ac_compiler=`set X $ac_compile; echo $2`
2192{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2193  (eval $ac_compiler --version </dev/null >&5) 2>&5
2194  ac_status=$?
2195  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196  (exit $ac_status); }
2197{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2198  (eval $ac_compiler -v </dev/null >&5) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }
2202{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2203  (eval $ac_compiler -V </dev/null >&5) 2>&5
2204  ac_status=$?
2205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206  (exit $ac_status); }
2207
2208echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2209echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2210if test "${ac_cv_c_compiler_gnu+set}" = set; then
2211  echo $ECHO_N "(cached) $ECHO_C" >&6
2212else
2213  cat >conftest.$ac_ext <<_ACEOF
2214/* confdefs.h.  */
2215_ACEOF
2216cat confdefs.h >>conftest.$ac_ext
2217cat >>conftest.$ac_ext <<_ACEOF
2218/* end confdefs.h.  */
2219
2220int
2221main ()
2222{
2223#ifndef __GNUC__
2224       choke me
2225#endif
2226
2227  ;
2228  return 0;
2229}
2230_ACEOF
2231rm -f conftest.$ac_objext
2232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2233  (eval $ac_compile) 2>conftest.er1
2234  ac_status=$?
2235  grep -v '^ *+' conftest.er1 >conftest.err
2236  rm -f conftest.er1
2237  cat conftest.err >&5
2238  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2239  (exit $ac_status); } &&
2240	 { ac_try='test -z "$ac_c_werror_flag"
2241			 || test ! -s conftest.err'
2242  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2243  (eval $ac_try) 2>&5
2244  ac_status=$?
2245  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2246  (exit $ac_status); }; } &&
2247	 { ac_try='test -s conftest.$ac_objext'
2248  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2249  (eval $ac_try) 2>&5
2250  ac_status=$?
2251  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252  (exit $ac_status); }; }; then
2253  ac_compiler_gnu=yes
2254else
2255  echo "$as_me: failed program was:" >&5
2256sed 's/^/| /' conftest.$ac_ext >&5
2257
2258ac_compiler_gnu=no
2259fi
2260rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2261ac_cv_c_compiler_gnu=$ac_compiler_gnu
2262
2263fi
2264echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2265echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2266GCC=`test $ac_compiler_gnu = yes && echo yes`
2267ac_test_CFLAGS=${CFLAGS+set}
2268ac_save_CFLAGS=$CFLAGS
2269CFLAGS="-g"
2270echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2271echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2272if test "${ac_cv_prog_cc_g+set}" = set; then
2273  echo $ECHO_N "(cached) $ECHO_C" >&6
2274else
2275  cat >conftest.$ac_ext <<_ACEOF
2276/* confdefs.h.  */
2277_ACEOF
2278cat confdefs.h >>conftest.$ac_ext
2279cat >>conftest.$ac_ext <<_ACEOF
2280/* end confdefs.h.  */
2281
2282int
2283main ()
2284{
2285
2286  ;
2287  return 0;
2288}
2289_ACEOF
2290rm -f conftest.$ac_objext
2291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2292  (eval $ac_compile) 2>conftest.er1
2293  ac_status=$?
2294  grep -v '^ *+' conftest.er1 >conftest.err
2295  rm -f conftest.er1
2296  cat conftest.err >&5
2297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2298  (exit $ac_status); } &&
2299	 { ac_try='test -z "$ac_c_werror_flag"
2300			 || test ! -s conftest.err'
2301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2302  (eval $ac_try) 2>&5
2303  ac_status=$?
2304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2305  (exit $ac_status); }; } &&
2306	 { ac_try='test -s conftest.$ac_objext'
2307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2308  (eval $ac_try) 2>&5
2309  ac_status=$?
2310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2311  (exit $ac_status); }; }; then
2312  ac_cv_prog_cc_g=yes
2313else
2314  echo "$as_me: failed program was:" >&5
2315sed 's/^/| /' conftest.$ac_ext >&5
2316
2317ac_cv_prog_cc_g=no
2318fi
2319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2320fi
2321echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2322echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2323if test "$ac_test_CFLAGS" = set; then
2324  CFLAGS=$ac_save_CFLAGS
2325elif test $ac_cv_prog_cc_g = yes; then
2326  if test "$GCC" = yes; then
2327    CFLAGS="-g -O2"
2328  else
2329    CFLAGS="-g"
2330  fi
2331else
2332  if test "$GCC" = yes; then
2333    CFLAGS="-O2"
2334  else
2335    CFLAGS=
2336  fi
2337fi
2338echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2339echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2340if test "${ac_cv_prog_cc_stdc+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  ac_cv_prog_cc_stdc=no
2344ac_save_CC=$CC
2345cat >conftest.$ac_ext <<_ACEOF
2346/* confdefs.h.  */
2347_ACEOF
2348cat confdefs.h >>conftest.$ac_ext
2349cat >>conftest.$ac_ext <<_ACEOF
2350/* end confdefs.h.  */
2351#include <stdarg.h>
2352#include <stdio.h>
2353#include <sys/types.h>
2354#include <sys/stat.h>
2355/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2356struct buf { int x; };
2357FILE * (*rcsopen) (struct buf *, struct stat *, int);
2358static char *e (p, i)
2359     char **p;
2360     int i;
2361{
2362  return p[i];
2363}
2364static char *f (char * (*g) (char **, int), char **p, ...)
2365{
2366  char *s;
2367  va_list v;
2368  va_start (v,p);
2369  s = g (p, va_arg (v,int));
2370  va_end (v);
2371  return s;
2372}
2373
2374/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2375   function prototypes and stuff, but not '\xHH' hex character constants.
2376   These don't provoke an error unfortunately, instead are silently treated
2377   as 'x'.  The following induces an error, until -std1 is added to get
2378   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2379   array size at least.  It's necessary to write '\x00'==0 to get something
2380   that's true only with -std1.  */
2381int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2382
2383int test (int i, double x);
2384struct s1 {int (*f) (int a);};
2385struct s2 {int (*f) (double a);};
2386int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2387int argc;
2388char **argv;
2389int
2390main ()
2391{
2392return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2393  ;
2394  return 0;
2395}
2396_ACEOF
2397# Don't try gcc -ansi; that turns off useful extensions and
2398# breaks some systems' header files.
2399# AIX			-qlanglvl=ansi
2400# Ultrix and OSF/1	-std1
2401# HP-UX 10.20 and later	-Ae
2402# HP-UX older versions	-Aa -D_HPUX_SOURCE
2403# SVR4			-Xc -D__EXTENSIONS__
2404for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2405do
2406  CC="$ac_save_CC $ac_arg"
2407  rm -f conftest.$ac_objext
2408if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2409  (eval $ac_compile) 2>conftest.er1
2410  ac_status=$?
2411  grep -v '^ *+' conftest.er1 >conftest.err
2412  rm -f conftest.er1
2413  cat conftest.err >&5
2414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415  (exit $ac_status); } &&
2416	 { ac_try='test -z "$ac_c_werror_flag"
2417			 || test ! -s conftest.err'
2418  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2419  (eval $ac_try) 2>&5
2420  ac_status=$?
2421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422  (exit $ac_status); }; } &&
2423	 { ac_try='test -s conftest.$ac_objext'
2424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2425  (eval $ac_try) 2>&5
2426  ac_status=$?
2427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2428  (exit $ac_status); }; }; then
2429  ac_cv_prog_cc_stdc=$ac_arg
2430break
2431else
2432  echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435fi
2436rm -f conftest.err conftest.$ac_objext
2437done
2438rm -f conftest.$ac_ext conftest.$ac_objext
2439CC=$ac_save_CC
2440
2441fi
2442
2443case "x$ac_cv_prog_cc_stdc" in
2444  x|xno)
2445    echo "$as_me:$LINENO: result: none needed" >&5
2446echo "${ECHO_T}none needed" >&6 ;;
2447  *)
2448    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2449echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2450    CC="$CC $ac_cv_prog_cc_stdc" ;;
2451esac
2452
2453# Some people use a C++ compiler to compile C.  Since we use `exit',
2454# in C++ we need to declare it.  In case someone uses the same compiler
2455# for both compiling C and C++ we need to have the C++ compiler decide
2456# the declaration of exit, since it's the most demanding environment.
2457cat >conftest.$ac_ext <<_ACEOF
2458@%:@ifndef __cplusplus
2459  choke me
2460@%:@endif
2461_ACEOF
2462rm -f conftest.$ac_objext
2463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2464  (eval $ac_compile) 2>conftest.er1
2465  ac_status=$?
2466  grep -v '^ *+' conftest.er1 >conftest.err
2467  rm -f conftest.er1
2468  cat conftest.err >&5
2469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2470  (exit $ac_status); } &&
2471	 { ac_try='test -z "$ac_c_werror_flag"
2472			 || test ! -s conftest.err'
2473  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474  (eval $ac_try) 2>&5
2475  ac_status=$?
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); }; } &&
2478	 { ac_try='test -s conftest.$ac_objext'
2479  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2480  (eval $ac_try) 2>&5
2481  ac_status=$?
2482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483  (exit $ac_status); }; }; then
2484  for ac_declaration in \
2485   '' \
2486   'extern "C" void std::exit (int) throw (); using std::exit;' \
2487   'extern "C" void std::exit (int); using std::exit;' \
2488   'extern "C" void exit (int) throw ();' \
2489   'extern "C" void exit (int);' \
2490   'void exit (int);'
2491do
2492  cat >conftest.$ac_ext <<_ACEOF
2493/* confdefs.h.  */
2494_ACEOF
2495cat confdefs.h >>conftest.$ac_ext
2496cat >>conftest.$ac_ext <<_ACEOF
2497/* end confdefs.h.  */
2498$ac_declaration
2499@%:@include <stdlib.h>
2500int
2501main ()
2502{
2503exit (42);
2504  ;
2505  return 0;
2506}
2507_ACEOF
2508rm -f conftest.$ac_objext
2509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2510  (eval $ac_compile) 2>conftest.er1
2511  ac_status=$?
2512  grep -v '^ *+' conftest.er1 >conftest.err
2513  rm -f conftest.er1
2514  cat conftest.err >&5
2515  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516  (exit $ac_status); } &&
2517	 { ac_try='test -z "$ac_c_werror_flag"
2518			 || test ! -s conftest.err'
2519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2520  (eval $ac_try) 2>&5
2521  ac_status=$?
2522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523  (exit $ac_status); }; } &&
2524	 { ac_try='test -s conftest.$ac_objext'
2525  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2526  (eval $ac_try) 2>&5
2527  ac_status=$?
2528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529  (exit $ac_status); }; }; then
2530  :
2531else
2532  echo "$as_me: failed program was:" >&5
2533sed 's/^/| /' conftest.$ac_ext >&5
2534
2535continue
2536fi
2537rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2538  cat >conftest.$ac_ext <<_ACEOF
2539/* confdefs.h.  */
2540_ACEOF
2541cat confdefs.h >>conftest.$ac_ext
2542cat >>conftest.$ac_ext <<_ACEOF
2543/* end confdefs.h.  */
2544$ac_declaration
2545int
2546main ()
2547{
2548exit (42);
2549  ;
2550  return 0;
2551}
2552_ACEOF
2553rm -f conftest.$ac_objext
2554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2555  (eval $ac_compile) 2>conftest.er1
2556  ac_status=$?
2557  grep -v '^ *+' conftest.er1 >conftest.err
2558  rm -f conftest.er1
2559  cat conftest.err >&5
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); } &&
2562	 { ac_try='test -z "$ac_c_werror_flag"
2563			 || test ! -s conftest.err'
2564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565  (eval $ac_try) 2>&5
2566  ac_status=$?
2567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568  (exit $ac_status); }; } &&
2569	 { ac_try='test -s conftest.$ac_objext'
2570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2571  (eval $ac_try) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); }; }; then
2575  break
2576else
2577  echo "$as_me: failed program was:" >&5
2578sed 's/^/| /' conftest.$ac_ext >&5
2579
2580fi
2581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2582done
2583rm -f conftest*
2584if test -n "$ac_declaration"; then
2585  echo '#ifdef __cplusplus' >>confdefs.h
2586  echo $ac_declaration      >>confdefs.h
2587  echo '#endif'             >>confdefs.h
2588fi
2589
2590else
2591  echo "$as_me: failed program was:" >&5
2592sed 's/^/| /' conftest.$ac_ext >&5
2593
2594fi
2595rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2596ac_ext=c
2597ac_cpp='$CPP $CPPFLAGS'
2598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601
2602
2603# Checks for libraries.
2604# FIXME: Replace `main' with a function in `-lSDL_gfx':
2605
2606
2607echo "$as_me:$LINENO: checking for main in -lSDL_gfx" >&5
2608echo $ECHO_N "checking for main in -lSDL_gfx... $ECHO_C" >&6
2609if test "${ac_cv_lib_SDL_gfx_main+set}" = set; then
2610  echo $ECHO_N "(cached) $ECHO_C" >&6
2611else
2612  ac_check_lib_save_LIBS=$LIBS
2613LIBS="-lSDL_gfx  $LIBS"
2614cat >conftest.$ac_ext <<_ACEOF
2615/* confdefs.h.  */
2616_ACEOF
2617cat confdefs.h >>conftest.$ac_ext
2618cat >>conftest.$ac_ext <<_ACEOF
2619/* end confdefs.h.  */
2620
2621
2622int
2623main ()
2624{
2625main ();
2626  ;
2627  return 0;
2628}
2629_ACEOF
2630rm -f conftest.$ac_objext conftest$ac_exeext
2631if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2632  (eval $ac_link) 2>conftest.er1
2633  ac_status=$?
2634  grep -v '^ *+' conftest.er1 >conftest.err
2635  rm -f conftest.er1
2636  cat conftest.err >&5
2637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2638  (exit $ac_status); } &&
2639	 { ac_try='test -z "$ac_c_werror_flag"
2640			 || test ! -s conftest.err'
2641  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642  (eval $ac_try) 2>&5
2643  ac_status=$?
2644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2645  (exit $ac_status); }; } &&
2646	 { ac_try='test -s conftest$ac_exeext'
2647  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2648  (eval $ac_try) 2>&5
2649  ac_status=$?
2650  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651  (exit $ac_status); }; }; then
2652  ac_cv_lib_SDL_gfx_main=yes
2653else
2654  echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
2657ac_cv_lib_SDL_gfx_main=no
2658fi
2659rm -f conftest.err conftest.$ac_objext \
2660      conftest$ac_exeext conftest.$ac_ext
2661LIBS=$ac_check_lib_save_LIBS
2662fi
2663echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_gfx_main" >&5
2664echo "${ECHO_T}$ac_cv_lib_SDL_gfx_main" >&6
2665if test $ac_cv_lib_SDL_gfx_main = yes; then
2666  cat >>confdefs.h <<_ACEOF
2667@%:@define HAVE_LIBSDL_GFX 1
2668_ACEOF
2669
2670  LIBS="-lSDL_gfx $LIBS"
2671
2672fi
2673
2674# FIXME: Replace `main' with a function in `-lSDL_image':
2675
2676echo "$as_me:$LINENO: checking for main in -lSDL_image" >&5
2677echo $ECHO_N "checking for main in -lSDL_image... $ECHO_C" >&6
2678if test "${ac_cv_lib_SDL_image_main+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  ac_check_lib_save_LIBS=$LIBS
2682LIBS="-lSDL_image  $LIBS"
2683cat >conftest.$ac_ext <<_ACEOF
2684/* confdefs.h.  */
2685_ACEOF
2686cat confdefs.h >>conftest.$ac_ext
2687cat >>conftest.$ac_ext <<_ACEOF
2688/* end confdefs.h.  */
2689
2690
2691int
2692main ()
2693{
2694main ();
2695  ;
2696  return 0;
2697}
2698_ACEOF
2699rm -f conftest.$ac_objext conftest$ac_exeext
2700if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2701  (eval $ac_link) 2>conftest.er1
2702  ac_status=$?
2703  grep -v '^ *+' conftest.er1 >conftest.err
2704  rm -f conftest.er1
2705  cat conftest.err >&5
2706  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707  (exit $ac_status); } &&
2708	 { ac_try='test -z "$ac_c_werror_flag"
2709			 || test ! -s conftest.err'
2710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711  (eval $ac_try) 2>&5
2712  ac_status=$?
2713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714  (exit $ac_status); }; } &&
2715	 { ac_try='test -s conftest$ac_exeext'
2716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717  (eval $ac_try) 2>&5
2718  ac_status=$?
2719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720  (exit $ac_status); }; }; then
2721  ac_cv_lib_SDL_image_main=yes
2722else
2723  echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726ac_cv_lib_SDL_image_main=no
2727fi
2728rm -f conftest.err conftest.$ac_objext \
2729      conftest$ac_exeext conftest.$ac_ext
2730LIBS=$ac_check_lib_save_LIBS
2731fi
2732echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_image_main" >&5
2733echo "${ECHO_T}$ac_cv_lib_SDL_image_main" >&6
2734if test $ac_cv_lib_SDL_image_main = yes; then
2735  cat >>confdefs.h <<_ACEOF
2736@%:@define HAVE_LIBSDL_IMAGE 1
2737_ACEOF
2738
2739  LIBS="-lSDL_image $LIBS"
2740
2741fi
2742
2743
2744# Checks for header files.
2745ac_ext=c
2746ac_cpp='$CPP $CPPFLAGS'
2747ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2748ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2749ac_compiler_gnu=$ac_cv_c_compiler_gnu
2750echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2751echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2752# On Suns, sometimes $CPP names a directory.
2753if test -n "$CPP" && test -d "$CPP"; then
2754  CPP=
2755fi
2756if test -z "$CPP"; then
2757  if test "${ac_cv_prog_CPP+set}" = set; then
2758  echo $ECHO_N "(cached) $ECHO_C" >&6
2759else
2760      # Double quotes because CPP needs to be expanded
2761    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2762    do
2763      ac_preproc_ok=false
2764for ac_c_preproc_warn_flag in '' yes
2765do
2766  # Use a header file that comes with gcc, so configuring glibc
2767  # with a fresh cross-compiler works.
2768  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2769  # <limits.h> exists even on freestanding compilers.
2770  # On the NeXT, cc -E runs the code through the compiler's parser,
2771  # not just through cpp. "Syntax error" is here to catch this case.
2772  cat >conftest.$ac_ext <<_ACEOF
2773/* confdefs.h.  */
2774_ACEOF
2775cat confdefs.h >>conftest.$ac_ext
2776cat >>conftest.$ac_ext <<_ACEOF
2777/* end confdefs.h.  */
2778@%:@ifdef __STDC__
2779@%:@ include <limits.h>
2780@%:@else
2781@%:@ include <assert.h>
2782@%:@endif
2783		     Syntax error
2784_ACEOF
2785if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2786  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2787  ac_status=$?
2788  grep -v '^ *+' conftest.er1 >conftest.err
2789  rm -f conftest.er1
2790  cat conftest.err >&5
2791  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792  (exit $ac_status); } >/dev/null; then
2793  if test -s conftest.err; then
2794    ac_cpp_err=$ac_c_preproc_warn_flag
2795    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2796  else
2797    ac_cpp_err=
2798  fi
2799else
2800  ac_cpp_err=yes
2801fi
2802if test -z "$ac_cpp_err"; then
2803  :
2804else
2805  echo "$as_me: failed program was:" >&5
2806sed 's/^/| /' conftest.$ac_ext >&5
2807
2808  # Broken: fails on valid input.
2809continue
2810fi
2811rm -f conftest.err conftest.$ac_ext
2812
2813  # OK, works on sane cases.  Now check whether non-existent headers
2814  # can be detected and how.
2815  cat >conftest.$ac_ext <<_ACEOF
2816/* confdefs.h.  */
2817_ACEOF
2818cat confdefs.h >>conftest.$ac_ext
2819cat >>conftest.$ac_ext <<_ACEOF
2820/* end confdefs.h.  */
2821@%:@include <ac_nonexistent.h>
2822_ACEOF
2823if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2824  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2825  ac_status=$?
2826  grep -v '^ *+' conftest.er1 >conftest.err
2827  rm -f conftest.er1
2828  cat conftest.err >&5
2829  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830  (exit $ac_status); } >/dev/null; then
2831  if test -s conftest.err; then
2832    ac_cpp_err=$ac_c_preproc_warn_flag
2833    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2834  else
2835    ac_cpp_err=
2836  fi
2837else
2838  ac_cpp_err=yes
2839fi
2840if test -z "$ac_cpp_err"; then
2841  # Broken: success on invalid input.
2842continue
2843else
2844  echo "$as_me: failed program was:" >&5
2845sed 's/^/| /' conftest.$ac_ext >&5
2846
2847  # Passes both tests.
2848ac_preproc_ok=:
2849break
2850fi
2851rm -f conftest.err conftest.$ac_ext
2852
2853done
2854# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2855rm -f conftest.err conftest.$ac_ext
2856if $ac_preproc_ok; then
2857  break
2858fi
2859
2860    done
2861    ac_cv_prog_CPP=$CPP
2862
2863fi
2864  CPP=$ac_cv_prog_CPP
2865else
2866  ac_cv_prog_CPP=$CPP
2867fi
2868echo "$as_me:$LINENO: result: $CPP" >&5
2869echo "${ECHO_T}$CPP" >&6
2870ac_preproc_ok=false
2871for ac_c_preproc_warn_flag in '' yes
2872do
2873  # Use a header file that comes with gcc, so configuring glibc
2874  # with a fresh cross-compiler works.
2875  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2876  # <limits.h> exists even on freestanding compilers.
2877  # On the NeXT, cc -E runs the code through the compiler's parser,
2878  # not just through cpp. "Syntax error" is here to catch this case.
2879  cat >conftest.$ac_ext <<_ACEOF
2880/* confdefs.h.  */
2881_ACEOF
2882cat confdefs.h >>conftest.$ac_ext
2883cat >>conftest.$ac_ext <<_ACEOF
2884/* end confdefs.h.  */
2885@%:@ifdef __STDC__
2886@%:@ include <limits.h>
2887@%:@else
2888@%:@ include <assert.h>
2889@%:@endif
2890		     Syntax error
2891_ACEOF
2892if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2893  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2894  ac_status=$?
2895  grep -v '^ *+' conftest.er1 >conftest.err
2896  rm -f conftest.er1
2897  cat conftest.err >&5
2898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899  (exit $ac_status); } >/dev/null; then
2900  if test -s conftest.err; then
2901    ac_cpp_err=$ac_c_preproc_warn_flag
2902    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2903  else
2904    ac_cpp_err=
2905  fi
2906else
2907  ac_cpp_err=yes
2908fi
2909if test -z "$ac_cpp_err"; then
2910  :
2911else
2912  echo "$as_me: failed program was:" >&5
2913sed 's/^/| /' conftest.$ac_ext >&5
2914
2915  # Broken: fails on valid input.
2916continue
2917fi
2918rm -f conftest.err conftest.$ac_ext
2919
2920  # OK, works on sane cases.  Now check whether non-existent headers
2921  # can be detected and how.
2922  cat >conftest.$ac_ext <<_ACEOF
2923/* confdefs.h.  */
2924_ACEOF
2925cat confdefs.h >>conftest.$ac_ext
2926cat >>conftest.$ac_ext <<_ACEOF
2927/* end confdefs.h.  */
2928@%:@include <ac_nonexistent.h>
2929_ACEOF
2930if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2931  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2932  ac_status=$?
2933  grep -v '^ *+' conftest.er1 >conftest.err
2934  rm -f conftest.er1
2935  cat conftest.err >&5
2936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937  (exit $ac_status); } >/dev/null; then
2938  if test -s conftest.err; then
2939    ac_cpp_err=$ac_c_preproc_warn_flag
2940    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2941  else
2942    ac_cpp_err=
2943  fi
2944else
2945  ac_cpp_err=yes
2946fi
2947if test -z "$ac_cpp_err"; then
2948  # Broken: success on invalid input.
2949continue
2950else
2951  echo "$as_me: failed program was:" >&5
2952sed 's/^/| /' conftest.$ac_ext >&5
2953
2954  # Passes both tests.
2955ac_preproc_ok=:
2956break
2957fi
2958rm -f conftest.err conftest.$ac_ext
2959
2960done
2961# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2962rm -f conftest.err conftest.$ac_ext
2963if $ac_preproc_ok; then
2964  :
2965else
2966  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2967See \`config.log' for more details." >&5
2968echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2969See \`config.log' for more details." >&2;}
2970   { (exit 1); exit 1; }; }
2971fi
2972
2973ac_ext=c
2974ac_cpp='$CPP $CPPFLAGS'
2975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977ac_compiler_gnu=$ac_cv_c_compiler_gnu
2978
2979
2980echo "$as_me:$LINENO: checking for egrep" >&5
2981echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2982if test "${ac_cv_prog_egrep+set}" = set; then
2983  echo $ECHO_N "(cached) $ECHO_C" >&6
2984else
2985  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2986    then ac_cv_prog_egrep='grep -E'
2987    else ac_cv_prog_egrep='egrep'
2988    fi
2989fi
2990echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2991echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2992 EGREP=$ac_cv_prog_egrep
2993
2994
2995echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2996echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2997if test "${ac_cv_header_stdc+set}" = set; then
2998  echo $ECHO_N "(cached) $ECHO_C" >&6
2999else
3000  cat >conftest.$ac_ext <<_ACEOF
3001/* confdefs.h.  */
3002_ACEOF
3003cat confdefs.h >>conftest.$ac_ext
3004cat >>conftest.$ac_ext <<_ACEOF
3005/* end confdefs.h.  */
3006#include <stdlib.h>
3007#include <stdarg.h>
3008#include <string.h>
3009#include <float.h>
3010
3011int
3012main ()
3013{
3014
3015  ;
3016  return 0;
3017}
3018_ACEOF
3019rm -f conftest.$ac_objext
3020if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3021  (eval $ac_compile) 2>conftest.er1
3022  ac_status=$?
3023  grep -v '^ *+' conftest.er1 >conftest.err
3024  rm -f conftest.er1
3025  cat conftest.err >&5
3026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027  (exit $ac_status); } &&
3028	 { ac_try='test -z "$ac_c_werror_flag"
3029			 || test ! -s conftest.err'
3030  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031  (eval $ac_try) 2>&5
3032  ac_status=$?
3033  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3034  (exit $ac_status); }; } &&
3035	 { ac_try='test -s conftest.$ac_objext'
3036  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037  (eval $ac_try) 2>&5
3038  ac_status=$?
3039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040  (exit $ac_status); }; }; then
3041  ac_cv_header_stdc=yes
3042else
3043  echo "$as_me: failed program was:" >&5
3044sed 's/^/| /' conftest.$ac_ext >&5
3045
3046ac_cv_header_stdc=no
3047fi
3048rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3049
3050if test $ac_cv_header_stdc = yes; then
3051  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3052  cat >conftest.$ac_ext <<_ACEOF
3053/* confdefs.h.  */
3054_ACEOF
3055cat confdefs.h >>conftest.$ac_ext
3056cat >>conftest.$ac_ext <<_ACEOF
3057/* end confdefs.h.  */
3058#include <string.h>
3059
3060_ACEOF
3061if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3062  $EGREP "memchr" >/dev/null 2>&1; then
3063  :
3064else
3065  ac_cv_header_stdc=no
3066fi
3067rm -f conftest*
3068
3069fi
3070
3071if test $ac_cv_header_stdc = yes; then
3072  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3073  cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h.  */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h.  */
3079#include <stdlib.h>
3080
3081_ACEOF
3082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3083  $EGREP "free" >/dev/null 2>&1; then
3084  :
3085else
3086  ac_cv_header_stdc=no
3087fi
3088rm -f conftest*
3089
3090fi
3091
3092if test $ac_cv_header_stdc = yes; then
3093  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3094  if test "$cross_compiling" = yes; then
3095  :
3096else
3097  cat >conftest.$ac_ext <<_ACEOF
3098/* confdefs.h.  */
3099_ACEOF
3100cat confdefs.h >>conftest.$ac_ext
3101cat >>conftest.$ac_ext <<_ACEOF
3102/* end confdefs.h.  */
3103#include <ctype.h>
3104#if ((' ' & 0x0FF) == 0x020)
3105# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3106# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3107#else
3108# define ISLOWER(c) \
3109		   (('a' <= (c) && (c) <= 'i') \
3110		     || ('j' <= (c) && (c) <= 'r') \
3111		     || ('s' <= (c) && (c) <= 'z'))
3112# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3113#endif
3114
3115#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3116int
3117main ()
3118{
3119  int i;
3120  for (i = 0; i < 256; i++)
3121    if (XOR (islower (i), ISLOWER (i))
3122	|| toupper (i) != TOUPPER (i))
3123      exit(2);
3124  exit (0);
3125}
3126_ACEOF
3127rm -f conftest$ac_exeext
3128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3129  (eval $ac_link) 2>&5
3130  ac_status=$?
3131  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3132  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3134  (eval $ac_try) 2>&5
3135  ac_status=$?
3136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137  (exit $ac_status); }; }; then
3138  :
3139else
3140  echo "$as_me: program exited with status $ac_status" >&5
3141echo "$as_me: failed program was:" >&5
3142sed 's/^/| /' conftest.$ac_ext >&5
3143
3144( exit $ac_status )
3145ac_cv_header_stdc=no
3146fi
3147rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3148fi
3149fi
3150fi
3151echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3152echo "${ECHO_T}$ac_cv_header_stdc" >&6
3153if test $ac_cv_header_stdc = yes; then
3154
3155cat >>confdefs.h <<\_ACEOF
3156@%:@define STDC_HEADERS 1
3157_ACEOF
3158
3159fi
3160
3161# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3172		  inttypes.h stdint.h unistd.h
3173do
3174as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3175echo "$as_me:$LINENO: checking for $ac_header" >&5
3176echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3177if eval "test \"\${$as_ac_Header+set}\" = set"; then
3178  echo $ECHO_N "(cached) $ECHO_C" >&6
3179else
3180  cat >conftest.$ac_ext <<_ACEOF
3181/* confdefs.h.  */
3182_ACEOF
3183cat confdefs.h >>conftest.$ac_ext
3184cat >>conftest.$ac_ext <<_ACEOF
3185/* end confdefs.h.  */
3186$ac_includes_default
3187
3188@%:@include <$ac_header>
3189_ACEOF
3190rm -f conftest.$ac_objext
3191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3192  (eval $ac_compile) 2>conftest.er1
3193  ac_status=$?
3194  grep -v '^ *+' conftest.er1 >conftest.err
3195  rm -f conftest.er1
3196  cat conftest.err >&5
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); } &&
3199	 { ac_try='test -z "$ac_c_werror_flag"
3200			 || test ! -s conftest.err'
3201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3202  (eval $ac_try) 2>&5
3203  ac_status=$?
3204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205  (exit $ac_status); }; } &&
3206	 { ac_try='test -s conftest.$ac_objext'
3207  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3208  (eval $ac_try) 2>&5
3209  ac_status=$?
3210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211  (exit $ac_status); }; }; then
3212  eval "$as_ac_Header=yes"
3213else
3214  echo "$as_me: failed program was:" >&5
3215sed 's/^/| /' conftest.$ac_ext >&5
3216
3217eval "$as_ac_Header=no"
3218fi
3219rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3220fi
3221echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3222echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3223if test `eval echo '${'$as_ac_Header'}'` = yes; then
3224  cat >>confdefs.h <<_ACEOF
3225@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3226_ACEOF
3227
3228fi
3229
3230done
3231
3232
3233
3234for ac_header in string.h
3235do
3236as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3237if eval "test \"\${$as_ac_Header+set}\" = set"; then
3238  echo "$as_me:$LINENO: checking for $ac_header" >&5
3239echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3240if eval "test \"\${$as_ac_Header+set}\" = set"; then
3241  echo $ECHO_N "(cached) $ECHO_C" >&6
3242fi
3243echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3244echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3245else
3246  # Is the header compilable?
3247echo "$as_me:$LINENO: checking $ac_header usability" >&5
3248echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3249cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h.  */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h.  */
3255$ac_includes_default
3256@%:@include <$ac_header>
3257_ACEOF
3258rm -f conftest.$ac_objext
3259if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3260  (eval $ac_compile) 2>conftest.er1
3261  ac_status=$?
3262  grep -v '^ *+' conftest.er1 >conftest.err
3263  rm -f conftest.er1
3264  cat conftest.err >&5
3265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266  (exit $ac_status); } &&
3267	 { ac_try='test -z "$ac_c_werror_flag"
3268			 || test ! -s conftest.err'
3269  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3270  (eval $ac_try) 2>&5
3271  ac_status=$?
3272  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273  (exit $ac_status); }; } &&
3274	 { ac_try='test -s conftest.$ac_objext'
3275  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276  (eval $ac_try) 2>&5
3277  ac_status=$?
3278  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279  (exit $ac_status); }; }; then
3280  ac_header_compiler=yes
3281else
3282  echo "$as_me: failed program was:" >&5
3283sed 's/^/| /' conftest.$ac_ext >&5
3284
3285ac_header_compiler=no
3286fi
3287rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3288echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3289echo "${ECHO_T}$ac_header_compiler" >&6
3290
3291# Is the header present?
3292echo "$as_me:$LINENO: checking $ac_header presence" >&5
3293echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3294cat >conftest.$ac_ext <<_ACEOF
3295/* confdefs.h.  */
3296_ACEOF
3297cat confdefs.h >>conftest.$ac_ext
3298cat >>conftest.$ac_ext <<_ACEOF
3299/* end confdefs.h.  */
3300@%:@include <$ac_header>
3301_ACEOF
3302if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3303  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3304  ac_status=$?
3305  grep -v '^ *+' conftest.er1 >conftest.err
3306  rm -f conftest.er1
3307  cat conftest.err >&5
3308  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3309  (exit $ac_status); } >/dev/null; then
3310  if test -s conftest.err; then
3311    ac_cpp_err=$ac_c_preproc_warn_flag
3312    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3313  else
3314    ac_cpp_err=
3315  fi
3316else
3317  ac_cpp_err=yes
3318fi
3319if test -z "$ac_cpp_err"; then
3320  ac_header_preproc=yes
3321else
3322  echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325  ac_header_preproc=no
3326fi
3327rm -f conftest.err conftest.$ac_ext
3328echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3329echo "${ECHO_T}$ac_header_preproc" >&6
3330
3331# So?  What about this header?
3332case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3333  yes:no: )
3334    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3335echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3336    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3337echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3338    ac_header_preproc=yes
3339    ;;
3340  no:yes:* )
3341    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3342echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3343    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3344echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3345    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3346echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3347    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3348echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3351    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3352echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3353    (
3354      cat <<\_ASBOX
3355@%:@@%:@ --------------------------------- @%:@@%:@
3356@%:@@%:@ Report this to BUG-REPORT-ADDRESS @%:@@%:@
3357@%:@@%:@ --------------------------------- @%:@@%:@
3358_ASBOX
3359    ) |
3360      sed "s/^/$as_me: WARNING:     /" >&2
3361    ;;
3362esac
3363echo "$as_me:$LINENO: checking for $ac_header" >&5
3364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3365if eval "test \"\${$as_ac_Header+set}\" = set"; then
3366  echo $ECHO_N "(cached) $ECHO_C" >&6
3367else
3368  eval "$as_ac_Header=\$ac_header_preproc"
3369fi
3370echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3371echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3372
3373fi
3374if test `eval echo '${'$as_ac_Header'}'` = yes; then
3375  cat >>confdefs.h <<_ACEOF
3376@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3377_ACEOF
3378
3379fi
3380
3381done
3382
3383
3384# Checks for typedefs, structures, and compiler characteristics.
3385echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
3386echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6
3387if test "${ac_cv_header_stdbool_h+set}" = set; then
3388  echo $ECHO_N "(cached) $ECHO_C" >&6
3389else
3390  cat >conftest.$ac_ext <<_ACEOF
3391/* confdefs.h.  */
3392_ACEOF
3393cat confdefs.h >>conftest.$ac_ext
3394cat >>conftest.$ac_ext <<_ACEOF
3395/* end confdefs.h.  */
3396
3397#include <stdbool.h>
3398#ifndef bool
3399# error bool is not defined
3400#endif
3401#ifndef false
3402# error false is not defined
3403#endif
3404#if false
3405# error false is not 0
3406#endif
3407#ifndef true
3408# error true is not defined
3409#endif
3410#if true != 1
3411# error true is not 1
3412#endif
3413#ifndef __bool_true_false_are_defined
3414# error __bool_true_false_are_defined is not defined
3415#endif
3416
3417	struct s { _Bool s: 1; _Bool t; } s;
3418
3419	char a[true == 1 ? 1 : -1];
3420	char b[false == 0 ? 1 : -1];
3421	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
3422	char d[(bool) -0.5 == true ? 1 : -1];
3423	bool e = &s;
3424	char f[(_Bool) -0.0 == false ? 1 : -1];
3425	char g[true];
3426	char h[sizeof (_Bool)];
3427	char i[sizeof s.t];
3428
3429int
3430main ()
3431{
3432 return !a + !b + !c + !d + !e + !f + !g + !h + !i;
3433  ;
3434  return 0;
3435}
3436_ACEOF
3437rm -f conftest.$ac_objext
3438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439  (eval $ac_compile) 2>conftest.er1
3440  ac_status=$?
3441  grep -v '^ *+' conftest.er1 >conftest.err
3442  rm -f conftest.er1
3443  cat conftest.err >&5
3444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445  (exit $ac_status); } &&
3446	 { ac_try='test -z "$ac_c_werror_flag"
3447			 || test ! -s conftest.err'
3448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449  (eval $ac_try) 2>&5
3450  ac_status=$?
3451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452  (exit $ac_status); }; } &&
3453	 { ac_try='test -s conftest.$ac_objext'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; }; then
3459  ac_cv_header_stdbool_h=yes
3460else
3461  echo "$as_me: failed program was:" >&5
3462sed 's/^/| /' conftest.$ac_ext >&5
3463
3464ac_cv_header_stdbool_h=no
3465fi
3466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467fi
3468echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
3469echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6
3470echo "$as_me:$LINENO: checking for _Bool" >&5
3471echo $ECHO_N "checking for _Bool... $ECHO_C" >&6
3472if test "${ac_cv_type__Bool+set}" = set; then
3473  echo $ECHO_N "(cached) $ECHO_C" >&6
3474else
3475  cat >conftest.$ac_ext <<_ACEOF
3476/* confdefs.h.  */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h.  */
3481$ac_includes_default
3482int
3483main ()
3484{
3485if ((_Bool *) 0)
3486  return 0;
3487if (sizeof (_Bool))
3488  return 0;
3489  ;
3490  return 0;
3491}
3492_ACEOF
3493rm -f conftest.$ac_objext
3494if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3495  (eval $ac_compile) 2>conftest.er1
3496  ac_status=$?
3497  grep -v '^ *+' conftest.er1 >conftest.err
3498  rm -f conftest.er1
3499  cat conftest.err >&5
3500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3501  (exit $ac_status); } &&
3502	 { ac_try='test -z "$ac_c_werror_flag"
3503			 || test ! -s conftest.err'
3504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3505  (eval $ac_try) 2>&5
3506  ac_status=$?
3507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3508  (exit $ac_status); }; } &&
3509	 { ac_try='test -s conftest.$ac_objext'
3510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3511  (eval $ac_try) 2>&5
3512  ac_status=$?
3513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514  (exit $ac_status); }; }; then
3515  ac_cv_type__Bool=yes
3516else
3517  echo "$as_me: failed program was:" >&5
3518sed 's/^/| /' conftest.$ac_ext >&5
3519
3520ac_cv_type__Bool=no
3521fi
3522rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3523fi
3524echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
3525echo "${ECHO_T}$ac_cv_type__Bool" >&6
3526if test $ac_cv_type__Bool = yes; then
3527
3528cat >>confdefs.h <<_ACEOF
3529@%:@define HAVE__BOOL 1
3530_ACEOF
3531
3532
3533fi
3534
3535if test $ac_cv_header_stdbool_h = yes; then
3536
3537cat >>confdefs.h <<\_ACEOF
3538@%:@define HAVE_STDBOOL_H 1
3539_ACEOF
3540
3541fi
3542
3543echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3544echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3545if test "${ac_cv_c_const+set}" = set; then
3546  echo $ECHO_N "(cached) $ECHO_C" >&6
3547else
3548  cat >conftest.$ac_ext <<_ACEOF
3549/* confdefs.h.  */
3550_ACEOF
3551cat confdefs.h >>conftest.$ac_ext
3552cat >>conftest.$ac_ext <<_ACEOF
3553/* end confdefs.h.  */
3554
3555int
3556main ()
3557{
3558/* FIXME: Include the comments suggested by Paul. */
3559#ifndef __cplusplus
3560  /* Ultrix mips cc rejects this.  */
3561  typedef int charset[2];
3562  const charset x;
3563  /* SunOS 4.1.1 cc rejects this.  */
3564  char const *const *ccp;
3565  char **p;
3566  /* NEC SVR4.0.2 mips cc rejects this.  */
3567  struct point {int x, y;};
3568  static struct point const zero = {0,0};
3569  /* AIX XL C 1.02.0.0 rejects this.
3570     It does not let you subtract one const X* pointer from another in
3571     an arm of an if-expression whose if-part is not a constant
3572     expression */
3573  const char *g = "string";
3574  ccp = &g + (g ? g-g : 0);
3575  /* HPUX 7.0 cc rejects these. */
3576  ++ccp;
3577  p = (char**) ccp;
3578  ccp = (char const *const *) p;
3579  { /* SCO 3.2v4 cc rejects this.  */
3580    char *t;
3581    char const *s = 0 ? (char *) 0 : (char const *) 0;
3582
3583    *t++ = 0;
3584  }
3585  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3586    int x[] = {25, 17};
3587    const int *foo = &x[0];
3588    ++foo;
3589  }
3590  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3591    typedef const int *iptr;
3592    iptr p = 0;
3593    ++p;
3594  }
3595  { /* AIX XL C 1.02.0.0 rejects this saying
3596       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3597    struct s { int j; const int *ap[3]; };
3598    struct s *b; b->j = 5;
3599  }
3600  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3601    const int foo = 10;
3602  }
3603#endif
3604
3605  ;
3606  return 0;
3607}
3608_ACEOF
3609rm -f conftest.$ac_objext
3610if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3611  (eval $ac_compile) 2>conftest.er1
3612  ac_status=$?
3613  grep -v '^ *+' conftest.er1 >conftest.err
3614  rm -f conftest.er1
3615  cat conftest.err >&5
3616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617  (exit $ac_status); } &&
3618	 { ac_try='test -z "$ac_c_werror_flag"
3619			 || test ! -s conftest.err'
3620  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3621  (eval $ac_try) 2>&5
3622  ac_status=$?
3623  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3624  (exit $ac_status); }; } &&
3625	 { ac_try='test -s conftest.$ac_objext'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; }; then
3631  ac_cv_c_const=yes
3632else
3633  echo "$as_me: failed program was:" >&5
3634sed 's/^/| /' conftest.$ac_ext >&5
3635
3636ac_cv_c_const=no
3637fi
3638rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3639fi
3640echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3641echo "${ECHO_T}$ac_cv_c_const" >&6
3642if test $ac_cv_c_const = no; then
3643
3644cat >>confdefs.h <<\_ACEOF
3645@%:@define const
3646_ACEOF
3647
3648fi
3649
3650
3651# Checks for library functions.
3652
3653for ac_header in stdlib.h
3654do
3655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3656if eval "test \"\${$as_ac_Header+set}\" = set"; then
3657  echo "$as_me:$LINENO: checking for $ac_header" >&5
3658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3659if eval "test \"\${$as_ac_Header+set}\" = set"; then
3660  echo $ECHO_N "(cached) $ECHO_C" >&6
3661fi
3662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3664else
3665  # Is the header compilable?
3666echo "$as_me:$LINENO: checking $ac_header usability" >&5
3667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3668cat >conftest.$ac_ext <<_ACEOF
3669/* confdefs.h.  */
3670_ACEOF
3671cat confdefs.h >>conftest.$ac_ext
3672cat >>conftest.$ac_ext <<_ACEOF
3673/* end confdefs.h.  */
3674$ac_includes_default
3675@%:@include <$ac_header>
3676_ACEOF
3677rm -f conftest.$ac_objext
3678if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3679  (eval $ac_compile) 2>conftest.er1
3680  ac_status=$?
3681  grep -v '^ *+' conftest.er1 >conftest.err
3682  rm -f conftest.er1
3683  cat conftest.err >&5
3684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685  (exit $ac_status); } &&
3686	 { ac_try='test -z "$ac_c_werror_flag"
3687			 || test ! -s conftest.err'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; } &&
3693	 { ac_try='test -s conftest.$ac_objext'
3694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3695  (eval $ac_try) 2>&5
3696  ac_status=$?
3697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698  (exit $ac_status); }; }; then
3699  ac_header_compiler=yes
3700else
3701  echo "$as_me: failed program was:" >&5
3702sed 's/^/| /' conftest.$ac_ext >&5
3703
3704ac_header_compiler=no
3705fi
3706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3707echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3708echo "${ECHO_T}$ac_header_compiler" >&6
3709
3710# Is the header present?
3711echo "$as_me:$LINENO: checking $ac_header presence" >&5
3712echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3713cat >conftest.$ac_ext <<_ACEOF
3714/* confdefs.h.  */
3715_ACEOF
3716cat confdefs.h >>conftest.$ac_ext
3717cat >>conftest.$ac_ext <<_ACEOF
3718/* end confdefs.h.  */
3719@%:@include <$ac_header>
3720_ACEOF
3721if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3722  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3723  ac_status=$?
3724  grep -v '^ *+' conftest.er1 >conftest.err
3725  rm -f conftest.er1
3726  cat conftest.err >&5
3727  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3728  (exit $ac_status); } >/dev/null; then
3729  if test -s conftest.err; then
3730    ac_cpp_err=$ac_c_preproc_warn_flag
3731    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3732  else
3733    ac_cpp_err=
3734  fi
3735else
3736  ac_cpp_err=yes
3737fi
3738if test -z "$ac_cpp_err"; then
3739  ac_header_preproc=yes
3740else
3741  echo "$as_me: failed program was:" >&5
3742sed 's/^/| /' conftest.$ac_ext >&5
3743
3744  ac_header_preproc=no
3745fi
3746rm -f conftest.err conftest.$ac_ext
3747echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3748echo "${ECHO_T}$ac_header_preproc" >&6
3749
3750# So?  What about this header?
3751case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3752  yes:no: )
3753    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3754echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3755    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3756echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3757    ac_header_preproc=yes
3758    ;;
3759  no:yes:* )
3760    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3761echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3762    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3763echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3764    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3765echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3766    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3767echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3768    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3770    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3771echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3772    (
3773      cat <<\_ASBOX
3774@%:@@%:@ --------------------------------- @%:@@%:@
3775@%:@@%:@ Report this to BUG-REPORT-ADDRESS @%:@@%:@
3776@%:@@%:@ --------------------------------- @%:@@%:@
3777_ASBOX
3778    ) |
3779      sed "s/^/$as_me: WARNING:     /" >&2
3780    ;;
3781esac
3782echo "$as_me:$LINENO: checking for $ac_header" >&5
3783echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3784if eval "test \"\${$as_ac_Header+set}\" = set"; then
3785  echo $ECHO_N "(cached) $ECHO_C" >&6
3786else
3787  eval "$as_ac_Header=\$ac_header_preproc"
3788fi
3789echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3790echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3791
3792fi
3793if test `eval echo '${'$as_ac_Header'}'` = yes; then
3794  cat >>confdefs.h <<_ACEOF
3795@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3796_ACEOF
3797
3798fi
3799
3800done
3801
3802echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
3803echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
3804if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
3805  echo $ECHO_N "(cached) $ECHO_C" >&6
3806else
3807  if test "$cross_compiling" = yes; then
3808  ac_cv_func_malloc_0_nonnull=no
3809else
3810  cat >conftest.$ac_ext <<_ACEOF
3811/* confdefs.h.  */
3812_ACEOF
3813cat confdefs.h >>conftest.$ac_ext
3814cat >>conftest.$ac_ext <<_ACEOF
3815/* end confdefs.h.  */
3816#if STDC_HEADERS || HAVE_STDLIB_H
3817# include <stdlib.h>
3818#else
3819char *malloc ();
3820#endif
3821
3822int
3823main ()
3824{
3825exit (malloc (0) ? 0 : 1);
3826  ;
3827  return 0;
3828}
3829_ACEOF
3830rm -f conftest$ac_exeext
3831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3832  (eval $ac_link) 2>&5
3833  ac_status=$?
3834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3836  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3837  (eval $ac_try) 2>&5
3838  ac_status=$?
3839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3840  (exit $ac_status); }; }; then
3841  ac_cv_func_malloc_0_nonnull=yes
3842else
3843  echo "$as_me: program exited with status $ac_status" >&5
3844echo "$as_me: failed program was:" >&5
3845sed 's/^/| /' conftest.$ac_ext >&5
3846
3847( exit $ac_status )
3848ac_cv_func_malloc_0_nonnull=no
3849fi
3850rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3851fi
3852fi
3853echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
3854echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
3855if test $ac_cv_func_malloc_0_nonnull = yes; then
3856
3857cat >>confdefs.h <<\_ACEOF
3858@%:@define HAVE_MALLOC 1
3859_ACEOF
3860
3861else
3862  cat >>confdefs.h <<\_ACEOF
3863@%:@define HAVE_MALLOC 0
3864_ACEOF
3865
3866   case $LIB@&t@OBJS in
3867    "malloc.$ac_objext"   | \
3868  *" malloc.$ac_objext"   | \
3869    "malloc.$ac_objext "* | \
3870  *" malloc.$ac_objext "* ) ;;
3871  *) LIB@&t@OBJS="$LIB@&t@OBJS malloc.$ac_objext" ;;
3872esac
3873
3874
3875cat >>confdefs.h <<\_ACEOF
3876@%:@define malloc rpl_malloc
3877_ACEOF
3878
3879fi
3880
3881
3882
3883
3884
3885
3886
3887
3888for ac_func in atexit pow sqrt strchr strstr
3889do
3890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3891echo "$as_me:$LINENO: checking for $ac_func" >&5
3892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3893if eval "test \"\${$as_ac_var+set}\" = set"; then
3894  echo $ECHO_N "(cached) $ECHO_C" >&6
3895else
3896  cat >conftest.$ac_ext <<_ACEOF
3897/* confdefs.h.  */
3898_ACEOF
3899cat confdefs.h >>conftest.$ac_ext
3900cat >>conftest.$ac_ext <<_ACEOF
3901/* end confdefs.h.  */
3902/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
3903   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
3904#define $ac_func innocuous_$ac_func
3905
3906/* System header to define __stub macros and hopefully few prototypes,
3907    which can conflict with char $ac_func (); below.
3908    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3909    <limits.h> exists even on freestanding compilers.  */
3910
3911#ifdef __STDC__
3912# include <limits.h>
3913#else
3914# include <assert.h>
3915#endif
3916
3917#undef $ac_func
3918
3919/* Override any gcc2 internal prototype to avoid an error.  */
3920#ifdef __cplusplus
3921extern "C"
3922{
3923#endif
3924/* We use char because int might match the return type of a gcc2
3925   builtin and then its argument prototype would still apply.  */
3926char $ac_func ();
3927/* The GNU C library defines this for functions which it implements
3928    to always fail with ENOSYS.  Some functions are actually named
3929    something starting with __ and the normal name is an alias.  */
3930#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3931choke me
3932#else
3933char (*f) () = $ac_func;
3934#endif
3935#ifdef __cplusplus
3936}
3937#endif
3938
3939int
3940main ()
3941{
3942return f != $ac_func;
3943  ;
3944  return 0;
3945}
3946_ACEOF
3947rm -f conftest.$ac_objext conftest$ac_exeext
3948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3949  (eval $ac_link) 2>conftest.er1
3950  ac_status=$?
3951  grep -v '^ *+' conftest.er1 >conftest.err
3952  rm -f conftest.er1
3953  cat conftest.err >&5
3954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955  (exit $ac_status); } &&
3956	 { ac_try='test -z "$ac_c_werror_flag"
3957			 || test ! -s conftest.err'
3958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3959  (eval $ac_try) 2>&5
3960  ac_status=$?
3961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962  (exit $ac_status); }; } &&
3963	 { ac_try='test -s conftest$ac_exeext'
3964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965  (eval $ac_try) 2>&5
3966  ac_status=$?
3967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968  (exit $ac_status); }; }; then
3969  eval "$as_ac_var=yes"
3970else
3971  echo "$as_me: failed program was:" >&5
3972sed 's/^/| /' conftest.$ac_ext >&5
3973
3974eval "$as_ac_var=no"
3975fi
3976rm -f conftest.err conftest.$ac_objext \
3977      conftest$ac_exeext conftest.$ac_ext
3978fi
3979echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3980echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3981if test `eval echo '${'$as_ac_var'}'` = yes; then
3982  cat >>confdefs.h <<_ACEOF
3983@%:@define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3984_ACEOF
3985
3986fi
3987done
3988
3989
3990                              ac_config_files="$ac_config_files Makefile data/Makefile src/Makefile"
3991
3992cat >confcache <<\_ACEOF
3993# This file is a shell script that caches the results of configure
3994# tests run on this system so they can be shared between configure
3995# scripts and configure runs, see configure's option --config-cache.
3996# It is not useful on other systems.  If it contains results you don't
3997# want to keep, you may remove or edit it.
3998#
3999# config.status only pays attention to the cache file if you give it
4000# the --recheck option to rerun configure.
4001#
4002# `ac_cv_env_foo' variables (set or unset) will be overridden when
4003# loading this file, other *unset* `ac_cv_foo' will be assigned the
4004# following values.
4005
4006_ACEOF
4007
4008# The following way of writing the cache mishandles newlines in values,
4009# but we know of no workaround that is simple, portable, and efficient.
4010# So, don't put newlines in cache variables' values.
4011# Ultrix sh set writes to stderr and can't be redirected directly,
4012# and sets the high bit in the cache file unless we assign to the vars.
4013{
4014  (set) 2>&1 |
4015    case `(ac_space=' '; set | grep ac_space) 2>&1` in
4016    *ac_space=\ *)
4017      # `set' does not quote correctly, so add quotes (double-quote
4018      # substitution turns \\\\ into \\, and sed turns \\ into \).
4019      sed -n \
4020	"s/'/'\\\\''/g;
4021	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4022      ;;
4023    *)
4024      # `set' quotes correctly as required by POSIX, so do not add quotes.
4025      sed -n \
4026	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4027      ;;
4028    esac;
4029} |
4030  sed '
4031     t clear
4032     : clear
4033     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4034     t end
4035     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4036     : end' >>confcache
4037if diff $cache_file confcache >/dev/null 2>&1; then :; else
4038  if test -w $cache_file; then
4039    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4040    cat confcache >$cache_file
4041  else
4042    echo "not updating unwritable cache $cache_file"
4043  fi
4044fi
4045rm -f confcache
4046
4047test "x$prefix" = xNONE && prefix=$ac_default_prefix
4048# Let make expand exec_prefix.
4049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4050
4051# VPATH may cause trouble with some makes, so we remove $(srcdir),
4052# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4053# trailing colons and then remove the whole line if VPATH becomes empty
4054# (actually we leave an empty line to preserve line numbers).
4055if test "x$srcdir" = x.; then
4056  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
4057s/:*\$(srcdir):*/:/;
4058s/:*\${srcdir}:*/:/;
4059s/:*@srcdir@:*/:/;
4060s/^\([^=]*=[	 ]*\):*/\1/;
4061s/:*$//;
4062s/^[^=]*=[	 ]*$//;
4063}'
4064fi
4065
4066DEFS=-DHAVE_CONFIG_H
4067
4068ac_libobjs=
4069ac_ltlibobjs=
4070for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
4071  # 1. Remove the extension, and $U if already installed.
4072  ac_i=`echo "$ac_i" |
4073	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4074  # 2. Add them.
4075  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4076  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4077done
4078LIB@&t@OBJS=$ac_libobjs
4079
4080LTLIBOBJS=$ac_ltlibobjs
4081
4082
4083
4084: ${CONFIG_STATUS=./config.status}
4085ac_clean_files_save=$ac_clean_files
4086ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4087{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4088echo "$as_me: creating $CONFIG_STATUS" >&6;}
4089cat >$CONFIG_STATUS <<_ACEOF
4090#! $SHELL
4091# Generated by $as_me.
4092# Run this file to recreate the current configuration.
4093# Compiler output produced by configure, useful for debugging
4094# configure, is in config.log if it exists.
4095
4096debug=false
4097ac_cs_recheck=false
4098ac_cs_silent=false
4099SHELL=\${CONFIG_SHELL-$SHELL}
4100_ACEOF
4101
4102cat >>$CONFIG_STATUS <<\_ACEOF
4103## --------------------- ##
4104## M4sh Initialization.  ##
4105## --------------------- ##
4106
4107# Be Bourne compatible
4108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4109  emulate sh
4110  NULLCMD=:
4111  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4112  # is contrary to our usage.  Disable this feature.
4113  alias -g '${1+"$@"}'='"$@"'
4114elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4115  set -o posix
4116fi
4117DUALCASE=1; export DUALCASE # for MKS sh
4118
4119# Support unset when possible.
4120if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4121  as_unset=unset
4122else
4123  as_unset=false
4124fi
4125
4126
4127# Work around bugs in pre-3.0 UWIN ksh.
4128$as_unset ENV MAIL MAILPATH
4129PS1='$ '
4130PS2='> '
4131PS4='+ '
4132
4133# NLS nuisances.
4134for as_var in \
4135  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4136  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4137  LC_TELEPHONE LC_TIME
4138do
4139  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
4140    eval $as_var=C; export $as_var
4141  else
4142    $as_unset $as_var
4143  fi
4144done
4145
4146# Required to use basename.
4147if expr a : '\(a\)' >/dev/null 2>&1; then
4148  as_expr=expr
4149else
4150  as_expr=false
4151fi
4152
4153if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4154  as_basename=basename
4155else
4156  as_basename=false
4157fi
4158
4159
4160# Name of the executable.
4161as_me=`$as_basename "$0" ||
4162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4163	 X"$0" : 'X\(//\)$' \| \
4164	 X"$0" : 'X\(/\)$' \| \
4165	 .     : '\(.\)' 2>/dev/null ||
4166echo X/"$0" |
4167    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4168  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
4169  	  /^X\/\(\/\).*/{ s//\1/; q; }
4170  	  s/.*/./; q'`
4171
4172
4173# PATH needs CR, and LINENO needs CR and PATH.
4174# Avoid depending upon Character Ranges.
4175as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4177as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4178as_cr_digits='0123456789'
4179as_cr_alnum=$as_cr_Letters$as_cr_digits
4180
4181# The user is always right.
4182if test "${PATH_SEPARATOR+set}" != set; then
4183  echo "#! /bin/sh" >conf$$.sh
4184  echo  "exit 0"   >>conf$$.sh
4185  chmod +x conf$$.sh
4186  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4187    PATH_SEPARATOR=';'
4188  else
4189    PATH_SEPARATOR=:
4190  fi
4191  rm -f conf$$.sh
4192fi
4193
4194
4195  as_lineno_1=$LINENO
4196  as_lineno_2=$LINENO
4197  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4198  test "x$as_lineno_1" != "x$as_lineno_2" &&
4199  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
4200  # Find who we are.  Look in the path if we contain no path at all
4201  # relative or not.
4202  case $0 in
4203    *[\\/]* ) as_myself=$0 ;;
4204    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205for as_dir in $PATH
4206do
4207  IFS=$as_save_IFS
4208  test -z "$as_dir" && as_dir=.
4209  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4210done
4211
4212       ;;
4213  esac
4214  # We did not find ourselves, most probably we were run as `sh COMMAND'
4215  # in which case we are not to be found in the path.
4216  if test "x$as_myself" = x; then
4217    as_myself=$0
4218  fi
4219  if test ! -f "$as_myself"; then
4220    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4221echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4222   { (exit 1); exit 1; }; }
4223  fi
4224  case $CONFIG_SHELL in
4225  '')
4226    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4228do
4229  IFS=$as_save_IFS
4230  test -z "$as_dir" && as_dir=.
4231  for as_base in sh bash ksh sh5; do
4232	 case $as_dir in
4233	 /*)
4234	   if ("$as_dir/$as_base" -c '
4235  as_lineno_1=$LINENO
4236  as_lineno_2=$LINENO
4237  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4238  test "x$as_lineno_1" != "x$as_lineno_2" &&
4239  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
4240	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4241	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4242	     CONFIG_SHELL=$as_dir/$as_base
4243	     export CONFIG_SHELL
4244	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4245	   fi;;
4246	 esac
4247       done
4248done
4249;;
4250  esac
4251
4252  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4253  # uniformly replaced by the line number.  The first 'sed' inserts a
4254  # line-number line before each line; the second 'sed' does the real
4255  # work.  The second script uses 'N' to pair each line-number line
4256  # with the numbered line, and appends trailing '-' during
4257  # substitution so that $LINENO is not a special case at line end.
4258  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4259  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
4260  sed '=' <$as_myself |
4261    sed '
4262      N
4263      s,$,-,
4264      : loop
4265      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4266      t loop
4267      s,-$,,
4268      s,^['$as_cr_digits']*\n,,
4269    ' >$as_me.lineno &&
4270  chmod +x $as_me.lineno ||
4271    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4272echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4273   { (exit 1); exit 1; }; }
4274
4275  # Don't try to exec as it changes $[0], causing all sort of problems
4276  # (the dirname of $[0] is not the place where we might find the
4277  # original and so on.  Autoconf is especially sensible to this).
4278  . ./$as_me.lineno
4279  # Exit status is that of the last command.
4280  exit
4281}
4282
4283
4284case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4285  *c*,-n*) ECHO_N= ECHO_C='
4286' ECHO_T='	' ;;
4287  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4288  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
4289esac
4290
4291if expr a : '\(a\)' >/dev/null 2>&1; then
4292  as_expr=expr
4293else
4294  as_expr=false
4295fi
4296
4297rm -f conf$$ conf$$.exe conf$$.file
4298echo >conf$$.file
4299if ln -s conf$$.file conf$$ 2>/dev/null; then
4300  # We could just check for DJGPP; but this test a) works b) is more generic
4301  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4302  if test -f conf$$.exe; then
4303    # Don't use ln at all; we don't have any links
4304    as_ln_s='cp -p'
4305  else
4306    as_ln_s='ln -s'
4307  fi
4308elif ln conf$$.file conf$$ 2>/dev/null; then
4309  as_ln_s=ln
4310else
4311  as_ln_s='cp -p'
4312fi
4313rm -f conf$$ conf$$.exe conf$$.file
4314
4315if mkdir -p . 2>/dev/null; then
4316  as_mkdir_p=:
4317else
4318  test -d ./-p && rmdir ./-p
4319  as_mkdir_p=false
4320fi
4321
4322as_executable_p="test -f"
4323
4324# Sed expression to map a string onto a valid CPP name.
4325as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4326
4327# Sed expression to map a string onto a valid variable name.
4328as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4329
4330
4331# IFS
4332# We need space, tab and new line, in precisely that order.
4333as_nl='
4334'
4335IFS=" 	$as_nl"
4336
4337# CDPATH.
4338$as_unset CDPATH
4339
4340exec 6>&1
4341
4342# Open the log real soon, to keep \$[0] and so on meaningful, and to
4343# report actual input values of CONFIG_FILES etc. instead of their
4344# values after options handling.  Logging --version etc. is OK.
4345exec 5>>config.log
4346{
4347  echo
4348  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
4349@%:@@%:@ Running $as_me. @%:@@%:@
4350_ASBOX
4351} >&5
4352cat >&5 <<_CSEOF
4353
4354This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was
4355generated by GNU Autoconf 2.59.  Invocation command line was
4356
4357  CONFIG_FILES    = $CONFIG_FILES
4358  CONFIG_HEADERS  = $CONFIG_HEADERS
4359  CONFIG_LINKS    = $CONFIG_LINKS
4360  CONFIG_COMMANDS = $CONFIG_COMMANDS
4361  $ $0 $@
4362
4363_CSEOF
4364echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4365echo >&5
4366_ACEOF
4367
4368# Files that config.status was made for.
4369if test -n "$ac_config_files"; then
4370  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4371fi
4372
4373if test -n "$ac_config_headers"; then
4374  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4375fi
4376
4377if test -n "$ac_config_links"; then
4378  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4379fi
4380
4381if test -n "$ac_config_commands"; then
4382  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4383fi
4384
4385cat >>$CONFIG_STATUS <<\_ACEOF
4386
4387ac_cs_usage="\
4388\`$as_me' instantiates files from templates according to the
4389current configuration.
4390
4391Usage: $0 [OPTIONS] [FILE]...
4392
4393  -h, --help       print this help, then exit
4394  -V, --version    print version number, then exit
4395  -q, --quiet      do not print progress messages
4396  -d, --debug      don't remove temporary files
4397      --recheck    update $as_me by reconfiguring in the same conditions
4398  --file=FILE[:TEMPLATE]
4399		   instantiate the configuration file FILE
4400  --header=FILE[:TEMPLATE]
4401		   instantiate the configuration header FILE
4402
4403Configuration files:
4404$config_files
4405
4406Configuration headers:
4407$config_headers
4408
4409Report bugs to <bug-autoconf@gnu.org>."
4410_ACEOF
4411
4412cat >>$CONFIG_STATUS <<_ACEOF
4413ac_cs_version="\\
4414FULL-PACKAGE-NAME config.status VERSION
4415configured by $0, generated by GNU Autoconf 2.59,
4416  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4417
4418Copyright (C) 2003 Free Software Foundation, Inc.
4419This config.status script is free software; the Free Software Foundation
4420gives unlimited permission to copy, distribute and modify it."
4421srcdir=$srcdir
4422_ACEOF
4423
4424cat >>$CONFIG_STATUS <<\_ACEOF
4425# If no file are specified by the user, then we need to provide default
4426# value.  By we need to know if files were specified by the user.
4427ac_need_defaults=:
4428while test $# != 0
4429do
4430  case $1 in
4431  --*=*)
4432    ac_option=`expr "x$1" : 'x\([^=]*\)='`
4433    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4434    ac_shift=:
4435    ;;
4436  -*)
4437    ac_option=$1
4438    ac_optarg=$2
4439    ac_shift=shift
4440    ;;
4441  *) # This is not an option, so the user has probably given explicit
4442     # arguments.
4443     ac_option=$1
4444     ac_need_defaults=false;;
4445  esac
4446
4447  case $ac_option in
4448  # Handling of the options.
4449_ACEOF
4450cat >>$CONFIG_STATUS <<\_ACEOF
4451  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4452    ac_cs_recheck=: ;;
4453  --version | --vers* | -V )
4454    echo "$ac_cs_version"; exit 0 ;;
4455  --he | --h)
4456    # Conflict between --help and --header
4457    { { echo "$as_me:$LINENO: error: ambiguous option: $1
4458Try \`$0 --help' for more information." >&5
4459echo "$as_me: error: ambiguous option: $1
4460Try \`$0 --help' for more information." >&2;}
4461   { (exit 1); exit 1; }; };;
4462  --help | --hel | -h )
4463    echo "$ac_cs_usage"; exit 0 ;;
4464  --debug | --d* | -d )
4465    debug=: ;;
4466  --file | --fil | --fi | --f )
4467    $ac_shift
4468    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4469    ac_need_defaults=false;;
4470  --header | --heade | --head | --hea )
4471    $ac_shift
4472    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4473    ac_need_defaults=false;;
4474  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4475  | -silent | --silent | --silen | --sile | --sil | --si | --s)
4476    ac_cs_silent=: ;;
4477
4478  # This is an error.
4479  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4480Try \`$0 --help' for more information." >&5
4481echo "$as_me: error: unrecognized option: $1
4482Try \`$0 --help' for more information." >&2;}
4483   { (exit 1); exit 1; }; } ;;
4484
4485  *) ac_config_targets="$ac_config_targets $1" ;;
4486
4487  esac
4488  shift
4489done
4490
4491ac_configure_extra_args=
4492
4493if $ac_cs_silent; then
4494  exec 6>/dev/null
4495  ac_configure_extra_args="$ac_configure_extra_args --silent"
4496fi
4497
4498_ACEOF
4499cat >>$CONFIG_STATUS <<_ACEOF
4500if \$ac_cs_recheck; then
4501  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4502  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4503fi
4504
4505_ACEOF
4506
4507
4508
4509
4510
4511cat >>$CONFIG_STATUS <<\_ACEOF
4512for ac_config_target in $ac_config_targets
4513do
4514  case "$ac_config_target" in
4515  # Handling of arguments.
4516  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4517  "data/Makefile" ) CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
4518  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4519  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4520  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4521echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4522   { (exit 1); exit 1; }; };;
4523  esac
4524done
4525
4526# If the user did not use the arguments to specify the items to instantiate,
4527# then the envvar interface is used.  Set only those that are not.
4528# We use the long form for the default assignment because of an extremely
4529# bizarre bug on SunOS 4.1.3.
4530if $ac_need_defaults; then
4531  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4532  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4533fi
4534
4535# Have a temporary directory for convenience.  Make it in the build tree
4536# simply because there is no reason to put it here, and in addition,
4537# creating and moving files from /tmp can sometimes cause problems.
4538# Create a temporary directory, and hook for its removal unless debugging.
4539$debug ||
4540{
4541  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4542  trap '{ (exit 1); exit 1; }' 1 2 13 15
4543}
4544
4545# Create a (secure) tmp directory for tmp files.
4546
4547{
4548  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4549  test -n "$tmp" && test -d "$tmp"
4550}  ||
4551{
4552  tmp=./confstat$$-$RANDOM
4553  (umask 077 && mkdir $tmp)
4554} ||
4555{
4556   echo "$me: cannot create a temporary directory in ." >&2
4557   { (exit 1); exit 1; }
4558}
4559
4560_ACEOF
4561
4562cat >>$CONFIG_STATUS <<_ACEOF
4563
4564#
4565# CONFIG_FILES section.
4566#
4567
4568# No need to generate the scripts if there are no CONFIG_FILES.
4569# This happens for instance when ./config.status config.h
4570if test -n "\$CONFIG_FILES"; then
4571  # Protect against being on the right side of a sed subst in config.status.
4572  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4573   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4574s,@SHELL@,$SHELL,;t t
4575s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4576s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4577s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4578s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4579s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4580s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4581s,@exec_prefix@,$exec_prefix,;t t
4582s,@prefix@,$prefix,;t t
4583s,@program_transform_name@,$program_transform_name,;t t
4584s,@bindir@,$bindir,;t t
4585s,@sbindir@,$sbindir,;t t
4586s,@libexecdir@,$libexecdir,;t t
4587s,@datadir@,$datadir,;t t
4588s,@sysconfdir@,$sysconfdir,;t t
4589s,@sharedstatedir@,$sharedstatedir,;t t
4590s,@localstatedir@,$localstatedir,;t t
4591s,@libdir@,$libdir,;t t
4592s,@includedir@,$includedir,;t t
4593s,@oldincludedir@,$oldincludedir,;t t
4594s,@infodir@,$infodir,;t t
4595s,@mandir@,$mandir,;t t
4596s,@build_alias@,$build_alias,;t t
4597s,@host_alias@,$host_alias,;t t
4598s,@target_alias@,$target_alias,;t t
4599s,@DEFS@,$DEFS,;t t
4600s,@ECHO_C@,$ECHO_C,;t t
4601s,@ECHO_N@,$ECHO_N,;t t
4602s,@ECHO_T@,$ECHO_T,;t t
4603s,@LIBS@,$LIBS,;t t
4604s,@CXX@,$CXX,;t t
4605s,@CXXFLAGS@,$CXXFLAGS,;t t
4606s,@LDFLAGS@,$LDFLAGS,;t t
4607s,@CPPFLAGS@,$CPPFLAGS,;t t
4608s,@ac_ct_CXX@,$ac_ct_CXX,;t t
4609s,@EXEEXT@,$EXEEXT,;t t
4610s,@OBJEXT@,$OBJEXT,;t t
4611s,@CC@,$CC,;t t
4612s,@CFLAGS@,$CFLAGS,;t t
4613s,@ac_ct_CC@,$ac_ct_CC,;t t
4614s,@CPP@,$CPP,;t t
4615s,@EGREP@,$EGREP,;t t
4616s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
4617s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4618CEOF
4619
4620_ACEOF
4621
4622  cat >>$CONFIG_STATUS <<\_ACEOF
4623  # Split the substitutions into bite-sized pieces for seds with
4624  # small command number limits, like on Digital OSF/1 and HP-UX.
4625  ac_max_sed_lines=48
4626  ac_sed_frag=1 # Number of current file.
4627  ac_beg=1 # First line for current file.
4628  ac_end=$ac_max_sed_lines # Line after last line for current file.
4629  ac_more_lines=:
4630  ac_sed_cmds=
4631  while $ac_more_lines; do
4632    if test $ac_beg -gt 1; then
4633      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4634    else
4635      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4636    fi
4637    if test ! -s $tmp/subs.frag; then
4638      ac_more_lines=false
4639    else
4640      # The purpose of the label and of the branching condition is to
4641      # speed up the sed processing (if there are no `@' at all, there
4642      # is no need to browse any of the substitutions).
4643      # These are the two extra sed commands mentioned above.
4644      (echo ':t
4645  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4646      if test -z "$ac_sed_cmds"; then
4647	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4648      else
4649	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4650      fi
4651      ac_sed_frag=`expr $ac_sed_frag + 1`
4652      ac_beg=$ac_end
4653      ac_end=`expr $ac_end + $ac_max_sed_lines`
4654    fi
4655  done
4656  if test -z "$ac_sed_cmds"; then
4657    ac_sed_cmds=cat
4658  fi
4659fi # test -n "$CONFIG_FILES"
4660
4661_ACEOF
4662cat >>$CONFIG_STATUS <<\_ACEOF
4663for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4664  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4665  case $ac_file in
4666  - | *:- | *:-:* ) # input from stdin
4667	cat >$tmp/stdin
4668	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4669	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4670  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4671	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4672  * )   ac_file_in=$ac_file.in ;;
4673  esac
4674
4675  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4676  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4677$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4678	 X"$ac_file" : 'X\(//\)[^/]' \| \
4679	 X"$ac_file" : 'X\(//\)$' \| \
4680	 X"$ac_file" : 'X\(/\)' \| \
4681	 .     : '\(.\)' 2>/dev/null ||
4682echo X"$ac_file" |
4683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4684  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4685  	  /^X\(\/\/\)$/{ s//\1/; q; }
4686  	  /^X\(\/\).*/{ s//\1/; q; }
4687  	  s/.*/./; q'`
4688  { if $as_mkdir_p; then
4689    mkdir -p "$ac_dir"
4690  else
4691    as_dir="$ac_dir"
4692    as_dirs=
4693    while test ! -d "$as_dir"; do
4694      as_dirs="$as_dir $as_dirs"
4695      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4696$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4697	 X"$as_dir" : 'X\(//\)[^/]' \| \
4698	 X"$as_dir" : 'X\(//\)$' \| \
4699	 X"$as_dir" : 'X\(/\)' \| \
4700	 .     : '\(.\)' 2>/dev/null ||
4701echo X"$as_dir" |
4702    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4703  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4704  	  /^X\(\/\/\)$/{ s//\1/; q; }
4705  	  /^X\(\/\).*/{ s//\1/; q; }
4706  	  s/.*/./; q'`
4707    done
4708    test ! -n "$as_dirs" || mkdir $as_dirs
4709  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4710echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4711   { (exit 1); exit 1; }; }; }
4712
4713  ac_builddir=.
4714
4715if test "$ac_dir" != .; then
4716  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4717  # A "../" for each directory in $ac_dir_suffix.
4718  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4719else
4720  ac_dir_suffix= ac_top_builddir=
4721fi
4722
4723case $srcdir in
4724  .)  # No --srcdir option.  We are building in place.
4725    ac_srcdir=.
4726    if test -z "$ac_top_builddir"; then
4727       ac_top_srcdir=.
4728    else
4729       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4730    fi ;;
4731  [\\/]* | ?:[\\/]* )  # Absolute path.
4732    ac_srcdir=$srcdir$ac_dir_suffix;
4733    ac_top_srcdir=$srcdir ;;
4734  *) # Relative path.
4735    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4736    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4737esac
4738
4739# Do not use `cd foo && pwd` to compute absolute paths, because
4740# the directories may not exist.
4741case `pwd` in
4742.) ac_abs_builddir="$ac_dir";;
4743*)
4744  case "$ac_dir" in
4745  .) ac_abs_builddir=`pwd`;;
4746  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4747  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4748  esac;;
4749esac
4750case $ac_abs_builddir in
4751.) ac_abs_top_builddir=${ac_top_builddir}.;;
4752*)
4753  case ${ac_top_builddir}. in
4754  .) ac_abs_top_builddir=$ac_abs_builddir;;
4755  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4756  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4757  esac;;
4758esac
4759case $ac_abs_builddir in
4760.) ac_abs_srcdir=$ac_srcdir;;
4761*)
4762  case $ac_srcdir in
4763  .) ac_abs_srcdir=$ac_abs_builddir;;
4764  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4765  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4766  esac;;
4767esac
4768case $ac_abs_builddir in
4769.) ac_abs_top_srcdir=$ac_top_srcdir;;
4770*)
4771  case $ac_top_srcdir in
4772  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4773  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4774  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4775  esac;;
4776esac
4777
4778
4779
4780  if test x"$ac_file" != x-; then
4781    { echo "$as_me:$LINENO: creating $ac_file" >&5
4782echo "$as_me: creating $ac_file" >&6;}
4783    rm -f "$ac_file"
4784  fi
4785  # Let's still pretend it is `configure' which instantiates (i.e., don't
4786  # use $as_me), people would be surprised to read:
4787  #    /* config.h.  Generated by config.status.  */
4788  if test x"$ac_file" = x-; then
4789    configure_input=
4790  else
4791    configure_input="$ac_file.  "
4792  fi
4793  configure_input=$configure_input"Generated from `echo $ac_file_in |
4794				     sed 's,.*/,,'` by configure."
4795
4796  # First look for the input files in the build tree, otherwise in the
4797  # src tree.
4798  ac_file_inputs=`IFS=:
4799    for f in $ac_file_in; do
4800      case $f in
4801      -) echo $tmp/stdin ;;
4802      [\\/$]*)
4803	 # Absolute (can't be DOS-style, as IFS=:)
4804	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4805echo "$as_me: error: cannot find input file: $f" >&2;}
4806   { (exit 1); exit 1; }; }
4807	 echo "$f";;
4808      *) # Relative
4809	 if test -f "$f"; then
4810	   # Build tree
4811	   echo "$f"
4812	 elif test -f "$srcdir/$f"; then
4813	   # Source tree
4814	   echo "$srcdir/$f"
4815	 else
4816	   # /dev/null tree
4817	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4818echo "$as_me: error: cannot find input file: $f" >&2;}
4819   { (exit 1); exit 1; }; }
4820	 fi;;
4821      esac
4822    done` || { (exit 1); exit 1; }
4823_ACEOF
4824cat >>$CONFIG_STATUS <<_ACEOF
4825  sed "$ac_vpsub
4826$extrasub
4827_ACEOF
4828cat >>$CONFIG_STATUS <<\_ACEOF
4829:t
4830/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4831s,@configure_input@,$configure_input,;t t
4832s,@srcdir@,$ac_srcdir,;t t
4833s,@abs_srcdir@,$ac_abs_srcdir,;t t
4834s,@top_srcdir@,$ac_top_srcdir,;t t
4835s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4836s,@builddir@,$ac_builddir,;t t
4837s,@abs_builddir@,$ac_abs_builddir,;t t
4838s,@top_builddir@,$ac_top_builddir,;t t
4839s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4840" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4841  rm -f $tmp/stdin
4842  if test x"$ac_file" != x-; then
4843    mv $tmp/out $ac_file
4844  else
4845    cat $tmp/out
4846    rm -f $tmp/out
4847  fi
4848
4849done
4850_ACEOF
4851cat >>$CONFIG_STATUS <<\_ACEOF
4852
4853#
4854# CONFIG_HEADER section.
4855#
4856
4857# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4858# NAME is the cpp macro being defined and VALUE is the value it is being given.
4859#
4860# ac_d sets the value in "#define NAME VALUE" lines.
4861ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
4862ac_dB='[	 ].*$,\1#\2'
4863ac_dC=' '
4864ac_dD=',;t'
4865# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4866ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
4867ac_uB='$,\1#\2define\3'
4868ac_uC=' '
4869ac_uD=',;t'
4870
4871for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
4872  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4873  case $ac_file in
4874  - | *:- | *:-:* ) # input from stdin
4875	cat >$tmp/stdin
4876	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4877	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4878  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4879	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4880  * )   ac_file_in=$ac_file.in ;;
4881  esac
4882
4883  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
4884echo "$as_me: creating $ac_file" >&6;}
4885
4886  # First look for the input files in the build tree, otherwise in the
4887  # src tree.
4888  ac_file_inputs=`IFS=:
4889    for f in $ac_file_in; do
4890      case $f in
4891      -) echo $tmp/stdin ;;
4892      [\\/$]*)
4893	 # Absolute (can't be DOS-style, as IFS=:)
4894	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4895echo "$as_me: error: cannot find input file: $f" >&2;}
4896   { (exit 1); exit 1; }; }
4897	 # Do quote $f, to prevent DOS paths from being IFS'd.
4898	 echo "$f";;
4899      *) # Relative
4900	 if test -f "$f"; then
4901	   # Build tree
4902	   echo "$f"
4903	 elif test -f "$srcdir/$f"; then
4904	   # Source tree
4905	   echo "$srcdir/$f"
4906	 else
4907	   # /dev/null tree
4908	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4909echo "$as_me: error: cannot find input file: $f" >&2;}
4910   { (exit 1); exit 1; }; }
4911	 fi;;
4912      esac
4913    done` || { (exit 1); exit 1; }
4914  # Remove the trailing spaces.
4915  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
4916
4917_ACEOF
4918
4919# Transform confdefs.h into two sed scripts, `conftest.defines' and
4920# `conftest.undefs', that substitutes the proper values into
4921# config.h.in to produce config.h.  The first handles `#define'
4922# templates, and the second `#undef' templates.
4923# And first: Protect against being on the right side of a sed subst in
4924# config.status.  Protect against being in an unquoted here document
4925# in config.status.
4926rm -f conftest.defines conftest.undefs
4927# Using a here document instead of a string reduces the quoting nightmare.
4928# Putting comments in sed scripts is not portable.
4929#
4930# `end' is used to avoid that the second main sed command (meant for
4931# 0-ary CPP macros) applies to n-ary macro definitions.
4932# See the Autoconf documentation for `clear'.
4933cat >confdef2sed.sed <<\_ACEOF
4934s/[\\&,]/\\&/g
4935s,[\\$`],\\&,g
4936t clear
4937: clear
4938s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
4939t end
4940s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
4941: end
4942_ACEOF
4943# If some macros were called several times there might be several times
4944# the same #defines, which is useless.  Nevertheless, we may not want to
4945# sort them, since we want the *last* AC-DEFINE to be honored.
4946uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
4947sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
4948rm -f confdef2sed.sed
4949
4950# This sed command replaces #undef with comments.  This is necessary, for
4951# example, in the case of _POSIX_SOURCE, which is predefined and required
4952# on some systems where configure will not decide to define it.
4953cat >>conftest.undefs <<\_ACEOF
4954s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
4955_ACEOF
4956
4957# Break up conftest.defines because some shells have a limit on the size
4958# of here documents, and old seds have small limits too (100 cmds).
4959echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
4960echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
4961echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
4962echo '  :' >>$CONFIG_STATUS
4963rm -f conftest.tail
4964while grep . conftest.defines >/dev/null
4965do
4966  # Write a limited-size here document to $tmp/defines.sed.
4967  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
4968  # Speed up: don't consider the non `#define' lines.
4969  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
4970  # Work around the forget-to-reset-the-flag bug.
4971  echo 't clr' >>$CONFIG_STATUS
4972  echo ': clr' >>$CONFIG_STATUS
4973  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
4974  echo 'CEOF
4975  sed -f $tmp/defines.sed $tmp/in >$tmp/out
4976  rm -f $tmp/in
4977  mv $tmp/out $tmp/in
4978' >>$CONFIG_STATUS
4979  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
4980  rm -f conftest.defines
4981  mv conftest.tail conftest.defines
4982done
4983rm -f conftest.defines
4984echo '  fi # grep' >>$CONFIG_STATUS
4985echo >>$CONFIG_STATUS
4986
4987# Break up conftest.undefs because some shells have a limit on the size
4988# of here documents, and old seds have small limits too (100 cmds).
4989echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
4990rm -f conftest.tail
4991while grep . conftest.undefs >/dev/null
4992do
4993  # Write a limited-size here document to $tmp/undefs.sed.
4994  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
4995  # Speed up: don't consider the non `#undef'
4996  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
4997  # Work around the forget-to-reset-the-flag bug.
4998  echo 't clr' >>$CONFIG_STATUS
4999  echo ': clr' >>$CONFIG_STATUS
5000  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5001  echo 'CEOF
5002  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5003  rm -f $tmp/in
5004  mv $tmp/out $tmp/in
5005' >>$CONFIG_STATUS
5006  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5007  rm -f conftest.undefs
5008  mv conftest.tail conftest.undefs
5009done
5010rm -f conftest.undefs
5011
5012cat >>$CONFIG_STATUS <<\_ACEOF
5013  # Let's still pretend it is `configure' which instantiates (i.e., don't
5014  # use $as_me), people would be surprised to read:
5015  #    /* config.h.  Generated by config.status.  */
5016  if test x"$ac_file" = x-; then
5017    echo "/* Generated by configure.  */" >$tmp/config.h
5018  else
5019    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
5020  fi
5021  cat $tmp/in >>$tmp/config.h
5022  rm -f $tmp/in
5023  if test x"$ac_file" != x-; then
5024    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5025      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5026echo "$as_me: $ac_file is unchanged" >&6;}
5027    else
5028      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5029$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5030	 X"$ac_file" : 'X\(//\)[^/]' \| \
5031	 X"$ac_file" : 'X\(//\)$' \| \
5032	 X"$ac_file" : 'X\(/\)' \| \
5033	 .     : '\(.\)' 2>/dev/null ||
5034echo X"$ac_file" |
5035    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5036  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5037  	  /^X\(\/\/\)$/{ s//\1/; q; }
5038  	  /^X\(\/\).*/{ s//\1/; q; }
5039  	  s/.*/./; q'`
5040      { if $as_mkdir_p; then
5041    mkdir -p "$ac_dir"
5042  else
5043    as_dir="$ac_dir"
5044    as_dirs=
5045    while test ! -d "$as_dir"; do
5046      as_dirs="$as_dir $as_dirs"
5047      as_dir=`(dirname "$as_dir") 2>/dev/null ||
5048$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5049	 X"$as_dir" : 'X\(//\)[^/]' \| \
5050	 X"$as_dir" : 'X\(//\)$' \| \
5051	 X"$as_dir" : 'X\(/\)' \| \
5052	 .     : '\(.\)' 2>/dev/null ||
5053echo X"$as_dir" |
5054    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5055  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5056  	  /^X\(\/\/\)$/{ s//\1/; q; }
5057  	  /^X\(\/\).*/{ s//\1/; q; }
5058  	  s/.*/./; q'`
5059    done
5060    test ! -n "$as_dirs" || mkdir $as_dirs
5061  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5062echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5063   { (exit 1); exit 1; }; }; }
5064
5065      rm -f $ac_file
5066      mv $tmp/config.h $ac_file
5067    fi
5068  else
5069    cat $tmp/config.h
5070    rm -f $tmp/config.h
5071  fi
5072done
5073_ACEOF
5074
5075cat >>$CONFIG_STATUS <<\_ACEOF
5076
5077{ (exit 0); exit 0; }
5078_ACEOF
5079chmod +x $CONFIG_STATUS
5080ac_clean_files=$ac_clean_files_save
5081
5082
5083# configure is writing to config.log, and then calls config.status.
5084# config.status does its own redirection, appending to config.log.
5085# Unfortunately, on DOS this fails, as config.log is still kept open
5086# by configure, so config.status won't be able to write to it; its
5087# output is simply discarded.  So we exec the FD to /dev/null,
5088# effectively closing config.log, so it can be properly (re)opened and
5089# appended to by config.status.  When coming back to configure, we
5090# need to make the FD available again.
5091if test "$no_create" != yes; then
5092  ac_cs_success=:
5093  ac_config_status_args=
5094  test "$silent" = yes &&
5095    ac_config_status_args="$ac_config_status_args --quiet"
5096  exec 5>/dev/null
5097  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5098  exec 5>>config.log
5099  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5100  # would make configure fail if this is the last instruction.
5101  $ac_cs_success || { (exit 1); exit 1; }
5102fi
5103
5104