1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for bsp 5.2.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250
251#
252# Initializations.
253#
254ac_default_prefix=/usr/local
255ac_config_libobj_dir=.
256cross_compiling=no
257subdirs=
258MFLAGS=
259MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete.  It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266
267# Identity of this package.
268PACKAGE_NAME='bsp'
269PACKAGE_TARNAME='bsp'
270PACKAGE_VERSION='5.2'
271PACKAGE_STRING='bsp 5.2'
272PACKAGE_BUGREPORT=''
273
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288#  include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293#  include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304#  include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
310
311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
312ac_subst_files=''
313
314# Initialize some variables set by options.
315ac_init_help=
316ac_init_version=false
317# The variables have the same names as the options, with
318# dashes changed to underlines.
319cache_file=/dev/null
320exec_prefix=NONE
321no_create=
322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
330verbose=
331x_includes=NONE
332x_libraries=NONE
333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
351
352ac_prev=
353for ac_option
354do
355  # If the previous option needs an argument, assign it.
356  if test -n "$ac_prev"; then
357    eval "$ac_prev=\$ac_option"
358    ac_prev=
359    continue
360  fi
361
362  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
363
364  # Accept the important Cygnus configure options, so we can diagnose typos.
365
366  case $ac_option in
367
368  -bindir | --bindir | --bindi | --bind | --bin | --bi)
369    ac_prev=bindir ;;
370  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
371    bindir=$ac_optarg ;;
372
373  -build | --build | --buil | --bui | --bu)
374    ac_prev=build_alias ;;
375  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
376    build_alias=$ac_optarg ;;
377
378  -cache-file | --cache-file | --cache-fil | --cache-fi \
379  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380    ac_prev=cache_file ;;
381  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383    cache_file=$ac_optarg ;;
384
385  --config-cache | -C)
386    cache_file=config.cache ;;
387
388  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389    ac_prev=datadir ;;
390  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391  | --da=*)
392    datadir=$ac_optarg ;;
393
394  -disable-* | --disable-*)
395    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396    # Reject names that are not valid shell variable names.
397    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399   { (exit 1); exit 1; }; }
400    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401    eval "enable_$ac_feature=no" ;;
402
403  -enable-* | --enable-*)
404    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405    # Reject names that are not valid shell variable names.
406    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408   { (exit 1); exit 1; }; }
409    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410    case $ac_option in
411      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
412      *) ac_optarg=yes ;;
413    esac
414    eval "enable_$ac_feature='$ac_optarg'" ;;
415
416  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418  | --exec | --exe | --ex)
419    ac_prev=exec_prefix ;;
420  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422  | --exec=* | --exe=* | --ex=*)
423    exec_prefix=$ac_optarg ;;
424
425  -gas | --gas | --ga | --g)
426    # Obsolete; use --with-gas.
427    with_gas=yes ;;
428
429  -help | --help | --hel | --he | -h)
430    ac_init_help=long ;;
431  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432    ac_init_help=recursive ;;
433  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434    ac_init_help=short ;;
435
436  -host | --host | --hos | --ho)
437    ac_prev=host_alias ;;
438  -host=* | --host=* | --hos=* | --ho=*)
439    host_alias=$ac_optarg ;;
440
441  -includedir | --includedir | --includedi | --included | --include \
442  | --includ | --inclu | --incl | --inc)
443    ac_prev=includedir ;;
444  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445  | --includ=* | --inclu=* | --incl=* | --inc=*)
446    includedir=$ac_optarg ;;
447
448  -infodir | --infodir | --infodi | --infod | --info | --inf)
449    ac_prev=infodir ;;
450  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451    infodir=$ac_optarg ;;
452
453  -libdir | --libdir | --libdi | --libd)
454    ac_prev=libdir ;;
455  -libdir=* | --libdir=* | --libdi=* | --libd=*)
456    libdir=$ac_optarg ;;
457
458  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459  | --libexe | --libex | --libe)
460    ac_prev=libexecdir ;;
461  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462  | --libexe=* | --libex=* | --libe=*)
463    libexecdir=$ac_optarg ;;
464
465  -localstatedir | --localstatedir | --localstatedi | --localstated \
466  | --localstate | --localstat | --localsta | --localst \
467  | --locals | --local | --loca | --loc | --lo)
468    ac_prev=localstatedir ;;
469  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472    localstatedir=$ac_optarg ;;
473
474  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475    ac_prev=mandir ;;
476  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
477    mandir=$ac_optarg ;;
478
479  -nfp | --nfp | --nf)
480    # Obsolete; use --without-fp.
481    with_fp=no ;;
482
483  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
484  | --no-cr | --no-c | -n)
485    no_create=yes ;;
486
487  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489    no_recursion=yes ;;
490
491  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493  | --oldin | --oldi | --old | --ol | --o)
494    ac_prev=oldincludedir ;;
495  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498    oldincludedir=$ac_optarg ;;
499
500  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501    ac_prev=prefix ;;
502  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
503    prefix=$ac_optarg ;;
504
505  -program-prefix | --program-prefix | --program-prefi | --program-pref \
506  | --program-pre | --program-pr | --program-p)
507    ac_prev=program_prefix ;;
508  -program-prefix=* | --program-prefix=* | --program-prefi=* \
509  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510    program_prefix=$ac_optarg ;;
511
512  -program-suffix | --program-suffix | --program-suffi | --program-suff \
513  | --program-suf | --program-su | --program-s)
514    ac_prev=program_suffix ;;
515  -program-suffix=* | --program-suffix=* | --program-suffi=* \
516  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517    program_suffix=$ac_optarg ;;
518
519  -program-transform-name | --program-transform-name \
520  | --program-transform-nam | --program-transform-na \
521  | --program-transform-n | --program-transform- \
522  | --program-transform | --program-transfor \
523  | --program-transfo | --program-transf \
524  | --program-trans | --program-tran \
525  | --progr-tra | --program-tr | --program-t)
526    ac_prev=program_transform_name ;;
527  -program-transform-name=* | --program-transform-name=* \
528  | --program-transform-nam=* | --program-transform-na=* \
529  | --program-transform-n=* | --program-transform-=* \
530  | --program-transform=* | --program-transfor=* \
531  | --program-transfo=* | --program-transf=* \
532  | --program-trans=* | --program-tran=* \
533  | --progr-tra=* | --program-tr=* | --program-t=*)
534    program_transform_name=$ac_optarg ;;
535
536  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537  | -silent | --silent | --silen | --sile | --sil)
538    silent=yes ;;
539
540  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541    ac_prev=sbindir ;;
542  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543  | --sbi=* | --sb=*)
544    sbindir=$ac_optarg ;;
545
546  -sharedstatedir | --sharedstatedir | --sharedstatedi \
547  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548  | --sharedst | --shareds | --shared | --share | --shar \
549  | --sha | --sh)
550    ac_prev=sharedstatedir ;;
551  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554  | --sha=* | --sh=*)
555    sharedstatedir=$ac_optarg ;;
556
557  -site | --site | --sit)
558    ac_prev=site ;;
559  -site=* | --site=* | --sit=*)
560    site=$ac_optarg ;;
561
562  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563    ac_prev=srcdir ;;
564  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
565    srcdir=$ac_optarg ;;
566
567  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568  | --syscon | --sysco | --sysc | --sys | --sy)
569    ac_prev=sysconfdir ;;
570  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572    sysconfdir=$ac_optarg ;;
573
574  -target | --target | --targe | --targ | --tar | --ta | --t)
575    ac_prev=target_alias ;;
576  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577    target_alias=$ac_optarg ;;
578
579  -v | -verbose | --verbose | --verbos | --verbo | --verb)
580    verbose=yes ;;
581
582  -version | --version | --versio | --versi | --vers | -V)
583    ac_init_version=: ;;
584
585  -with-* | --with-*)
586    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587    # Reject names that are not valid shell variable names.
588    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589      { echo "$as_me: error: invalid package name: $ac_package" >&2
590   { (exit 1); exit 1; }; }
591    ac_package=`echo $ac_package| sed 's/-/_/g'`
592    case $ac_option in
593      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
594      *) ac_optarg=yes ;;
595    esac
596    eval "with_$ac_package='$ac_optarg'" ;;
597
598  -without-* | --without-*)
599    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600    # Reject names that are not valid shell variable names.
601    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602      { echo "$as_me: error: invalid package name: $ac_package" >&2
603   { (exit 1); exit 1; }; }
604    ac_package=`echo $ac_package | sed 's/-/_/g'`
605    eval "with_$ac_package=no" ;;
606
607  --x)
608    # Obsolete; use --with-x.
609    with_x=yes ;;
610
611  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612  | --x-incl | --x-inc | --x-in | --x-i)
613    ac_prev=x_includes ;;
614  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616    x_includes=$ac_optarg ;;
617
618  -x-libraries | --x-libraries | --x-librarie | --x-librari \
619  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620    ac_prev=x_libraries ;;
621  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623    x_libraries=$ac_optarg ;;
624
625  -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627   { (exit 1); exit 1; }; }
628    ;;
629
630  *=*)
631    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632    # Reject names that are not valid shell variable names.
633    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635   { (exit 1); exit 1; }; }
636    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637    eval "$ac_envvar='$ac_optarg'"
638    export $ac_envvar ;;
639
640  *)
641    # FIXME: should be removed in autoconf 3.0.
642    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
646    ;;
647
648  esac
649done
650
651if test -n "$ac_prev"; then
652  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653  { echo "$as_me: error: missing argument to $ac_option" >&2
654   { (exit 1); exit 1; }; }
655fi
656
657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
659do
660  eval ac_val=$`echo $ac_var`
661  case $ac_val in
662    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664   { (exit 1); exit 1; }; };;
665  esac
666done
667
668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670	      localstatedir libdir includedir oldincludedir infodir mandir
671do
672  eval ac_val=$`echo $ac_var`
673  case $ac_val in
674    [\\/$]* | ?:[\\/]* ) ;;
675    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676   { (exit 1); exit 1; }; };;
677  esac
678done
679
680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
682# FIXME: To remove some day.
683build=$build_alias
684host=$host_alias
685target=$target_alias
686
687# FIXME: To remove some day.
688if test "x$host_alias" != x; then
689  if test "x$build_alias" = x; then
690    cross_compiling=maybe
691    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692    If a cross compiler is detected then cross compile mode will be used." >&2
693  elif test "x$build_alias" != "x$host_alias"; then
694    cross_compiling=yes
695  fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
702
703
704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706  ac_srcdir_defaulted=yes
707  # Try the directory containing this script, then its parent.
708  ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710	 X"$0" : 'X\(//\)[^/]' \| \
711	 X"$0" : 'X\(//\)$' \| \
712	 X"$0" : 'X\(/\)' \| \
713	 .     : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717  	  /^X\(\/\/\)$/{ s//\1/; q; }
718  	  /^X\(\/\).*/{ s//\1/; q; }
719  	  s/.*/./; q'`
720  srcdir=$ac_confdir
721  if test ! -r $srcdir/$ac_unique_file; then
722    srcdir=..
723  fi
724else
725  ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728  if test "$ac_srcdir_defaulted" = yes; then
729    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730   { (exit 1); exit 1; }; }
731  else
732    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733   { (exit 1); exit 1; }; }
734  fi
735fi
736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738   { (exit 1); exit 1; }; }
739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
772
773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777  # Omit some internal or obsolete options to make the list less imposing.
778  # This message is too long to be a string in the A/UX 3.1 sh.
779  cat <<_ACEOF
780\`configure' configures bsp 5.2 to adapt to many kinds of systems.
781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE.  See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790  -h, --help              display this help and exit
791      --help=short        display options specific to this package
792      --help=recursive    display the short help of all the included packages
793  -V, --version           display version information and exit
794  -q, --quiet, --silent   do not print \`checking...' messages
795      --cache-file=FILE   cache test results in FILE [disabled]
796  -C, --config-cache      alias for \`--cache-file=config.cache'
797  -n, --no-create         do not create output files
798      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
799
800_ACEOF
801
802  cat <<_ACEOF
803Installation directories:
804  --prefix=PREFIX         install architecture-independent files in PREFIX
805			  [$ac_default_prefix]
806  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
807			  [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817  --bindir=DIR           user executables [EPREFIX/bin]
818  --sbindir=DIR          system admin executables [EPREFIX/sbin]
819  --libexecdir=DIR       program executables [EPREFIX/libexec]
820  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
821  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
822  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
823  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
824  --libdir=DIR           object code libraries [EPREFIX/lib]
825  --includedir=DIR       C header files [PREFIX/include]
826  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
827  --infodir=DIR          info documentation [PREFIX/info]
828  --mandir=DIR           man documentation [PREFIX/man]
829_ACEOF
830
831  cat <<\_ACEOF
832
833Program names:
834  --program-prefix=PREFIX            prepend PREFIX to installed program names
835  --program-suffix=SUFFIX            append SUFFIX to installed program names
836  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
837_ACEOF
838fi
839
840if test -n "$ac_init_help"; then
841  case $ac_init_help in
842     short | recursive ) echo "Configuration of bsp 5.2:";;
843   esac
844  cat <<\_ACEOF
845
846Optional Features:
847  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
848  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
849  --enable-maintainer-mode  enable make rules and dependencies not useful
850			  (and sometimes confusing) to the casual installer
851  --disable-dependency-tracking  speeds up one-time build
852  --enable-dependency-tracking   do not reject slow dependency extractors
853  --enable-debug          enables debugging with gdb
854  --enable-profile        turns on profiling
855
856Optional Packages:
857  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
858  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
859  --with-dmalloc          use dmalloc, as in
860			  http://www.dmalloc.com/dmalloc.tar.gz
861
862Some influential environment variables:
863  CC          C compiler command
864  CFLAGS      C compiler flags
865  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
866              nonstandard directory <lib dir>
867  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
868              headers in a nonstandard directory <include dir>
869  CPP         C preprocessor
870
871Use these variables to override the choices made by `configure' or to help
872it to find libraries and programs with nonstandard names/locations.
873
874_ACEOF
875fi
876
877if test "$ac_init_help" = "recursive"; then
878  # If there are subdirs, report their specific --help.
879  ac_popdir=`pwd`
880  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
881    test -d $ac_dir || continue
882    ac_builddir=.
883
884if test "$ac_dir" != .; then
885  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
886  # A "../" for each directory in $ac_dir_suffix.
887  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
888else
889  ac_dir_suffix= ac_top_builddir=
890fi
891
892case $srcdir in
893  .)  # No --srcdir option.  We are building in place.
894    ac_srcdir=.
895    if test -z "$ac_top_builddir"; then
896       ac_top_srcdir=.
897    else
898       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
899    fi ;;
900  [\\/]* | ?:[\\/]* )  # Absolute path.
901    ac_srcdir=$srcdir$ac_dir_suffix;
902    ac_top_srcdir=$srcdir ;;
903  *) # Relative path.
904    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
905    ac_top_srcdir=$ac_top_builddir$srcdir ;;
906esac
907
908# Do not use `cd foo && pwd` to compute absolute paths, because
909# the directories may not exist.
910case `pwd` in
911.) ac_abs_builddir="$ac_dir";;
912*)
913  case "$ac_dir" in
914  .) ac_abs_builddir=`pwd`;;
915  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
916  *) ac_abs_builddir=`pwd`/"$ac_dir";;
917  esac;;
918esac
919case $ac_abs_builddir in
920.) ac_abs_top_builddir=${ac_top_builddir}.;;
921*)
922  case ${ac_top_builddir}. in
923  .) ac_abs_top_builddir=$ac_abs_builddir;;
924  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
925  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
926  esac;;
927esac
928case $ac_abs_builddir in
929.) ac_abs_srcdir=$ac_srcdir;;
930*)
931  case $ac_srcdir in
932  .) ac_abs_srcdir=$ac_abs_builddir;;
933  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
934  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
935  esac;;
936esac
937case $ac_abs_builddir in
938.) ac_abs_top_srcdir=$ac_top_srcdir;;
939*)
940  case $ac_top_srcdir in
941  .) ac_abs_top_srcdir=$ac_abs_builddir;;
942  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
943  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
944  esac;;
945esac
946
947    cd $ac_dir
948    # Check for guested configure; otherwise get Cygnus style configure.
949    if test -f $ac_srcdir/configure.gnu; then
950      echo
951      $SHELL $ac_srcdir/configure.gnu  --help=recursive
952    elif test -f $ac_srcdir/configure; then
953      echo
954      $SHELL $ac_srcdir/configure  --help=recursive
955    elif test -f $ac_srcdir/configure.ac ||
956	   test -f $ac_srcdir/configure.in; then
957      echo
958      $ac_configure --help
959    else
960      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
961    fi
962    cd "$ac_popdir"
963  done
964fi
965
966test -n "$ac_init_help" && exit 0
967if $ac_init_version; then
968  cat <<\_ACEOF
969bsp configure 5.2
970generated by GNU Autoconf 2.59
971
972Copyright (C) 2003 Free Software Foundation, Inc.
973This configure script is free software; the Free Software Foundation
974gives unlimited permission to copy, distribute and modify it.
975_ACEOF
976  exit 0
977fi
978exec 5>config.log
979cat >&5 <<_ACEOF
980This file contains any messages produced by compilers while
981running configure, to aid debugging if configure makes a mistake.
982
983It was created by bsp $as_me 5.2, which was
984generated by GNU Autoconf 2.59.  Invocation command line was
985
986  $ $0 $@
987
988_ACEOF
989{
990cat <<_ASUNAME
991## --------- ##
992## Platform. ##
993## --------- ##
994
995hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996uname -m = `(uname -m) 2>/dev/null || echo unknown`
997uname -r = `(uname -r) 2>/dev/null || echo unknown`
998uname -s = `(uname -s) 2>/dev/null || echo unknown`
999uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1003
1004/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1005/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1006/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1008/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1009/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1010/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1011
1012_ASUNAME
1013
1014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015for as_dir in $PATH
1016do
1017  IFS=$as_save_IFS
1018  test -z "$as_dir" && as_dir=.
1019  echo "PATH: $as_dir"
1020done
1021
1022} >&5
1023
1024cat >&5 <<_ACEOF
1025
1026
1027## ----------- ##
1028## Core tests. ##
1029## ----------- ##
1030
1031_ACEOF
1032
1033
1034# Keep a trace of the command line.
1035# Strip out --no-create and --no-recursion so they do not pile up.
1036# Strip out --silent because we don't want to record it for future runs.
1037# Also quote any args containing shell meta-characters.
1038# Make two passes to allow for proper duplicate-argument suppression.
1039ac_configure_args=
1040ac_configure_args0=
1041ac_configure_args1=
1042ac_sep=
1043ac_must_keep_next=false
1044for ac_pass in 1 2
1045do
1046  for ac_arg
1047  do
1048    case $ac_arg in
1049    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1050    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1051    | -silent | --silent | --silen | --sile | --sil)
1052      continue ;;
1053    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1054      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1055    esac
1056    case $ac_pass in
1057    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1058    2)
1059      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1060      if test $ac_must_keep_next = true; then
1061	ac_must_keep_next=false # Got value, back to normal.
1062      else
1063	case $ac_arg in
1064	  *=* | --config-cache | -C | -disable-* | --disable-* \
1065	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1066	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1067	  | -with-* | --with-* | -without-* | --without-* | --x)
1068	    case "$ac_configure_args0 " in
1069	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1070	    esac
1071	    ;;
1072	  -* ) ac_must_keep_next=true ;;
1073	esac
1074      fi
1075      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1076      # Get rid of the leading space.
1077      ac_sep=" "
1078      ;;
1079    esac
1080  done
1081done
1082$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1083$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1084
1085# When interrupted or exit'd, cleanup temporary files, and complete
1086# config.log.  We remove comments because anyway the quotes in there
1087# would cause problems or look ugly.
1088# WARNING: Be sure not to use single quotes in there, as some shells,
1089# such as our DU 5.0 friend, will then `close' the trap.
1090trap 'exit_status=$?
1091  # Save into config.log some information that might help in debugging.
1092  {
1093    echo
1094
1095    cat <<\_ASBOX
1096## ---------------- ##
1097## Cache variables. ##
1098## ---------------- ##
1099_ASBOX
1100    echo
1101    # The following way of writing the cache mishandles newlines in values,
1102{
1103  (set) 2>&1 |
1104    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1105    *ac_space=\ *)
1106      sed -n \
1107	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1108	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1109      ;;
1110    *)
1111      sed -n \
1112	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1113      ;;
1114    esac;
1115}
1116    echo
1117
1118    cat <<\_ASBOX
1119## ----------------- ##
1120## Output variables. ##
1121## ----------------- ##
1122_ASBOX
1123    echo
1124    for ac_var in $ac_subst_vars
1125    do
1126      eval ac_val=$`echo $ac_var`
1127      echo "$ac_var='"'"'$ac_val'"'"'"
1128    done | sort
1129    echo
1130
1131    if test -n "$ac_subst_files"; then
1132      cat <<\_ASBOX
1133## ------------- ##
1134## Output files. ##
1135## ------------- ##
1136_ASBOX
1137      echo
1138      for ac_var in $ac_subst_files
1139      do
1140	eval ac_val=$`echo $ac_var`
1141	echo "$ac_var='"'"'$ac_val'"'"'"
1142      done | sort
1143      echo
1144    fi
1145
1146    if test -s confdefs.h; then
1147      cat <<\_ASBOX
1148## ----------- ##
1149## confdefs.h. ##
1150## ----------- ##
1151_ASBOX
1152      echo
1153      sed "/^$/d" confdefs.h | sort
1154      echo
1155    fi
1156    test "$ac_signal" != 0 &&
1157      echo "$as_me: caught signal $ac_signal"
1158    echo "$as_me: exit $exit_status"
1159  } >&5
1160  rm -f core *.core &&
1161  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1162    exit $exit_status
1163     ' 0
1164for ac_signal in 1 2 13 15; do
1165  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1166done
1167ac_signal=0
1168
1169# confdefs.h avoids OS command line length limits that DEFS can exceed.
1170rm -rf conftest* confdefs.h
1171# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1172echo >confdefs.h
1173
1174# Predefined preprocessor variables.
1175
1176cat >>confdefs.h <<_ACEOF
1177#define PACKAGE_NAME "$PACKAGE_NAME"
1178_ACEOF
1179
1180
1181cat >>confdefs.h <<_ACEOF
1182#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1183_ACEOF
1184
1185
1186cat >>confdefs.h <<_ACEOF
1187#define PACKAGE_VERSION "$PACKAGE_VERSION"
1188_ACEOF
1189
1190
1191cat >>confdefs.h <<_ACEOF
1192#define PACKAGE_STRING "$PACKAGE_STRING"
1193_ACEOF
1194
1195
1196cat >>confdefs.h <<_ACEOF
1197#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1198_ACEOF
1199
1200
1201# Let the site file select an alternate cache file if it wants to.
1202# Prefer explicitly selected file to automatically selected ones.
1203if test -z "$CONFIG_SITE"; then
1204  if test "x$prefix" != xNONE; then
1205    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1206  else
1207    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1208  fi
1209fi
1210for ac_site_file in $CONFIG_SITE; do
1211  if test -r "$ac_site_file"; then
1212    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1213echo "$as_me: loading site script $ac_site_file" >&6;}
1214    sed 's/^/| /' "$ac_site_file" >&5
1215    . "$ac_site_file"
1216  fi
1217done
1218
1219if test -r "$cache_file"; then
1220  # Some versions of bash will fail to source /dev/null (special
1221  # files actually), so we avoid doing that.
1222  if test -f "$cache_file"; then
1223    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1224echo "$as_me: loading cache $cache_file" >&6;}
1225    case $cache_file in
1226      [\\/]* | ?:[\\/]* ) . $cache_file;;
1227      *)                      . ./$cache_file;;
1228    esac
1229  fi
1230else
1231  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1232echo "$as_me: creating cache $cache_file" >&6;}
1233  >$cache_file
1234fi
1235
1236# Check that the precious variables saved in the cache have kept the same
1237# value.
1238ac_cache_corrupted=false
1239for ac_var in `(set) 2>&1 |
1240	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1241  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1242  eval ac_new_set=\$ac_env_${ac_var}_set
1243  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1244  eval ac_new_val="\$ac_env_${ac_var}_value"
1245  case $ac_old_set,$ac_new_set in
1246    set,)
1247      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1248echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1249      ac_cache_corrupted=: ;;
1250    ,set)
1251      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1252echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1253      ac_cache_corrupted=: ;;
1254    ,);;
1255    *)
1256      if test "x$ac_old_val" != "x$ac_new_val"; then
1257	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1258echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1259	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1260echo "$as_me:   former value:  $ac_old_val" >&2;}
1261	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1262echo "$as_me:   current value: $ac_new_val" >&2;}
1263	ac_cache_corrupted=:
1264      fi;;
1265  esac
1266  # Pass precious variables to config.status.
1267  if test "$ac_new_set" = set; then
1268    case $ac_new_val in
1269    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1270      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1271    *) ac_arg=$ac_var=$ac_new_val ;;
1272    esac
1273    case " $ac_configure_args " in
1274      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1275      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1276    esac
1277  fi
1278done
1279if $ac_cache_corrupted; then
1280  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1281echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1282  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1283echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1284   { (exit 1); exit 1; }; }
1285fi
1286
1287ac_ext=c
1288ac_cpp='$CPP $CPPFLAGS'
1289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1291ac_compiler_gnu=$ac_cv_c_compiler_gnu
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320am__api_version="1.9"
1321ac_aux_dir=
1322for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1323  if test -f $ac_dir/install-sh; then
1324    ac_aux_dir=$ac_dir
1325    ac_install_sh="$ac_aux_dir/install-sh -c"
1326    break
1327  elif test -f $ac_dir/install.sh; then
1328    ac_aux_dir=$ac_dir
1329    ac_install_sh="$ac_aux_dir/install.sh -c"
1330    break
1331  elif test -f $ac_dir/shtool; then
1332    ac_aux_dir=$ac_dir
1333    ac_install_sh="$ac_aux_dir/shtool install -c"
1334    break
1335  fi
1336done
1337if test -z "$ac_aux_dir"; then
1338  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1339echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1340   { (exit 1); exit 1; }; }
1341fi
1342ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1343ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1344ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1345
1346# Find a good install program.  We prefer a C program (faster),
1347# so one script is as good as another.  But avoid the broken or
1348# incompatible versions:
1349# SysV /etc/install, /usr/sbin/install
1350# SunOS /usr/etc/install
1351# IRIX /sbin/install
1352# AIX /bin/install
1353# AmigaOS /C/install, which installs bootblocks on floppy discs
1354# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1355# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1356# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1357# OS/2's system install, which has a completely different semantic
1358# ./install, which can be erroneously created by make from ./install.sh.
1359echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1360echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1361if test -z "$INSTALL"; then
1362if test "${ac_cv_path_install+set}" = set; then
1363  echo $ECHO_N "(cached) $ECHO_C" >&6
1364else
1365  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1366for as_dir in $PATH
1367do
1368  IFS=$as_save_IFS
1369  test -z "$as_dir" && as_dir=.
1370  # Account for people who put trailing slashes in PATH elements.
1371case $as_dir/ in
1372  ./ | .// | /cC/* | \
1373  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1374  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1375  /usr/ucb/* ) ;;
1376  *)
1377    # OSF1 and SCO ODT 3.0 have their own names for install.
1378    # Don't use installbsd from OSF since it installs stuff as root
1379    # by default.
1380    for ac_prog in ginstall scoinst install; do
1381      for ac_exec_ext in '' $ac_executable_extensions; do
1382	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1383	  if test $ac_prog = install &&
1384	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1385	    # AIX install.  It has an incompatible calling convention.
1386	    :
1387	  elif test $ac_prog = install &&
1388	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1389	    # program-specific install script used by HP pwplus--don't use.
1390	    :
1391	  else
1392	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1393	    break 3
1394	  fi
1395	fi
1396      done
1397    done
1398    ;;
1399esac
1400done
1401
1402
1403fi
1404  if test "${ac_cv_path_install+set}" = set; then
1405    INSTALL=$ac_cv_path_install
1406  else
1407    # As a last resort, use the slow shell script.  We don't cache a
1408    # path for INSTALL within a source directory, because that will
1409    # break other packages using the cache if that directory is
1410    # removed, or if the path is relative.
1411    INSTALL=$ac_install_sh
1412  fi
1413fi
1414echo "$as_me:$LINENO: result: $INSTALL" >&5
1415echo "${ECHO_T}$INSTALL" >&6
1416
1417# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1418# It thinks the first close brace ends the variable substitution.
1419test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1420
1421test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1422
1423test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1424
1425echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1426echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1427# Just in case
1428sleep 1
1429echo timestamp > conftest.file
1430# Do `set' in a subshell so we don't clobber the current shell's
1431# arguments.  Must try -L first in case configure is actually a
1432# symlink; some systems play weird games with the mod time of symlinks
1433# (eg FreeBSD returns the mod time of the symlink's containing
1434# directory).
1435if (
1436   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1437   if test "$*" = "X"; then
1438      # -L didn't work.
1439      set X `ls -t $srcdir/configure conftest.file`
1440   fi
1441   rm -f conftest.file
1442   if test "$*" != "X $srcdir/configure conftest.file" \
1443      && test "$*" != "X conftest.file $srcdir/configure"; then
1444
1445      # If neither matched, then we have a broken ls.  This can happen
1446      # if, for instance, CONFIG_SHELL is bash and it inherits a
1447      # broken ls alias from the environment.  This has actually
1448      # happened.  Such a system could not be considered "sane".
1449      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1450alias in your environment" >&5
1451echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1452alias in your environment" >&2;}
1453   { (exit 1); exit 1; }; }
1454   fi
1455
1456   test "$2" = conftest.file
1457   )
1458then
1459   # Ok.
1460   :
1461else
1462   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1463Check your system clock" >&5
1464echo "$as_me: error: newly created file is older than distributed files!
1465Check your system clock" >&2;}
1466   { (exit 1); exit 1; }; }
1467fi
1468echo "$as_me:$LINENO: result: yes" >&5
1469echo "${ECHO_T}yes" >&6
1470test "$program_prefix" != NONE &&
1471  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1472# Use a double $ so make ignores it.
1473test "$program_suffix" != NONE &&
1474  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1475# Double any \ or $.  echo might interpret backslashes.
1476# By default was `s,x,x', remove it if useless.
1477cat <<\_ACEOF >conftest.sed
1478s/[\\$]/&&/g;s/;s,x,x,$//
1479_ACEOF
1480program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1481rm conftest.sed
1482
1483# expand $ac_aux_dir to an absolute path
1484am_aux_dir=`cd $ac_aux_dir && pwd`
1485
1486test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1487# Use eval to expand $SHELL
1488if eval "$MISSING --run true"; then
1489  am_missing_run="$MISSING --run "
1490else
1491  am_missing_run=
1492  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1493echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1494fi
1495
1496if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1497  # We used to keeping the `.' as first argument, in order to
1498  # allow $(mkdir_p) to be used without argument.  As in
1499  #   $(mkdir_p) $(somedir)
1500  # where $(somedir) is conditionally defined.  However this is wrong
1501  # for two reasons:
1502  #  1. if the package is installed by a user who cannot write `.'
1503  #     make install will fail,
1504  #  2. the above comment should most certainly read
1505  #     $(mkdir_p) $(DESTDIR)$(somedir)
1506  #     so it does not work when $(somedir) is undefined and
1507  #     $(DESTDIR) is not.
1508  #  To support the latter case, we have to write
1509  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1510  #  so the `.' trick is pointless.
1511  mkdir_p='mkdir -p --'
1512else
1513  # On NextStep and OpenStep, the `mkdir' command does not
1514  # recognize any option.  It will interpret all options as
1515  # directories to create, and then abort because `.' already
1516  # exists.
1517  for d in ./-p ./--version;
1518  do
1519    test -d $d && rmdir $d
1520  done
1521  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1522  if test -f "$ac_aux_dir/mkinstalldirs"; then
1523    mkdir_p='$(mkinstalldirs)'
1524  else
1525    mkdir_p='$(install_sh) -d'
1526  fi
1527fi
1528
1529for ac_prog in gawk mawk nawk awk
1530do
1531  # Extract the first word of "$ac_prog", so it can be a program name with args.
1532set dummy $ac_prog; ac_word=$2
1533echo "$as_me:$LINENO: checking for $ac_word" >&5
1534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1535if test "${ac_cv_prog_AWK+set}" = set; then
1536  echo $ECHO_N "(cached) $ECHO_C" >&6
1537else
1538  if test -n "$AWK"; then
1539  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1540else
1541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1542for as_dir in $PATH
1543do
1544  IFS=$as_save_IFS
1545  test -z "$as_dir" && as_dir=.
1546  for ac_exec_ext in '' $ac_executable_extensions; do
1547  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1548    ac_cv_prog_AWK="$ac_prog"
1549    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1550    break 2
1551  fi
1552done
1553done
1554
1555fi
1556fi
1557AWK=$ac_cv_prog_AWK
1558if test -n "$AWK"; then
1559  echo "$as_me:$LINENO: result: $AWK" >&5
1560echo "${ECHO_T}$AWK" >&6
1561else
1562  echo "$as_me:$LINENO: result: no" >&5
1563echo "${ECHO_T}no" >&6
1564fi
1565
1566  test -n "$AWK" && break
1567done
1568
1569echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1570echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1571set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1572if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1573  echo $ECHO_N "(cached) $ECHO_C" >&6
1574else
1575  cat >conftest.make <<\_ACEOF
1576all:
1577	@echo 'ac_maketemp="$(MAKE)"'
1578_ACEOF
1579# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1580eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1581if test -n "$ac_maketemp"; then
1582  eval ac_cv_prog_make_${ac_make}_set=yes
1583else
1584  eval ac_cv_prog_make_${ac_make}_set=no
1585fi
1586rm -f conftest.make
1587fi
1588if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1589  echo "$as_me:$LINENO: result: yes" >&5
1590echo "${ECHO_T}yes" >&6
1591  SET_MAKE=
1592else
1593  echo "$as_me:$LINENO: result: no" >&5
1594echo "${ECHO_T}no" >&6
1595  SET_MAKE="MAKE=${MAKE-make}"
1596fi
1597
1598rm -rf .tst 2>/dev/null
1599mkdir .tst 2>/dev/null
1600if test -d .tst; then
1601  am__leading_dot=.
1602else
1603  am__leading_dot=_
1604fi
1605rmdir .tst 2>/dev/null
1606
1607# test to see if srcdir already configured
1608if test "`cd $srcdir && pwd`" != "`pwd`" &&
1609   test -f $srcdir/config.status; then
1610  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1611echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1612   { (exit 1); exit 1; }; }
1613fi
1614
1615# test whether we have cygpath
1616if test -z "$CYGPATH_W"; then
1617  if (cygpath --version) >/dev/null 2>/dev/null; then
1618    CYGPATH_W='cygpath -w'
1619  else
1620    CYGPATH_W=echo
1621  fi
1622fi
1623
1624
1625# Define the identity of the package.
1626 PACKAGE='bsp'
1627 VERSION='5.2'
1628
1629
1630cat >>confdefs.h <<_ACEOF
1631#define PACKAGE "$PACKAGE"
1632_ACEOF
1633
1634
1635cat >>confdefs.h <<_ACEOF
1636#define VERSION "$VERSION"
1637_ACEOF
1638
1639# Some tools Automake needs.
1640
1641ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1642
1643
1644AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1645
1646
1647AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1648
1649
1650AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1651
1652
1653MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1654
1655install_sh=${install_sh-"$am_aux_dir/install-sh"}
1656
1657# Installed binaries are usually stripped using `strip' when the user
1658# run `make install-strip'.  However `strip' might not be the right
1659# tool to use in cross-compilation environments, therefore Automake
1660# will honor the `STRIP' environment variable to overrule this program.
1661if test "$cross_compiling" != no; then
1662  if test -n "$ac_tool_prefix"; then
1663  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664set dummy ${ac_tool_prefix}strip; ac_word=$2
1665echo "$as_me:$LINENO: checking for $ac_word" >&5
1666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667if test "${ac_cv_prog_STRIP+set}" = set; then
1668  echo $ECHO_N "(cached) $ECHO_C" >&6
1669else
1670  if test -n "$STRIP"; then
1671  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1672else
1673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674for as_dir in $PATH
1675do
1676  IFS=$as_save_IFS
1677  test -z "$as_dir" && as_dir=.
1678  for ac_exec_ext in '' $ac_executable_extensions; do
1679  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1682    break 2
1683  fi
1684done
1685done
1686
1687fi
1688fi
1689STRIP=$ac_cv_prog_STRIP
1690if test -n "$STRIP"; then
1691  echo "$as_me:$LINENO: result: $STRIP" >&5
1692echo "${ECHO_T}$STRIP" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698fi
1699if test -z "$ac_cv_prog_STRIP"; then
1700  ac_ct_STRIP=$STRIP
1701  # Extract the first word of "strip", so it can be a program name with args.
1702set dummy strip; ac_word=$2
1703echo "$as_me:$LINENO: checking for $ac_word" >&5
1704echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706  echo $ECHO_N "(cached) $ECHO_C" >&6
1707else
1708  if test -n "$ac_ct_STRIP"; then
1709  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1710else
1711as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712for as_dir in $PATH
1713do
1714  IFS=$as_save_IFS
1715  test -z "$as_dir" && as_dir=.
1716  for ac_exec_ext in '' $ac_executable_extensions; do
1717  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718    ac_cv_prog_ac_ct_STRIP="strip"
1719    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1720    break 2
1721  fi
1722done
1723done
1724
1725  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1726fi
1727fi
1728ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729if test -n "$ac_ct_STRIP"; then
1730  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731echo "${ECHO_T}$ac_ct_STRIP" >&6
1732else
1733  echo "$as_me:$LINENO: result: no" >&5
1734echo "${ECHO_T}no" >&6
1735fi
1736
1737  STRIP=$ac_ct_STRIP
1738else
1739  STRIP="$ac_cv_prog_STRIP"
1740fi
1741
1742fi
1743INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1744
1745# We need awk for the "check" target.  The system "awk" is bad on
1746# some platforms.
1747# Always define AMTAR for backward compatibility.
1748
1749AMTAR=${AMTAR-"${am_missing_run}tar"}
1750
1751am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1752
1753
1754
1755
1756
1757echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1758echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1759    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1760if test "${enable_maintainer_mode+set}" = set; then
1761  enableval="$enable_maintainer_mode"
1762  USE_MAINTAINER_MODE=$enableval
1763else
1764  USE_MAINTAINER_MODE=no
1765fi;
1766  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1767echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1768
1769
1770if test $USE_MAINTAINER_MODE = yes; then
1771  MAINTAINER_MODE_TRUE=
1772  MAINTAINER_MODE_FALSE='#'
1773else
1774  MAINTAINER_MODE_TRUE='#'
1775  MAINTAINER_MODE_FALSE=
1776fi
1777
1778  MAINT=$MAINTAINER_MODE_TRUE
1779
1780
1781          ac_config_headers="$ac_config_headers config.h"
1782
1783
1784
1785
1786CFLAGS="-pipe -O2 -fno-strict-aliasing  -O2 -fomit-frame-pointer"
1787DEPDIR="${am__leading_dot}deps"
1788
1789          ac_config_commands="$ac_config_commands depfiles"
1790
1791
1792am_make=${MAKE-make}
1793cat > confinc << 'END'
1794am__doit:
1795	@echo done
1796.PHONY: am__doit
1797END
1798# If we don't find an include directive, just comment out the code.
1799echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
1800echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
1801am__include="#"
1802am__quote=
1803_am_result=none
1804# First try GNU make style include.
1805echo "include confinc" > confmf
1806# We grep out `Entering directory' and `Leaving directory'
1807# messages which can occur if `w' ends up in MAKEFLAGS.
1808# In particular we don't look at `^make:' because GNU make might
1809# be invoked under some other name (usually "gmake"), in which
1810# case it prints its new name instead of `make'.
1811if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
1812   am__include=include
1813   am__quote=
1814   _am_result=GNU
1815fi
1816# Now try BSD make style include.
1817if test "$am__include" = "#"; then
1818   echo '.include "confinc"' > confmf
1819   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
1820      am__include=.include
1821      am__quote="\""
1822      _am_result=BSD
1823   fi
1824fi
1825
1826
1827echo "$as_me:$LINENO: result: $_am_result" >&5
1828echo "${ECHO_T}$_am_result" >&6
1829rm -f confinc confmf
1830
1831# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1832if test "${enable_dependency_tracking+set}" = set; then
1833  enableval="$enable_dependency_tracking"
1834
1835fi;
1836if test "x$enable_dependency_tracking" != xno; then
1837  am_depcomp="$ac_aux_dir/depcomp"
1838  AMDEPBACKSLASH='\'
1839fi
1840
1841
1842if test "x$enable_dependency_tracking" != xno; then
1843  AMDEP_TRUE=
1844  AMDEP_FALSE='#'
1845else
1846  AMDEP_TRUE='#'
1847  AMDEP_FALSE=
1848fi
1849
1850
1851
1852ac_ext=c
1853ac_cpp='$CPP $CPPFLAGS'
1854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1856ac_compiler_gnu=$ac_cv_c_compiler_gnu
1857if test -n "$ac_tool_prefix"; then
1858  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1859set dummy ${ac_tool_prefix}gcc; ac_word=$2
1860echo "$as_me:$LINENO: checking for $ac_word" >&5
1861echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1862if test "${ac_cv_prog_CC+set}" = set; then
1863  echo $ECHO_N "(cached) $ECHO_C" >&6
1864else
1865  if test -n "$CC"; then
1866  ac_cv_prog_CC="$CC" # Let the user override the test.
1867else
1868as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1869for as_dir in $PATH
1870do
1871  IFS=$as_save_IFS
1872  test -z "$as_dir" && as_dir=.
1873  for ac_exec_ext in '' $ac_executable_extensions; do
1874  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1875    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1876    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1877    break 2
1878  fi
1879done
1880done
1881
1882fi
1883fi
1884CC=$ac_cv_prog_CC
1885if test -n "$CC"; then
1886  echo "$as_me:$LINENO: result: $CC" >&5
1887echo "${ECHO_T}$CC" >&6
1888else
1889  echo "$as_me:$LINENO: result: no" >&5
1890echo "${ECHO_T}no" >&6
1891fi
1892
1893fi
1894if test -z "$ac_cv_prog_CC"; then
1895  ac_ct_CC=$CC
1896  # Extract the first word of "gcc", so it can be a program name with args.
1897set dummy gcc; ac_word=$2
1898echo "$as_me:$LINENO: checking for $ac_word" >&5
1899echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1900if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1901  echo $ECHO_N "(cached) $ECHO_C" >&6
1902else
1903  if test -n "$ac_ct_CC"; then
1904  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1905else
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911  for ac_exec_ext in '' $ac_executable_extensions; do
1912  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1913    ac_cv_prog_ac_ct_CC="gcc"
1914    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1915    break 2
1916  fi
1917done
1918done
1919
1920fi
1921fi
1922ac_ct_CC=$ac_cv_prog_ac_ct_CC
1923if test -n "$ac_ct_CC"; then
1924  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1925echo "${ECHO_T}$ac_ct_CC" >&6
1926else
1927  echo "$as_me:$LINENO: result: no" >&5
1928echo "${ECHO_T}no" >&6
1929fi
1930
1931  CC=$ac_ct_CC
1932else
1933  CC="$ac_cv_prog_CC"
1934fi
1935
1936if test -z "$CC"; then
1937  if test -n "$ac_tool_prefix"; then
1938  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1939set dummy ${ac_tool_prefix}cc; ac_word=$2
1940echo "$as_me:$LINENO: checking for $ac_word" >&5
1941echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1942if test "${ac_cv_prog_CC+set}" = set; then
1943  echo $ECHO_N "(cached) $ECHO_C" >&6
1944else
1945  if test -n "$CC"; then
1946  ac_cv_prog_CC="$CC" # Let the user override the test.
1947else
1948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949for as_dir in $PATH
1950do
1951  IFS=$as_save_IFS
1952  test -z "$as_dir" && as_dir=.
1953  for ac_exec_ext in '' $ac_executable_extensions; do
1954  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1955    ac_cv_prog_CC="${ac_tool_prefix}cc"
1956    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1957    break 2
1958  fi
1959done
1960done
1961
1962fi
1963fi
1964CC=$ac_cv_prog_CC
1965if test -n "$CC"; then
1966  echo "$as_me:$LINENO: result: $CC" >&5
1967echo "${ECHO_T}$CC" >&6
1968else
1969  echo "$as_me:$LINENO: result: no" >&5
1970echo "${ECHO_T}no" >&6
1971fi
1972
1973fi
1974if test -z "$ac_cv_prog_CC"; then
1975  ac_ct_CC=$CC
1976  # Extract the first word of "cc", so it can be a program name with args.
1977set dummy cc; ac_word=$2
1978echo "$as_me:$LINENO: checking for $ac_word" >&5
1979echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1980if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1981  echo $ECHO_N "(cached) $ECHO_C" >&6
1982else
1983  if test -n "$ac_ct_CC"; then
1984  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1985else
1986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987for as_dir in $PATH
1988do
1989  IFS=$as_save_IFS
1990  test -z "$as_dir" && as_dir=.
1991  for ac_exec_ext in '' $ac_executable_extensions; do
1992  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1993    ac_cv_prog_ac_ct_CC="cc"
1994    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1995    break 2
1996  fi
1997done
1998done
1999
2000fi
2001fi
2002ac_ct_CC=$ac_cv_prog_ac_ct_CC
2003if test -n "$ac_ct_CC"; then
2004  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2005echo "${ECHO_T}$ac_ct_CC" >&6
2006else
2007  echo "$as_me:$LINENO: result: no" >&5
2008echo "${ECHO_T}no" >&6
2009fi
2010
2011  CC=$ac_ct_CC
2012else
2013  CC="$ac_cv_prog_CC"
2014fi
2015
2016fi
2017if test -z "$CC"; then
2018  # Extract the first word of "cc", so it can be a program name with args.
2019set dummy cc; ac_word=$2
2020echo "$as_me:$LINENO: checking for $ac_word" >&5
2021echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2022if test "${ac_cv_prog_CC+set}" = set; then
2023  echo $ECHO_N "(cached) $ECHO_C" >&6
2024else
2025  if test -n "$CC"; then
2026  ac_cv_prog_CC="$CC" # Let the user override the test.
2027else
2028  ac_prog_rejected=no
2029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030for as_dir in $PATH
2031do
2032  IFS=$as_save_IFS
2033  test -z "$as_dir" && as_dir=.
2034  for ac_exec_ext in '' $ac_executable_extensions; do
2035  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2037       ac_prog_rejected=yes
2038       continue
2039     fi
2040    ac_cv_prog_CC="cc"
2041    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2042    break 2
2043  fi
2044done
2045done
2046
2047if test $ac_prog_rejected = yes; then
2048  # We found a bogon in the path, so make sure we never use it.
2049  set dummy $ac_cv_prog_CC
2050  shift
2051  if test $# != 0; then
2052    # We chose a different compiler from the bogus one.
2053    # However, it has the same basename, so the bogon will be chosen
2054    # first if we set CC to just the basename; use the full file name.
2055    shift
2056    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2057  fi
2058fi
2059fi
2060fi
2061CC=$ac_cv_prog_CC
2062if test -n "$CC"; then
2063  echo "$as_me:$LINENO: result: $CC" >&5
2064echo "${ECHO_T}$CC" >&6
2065else
2066  echo "$as_me:$LINENO: result: no" >&5
2067echo "${ECHO_T}no" >&6
2068fi
2069
2070fi
2071if test -z "$CC"; then
2072  if test -n "$ac_tool_prefix"; then
2073  for ac_prog in cl
2074  do
2075    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2076set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2077echo "$as_me:$LINENO: checking for $ac_word" >&5
2078echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2079if test "${ac_cv_prog_CC+set}" = set; then
2080  echo $ECHO_N "(cached) $ECHO_C" >&6
2081else
2082  if test -n "$CC"; then
2083  ac_cv_prog_CC="$CC" # Let the user override the test.
2084else
2085as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2086for as_dir in $PATH
2087do
2088  IFS=$as_save_IFS
2089  test -z "$as_dir" && as_dir=.
2090  for ac_exec_ext in '' $ac_executable_extensions; do
2091  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2092    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2093    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2094    break 2
2095  fi
2096done
2097done
2098
2099fi
2100fi
2101CC=$ac_cv_prog_CC
2102if test -n "$CC"; then
2103  echo "$as_me:$LINENO: result: $CC" >&5
2104echo "${ECHO_T}$CC" >&6
2105else
2106  echo "$as_me:$LINENO: result: no" >&5
2107echo "${ECHO_T}no" >&6
2108fi
2109
2110    test -n "$CC" && break
2111  done
2112fi
2113if test -z "$CC"; then
2114  ac_ct_CC=$CC
2115  for ac_prog in cl
2116do
2117  # Extract the first word of "$ac_prog", so it can be a program name with args.
2118set dummy $ac_prog; ac_word=$2
2119echo "$as_me:$LINENO: checking for $ac_word" >&5
2120echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2121if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2122  echo $ECHO_N "(cached) $ECHO_C" >&6
2123else
2124  if test -n "$ac_ct_CC"; then
2125  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2126else
2127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128for as_dir in $PATH
2129do
2130  IFS=$as_save_IFS
2131  test -z "$as_dir" && as_dir=.
2132  for ac_exec_ext in '' $ac_executable_extensions; do
2133  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2134    ac_cv_prog_ac_ct_CC="$ac_prog"
2135    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2136    break 2
2137  fi
2138done
2139done
2140
2141fi
2142fi
2143ac_ct_CC=$ac_cv_prog_ac_ct_CC
2144if test -n "$ac_ct_CC"; then
2145  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2146echo "${ECHO_T}$ac_ct_CC" >&6
2147else
2148  echo "$as_me:$LINENO: result: no" >&5
2149echo "${ECHO_T}no" >&6
2150fi
2151
2152  test -n "$ac_ct_CC" && break
2153done
2154
2155  CC=$ac_ct_CC
2156fi
2157
2158fi
2159
2160
2161test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2162See \`config.log' for more details." >&5
2163echo "$as_me: error: no acceptable C compiler found in \$PATH
2164See \`config.log' for more details." >&2;}
2165   { (exit 1); exit 1; }; }
2166
2167# Provide some information about the compiler.
2168echo "$as_me:$LINENO:" \
2169     "checking for C compiler version" >&5
2170ac_compiler=`set X $ac_compile; echo $2`
2171{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2172  (eval $ac_compiler --version </dev/null >&5) 2>&5
2173  ac_status=$?
2174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2175  (exit $ac_status); }
2176{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2177  (eval $ac_compiler -v </dev/null >&5) 2>&5
2178  ac_status=$?
2179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2180  (exit $ac_status); }
2181{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2182  (eval $ac_compiler -V </dev/null >&5) 2>&5
2183  ac_status=$?
2184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185  (exit $ac_status); }
2186
2187cat >conftest.$ac_ext <<_ACEOF
2188/* confdefs.h.  */
2189_ACEOF
2190cat confdefs.h >>conftest.$ac_ext
2191cat >>conftest.$ac_ext <<_ACEOF
2192/* end confdefs.h.  */
2193
2194int
2195main ()
2196{
2197
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202ac_clean_files_save=$ac_clean_files
2203ac_clean_files="$ac_clean_files a.out a.exe b.out"
2204# Try to create an executable without -o first, disregard a.out.
2205# It will help us diagnose broken compilers, and finding out an intuition
2206# of exeext.
2207echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2208echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2209ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2210if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2211  (eval $ac_link_default) 2>&5
2212  ac_status=$?
2213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214  (exit $ac_status); }; then
2215  # Find the output, starting from the most likely.  This scheme is
2216# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2217# resort.
2218
2219# Be careful to initialize this variable, since it used to be cached.
2220# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2221ac_cv_exeext=
2222# b.out is created by i960 compilers.
2223for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2224do
2225  test -f "$ac_file" || continue
2226  case $ac_file in
2227    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2228	;;
2229    conftest.$ac_ext )
2230	# This is the source file.
2231	;;
2232    [ab].out )
2233	# We found the default executable, but exeext='' is most
2234	# certainly right.
2235	break;;
2236    *.* )
2237	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2238	# FIXME: I believe we export ac_cv_exeext for Libtool,
2239	# but it would be cool to find out if it's true.  Does anybody
2240	# maintain Libtool? --akim.
2241	export ac_cv_exeext
2242	break;;
2243    * )
2244	break;;
2245  esac
2246done
2247else
2248  echo "$as_me: failed program was:" >&5
2249sed 's/^/| /' conftest.$ac_ext >&5
2250
2251{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2252See \`config.log' for more details." >&5
2253echo "$as_me: error: C compiler cannot create executables
2254See \`config.log' for more details." >&2;}
2255   { (exit 77); exit 77; }; }
2256fi
2257
2258ac_exeext=$ac_cv_exeext
2259echo "$as_me:$LINENO: result: $ac_file" >&5
2260echo "${ECHO_T}$ac_file" >&6
2261
2262# Check the compiler produces executables we can run.  If not, either
2263# the compiler is broken, or we cross compile.
2264echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2265echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2266# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2267# If not cross compiling, check that we can run a simple program.
2268if test "$cross_compiling" != yes; then
2269  if { ac_try='./$ac_file'
2270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271  (eval $ac_try) 2>&5
2272  ac_status=$?
2273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274  (exit $ac_status); }; }; then
2275    cross_compiling=no
2276  else
2277    if test "$cross_compiling" = maybe; then
2278	cross_compiling=yes
2279    else
2280	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2281If you meant to cross compile, use \`--host'.
2282See \`config.log' for more details." >&5
2283echo "$as_me: error: cannot run C compiled programs.
2284If you meant to cross compile, use \`--host'.
2285See \`config.log' for more details." >&2;}
2286   { (exit 1); exit 1; }; }
2287    fi
2288  fi
2289fi
2290echo "$as_me:$LINENO: result: yes" >&5
2291echo "${ECHO_T}yes" >&6
2292
2293rm -f a.out a.exe conftest$ac_cv_exeext b.out
2294ac_clean_files=$ac_clean_files_save
2295# Check the compiler produces executables we can run.  If not, either
2296# the compiler is broken, or we cross compile.
2297echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2298echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2299echo "$as_me:$LINENO: result: $cross_compiling" >&5
2300echo "${ECHO_T}$cross_compiling" >&6
2301
2302echo "$as_me:$LINENO: checking for suffix of executables" >&5
2303echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2305  (eval $ac_link) 2>&5
2306  ac_status=$?
2307  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308  (exit $ac_status); }; then
2309  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2310# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2311# work properly (i.e., refer to `conftest.exe'), while it won't with
2312# `rm'.
2313for ac_file in conftest.exe conftest conftest.*; do
2314  test -f "$ac_file" || continue
2315  case $ac_file in
2316    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2317    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2318	  export ac_cv_exeext
2319	  break;;
2320    * ) break;;
2321  esac
2322done
2323else
2324  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2325See \`config.log' for more details." >&5
2326echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2327See \`config.log' for more details." >&2;}
2328   { (exit 1); exit 1; }; }
2329fi
2330
2331rm -f conftest$ac_cv_exeext
2332echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2333echo "${ECHO_T}$ac_cv_exeext" >&6
2334
2335rm -f conftest.$ac_ext
2336EXEEXT=$ac_cv_exeext
2337ac_exeext=$EXEEXT
2338echo "$as_me:$LINENO: checking for suffix of object files" >&5
2339echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2340if test "${ac_cv_objext+set}" = set; then
2341  echo $ECHO_N "(cached) $ECHO_C" >&6
2342else
2343  cat >conftest.$ac_ext <<_ACEOF
2344/* confdefs.h.  */
2345_ACEOF
2346cat confdefs.h >>conftest.$ac_ext
2347cat >>conftest.$ac_ext <<_ACEOF
2348/* end confdefs.h.  */
2349
2350int
2351main ()
2352{
2353
2354  ;
2355  return 0;
2356}
2357_ACEOF
2358rm -f conftest.o conftest.obj
2359if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360  (eval $ac_compile) 2>&5
2361  ac_status=$?
2362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363  (exit $ac_status); }; then
2364  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2365  case $ac_file in
2366    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2367    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2368       break;;
2369  esac
2370done
2371else
2372  echo "$as_me: failed program was:" >&5
2373sed 's/^/| /' conftest.$ac_ext >&5
2374
2375{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2376See \`config.log' for more details." >&5
2377echo "$as_me: error: cannot compute suffix of object files: cannot compile
2378See \`config.log' for more details." >&2;}
2379   { (exit 1); exit 1; }; }
2380fi
2381
2382rm -f conftest.$ac_cv_objext conftest.$ac_ext
2383fi
2384echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2385echo "${ECHO_T}$ac_cv_objext" >&6
2386OBJEXT=$ac_cv_objext
2387ac_objext=$OBJEXT
2388echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2389echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2390if test "${ac_cv_c_compiler_gnu+set}" = set; then
2391  echo $ECHO_N "(cached) $ECHO_C" >&6
2392else
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399
2400int
2401main ()
2402{
2403#ifndef __GNUC__
2404       choke me
2405#endif
2406
2407  ;
2408  return 0;
2409}
2410_ACEOF
2411rm -f conftest.$ac_objext
2412if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2413  (eval $ac_compile) 2>conftest.er1
2414  ac_status=$?
2415  grep -v '^ *+' conftest.er1 >conftest.err
2416  rm -f conftest.er1
2417  cat conftest.err >&5
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); } &&
2420	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; } &&
2426	 { ac_try='test -s conftest.$ac_objext'
2427  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428  (eval $ac_try) 2>&5
2429  ac_status=$?
2430  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431  (exit $ac_status); }; }; then
2432  ac_compiler_gnu=yes
2433else
2434  echo "$as_me: failed program was:" >&5
2435sed 's/^/| /' conftest.$ac_ext >&5
2436
2437ac_compiler_gnu=no
2438fi
2439rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440ac_cv_c_compiler_gnu=$ac_compiler_gnu
2441
2442fi
2443echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2444echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2445GCC=`test $ac_compiler_gnu = yes && echo yes`
2446ac_test_CFLAGS=${CFLAGS+set}
2447ac_save_CFLAGS=$CFLAGS
2448CFLAGS="-g"
2449echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2450echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2451if test "${ac_cv_prog_cc_g+set}" = set; then
2452  echo $ECHO_N "(cached) $ECHO_C" >&6
2453else
2454  cat >conftest.$ac_ext <<_ACEOF
2455/* confdefs.h.  */
2456_ACEOF
2457cat confdefs.h >>conftest.$ac_ext
2458cat >>conftest.$ac_ext <<_ACEOF
2459/* end confdefs.h.  */
2460
2461int
2462main ()
2463{
2464
2465  ;
2466  return 0;
2467}
2468_ACEOF
2469rm -f conftest.$ac_objext
2470if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2471  (eval $ac_compile) 2>conftest.er1
2472  ac_status=$?
2473  grep -v '^ *+' conftest.er1 >conftest.err
2474  rm -f conftest.er1
2475  cat conftest.err >&5
2476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477  (exit $ac_status); } &&
2478	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
2484	 { ac_try='test -s conftest.$ac_objext'
2485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2486  (eval $ac_try) 2>&5
2487  ac_status=$?
2488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489  (exit $ac_status); }; }; then
2490  ac_cv_prog_cc_g=yes
2491else
2492  echo "$as_me: failed program was:" >&5
2493sed 's/^/| /' conftest.$ac_ext >&5
2494
2495ac_cv_prog_cc_g=no
2496fi
2497rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2498fi
2499echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2500echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2501if test "$ac_test_CFLAGS" = set; then
2502  CFLAGS=$ac_save_CFLAGS
2503elif test $ac_cv_prog_cc_g = yes; then
2504  if test "$GCC" = yes; then
2505    CFLAGS="-g -O2"
2506  else
2507    CFLAGS="-g"
2508  fi
2509else
2510  if test "$GCC" = yes; then
2511    CFLAGS="-O2"
2512  else
2513    CFLAGS=
2514  fi
2515fi
2516echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2517echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2518if test "${ac_cv_prog_cc_stdc+set}" = set; then
2519  echo $ECHO_N "(cached) $ECHO_C" >&6
2520else
2521  ac_cv_prog_cc_stdc=no
2522ac_save_CC=$CC
2523cat >conftest.$ac_ext <<_ACEOF
2524/* confdefs.h.  */
2525_ACEOF
2526cat confdefs.h >>conftest.$ac_ext
2527cat >>conftest.$ac_ext <<_ACEOF
2528/* end confdefs.h.  */
2529#include <stdarg.h>
2530#include <stdio.h>
2531#include <sys/types.h>
2532#include <sys/stat.h>
2533/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2534struct buf { int x; };
2535FILE * (*rcsopen) (struct buf *, struct stat *, int);
2536static char *e (p, i)
2537     char **p;
2538     int i;
2539{
2540  return p[i];
2541}
2542static char *f (char * (*g) (char **, int), char **p, ...)
2543{
2544  char *s;
2545  va_list v;
2546  va_start (v,p);
2547  s = g (p, va_arg (v,int));
2548  va_end (v);
2549  return s;
2550}
2551
2552/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2553   function prototypes and stuff, but not '\xHH' hex character constants.
2554   These don't provoke an error unfortunately, instead are silently treated
2555   as 'x'.  The following induces an error, until -std1 is added to get
2556   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2557   array size at least.  It's necessary to write '\x00'==0 to get something
2558   that's true only with -std1.  */
2559int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2560
2561int test (int i, double x);
2562struct s1 {int (*f) (int a);};
2563struct s2 {int (*f) (double a);};
2564int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2565int argc;
2566char **argv;
2567int
2568main ()
2569{
2570return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2571  ;
2572  return 0;
2573}
2574_ACEOF
2575# Don't try gcc -ansi; that turns off useful extensions and
2576# breaks some systems' header files.
2577# AIX			-qlanglvl=ansi
2578# Ultrix and OSF/1	-std1
2579# HP-UX 10.20 and later	-Ae
2580# HP-UX older versions	-Aa -D_HPUX_SOURCE
2581# SVR4			-Xc -D__EXTENSIONS__
2582for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2583do
2584  CC="$ac_save_CC $ac_arg"
2585  rm -f conftest.$ac_objext
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587  (eval $ac_compile) 2>conftest.er1
2588  ac_status=$?
2589  grep -v '^ *+' conftest.er1 >conftest.err
2590  rm -f conftest.er1
2591  cat conftest.err >&5
2592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593  (exit $ac_status); } &&
2594	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2595  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596  (eval $ac_try) 2>&5
2597  ac_status=$?
2598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599  (exit $ac_status); }; } &&
2600	 { ac_try='test -s conftest.$ac_objext'
2601  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602  (eval $ac_try) 2>&5
2603  ac_status=$?
2604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605  (exit $ac_status); }; }; then
2606  ac_cv_prog_cc_stdc=$ac_arg
2607break
2608else
2609  echo "$as_me: failed program was:" >&5
2610sed 's/^/| /' conftest.$ac_ext >&5
2611
2612fi
2613rm -f conftest.err conftest.$ac_objext
2614done
2615rm -f conftest.$ac_ext conftest.$ac_objext
2616CC=$ac_save_CC
2617
2618fi
2619
2620case "x$ac_cv_prog_cc_stdc" in
2621  x|xno)
2622    echo "$as_me:$LINENO: result: none needed" >&5
2623echo "${ECHO_T}none needed" >&6 ;;
2624  *)
2625    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2626echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2627    CC="$CC $ac_cv_prog_cc_stdc" ;;
2628esac
2629
2630# Some people use a C++ compiler to compile C.  Since we use `exit',
2631# in C++ we need to declare it.  In case someone uses the same compiler
2632# for both compiling C and C++ we need to have the C++ compiler decide
2633# the declaration of exit, since it's the most demanding environment.
2634cat >conftest.$ac_ext <<_ACEOF
2635#ifndef __cplusplus
2636  choke me
2637#endif
2638_ACEOF
2639rm -f conftest.$ac_objext
2640if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2641  (eval $ac_compile) 2>conftest.er1
2642  ac_status=$?
2643  grep -v '^ *+' conftest.er1 >conftest.err
2644  rm -f conftest.er1
2645  cat conftest.err >&5
2646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2647  (exit $ac_status); } &&
2648	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2650  (eval $ac_try) 2>&5
2651  ac_status=$?
2652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653  (exit $ac_status); }; } &&
2654	 { ac_try='test -s conftest.$ac_objext'
2655  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2656  (eval $ac_try) 2>&5
2657  ac_status=$?
2658  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659  (exit $ac_status); }; }; then
2660  for ac_declaration in \
2661   '' \
2662   'extern "C" void std::exit (int) throw (); using std::exit;' \
2663   'extern "C" void std::exit (int); using std::exit;' \
2664   'extern "C" void exit (int) throw ();' \
2665   'extern "C" void exit (int);' \
2666   'void exit (int);'
2667do
2668  cat >conftest.$ac_ext <<_ACEOF
2669/* confdefs.h.  */
2670_ACEOF
2671cat confdefs.h >>conftest.$ac_ext
2672cat >>conftest.$ac_ext <<_ACEOF
2673/* end confdefs.h.  */
2674$ac_declaration
2675#include <stdlib.h>
2676int
2677main ()
2678{
2679exit (42);
2680  ;
2681  return 0;
2682}
2683_ACEOF
2684rm -f conftest.$ac_objext
2685if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2686  (eval $ac_compile) 2>conftest.er1
2687  ac_status=$?
2688  grep -v '^ *+' conftest.er1 >conftest.err
2689  rm -f conftest.er1
2690  cat conftest.err >&5
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); } &&
2693	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; } &&
2699	 { ac_try='test -s conftest.$ac_objext'
2700  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2701  (eval $ac_try) 2>&5
2702  ac_status=$?
2703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2704  (exit $ac_status); }; }; then
2705  :
2706else
2707  echo "$as_me: failed program was:" >&5
2708sed 's/^/| /' conftest.$ac_ext >&5
2709
2710continue
2711fi
2712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2713  cat >conftest.$ac_ext <<_ACEOF
2714/* confdefs.h.  */
2715_ACEOF
2716cat confdefs.h >>conftest.$ac_ext
2717cat >>conftest.$ac_ext <<_ACEOF
2718/* end confdefs.h.  */
2719$ac_declaration
2720int
2721main ()
2722{
2723exit (42);
2724  ;
2725  return 0;
2726}
2727_ACEOF
2728rm -f conftest.$ac_objext
2729if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2730  (eval $ac_compile) 2>conftest.er1
2731  ac_status=$?
2732  grep -v '^ *+' conftest.er1 >conftest.err
2733  rm -f conftest.er1
2734  cat conftest.err >&5
2735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736  (exit $ac_status); } &&
2737	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739  (eval $ac_try) 2>&5
2740  ac_status=$?
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); }; } &&
2743	 { ac_try='test -s conftest.$ac_objext'
2744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2745  (eval $ac_try) 2>&5
2746  ac_status=$?
2747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748  (exit $ac_status); }; }; then
2749  break
2750else
2751  echo "$as_me: failed program was:" >&5
2752sed 's/^/| /' conftest.$ac_ext >&5
2753
2754fi
2755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2756done
2757rm -f conftest*
2758if test -n "$ac_declaration"; then
2759  echo '#ifdef __cplusplus' >>confdefs.h
2760  echo $ac_declaration      >>confdefs.h
2761  echo '#endif'             >>confdefs.h
2762fi
2763
2764else
2765  echo "$as_me: failed program was:" >&5
2766sed 's/^/| /' conftest.$ac_ext >&5
2767
2768fi
2769rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770ac_ext=c
2771ac_cpp='$CPP $CPPFLAGS'
2772ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774ac_compiler_gnu=$ac_cv_c_compiler_gnu
2775
2776depcc="$CC"   am_compiler_list=
2777
2778echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2779echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2780if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2781  echo $ECHO_N "(cached) $ECHO_C" >&6
2782else
2783  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2784  # We make a subdir and do the tests there.  Otherwise we can end up
2785  # making bogus files that we don't know about and never remove.  For
2786  # instance it was reported that on HP-UX the gcc test will end up
2787  # making a dummy file named `D' -- because `-MD' means `put the output
2788  # in D'.
2789  mkdir conftest.dir
2790  # Copy depcomp to subdir because otherwise we won't find it if we're
2791  # using a relative directory.
2792  cp "$am_depcomp" conftest.dir
2793  cd conftest.dir
2794  # We will build objects and dependencies in a subdirectory because
2795  # it helps to detect inapplicable dependency modes.  For instance
2796  # both Tru64's cc and ICC support -MD to output dependencies as a
2797  # side effect of compilation, but ICC will put the dependencies in
2798  # the current directory while Tru64 will put them in the object
2799  # directory.
2800  mkdir sub
2801
2802  am_cv_CC_dependencies_compiler_type=none
2803  if test "$am_compiler_list" = ""; then
2804     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2805  fi
2806  for depmode in $am_compiler_list; do
2807    # Setup a source with many dependencies, because some compilers
2808    # like to wrap large dependency lists on column 80 (with \), and
2809    # we should not choose a depcomp mode which is confused by this.
2810    #
2811    # We need to recreate these files for each test, as the compiler may
2812    # overwrite some of them when testing with obscure command lines.
2813    # This happens at least with the AIX C compiler.
2814    : > sub/conftest.c
2815    for i in 1 2 3 4 5 6; do
2816      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2817      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2818      # Solaris 8's {/usr,}/bin/sh.
2819      touch sub/conftst$i.h
2820    done
2821    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2822
2823    case $depmode in
2824    nosideeffect)
2825      # after this tag, mechanisms are not by side-effect, so they'll
2826      # only be used when explicitly requested
2827      if test "x$enable_dependency_tracking" = xyes; then
2828	continue
2829      else
2830	break
2831      fi
2832      ;;
2833    none) break ;;
2834    esac
2835    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2836    # mode.  It turns out that the SunPro C++ compiler does not properly
2837    # handle `-M -o', and we need to detect this.
2838    if depmode=$depmode \
2839       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2840       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2841       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2842         >/dev/null 2>conftest.err &&
2843       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2844       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2845       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2846      # icc doesn't choke on unknown options, it will just issue warnings
2847      # or remarks (even with -Werror).  So we grep stderr for any message
2848      # that says an option was ignored or not supported.
2849      # When given -MP, icc 7.0 and 7.1 complain thusly:
2850      #   icc: Command line warning: ignoring option '-M'; no argument required
2851      # The diagnosis changed in icc 8.0:
2852      #   icc: Command line remark: option '-MP' not supported
2853      if (grep 'ignoring option' conftest.err ||
2854          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2855        am_cv_CC_dependencies_compiler_type=$depmode
2856        break
2857      fi
2858    fi
2859  done
2860
2861  cd ..
2862  rm -rf conftest.dir
2863else
2864  am_cv_CC_dependencies_compiler_type=none
2865fi
2866
2867fi
2868echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2869echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2870CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2871
2872
2873
2874if
2875  test "x$enable_dependency_tracking" != xno \
2876  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2877  am__fastdepCC_TRUE=
2878  am__fastdepCC_FALSE='#'
2879else
2880  am__fastdepCC_TRUE='#'
2881  am__fastdepCC_FALSE=
2882fi
2883
2884
2885
2886
2887NEW_CFLAGS="$CFLAGS"
2888for ac_flag in -Wall -Wextra -ffast-math -pipe -march=native -Winline -Wwrite-strings -Wundef -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement
2889do
2890 echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
2891echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6
2892 CFLAGS="$NEW_CFLAGS $ac_flag"
2893 cat >conftest.$ac_ext <<_ACEOF
2894/* confdefs.h.  */
2895_ACEOF
2896cat confdefs.h >>conftest.$ac_ext
2897cat >>conftest.$ac_ext <<_ACEOF
2898/* end confdefs.h.  */
2899
2900int
2901main ()
2902{
2903
2904  void f() {};
2905
2906  ;
2907  return 0;
2908}
2909_ACEOF
2910rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912  (eval $ac_compile) 2>conftest.er1
2913  ac_status=$?
2914  grep -v '^ *+' conftest.er1 >conftest.err
2915  rm -f conftest.er1
2916  cat conftest.err >&5
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); } &&
2919	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2920  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921  (eval $ac_try) 2>&5
2922  ac_status=$?
2923  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924  (exit $ac_status); }; } &&
2925	 { ac_try='test -s conftest.$ac_objext'
2926  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2927  (eval $ac_try) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }; }; then
2931
2932  NEW_CFLAGS="$CFLAGS"
2933  echo "$as_me:$LINENO: result: yes" >&5
2934echo "${ECHO_T}yes" >&6
2935
2936else
2937  echo "$as_me: failed program was:" >&5
2938sed 's/^/| /' conftest.$ac_ext >&5
2939
2940echo "$as_me:$LINENO: result: no" >&5
2941echo "${ECHO_T}no" >&6
2942fi
2943rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2944done
2945CFLAGS="$NEW_CFLAGS"
2946
2947# Check whether --enable-debug or --disable-debug was given.
2948if test "${enable_debug+set}" = set; then
2949  enableval="$enable_debug"
2950  CFLAGS="-g"
2951
2952NEW_CFLAGS="$CFLAGS"
2953for ac_flag in -Wmissing-prototypes -Waggregate-return -Wmissing-noreturn -Wredundant-decls -Wnested-externs -Wold-style-definition -Wformat -Wmissing-format-attribute -Wvariadic-macros -Wdisabled-optimization -Wlarger-than-128000 -Wshadow
2954do
2955 echo "$as_me:$LINENO: checking whether compiler supports $ac_flag" >&5
2956echo $ECHO_N "checking whether compiler supports $ac_flag... $ECHO_C" >&6
2957 CFLAGS="$NEW_CFLAGS $ac_flag"
2958 cat >conftest.$ac_ext <<_ACEOF
2959/* confdefs.h.  */
2960_ACEOF
2961cat confdefs.h >>conftest.$ac_ext
2962cat >>conftest.$ac_ext <<_ACEOF
2963/* end confdefs.h.  */
2964
2965int
2966main ()
2967{
2968
2969  void f() {};
2970
2971  ;
2972  return 0;
2973}
2974_ACEOF
2975rm -f conftest.$ac_objext
2976if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2977  (eval $ac_compile) 2>conftest.er1
2978  ac_status=$?
2979  grep -v '^ *+' conftest.er1 >conftest.err
2980  rm -f conftest.er1
2981  cat conftest.err >&5
2982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2983  (exit $ac_status); } &&
2984	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2985  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986  (eval $ac_try) 2>&5
2987  ac_status=$?
2988  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989  (exit $ac_status); }; } &&
2990	 { ac_try='test -s conftest.$ac_objext'
2991  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992  (eval $ac_try) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }; }; then
2996
2997  NEW_CFLAGS="$CFLAGS"
2998  echo "$as_me:$LINENO: result: yes" >&5
2999echo "${ECHO_T}yes" >&6
3000
3001else
3002  echo "$as_me: failed program was:" >&5
3003sed 's/^/| /' conftest.$ac_ext >&5
3004
3005echo "$as_me:$LINENO: result: no" >&5
3006echo "${ECHO_T}no" >&6
3007fi
3008rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3009done
3010CFLAGS="$NEW_CFLAGS"
3011
3012
3013fi;
3014# Check whether --enable-profile or --disable-profile was given.
3015if test "${enable_profile+set}" = set; then
3016  enableval="$enable_profile"
3017  CFLAGS="-pg"
3018
3019fi;
3020
3021ac_ext=c
3022ac_cpp='$CPP $CPPFLAGS'
3023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3025ac_compiler_gnu=$ac_cv_c_compiler_gnu
3026if test -n "$ac_tool_prefix"; then
3027  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3028set dummy ${ac_tool_prefix}gcc; ac_word=$2
3029echo "$as_me:$LINENO: checking for $ac_word" >&5
3030echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3031if test "${ac_cv_prog_CC+set}" = set; then
3032  echo $ECHO_N "(cached) $ECHO_C" >&6
3033else
3034  if test -n "$CC"; then
3035  ac_cv_prog_CC="$CC" # Let the user override the test.
3036else
3037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3038for as_dir in $PATH
3039do
3040  IFS=$as_save_IFS
3041  test -z "$as_dir" && as_dir=.
3042  for ac_exec_ext in '' $ac_executable_extensions; do
3043  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3044    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3045    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3046    break 2
3047  fi
3048done
3049done
3050
3051fi
3052fi
3053CC=$ac_cv_prog_CC
3054if test -n "$CC"; then
3055  echo "$as_me:$LINENO: result: $CC" >&5
3056echo "${ECHO_T}$CC" >&6
3057else
3058  echo "$as_me:$LINENO: result: no" >&5
3059echo "${ECHO_T}no" >&6
3060fi
3061
3062fi
3063if test -z "$ac_cv_prog_CC"; then
3064  ac_ct_CC=$CC
3065  # Extract the first word of "gcc", so it can be a program name with args.
3066set dummy gcc; ac_word=$2
3067echo "$as_me:$LINENO: checking for $ac_word" >&5
3068echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3069if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3070  echo $ECHO_N "(cached) $ECHO_C" >&6
3071else
3072  if test -n "$ac_ct_CC"; then
3073  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3074else
3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3076for as_dir in $PATH
3077do
3078  IFS=$as_save_IFS
3079  test -z "$as_dir" && as_dir=.
3080  for ac_exec_ext in '' $ac_executable_extensions; do
3081  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3082    ac_cv_prog_ac_ct_CC="gcc"
3083    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3084    break 2
3085  fi
3086done
3087done
3088
3089fi
3090fi
3091ac_ct_CC=$ac_cv_prog_ac_ct_CC
3092if test -n "$ac_ct_CC"; then
3093  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3094echo "${ECHO_T}$ac_ct_CC" >&6
3095else
3096  echo "$as_me:$LINENO: result: no" >&5
3097echo "${ECHO_T}no" >&6
3098fi
3099
3100  CC=$ac_ct_CC
3101else
3102  CC="$ac_cv_prog_CC"
3103fi
3104
3105if test -z "$CC"; then
3106  if test -n "$ac_tool_prefix"; then
3107  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3108set dummy ${ac_tool_prefix}cc; ac_word=$2
3109echo "$as_me:$LINENO: checking for $ac_word" >&5
3110echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3111if test "${ac_cv_prog_CC+set}" = set; then
3112  echo $ECHO_N "(cached) $ECHO_C" >&6
3113else
3114  if test -n "$CC"; then
3115  ac_cv_prog_CC="$CC" # Let the user override the test.
3116else
3117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120  IFS=$as_save_IFS
3121  test -z "$as_dir" && as_dir=.
3122  for ac_exec_ext in '' $ac_executable_extensions; do
3123  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3124    ac_cv_prog_CC="${ac_tool_prefix}cc"
3125    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3126    break 2
3127  fi
3128done
3129done
3130
3131fi
3132fi
3133CC=$ac_cv_prog_CC
3134if test -n "$CC"; then
3135  echo "$as_me:$LINENO: result: $CC" >&5
3136echo "${ECHO_T}$CC" >&6
3137else
3138  echo "$as_me:$LINENO: result: no" >&5
3139echo "${ECHO_T}no" >&6
3140fi
3141
3142fi
3143if test -z "$ac_cv_prog_CC"; then
3144  ac_ct_CC=$CC
3145  # Extract the first word of "cc", so it can be a program name with args.
3146set dummy cc; ac_word=$2
3147echo "$as_me:$LINENO: checking for $ac_word" >&5
3148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3149if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3150  echo $ECHO_N "(cached) $ECHO_C" >&6
3151else
3152  if test -n "$ac_ct_CC"; then
3153  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158  IFS=$as_save_IFS
3159  test -z "$as_dir" && as_dir=.
3160  for ac_exec_ext in '' $ac_executable_extensions; do
3161  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162    ac_cv_prog_ac_ct_CC="cc"
3163    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3164    break 2
3165  fi
3166done
3167done
3168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
3173  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3174echo "${ECHO_T}$ac_ct_CC" >&6
3175else
3176  echo "$as_me:$LINENO: result: no" >&5
3177echo "${ECHO_T}no" >&6
3178fi
3179
3180  CC=$ac_ct_CC
3181else
3182  CC="$ac_cv_prog_CC"
3183fi
3184
3185fi
3186if test -z "$CC"; then
3187  # Extract the first word of "cc", so it can be a program name with args.
3188set dummy cc; ac_word=$2
3189echo "$as_me:$LINENO: checking for $ac_word" >&5
3190echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3191if test "${ac_cv_prog_CC+set}" = set; then
3192  echo $ECHO_N "(cached) $ECHO_C" >&6
3193else
3194  if test -n "$CC"; then
3195  ac_cv_prog_CC="$CC" # Let the user override the test.
3196else
3197  ac_prog_rejected=no
3198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199for as_dir in $PATH
3200do
3201  IFS=$as_save_IFS
3202  test -z "$as_dir" && as_dir=.
3203  for ac_exec_ext in '' $ac_executable_extensions; do
3204  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3206       ac_prog_rejected=yes
3207       continue
3208     fi
3209    ac_cv_prog_CC="cc"
3210    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3211    break 2
3212  fi
3213done
3214done
3215
3216if test $ac_prog_rejected = yes; then
3217  # We found a bogon in the path, so make sure we never use it.
3218  set dummy $ac_cv_prog_CC
3219  shift
3220  if test $# != 0; then
3221    # We chose a different compiler from the bogus one.
3222    # However, it has the same basename, so the bogon will be chosen
3223    # first if we set CC to just the basename; use the full file name.
3224    shift
3225    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3226  fi
3227fi
3228fi
3229fi
3230CC=$ac_cv_prog_CC
3231if test -n "$CC"; then
3232  echo "$as_me:$LINENO: result: $CC" >&5
3233echo "${ECHO_T}$CC" >&6
3234else
3235  echo "$as_me:$LINENO: result: no" >&5
3236echo "${ECHO_T}no" >&6
3237fi
3238
3239fi
3240if test -z "$CC"; then
3241  if test -n "$ac_tool_prefix"; then
3242  for ac_prog in cl
3243  do
3244    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3245set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3246echo "$as_me:$LINENO: checking for $ac_word" >&5
3247echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3248if test "${ac_cv_prog_CC+set}" = set; then
3249  echo $ECHO_N "(cached) $ECHO_C" >&6
3250else
3251  if test -n "$CC"; then
3252  ac_cv_prog_CC="$CC" # Let the user override the test.
3253else
3254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3255for as_dir in $PATH
3256do
3257  IFS=$as_save_IFS
3258  test -z "$as_dir" && as_dir=.
3259  for ac_exec_ext in '' $ac_executable_extensions; do
3260  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3261    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3262    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3263    break 2
3264  fi
3265done
3266done
3267
3268fi
3269fi
3270CC=$ac_cv_prog_CC
3271if test -n "$CC"; then
3272  echo "$as_me:$LINENO: result: $CC" >&5
3273echo "${ECHO_T}$CC" >&6
3274else
3275  echo "$as_me:$LINENO: result: no" >&5
3276echo "${ECHO_T}no" >&6
3277fi
3278
3279    test -n "$CC" && break
3280  done
3281fi
3282if test -z "$CC"; then
3283  ac_ct_CC=$CC
3284  for ac_prog in cl
3285do
3286  # Extract the first word of "$ac_prog", so it can be a program name with args.
3287set dummy $ac_prog; ac_word=$2
3288echo "$as_me:$LINENO: checking for $ac_word" >&5
3289echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3290if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3291  echo $ECHO_N "(cached) $ECHO_C" >&6
3292else
3293  if test -n "$ac_ct_CC"; then
3294  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3295else
3296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297for as_dir in $PATH
3298do
3299  IFS=$as_save_IFS
3300  test -z "$as_dir" && as_dir=.
3301  for ac_exec_ext in '' $ac_executable_extensions; do
3302  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3303    ac_cv_prog_ac_ct_CC="$ac_prog"
3304    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3305    break 2
3306  fi
3307done
3308done
3309
3310fi
3311fi
3312ac_ct_CC=$ac_cv_prog_ac_ct_CC
3313if test -n "$ac_ct_CC"; then
3314  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3315echo "${ECHO_T}$ac_ct_CC" >&6
3316else
3317  echo "$as_me:$LINENO: result: no" >&5
3318echo "${ECHO_T}no" >&6
3319fi
3320
3321  test -n "$ac_ct_CC" && break
3322done
3323
3324  CC=$ac_ct_CC
3325fi
3326
3327fi
3328
3329
3330test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3331See \`config.log' for more details." >&5
3332echo "$as_me: error: no acceptable C compiler found in \$PATH
3333See \`config.log' for more details." >&2;}
3334   { (exit 1); exit 1; }; }
3335
3336# Provide some information about the compiler.
3337echo "$as_me:$LINENO:" \
3338     "checking for C compiler version" >&5
3339ac_compiler=`set X $ac_compile; echo $2`
3340{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3341  (eval $ac_compiler --version </dev/null >&5) 2>&5
3342  ac_status=$?
3343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344  (exit $ac_status); }
3345{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3346  (eval $ac_compiler -v </dev/null >&5) 2>&5
3347  ac_status=$?
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3351  (eval $ac_compiler -V </dev/null >&5) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }
3355
3356echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3357echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3358if test "${ac_cv_c_compiler_gnu+set}" = set; then
3359  echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361  cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h.  */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h.  */
3367
3368int
3369main ()
3370{
3371#ifndef __GNUC__
3372       choke me
3373#endif
3374
3375  ;
3376  return 0;
3377}
3378_ACEOF
3379rm -f conftest.$ac_objext
3380if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3381  (eval $ac_compile) 2>conftest.er1
3382  ac_status=$?
3383  grep -v '^ *+' conftest.er1 >conftest.err
3384  rm -f conftest.er1
3385  cat conftest.err >&5
3386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387  (exit $ac_status); } &&
3388	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3390  (eval $ac_try) 2>&5
3391  ac_status=$?
3392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393  (exit $ac_status); }; } &&
3394	 { ac_try='test -s conftest.$ac_objext'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; }; then
3400  ac_compiler_gnu=yes
3401else
3402  echo "$as_me: failed program was:" >&5
3403sed 's/^/| /' conftest.$ac_ext >&5
3404
3405ac_compiler_gnu=no
3406fi
3407rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3408ac_cv_c_compiler_gnu=$ac_compiler_gnu
3409
3410fi
3411echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3412echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3413GCC=`test $ac_compiler_gnu = yes && echo yes`
3414ac_test_CFLAGS=${CFLAGS+set}
3415ac_save_CFLAGS=$CFLAGS
3416CFLAGS="-g"
3417echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3418echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3419if test "${ac_cv_prog_cc_g+set}" = set; then
3420  echo $ECHO_N "(cached) $ECHO_C" >&6
3421else
3422  cat >conftest.$ac_ext <<_ACEOF
3423/* confdefs.h.  */
3424_ACEOF
3425cat confdefs.h >>conftest.$ac_ext
3426cat >>conftest.$ac_ext <<_ACEOF
3427/* end confdefs.h.  */
3428
3429int
3430main ()
3431{
3432
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"			 || test ! -s conftest.err'
3447  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448  (eval $ac_try) 2>&5
3449  ac_status=$?
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); }; } &&
3452	 { ac_try='test -s conftest.$ac_objext'
3453  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454  (eval $ac_try) 2>&5
3455  ac_status=$?
3456  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457  (exit $ac_status); }; }; then
3458  ac_cv_prog_cc_g=yes
3459else
3460  echo "$as_me: failed program was:" >&5
3461sed 's/^/| /' conftest.$ac_ext >&5
3462
3463ac_cv_prog_cc_g=no
3464fi
3465rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3466fi
3467echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3468echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3469if test "$ac_test_CFLAGS" = set; then
3470  CFLAGS=$ac_save_CFLAGS
3471elif test $ac_cv_prog_cc_g = yes; then
3472  if test "$GCC" = yes; then
3473    CFLAGS="-g -O2"
3474  else
3475    CFLAGS="-g"
3476  fi
3477else
3478  if test "$GCC" = yes; then
3479    CFLAGS="-O2"
3480  else
3481    CFLAGS=
3482  fi
3483fi
3484echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3485echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3486if test "${ac_cv_prog_cc_stdc+set}" = set; then
3487  echo $ECHO_N "(cached) $ECHO_C" >&6
3488else
3489  ac_cv_prog_cc_stdc=no
3490ac_save_CC=$CC
3491cat >conftest.$ac_ext <<_ACEOF
3492/* confdefs.h.  */
3493_ACEOF
3494cat confdefs.h >>conftest.$ac_ext
3495cat >>conftest.$ac_ext <<_ACEOF
3496/* end confdefs.h.  */
3497#include <stdarg.h>
3498#include <stdio.h>
3499#include <sys/types.h>
3500#include <sys/stat.h>
3501/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3502struct buf { int x; };
3503FILE * (*rcsopen) (struct buf *, struct stat *, int);
3504static char *e (p, i)
3505     char **p;
3506     int i;
3507{
3508  return p[i];
3509}
3510static char *f (char * (*g) (char **, int), char **p, ...)
3511{
3512  char *s;
3513  va_list v;
3514  va_start (v,p);
3515  s = g (p, va_arg (v,int));
3516  va_end (v);
3517  return s;
3518}
3519
3520/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3521   function prototypes and stuff, but not '\xHH' hex character constants.
3522   These don't provoke an error unfortunately, instead are silently treated
3523   as 'x'.  The following induces an error, until -std1 is added to get
3524   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3525   array size at least.  It's necessary to write '\x00'==0 to get something
3526   that's true only with -std1.  */
3527int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3528
3529int test (int i, double x);
3530struct s1 {int (*f) (int a);};
3531struct s2 {int (*f) (double a);};
3532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3533int argc;
3534char **argv;
3535int
3536main ()
3537{
3538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543# Don't try gcc -ansi; that turns off useful extensions and
3544# breaks some systems' header files.
3545# AIX			-qlanglvl=ansi
3546# Ultrix and OSF/1	-std1
3547# HP-UX 10.20 and later	-Ae
3548# HP-UX older versions	-Aa -D_HPUX_SOURCE
3549# SVR4			-Xc -D__EXTENSIONS__
3550for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3551do
3552  CC="$ac_save_CC $ac_arg"
3553  rm -f conftest.$ac_objext
3554if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3555  (eval $ac_compile) 2>conftest.er1
3556  ac_status=$?
3557  grep -v '^ *+' conftest.er1 >conftest.err
3558  rm -f conftest.er1
3559  cat conftest.err >&5
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); } &&
3562	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568	 { ac_try='test -s conftest.$ac_objext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  ac_cv_prog_cc_stdc=$ac_arg
3575break
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580fi
3581rm -f conftest.err conftest.$ac_objext
3582done
3583rm -f conftest.$ac_ext conftest.$ac_objext
3584CC=$ac_save_CC
3585
3586fi
3587
3588case "x$ac_cv_prog_cc_stdc" in
3589  x|xno)
3590    echo "$as_me:$LINENO: result: none needed" >&5
3591echo "${ECHO_T}none needed" >&6 ;;
3592  *)
3593    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3594echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3595    CC="$CC $ac_cv_prog_cc_stdc" ;;
3596esac
3597
3598# Some people use a C++ compiler to compile C.  Since we use `exit',
3599# in C++ we need to declare it.  In case someone uses the same compiler
3600# for both compiling C and C++ we need to have the C++ compiler decide
3601# the declaration of exit, since it's the most demanding environment.
3602cat >conftest.$ac_ext <<_ACEOF
3603#ifndef __cplusplus
3604  choke me
3605#endif
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609  (eval $ac_compile) 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } &&
3616	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618  (eval $ac_try) 2>&5
3619  ac_status=$?
3620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621  (exit $ac_status); }; } &&
3622	 { ac_try='test -s conftest.$ac_objext'
3623  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3624  (eval $ac_try) 2>&5
3625  ac_status=$?
3626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3627  (exit $ac_status); }; }; then
3628  for ac_declaration in \
3629   '' \
3630   'extern "C" void std::exit (int) throw (); using std::exit;' \
3631   'extern "C" void std::exit (int); using std::exit;' \
3632   'extern "C" void exit (int) throw ();' \
3633   'extern "C" void exit (int);' \
3634   'void exit (int);'
3635do
3636  cat >conftest.$ac_ext <<_ACEOF
3637/* confdefs.h.  */
3638_ACEOF
3639cat confdefs.h >>conftest.$ac_ext
3640cat >>conftest.$ac_ext <<_ACEOF
3641/* end confdefs.h.  */
3642$ac_declaration
3643#include <stdlib.h>
3644int
3645main ()
3646{
3647exit (42);
3648  ;
3649  return 0;
3650}
3651_ACEOF
3652rm -f conftest.$ac_objext
3653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3654  (eval $ac_compile) 2>conftest.er1
3655  ac_status=$?
3656  grep -v '^ *+' conftest.er1 >conftest.err
3657  rm -f conftest.er1
3658  cat conftest.err >&5
3659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3660  (exit $ac_status); } &&
3661	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3662  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3663  (eval $ac_try) 2>&5
3664  ac_status=$?
3665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666  (exit $ac_status); }; } &&
3667	 { ac_try='test -s conftest.$ac_objext'
3668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3669  (eval $ac_try) 2>&5
3670  ac_status=$?
3671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672  (exit $ac_status); }; }; then
3673  :
3674else
3675  echo "$as_me: failed program was:" >&5
3676sed 's/^/| /' conftest.$ac_ext >&5
3677
3678continue
3679fi
3680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3681  cat >conftest.$ac_ext <<_ACEOF
3682/* confdefs.h.  */
3683_ACEOF
3684cat confdefs.h >>conftest.$ac_ext
3685cat >>conftest.$ac_ext <<_ACEOF
3686/* end confdefs.h.  */
3687$ac_declaration
3688int
3689main ()
3690{
3691exit (42);
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696rm -f conftest.$ac_objext
3697if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3698  (eval $ac_compile) 2>conftest.er1
3699  ac_status=$?
3700  grep -v '^ *+' conftest.er1 >conftest.err
3701  rm -f conftest.er1
3702  cat conftest.err >&5
3703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704  (exit $ac_status); } &&
3705	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3706  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3707  (eval $ac_try) 2>&5
3708  ac_status=$?
3709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3710  (exit $ac_status); }; } &&
3711	 { ac_try='test -s conftest.$ac_objext'
3712  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713  (eval $ac_try) 2>&5
3714  ac_status=$?
3715  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716  (exit $ac_status); }; }; then
3717  break
3718else
3719  echo "$as_me: failed program was:" >&5
3720sed 's/^/| /' conftest.$ac_ext >&5
3721
3722fi
3723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3724done
3725rm -f conftest*
3726if test -n "$ac_declaration"; then
3727  echo '#ifdef __cplusplus' >>confdefs.h
3728  echo $ac_declaration      >>confdefs.h
3729  echo '#endif'             >>confdefs.h
3730fi
3731
3732else
3733  echo "$as_me: failed program was:" >&5
3734sed 's/^/| /' conftest.$ac_ext >&5
3735
3736fi
3737rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3738ac_ext=c
3739ac_cpp='$CPP $CPPFLAGS'
3740ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3741ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3742ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
3744depcc="$CC"   am_compiler_list=
3745
3746echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3747echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3748if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3749  echo $ECHO_N "(cached) $ECHO_C" >&6
3750else
3751  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3752  # We make a subdir and do the tests there.  Otherwise we can end up
3753  # making bogus files that we don't know about and never remove.  For
3754  # instance it was reported that on HP-UX the gcc test will end up
3755  # making a dummy file named `D' -- because `-MD' means `put the output
3756  # in D'.
3757  mkdir conftest.dir
3758  # Copy depcomp to subdir because otherwise we won't find it if we're
3759  # using a relative directory.
3760  cp "$am_depcomp" conftest.dir
3761  cd conftest.dir
3762  # We will build objects and dependencies in a subdirectory because
3763  # it helps to detect inapplicable dependency modes.  For instance
3764  # both Tru64's cc and ICC support -MD to output dependencies as a
3765  # side effect of compilation, but ICC will put the dependencies in
3766  # the current directory while Tru64 will put them in the object
3767  # directory.
3768  mkdir sub
3769
3770  am_cv_CC_dependencies_compiler_type=none
3771  if test "$am_compiler_list" = ""; then
3772     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3773  fi
3774  for depmode in $am_compiler_list; do
3775    # Setup a source with many dependencies, because some compilers
3776    # like to wrap large dependency lists on column 80 (with \), and
3777    # we should not choose a depcomp mode which is confused by this.
3778    #
3779    # We need to recreate these files for each test, as the compiler may
3780    # overwrite some of them when testing with obscure command lines.
3781    # This happens at least with the AIX C compiler.
3782    : > sub/conftest.c
3783    for i in 1 2 3 4 5 6; do
3784      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3785      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3786      # Solaris 8's {/usr,}/bin/sh.
3787      touch sub/conftst$i.h
3788    done
3789    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3790
3791    case $depmode in
3792    nosideeffect)
3793      # after this tag, mechanisms are not by side-effect, so they'll
3794      # only be used when explicitly requested
3795      if test "x$enable_dependency_tracking" = xyes; then
3796	continue
3797      else
3798	break
3799      fi
3800      ;;
3801    none) break ;;
3802    esac
3803    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3804    # mode.  It turns out that the SunPro C++ compiler does not properly
3805    # handle `-M -o', and we need to detect this.
3806    if depmode=$depmode \
3807       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3808       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3809       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3810         >/dev/null 2>conftest.err &&
3811       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3813       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814      # icc doesn't choke on unknown options, it will just issue warnings
3815      # or remarks (even with -Werror).  So we grep stderr for any message
3816      # that says an option was ignored or not supported.
3817      # When given -MP, icc 7.0 and 7.1 complain thusly:
3818      #   icc: Command line warning: ignoring option '-M'; no argument required
3819      # The diagnosis changed in icc 8.0:
3820      #   icc: Command line remark: option '-MP' not supported
3821      if (grep 'ignoring option' conftest.err ||
3822          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823        am_cv_CC_dependencies_compiler_type=$depmode
3824        break
3825      fi
3826    fi
3827  done
3828
3829  cd ..
3830  rm -rf conftest.dir
3831else
3832  am_cv_CC_dependencies_compiler_type=none
3833fi
3834
3835fi
3836echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3837echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3838CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3839
3840
3841
3842if
3843  test "x$enable_dependency_tracking" != xno \
3844  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3845  am__fastdepCC_TRUE=
3846  am__fastdepCC_FALSE='#'
3847else
3848  am__fastdepCC_TRUE='#'
3849  am__fastdepCC_FALSE=
3850fi
3851
3852
3853echo "$as_me:$LINENO: checking for inline" >&5
3854echo $ECHO_N "checking for inline... $ECHO_C" >&6
3855if test "${ac_cv_c_inline+set}" = set; then
3856  echo $ECHO_N "(cached) $ECHO_C" >&6
3857else
3858  ac_cv_c_inline=no
3859for ac_kw in inline __inline__ __inline; do
3860  cat >conftest.$ac_ext <<_ACEOF
3861/* confdefs.h.  */
3862_ACEOF
3863cat confdefs.h >>conftest.$ac_ext
3864cat >>conftest.$ac_ext <<_ACEOF
3865/* end confdefs.h.  */
3866#ifndef __cplusplus
3867typedef int foo_t;
3868static $ac_kw foo_t static_foo () {return 0; }
3869$ac_kw foo_t foo () {return 0; }
3870#endif
3871
3872_ACEOF
3873rm -f conftest.$ac_objext
3874if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3875  (eval $ac_compile) 2>conftest.er1
3876  ac_status=$?
3877  grep -v '^ *+' conftest.er1 >conftest.err
3878  rm -f conftest.er1
3879  cat conftest.err >&5
3880  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3881  (exit $ac_status); } &&
3882	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3884  (eval $ac_try) 2>&5
3885  ac_status=$?
3886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3887  (exit $ac_status); }; } &&
3888	 { ac_try='test -s conftest.$ac_objext'
3889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3890  (eval $ac_try) 2>&5
3891  ac_status=$?
3892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3893  (exit $ac_status); }; }; then
3894  ac_cv_c_inline=$ac_kw; break
3895else
3896  echo "$as_me: failed program was:" >&5
3897sed 's/^/| /' conftest.$ac_ext >&5
3898
3899fi
3900rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3901done
3902
3903fi
3904echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3905echo "${ECHO_T}$ac_cv_c_inline" >&6
3906
3907
3908case $ac_cv_c_inline in
3909  inline | yes) ;;
3910  *)
3911    case $ac_cv_c_inline in
3912      no) ac_val=;;
3913      *) ac_val=$ac_cv_c_inline;;
3914    esac
3915    cat >>confdefs.h <<_ACEOF
3916#ifndef __cplusplus
3917#define inline $ac_val
3918#endif
3919_ACEOF
3920    ;;
3921esac
3922
3923echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3924echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3925if test "${ac_cv_c_bigendian+set}" = set; then
3926  echo $ECHO_N "(cached) $ECHO_C" >&6
3927else
3928  # See if sys/param.h defines the BYTE_ORDER macro.
3929cat >conftest.$ac_ext <<_ACEOF
3930/* confdefs.h.  */
3931_ACEOF
3932cat confdefs.h >>conftest.$ac_ext
3933cat >>conftest.$ac_ext <<_ACEOF
3934/* end confdefs.h.  */
3935#include <sys/types.h>
3936#include <sys/param.h>
3937
3938int
3939main ()
3940{
3941#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3942 bogus endian macros
3943#endif
3944
3945  ;
3946  return 0;
3947}
3948_ACEOF
3949rm -f conftest.$ac_objext
3950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3951  (eval $ac_compile) 2>conftest.er1
3952  ac_status=$?
3953  grep -v '^ *+' conftest.er1 >conftest.err
3954  rm -f conftest.er1
3955  cat conftest.err >&5
3956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3957  (exit $ac_status); } &&
3958	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3959  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3960  (eval $ac_try) 2>&5
3961  ac_status=$?
3962  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963  (exit $ac_status); }; } &&
3964	 { ac_try='test -s conftest.$ac_objext'
3965  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3966  (eval $ac_try) 2>&5
3967  ac_status=$?
3968  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969  (exit $ac_status); }; }; then
3970  # It does; now see whether it defined to BIG_ENDIAN or not.
3971cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h.  */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
3976/* end confdefs.h.  */
3977#include <sys/types.h>
3978#include <sys/param.h>
3979
3980int
3981main ()
3982{
3983#if BYTE_ORDER != BIG_ENDIAN
3984 not big endian
3985#endif
3986
3987  ;
3988  return 0;
3989}
3990_ACEOF
3991rm -f conftest.$ac_objext
3992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3993  (eval $ac_compile) 2>conftest.er1
3994  ac_status=$?
3995  grep -v '^ *+' conftest.er1 >conftest.err
3996  rm -f conftest.er1
3997  cat conftest.err >&5
3998  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999  (exit $ac_status); } &&
4000	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4001  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4002  (eval $ac_try) 2>&5
4003  ac_status=$?
4004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005  (exit $ac_status); }; } &&
4006	 { ac_try='test -s conftest.$ac_objext'
4007  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008  (eval $ac_try) 2>&5
4009  ac_status=$?
4010  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011  (exit $ac_status); }; }; then
4012  ac_cv_c_bigendian=yes
4013else
4014  echo "$as_me: failed program was:" >&5
4015sed 's/^/| /' conftest.$ac_ext >&5
4016
4017ac_cv_c_bigendian=no
4018fi
4019rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4020else
4021  echo "$as_me: failed program was:" >&5
4022sed 's/^/| /' conftest.$ac_ext >&5
4023
4024# It does not; compile a test program.
4025if test "$cross_compiling" = yes; then
4026  # try to guess the endianness by grepping values into an object file
4027  ac_cv_c_bigendian=unknown
4028  cat >conftest.$ac_ext <<_ACEOF
4029/* confdefs.h.  */
4030_ACEOF
4031cat confdefs.h >>conftest.$ac_ext
4032cat >>conftest.$ac_ext <<_ACEOF
4033/* end confdefs.h.  */
4034short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4035short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4036void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4037short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4038short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4039void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4040int
4041main ()
4042{
4043 _ascii (); _ebcdic ();
4044  ;
4045  return 0;
4046}
4047_ACEOF
4048rm -f conftest.$ac_objext
4049if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4050  (eval $ac_compile) 2>conftest.er1
4051  ac_status=$?
4052  grep -v '^ *+' conftest.er1 >conftest.err
4053  rm -f conftest.er1
4054  cat conftest.err >&5
4055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4056  (exit $ac_status); } &&
4057	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4059  (eval $ac_try) 2>&5
4060  ac_status=$?
4061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062  (exit $ac_status); }; } &&
4063	 { ac_try='test -s conftest.$ac_objext'
4064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4065  (eval $ac_try) 2>&5
4066  ac_status=$?
4067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068  (exit $ac_status); }; }; then
4069  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4070  ac_cv_c_bigendian=yes
4071fi
4072if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4073  if test "$ac_cv_c_bigendian" = unknown; then
4074    ac_cv_c_bigendian=no
4075  else
4076    # finding both strings is unlikely to happen, but who knows?
4077    ac_cv_c_bigendian=unknown
4078  fi
4079fi
4080else
4081  echo "$as_me: failed program was:" >&5
4082sed 's/^/| /' conftest.$ac_ext >&5
4083
4084fi
4085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4086else
4087  cat >conftest.$ac_ext <<_ACEOF
4088/* confdefs.h.  */
4089_ACEOF
4090cat confdefs.h >>conftest.$ac_ext
4091cat >>conftest.$ac_ext <<_ACEOF
4092/* end confdefs.h.  */
4093int
4094main ()
4095{
4096  /* Are we little or big endian?  From Harbison&Steele.  */
4097  union
4098  {
4099    long l;
4100    char c[sizeof (long)];
4101  } u;
4102  u.l = 1;
4103  exit (u.c[sizeof (long) - 1] == 1);
4104}
4105_ACEOF
4106rm -f conftest$ac_exeext
4107if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4108  (eval $ac_link) 2>&5
4109  ac_status=$?
4110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113  (eval $ac_try) 2>&5
4114  ac_status=$?
4115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116  (exit $ac_status); }; }; then
4117  ac_cv_c_bigendian=no
4118else
4119  echo "$as_me: program exited with status $ac_status" >&5
4120echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4123( exit $ac_status )
4124ac_cv_c_bigendian=yes
4125fi
4126rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4127fi
4128fi
4129rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4130fi
4131echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4132echo "${ECHO_T}$ac_cv_c_bigendian" >&6
4133case $ac_cv_c_bigendian in
4134  yes)
4135
4136cat >>confdefs.h <<\_ACEOF
4137#define WORDS_BIGENDIAN 1
4138_ACEOF
4139 ;;
4140  no)
4141     ;;
4142  *)
4143    { { echo "$as_me:$LINENO: error: unknown endianness
4144presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4145echo "$as_me: error: unknown endianness
4146presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4147   { (exit 1); exit 1; }; } ;;
4148esac
4149
4150echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4151echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
4152set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
4153if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  cat >conftest.make <<\_ACEOF
4157all:
4158	@echo 'ac_maketemp="$(MAKE)"'
4159_ACEOF
4160# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4161eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
4162if test -n "$ac_maketemp"; then
4163  eval ac_cv_prog_make_${ac_make}_set=yes
4164else
4165  eval ac_cv_prog_make_${ac_make}_set=no
4166fi
4167rm -f conftest.make
4168fi
4169if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
4170  echo "$as_me:$LINENO: result: yes" >&5
4171echo "${ECHO_T}yes" >&6
4172  SET_MAKE=
4173else
4174  echo "$as_me:$LINENO: result: no" >&5
4175echo "${ECHO_T}no" >&6
4176  SET_MAKE="MAKE=${MAKE-make}"
4177fi
4178
4179
4180
4181echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
4182echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
4183if test "${ac_cv_lib_m_sqrt+set}" = set; then
4184  echo $ECHO_N "(cached) $ECHO_C" >&6
4185else
4186  ac_check_lib_save_LIBS=$LIBS
4187LIBS="-lm  $LIBS"
4188cat >conftest.$ac_ext <<_ACEOF
4189/* confdefs.h.  */
4190_ACEOF
4191cat confdefs.h >>conftest.$ac_ext
4192cat >>conftest.$ac_ext <<_ACEOF
4193/* end confdefs.h.  */
4194
4195/* Override any gcc2 internal prototype to avoid an error.  */
4196#ifdef __cplusplus
4197extern "C"
4198#endif
4199/* We use char because int might match the return type of a gcc2
4200   builtin and then its argument prototype would still apply.  */
4201char sqrt ();
4202int
4203main ()
4204{
4205sqrt ();
4206  ;
4207  return 0;
4208}
4209_ACEOF
4210rm -f conftest.$ac_objext conftest$ac_exeext
4211if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4212  (eval $ac_link) 2>conftest.er1
4213  ac_status=$?
4214  grep -v '^ *+' conftest.er1 >conftest.err
4215  rm -f conftest.er1
4216  cat conftest.err >&5
4217  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218  (exit $ac_status); } &&
4219	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4220  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4221  (eval $ac_try) 2>&5
4222  ac_status=$?
4223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224  (exit $ac_status); }; } &&
4225	 { ac_try='test -s conftest$ac_exeext'
4226  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4227  (eval $ac_try) 2>&5
4228  ac_status=$?
4229  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230  (exit $ac_status); }; }; then
4231  ac_cv_lib_m_sqrt=yes
4232else
4233  echo "$as_me: failed program was:" >&5
4234sed 's/^/| /' conftest.$ac_ext >&5
4235
4236ac_cv_lib_m_sqrt=no
4237fi
4238rm -f conftest.err conftest.$ac_objext \
4239      conftest$ac_exeext conftest.$ac_ext
4240LIBS=$ac_check_lib_save_LIBS
4241fi
4242echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
4243echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
4244if test $ac_cv_lib_m_sqrt = yes; then
4245  cat >>confdefs.h <<_ACEOF
4246#define HAVE_LIBM 1
4247_ACEOF
4248
4249  LIBS="-lm $LIBS"
4250
4251fi
4252
4253
4254echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
4255echo $ECHO_N "checking if malloc debugging is wanted... $ECHO_C" >&6
4256
4257# Check whether --with-dmalloc or --without-dmalloc was given.
4258if test "${with_dmalloc+set}" = set; then
4259  withval="$with_dmalloc"
4260  if test "$withval" = yes; then
4261  echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
4263
4264cat >>confdefs.h <<\_ACEOF
4265#define WITH_DMALLOC 1
4266_ACEOF
4267
4268  LIBS="$LIBS -ldmalloc"
4269  LDFLAGS="$LDFLAGS -g"
4270else
4271  echo "$as_me:$LINENO: result: no" >&5
4272echo "${ECHO_T}no" >&6
4273fi
4274else
4275  echo "$as_me:$LINENO: result: no" >&5
4276echo "${ECHO_T}no" >&6
4277fi;
4278
4279
4280ac_ext=c
4281ac_cpp='$CPP $CPPFLAGS'
4282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4284ac_compiler_gnu=$ac_cv_c_compiler_gnu
4285echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4286echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4287# On Suns, sometimes $CPP names a directory.
4288if test -n "$CPP" && test -d "$CPP"; then
4289  CPP=
4290fi
4291if test -z "$CPP"; then
4292  if test "${ac_cv_prog_CPP+set}" = set; then
4293  echo $ECHO_N "(cached) $ECHO_C" >&6
4294else
4295      # Double quotes because CPP needs to be expanded
4296    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4297    do
4298      ac_preproc_ok=false
4299for ac_c_preproc_warn_flag in '' yes
4300do
4301  # Use a header file that comes with gcc, so configuring glibc
4302  # with a fresh cross-compiler works.
4303  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4304  # <limits.h> exists even on freestanding compilers.
4305  # On the NeXT, cc -E runs the code through the compiler's parser,
4306  # not just through cpp. "Syntax error" is here to catch this case.
4307  cat >conftest.$ac_ext <<_ACEOF
4308/* confdefs.h.  */
4309_ACEOF
4310cat confdefs.h >>conftest.$ac_ext
4311cat >>conftest.$ac_ext <<_ACEOF
4312/* end confdefs.h.  */
4313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
4318		     Syntax error
4319_ACEOF
4320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4322  ac_status=$?
4323  grep -v '^ *+' conftest.er1 >conftest.err
4324  rm -f conftest.er1
4325  cat conftest.err >&5
4326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327  (exit $ac_status); } >/dev/null; then
4328  if test -s conftest.err; then
4329    ac_cpp_err=$ac_c_preproc_warn_flag
4330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4331  else
4332    ac_cpp_err=
4333  fi
4334else
4335  ac_cpp_err=yes
4336fi
4337if test -z "$ac_cpp_err"; then
4338  :
4339else
4340  echo "$as_me: failed program was:" >&5
4341sed 's/^/| /' conftest.$ac_ext >&5
4342
4343  # Broken: fails on valid input.
4344continue
4345fi
4346rm -f conftest.err conftest.$ac_ext
4347
4348  # OK, works on sane cases.  Now check whether non-existent headers
4349  # can be detected and how.
4350  cat >conftest.$ac_ext <<_ACEOF
4351/* confdefs.h.  */
4352_ACEOF
4353cat confdefs.h >>conftest.$ac_ext
4354cat >>conftest.$ac_ext <<_ACEOF
4355/* end confdefs.h.  */
4356#include <ac_nonexistent.h>
4357_ACEOF
4358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4359  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360  ac_status=$?
4361  grep -v '^ *+' conftest.er1 >conftest.err
4362  rm -f conftest.er1
4363  cat conftest.err >&5
4364  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365  (exit $ac_status); } >/dev/null; then
4366  if test -s conftest.err; then
4367    ac_cpp_err=$ac_c_preproc_warn_flag
4368    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4369  else
4370    ac_cpp_err=
4371  fi
4372else
4373  ac_cpp_err=yes
4374fi
4375if test -z "$ac_cpp_err"; then
4376  # Broken: success on invalid input.
4377continue
4378else
4379  echo "$as_me: failed program was:" >&5
4380sed 's/^/| /' conftest.$ac_ext >&5
4381
4382  # Passes both tests.
4383ac_preproc_ok=:
4384break
4385fi
4386rm -f conftest.err conftest.$ac_ext
4387
4388done
4389# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4390rm -f conftest.err conftest.$ac_ext
4391if $ac_preproc_ok; then
4392  break
4393fi
4394
4395    done
4396    ac_cv_prog_CPP=$CPP
4397
4398fi
4399  CPP=$ac_cv_prog_CPP
4400else
4401  ac_cv_prog_CPP=$CPP
4402fi
4403echo "$as_me:$LINENO: result: $CPP" >&5
4404echo "${ECHO_T}$CPP" >&6
4405ac_preproc_ok=false
4406for ac_c_preproc_warn_flag in '' yes
4407do
4408  # Use a header file that comes with gcc, so configuring glibc
4409  # with a fresh cross-compiler works.
4410  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4411  # <limits.h> exists even on freestanding compilers.
4412  # On the NeXT, cc -E runs the code through the compiler's parser,
4413  # not just through cpp. "Syntax error" is here to catch this case.
4414  cat >conftest.$ac_ext <<_ACEOF
4415/* confdefs.h.  */
4416_ACEOF
4417cat confdefs.h >>conftest.$ac_ext
4418cat >>conftest.$ac_ext <<_ACEOF
4419/* end confdefs.h.  */
4420#ifdef __STDC__
4421# include <limits.h>
4422#else
4423# include <assert.h>
4424#endif
4425		     Syntax error
4426_ACEOF
4427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4428  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4429  ac_status=$?
4430  grep -v '^ *+' conftest.er1 >conftest.err
4431  rm -f conftest.er1
4432  cat conftest.err >&5
4433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434  (exit $ac_status); } >/dev/null; then
4435  if test -s conftest.err; then
4436    ac_cpp_err=$ac_c_preproc_warn_flag
4437    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4438  else
4439    ac_cpp_err=
4440  fi
4441else
4442  ac_cpp_err=yes
4443fi
4444if test -z "$ac_cpp_err"; then
4445  :
4446else
4447  echo "$as_me: failed program was:" >&5
4448sed 's/^/| /' conftest.$ac_ext >&5
4449
4450  # Broken: fails on valid input.
4451continue
4452fi
4453rm -f conftest.err conftest.$ac_ext
4454
4455  # OK, works on sane cases.  Now check whether non-existent headers
4456  # can be detected and how.
4457  cat >conftest.$ac_ext <<_ACEOF
4458/* confdefs.h.  */
4459_ACEOF
4460cat confdefs.h >>conftest.$ac_ext
4461cat >>conftest.$ac_ext <<_ACEOF
4462/* end confdefs.h.  */
4463#include <ac_nonexistent.h>
4464_ACEOF
4465if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4466  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4467  ac_status=$?
4468  grep -v '^ *+' conftest.er1 >conftest.err
4469  rm -f conftest.er1
4470  cat conftest.err >&5
4471  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472  (exit $ac_status); } >/dev/null; then
4473  if test -s conftest.err; then
4474    ac_cpp_err=$ac_c_preproc_warn_flag
4475    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4476  else
4477    ac_cpp_err=
4478  fi
4479else
4480  ac_cpp_err=yes
4481fi
4482if test -z "$ac_cpp_err"; then
4483  # Broken: success on invalid input.
4484continue
4485else
4486  echo "$as_me: failed program was:" >&5
4487sed 's/^/| /' conftest.$ac_ext >&5
4488
4489  # Passes both tests.
4490ac_preproc_ok=:
4491break
4492fi
4493rm -f conftest.err conftest.$ac_ext
4494
4495done
4496# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4497rm -f conftest.err conftest.$ac_ext
4498if $ac_preproc_ok; then
4499  :
4500else
4501  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4502See \`config.log' for more details." >&5
4503echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4504See \`config.log' for more details." >&2;}
4505   { (exit 1); exit 1; }; }
4506fi
4507
4508ac_ext=c
4509ac_cpp='$CPP $CPPFLAGS'
4510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4512ac_compiler_gnu=$ac_cv_c_compiler_gnu
4513
4514
4515echo "$as_me:$LINENO: checking for egrep" >&5
4516echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4517if test "${ac_cv_prog_egrep+set}" = set; then
4518  echo $ECHO_N "(cached) $ECHO_C" >&6
4519else
4520  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4521    then ac_cv_prog_egrep='grep -E'
4522    else ac_cv_prog_egrep='egrep'
4523    fi
4524fi
4525echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4526echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4527 EGREP=$ac_cv_prog_egrep
4528
4529
4530echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4531echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4532if test "${ac_cv_header_stdc+set}" = set; then
4533  echo $ECHO_N "(cached) $ECHO_C" >&6
4534else
4535  cat >conftest.$ac_ext <<_ACEOF
4536/* confdefs.h.  */
4537_ACEOF
4538cat confdefs.h >>conftest.$ac_ext
4539cat >>conftest.$ac_ext <<_ACEOF
4540/* end confdefs.h.  */
4541#include <stdlib.h>
4542#include <stdarg.h>
4543#include <string.h>
4544#include <float.h>
4545
4546int
4547main ()
4548{
4549
4550  ;
4551  return 0;
4552}
4553_ACEOF
4554rm -f conftest.$ac_objext
4555if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4556  (eval $ac_compile) 2>conftest.er1
4557  ac_status=$?
4558  grep -v '^ *+' conftest.er1 >conftest.err
4559  rm -f conftest.er1
4560  cat conftest.err >&5
4561  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4562  (exit $ac_status); } &&
4563	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4564  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4565  (eval $ac_try) 2>&5
4566  ac_status=$?
4567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568  (exit $ac_status); }; } &&
4569	 { ac_try='test -s conftest.$ac_objext'
4570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4571  (eval $ac_try) 2>&5
4572  ac_status=$?
4573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574  (exit $ac_status); }; }; then
4575  ac_cv_header_stdc=yes
4576else
4577  echo "$as_me: failed program was:" >&5
4578sed 's/^/| /' conftest.$ac_ext >&5
4579
4580ac_cv_header_stdc=no
4581fi
4582rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4583
4584if test $ac_cv_header_stdc = yes; then
4585  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4586  cat >conftest.$ac_ext <<_ACEOF
4587/* confdefs.h.  */
4588_ACEOF
4589cat confdefs.h >>conftest.$ac_ext
4590cat >>conftest.$ac_ext <<_ACEOF
4591/* end confdefs.h.  */
4592#include <string.h>
4593
4594_ACEOF
4595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596  $EGREP "memchr" >/dev/null 2>&1; then
4597  :
4598else
4599  ac_cv_header_stdc=no
4600fi
4601rm -f conftest*
4602
4603fi
4604
4605if test $ac_cv_header_stdc = yes; then
4606  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607  cat >conftest.$ac_ext <<_ACEOF
4608/* confdefs.h.  */
4609_ACEOF
4610cat confdefs.h >>conftest.$ac_ext
4611cat >>conftest.$ac_ext <<_ACEOF
4612/* end confdefs.h.  */
4613#include <stdlib.h>
4614
4615_ACEOF
4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617  $EGREP "free" >/dev/null 2>&1; then
4618  :
4619else
4620  ac_cv_header_stdc=no
4621fi
4622rm -f conftest*
4623
4624fi
4625
4626if test $ac_cv_header_stdc = yes; then
4627  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4628  if test "$cross_compiling" = yes; then
4629  :
4630else
4631  cat >conftest.$ac_ext <<_ACEOF
4632/* confdefs.h.  */
4633_ACEOF
4634cat confdefs.h >>conftest.$ac_ext
4635cat >>conftest.$ac_ext <<_ACEOF
4636/* end confdefs.h.  */
4637#include <ctype.h>
4638#if ((' ' & 0x0FF) == 0x020)
4639# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4640# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4641#else
4642# define ISLOWER(c) \
4643		   (('a' <= (c) && (c) <= 'i') \
4644		     || ('j' <= (c) && (c) <= 'r') \
4645		     || ('s' <= (c) && (c) <= 'z'))
4646# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4647#endif
4648
4649#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4650int
4651main ()
4652{
4653  int i;
4654  for (i = 0; i < 256; i++)
4655    if (XOR (islower (i), ISLOWER (i))
4656	|| toupper (i) != TOUPPER (i))
4657      exit(2);
4658  exit (0);
4659}
4660_ACEOF
4661rm -f conftest$ac_exeext
4662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4663  (eval $ac_link) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4668  (eval $ac_try) 2>&5
4669  ac_status=$?
4670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671  (exit $ac_status); }; }; then
4672  :
4673else
4674  echo "$as_me: program exited with status $ac_status" >&5
4675echo "$as_me: failed program was:" >&5
4676sed 's/^/| /' conftest.$ac_ext >&5
4677
4678( exit $ac_status )
4679ac_cv_header_stdc=no
4680fi
4681rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4682fi
4683fi
4684fi
4685echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4686echo "${ECHO_T}$ac_cv_header_stdc" >&6
4687if test $ac_cv_header_stdc = yes; then
4688
4689cat >>confdefs.h <<\_ACEOF
4690#define STDC_HEADERS 1
4691_ACEOF
4692
4693fi
4694
4695# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4706		  inttypes.h stdint.h unistd.h
4707do
4708as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4709echo "$as_me:$LINENO: checking for $ac_header" >&5
4710echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4711if eval "test \"\${$as_ac_Header+set}\" = set"; then
4712  echo $ECHO_N "(cached) $ECHO_C" >&6
4713else
4714  cat >conftest.$ac_ext <<_ACEOF
4715/* confdefs.h.  */
4716_ACEOF
4717cat confdefs.h >>conftest.$ac_ext
4718cat >>conftest.$ac_ext <<_ACEOF
4719/* end confdefs.h.  */
4720$ac_includes_default
4721
4722#include <$ac_header>
4723_ACEOF
4724rm -f conftest.$ac_objext
4725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4726  (eval $ac_compile) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } &&
4733	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4734  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735  (eval $ac_try) 2>&5
4736  ac_status=$?
4737  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738  (exit $ac_status); }; } &&
4739	 { ac_try='test -s conftest.$ac_objext'
4740  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741  (eval $ac_try) 2>&5
4742  ac_status=$?
4743  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4744  (exit $ac_status); }; }; then
4745  eval "$as_ac_Header=yes"
4746else
4747  echo "$as_me: failed program was:" >&5
4748sed 's/^/| /' conftest.$ac_ext >&5
4749
4750eval "$as_ac_Header=no"
4751fi
4752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4753fi
4754echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4755echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4756if test `eval echo '${'$as_ac_Header'}'` = yes; then
4757  cat >>confdefs.h <<_ACEOF
4758#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4759_ACEOF
4760
4761fi
4762
4763done
4764
4765
4766
4767for ac_header in unistd.h
4768do
4769as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4770if eval "test \"\${$as_ac_Header+set}\" = set"; then
4771  echo "$as_me:$LINENO: checking for $ac_header" >&5
4772echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4773if eval "test \"\${$as_ac_Header+set}\" = set"; then
4774  echo $ECHO_N "(cached) $ECHO_C" >&6
4775fi
4776echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4777echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4778else
4779  # Is the header compilable?
4780echo "$as_me:$LINENO: checking $ac_header usability" >&5
4781echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4782cat >conftest.$ac_ext <<_ACEOF
4783/* confdefs.h.  */
4784_ACEOF
4785cat confdefs.h >>conftest.$ac_ext
4786cat >>conftest.$ac_ext <<_ACEOF
4787/* end confdefs.h.  */
4788$ac_includes_default
4789#include <$ac_header>
4790_ACEOF
4791rm -f conftest.$ac_objext
4792if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793  (eval $ac_compile) 2>conftest.er1
4794  ac_status=$?
4795  grep -v '^ *+' conftest.er1 >conftest.err
4796  rm -f conftest.er1
4797  cat conftest.err >&5
4798  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799  (exit $ac_status); } &&
4800	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4801  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4802  (eval $ac_try) 2>&5
4803  ac_status=$?
4804  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805  (exit $ac_status); }; } &&
4806	 { ac_try='test -s conftest.$ac_objext'
4807  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4808  (eval $ac_try) 2>&5
4809  ac_status=$?
4810  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4811  (exit $ac_status); }; }; then
4812  ac_header_compiler=yes
4813else
4814  echo "$as_me: failed program was:" >&5
4815sed 's/^/| /' conftest.$ac_ext >&5
4816
4817ac_header_compiler=no
4818fi
4819rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4821echo "${ECHO_T}$ac_header_compiler" >&6
4822
4823# Is the header present?
4824echo "$as_me:$LINENO: checking $ac_header presence" >&5
4825echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4826cat >conftest.$ac_ext <<_ACEOF
4827/* confdefs.h.  */
4828_ACEOF
4829cat confdefs.h >>conftest.$ac_ext
4830cat >>conftest.$ac_ext <<_ACEOF
4831/* end confdefs.h.  */
4832#include <$ac_header>
4833_ACEOF
4834if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4835  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4836  ac_status=$?
4837  grep -v '^ *+' conftest.er1 >conftest.err
4838  rm -f conftest.er1
4839  cat conftest.err >&5
4840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841  (exit $ac_status); } >/dev/null; then
4842  if test -s conftest.err; then
4843    ac_cpp_err=$ac_c_preproc_warn_flag
4844    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4845  else
4846    ac_cpp_err=
4847  fi
4848else
4849  ac_cpp_err=yes
4850fi
4851if test -z "$ac_cpp_err"; then
4852  ac_header_preproc=yes
4853else
4854  echo "$as_me: failed program was:" >&5
4855sed 's/^/| /' conftest.$ac_ext >&5
4856
4857  ac_header_preproc=no
4858fi
4859rm -f conftest.err conftest.$ac_ext
4860echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4861echo "${ECHO_T}$ac_header_preproc" >&6
4862
4863# So?  What about this header?
4864case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4865  yes:no: )
4866    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4867echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4868    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4869echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4870    ac_header_preproc=yes
4871    ;;
4872  no:yes:* )
4873    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4874echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4875    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4876echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4877    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4878echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4879    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4880echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4881    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4882echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4883    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4884echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4885    (
4886      cat <<\_ASBOX
4887## ------------------------------ ##
4888## Report this to the bsp lists.  ##
4889## ------------------------------ ##
4890_ASBOX
4891    ) |
4892      sed "s/^/$as_me: WARNING:     /" >&2
4893    ;;
4894esac
4895echo "$as_me:$LINENO: checking for $ac_header" >&5
4896echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4897if eval "test \"\${$as_ac_Header+set}\" = set"; then
4898  echo $ECHO_N "(cached) $ECHO_C" >&6
4899else
4900  eval "$as_ac_Header=\$ac_header_preproc"
4901fi
4902echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4903echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4904
4905fi
4906if test `eval echo '${'$as_ac_Header'}'` = yes; then
4907  cat >>confdefs.h <<_ACEOF
4908#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4909_ACEOF
4910
4911fi
4912
4913done
4914
4915
4916echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4917echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4918if test "${ac_cv_c_const+set}" = set; then
4919  echo $ECHO_N "(cached) $ECHO_C" >&6
4920else
4921  cat >conftest.$ac_ext <<_ACEOF
4922/* confdefs.h.  */
4923_ACEOF
4924cat confdefs.h >>conftest.$ac_ext
4925cat >>conftest.$ac_ext <<_ACEOF
4926/* end confdefs.h.  */
4927
4928int
4929main ()
4930{
4931/* FIXME: Include the comments suggested by Paul. */
4932#ifndef __cplusplus
4933  /* Ultrix mips cc rejects this.  */
4934  typedef int charset[2];
4935  const charset x;
4936  /* SunOS 4.1.1 cc rejects this.  */
4937  char const *const *ccp;
4938  char **p;
4939  /* NEC SVR4.0.2 mips cc rejects this.  */
4940  struct point {int x, y;};
4941  static struct point const zero = {0,0};
4942  /* AIX XL C 1.02.0.0 rejects this.
4943     It does not let you subtract one const X* pointer from another in
4944     an arm of an if-expression whose if-part is not a constant
4945     expression */
4946  const char *g = "string";
4947  ccp = &g + (g ? g-g : 0);
4948  /* HPUX 7.0 cc rejects these. */
4949  ++ccp;
4950  p = (char**) ccp;
4951  ccp = (char const *const *) p;
4952  { /* SCO 3.2v4 cc rejects this.  */
4953    char *t;
4954    char const *s = 0 ? (char *) 0 : (char const *) 0;
4955
4956    *t++ = 0;
4957  }
4958  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4959    int x[] = {25, 17};
4960    const int *foo = &x[0];
4961    ++foo;
4962  }
4963  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4964    typedef const int *iptr;
4965    iptr p = 0;
4966    ++p;
4967  }
4968  { /* AIX XL C 1.02.0.0 rejects this saying
4969       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4970    struct s { int j; const int *ap[3]; };
4971    struct s *b; b->j = 5;
4972  }
4973  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4974    const int foo = 10;
4975  }
4976#endif
4977
4978  ;
4979  return 0;
4980}
4981_ACEOF
4982rm -f conftest.$ac_objext
4983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4984  (eval $ac_compile) 2>conftest.er1
4985  ac_status=$?
4986  grep -v '^ *+' conftest.er1 >conftest.err
4987  rm -f conftest.er1
4988  cat conftest.err >&5
4989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990  (exit $ac_status); } &&
4991	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4992  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4993  (eval $ac_try) 2>&5
4994  ac_status=$?
4995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996  (exit $ac_status); }; } &&
4997	 { ac_try='test -s conftest.$ac_objext'
4998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4999  (eval $ac_try) 2>&5
5000  ac_status=$?
5001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002  (exit $ac_status); }; }; then
5003  ac_cv_c_const=yes
5004else
5005  echo "$as_me: failed program was:" >&5
5006sed 's/^/| /' conftest.$ac_ext >&5
5007
5008ac_cv_c_const=no
5009fi
5010rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5011fi
5012echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
5013echo "${ECHO_T}$ac_cv_c_const" >&6
5014if test $ac_cv_c_const = no; then
5015
5016cat >>confdefs.h <<\_ACEOF
5017#define const
5018_ACEOF
5019
5020fi
5021
5022echo "$as_me:$LINENO: checking for size_t" >&5
5023echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5024if test "${ac_cv_type_size_t+set}" = set; then
5025  echo $ECHO_N "(cached) $ECHO_C" >&6
5026else
5027  cat >conftest.$ac_ext <<_ACEOF
5028/* confdefs.h.  */
5029_ACEOF
5030cat confdefs.h >>conftest.$ac_ext
5031cat >>conftest.$ac_ext <<_ACEOF
5032/* end confdefs.h.  */
5033$ac_includes_default
5034int
5035main ()
5036{
5037if ((size_t *) 0)
5038  return 0;
5039if (sizeof (size_t))
5040  return 0;
5041  ;
5042  return 0;
5043}
5044_ACEOF
5045rm -f conftest.$ac_objext
5046if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5047  (eval $ac_compile) 2>conftest.er1
5048  ac_status=$?
5049  grep -v '^ *+' conftest.er1 >conftest.err
5050  rm -f conftest.er1
5051  cat conftest.err >&5
5052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053  (exit $ac_status); } &&
5054	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5056  (eval $ac_try) 2>&5
5057  ac_status=$?
5058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5059  (exit $ac_status); }; } &&
5060	 { ac_try='test -s conftest.$ac_objext'
5061  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5062  (eval $ac_try) 2>&5
5063  ac_status=$?
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); }; }; then
5066  ac_cv_type_size_t=yes
5067else
5068  echo "$as_me: failed program was:" >&5
5069sed 's/^/| /' conftest.$ac_ext >&5
5070
5071ac_cv_type_size_t=no
5072fi
5073rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5074fi
5075echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5076echo "${ECHO_T}$ac_cv_type_size_t" >&6
5077if test $ac_cv_type_size_t = yes; then
5078  :
5079else
5080
5081cat >>confdefs.h <<_ACEOF
5082#define size_t unsigned
5083_ACEOF
5084
5085fi
5086
5087
5088
5089for ac_func in vprintf
5090do
5091as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5092echo "$as_me:$LINENO: checking for $ac_func" >&5
5093echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5094if eval "test \"\${$as_ac_var+set}\" = set"; then
5095  echo $ECHO_N "(cached) $ECHO_C" >&6
5096else
5097  cat >conftest.$ac_ext <<_ACEOF
5098/* confdefs.h.  */
5099_ACEOF
5100cat confdefs.h >>conftest.$ac_ext
5101cat >>conftest.$ac_ext <<_ACEOF
5102/* end confdefs.h.  */
5103/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5104   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5105#define $ac_func innocuous_$ac_func
5106
5107/* System header to define __stub macros and hopefully few prototypes,
5108    which can conflict with char $ac_func (); below.
5109    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110    <limits.h> exists even on freestanding compilers.  */
5111
5112#ifdef __STDC__
5113# include <limits.h>
5114#else
5115# include <assert.h>
5116#endif
5117
5118#undef $ac_func
5119
5120/* Override any gcc2 internal prototype to avoid an error.  */
5121#ifdef __cplusplus
5122extern "C"
5123{
5124#endif
5125/* We use char because int might match the return type of a gcc2
5126   builtin and then its argument prototype would still apply.  */
5127char $ac_func ();
5128/* The GNU C library defines this for functions which it implements
5129    to always fail with ENOSYS.  Some functions are actually named
5130    something starting with __ and the normal name is an alias.  */
5131#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5132choke me
5133#else
5134char (*f) () = $ac_func;
5135#endif
5136#ifdef __cplusplus
5137}
5138#endif
5139
5140int
5141main ()
5142{
5143return f != $ac_func;
5144  ;
5145  return 0;
5146}
5147_ACEOF
5148rm -f conftest.$ac_objext conftest$ac_exeext
5149if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5150  (eval $ac_link) 2>conftest.er1
5151  ac_status=$?
5152  grep -v '^ *+' conftest.er1 >conftest.err
5153  rm -f conftest.er1
5154  cat conftest.err >&5
5155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156  (exit $ac_status); } &&
5157	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5159  (eval $ac_try) 2>&5
5160  ac_status=$?
5161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5162  (exit $ac_status); }; } &&
5163	 { ac_try='test -s conftest$ac_exeext'
5164  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5165  (eval $ac_try) 2>&5
5166  ac_status=$?
5167  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168  (exit $ac_status); }; }; then
5169  eval "$as_ac_var=yes"
5170else
5171  echo "$as_me: failed program was:" >&5
5172sed 's/^/| /' conftest.$ac_ext >&5
5173
5174eval "$as_ac_var=no"
5175fi
5176rm -f conftest.err conftest.$ac_objext \
5177      conftest$ac_exeext conftest.$ac_ext
5178fi
5179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5180echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5181if test `eval echo '${'$as_ac_var'}'` = yes; then
5182  cat >>confdefs.h <<_ACEOF
5183#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5184_ACEOF
5185
5186echo "$as_me:$LINENO: checking for _doprnt" >&5
5187echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
5188if test "${ac_cv_func__doprnt+set}" = set; then
5189  echo $ECHO_N "(cached) $ECHO_C" >&6
5190else
5191  cat >conftest.$ac_ext <<_ACEOF
5192/* confdefs.h.  */
5193_ACEOF
5194cat confdefs.h >>conftest.$ac_ext
5195cat >>conftest.$ac_ext <<_ACEOF
5196/* end confdefs.h.  */
5197/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
5198   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5199#define _doprnt innocuous__doprnt
5200
5201/* System header to define __stub macros and hopefully few prototypes,
5202    which can conflict with char _doprnt (); below.
5203    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5204    <limits.h> exists even on freestanding compilers.  */
5205
5206#ifdef __STDC__
5207# include <limits.h>
5208#else
5209# include <assert.h>
5210#endif
5211
5212#undef _doprnt
5213
5214/* Override any gcc2 internal prototype to avoid an error.  */
5215#ifdef __cplusplus
5216extern "C"
5217{
5218#endif
5219/* We use char because int might match the return type of a gcc2
5220   builtin and then its argument prototype would still apply.  */
5221char _doprnt ();
5222/* The GNU C library defines this for functions which it implements
5223    to always fail with ENOSYS.  Some functions are actually named
5224    something starting with __ and the normal name is an alias.  */
5225#if defined (__stub__doprnt) || defined (__stub____doprnt)
5226choke me
5227#else
5228char (*f) () = _doprnt;
5229#endif
5230#ifdef __cplusplus
5231}
5232#endif
5233
5234int
5235main ()
5236{
5237return f != _doprnt;
5238  ;
5239  return 0;
5240}
5241_ACEOF
5242rm -f conftest.$ac_objext conftest$ac_exeext
5243if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5244  (eval $ac_link) 2>conftest.er1
5245  ac_status=$?
5246  grep -v '^ *+' conftest.er1 >conftest.err
5247  rm -f conftest.er1
5248  cat conftest.err >&5
5249  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5250  (exit $ac_status); } &&
5251	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5252  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5253  (eval $ac_try) 2>&5
5254  ac_status=$?
5255  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256  (exit $ac_status); }; } &&
5257	 { ac_try='test -s conftest$ac_exeext'
5258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5259  (eval $ac_try) 2>&5
5260  ac_status=$?
5261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5262  (exit $ac_status); }; }; then
5263  ac_cv_func__doprnt=yes
5264else
5265  echo "$as_me: failed program was:" >&5
5266sed 's/^/| /' conftest.$ac_ext >&5
5267
5268ac_cv_func__doprnt=no
5269fi
5270rm -f conftest.err conftest.$ac_objext \
5271      conftest$ac_exeext conftest.$ac_ext
5272fi
5273echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
5274echo "${ECHO_T}$ac_cv_func__doprnt" >&6
5275if test $ac_cv_func__doprnt = yes; then
5276
5277cat >>confdefs.h <<\_ACEOF
5278#define HAVE_DOPRNT 1
5279_ACEOF
5280
5281fi
5282
5283fi
5284done
5285
5286
5287
5288
5289
5290for ac_func in isatty unlink tmpfile
5291do
5292as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5293echo "$as_me:$LINENO: checking for $ac_func" >&5
5294echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5295if eval "test \"\${$as_ac_var+set}\" = set"; then
5296  echo $ECHO_N "(cached) $ECHO_C" >&6
5297else
5298  cat >conftest.$ac_ext <<_ACEOF
5299/* confdefs.h.  */
5300_ACEOF
5301cat confdefs.h >>conftest.$ac_ext
5302cat >>conftest.$ac_ext <<_ACEOF
5303/* end confdefs.h.  */
5304/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5305   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5306#define $ac_func innocuous_$ac_func
5307
5308/* System header to define __stub macros and hopefully few prototypes,
5309    which can conflict with char $ac_func (); below.
5310    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5311    <limits.h> exists even on freestanding compilers.  */
5312
5313#ifdef __STDC__
5314# include <limits.h>
5315#else
5316# include <assert.h>
5317#endif
5318
5319#undef $ac_func
5320
5321/* Override any gcc2 internal prototype to avoid an error.  */
5322#ifdef __cplusplus
5323extern "C"
5324{
5325#endif
5326/* We use char because int might match the return type of a gcc2
5327   builtin and then its argument prototype would still apply.  */
5328char $ac_func ();
5329/* The GNU C library defines this for functions which it implements
5330    to always fail with ENOSYS.  Some functions are actually named
5331    something starting with __ and the normal name is an alias.  */
5332#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5333choke me
5334#else
5335char (*f) () = $ac_func;
5336#endif
5337#ifdef __cplusplus
5338}
5339#endif
5340
5341int
5342main ()
5343{
5344return f != $ac_func;
5345  ;
5346  return 0;
5347}
5348_ACEOF
5349rm -f conftest.$ac_objext conftest$ac_exeext
5350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5351  (eval $ac_link) 2>conftest.er1
5352  ac_status=$?
5353  grep -v '^ *+' conftest.er1 >conftest.err
5354  rm -f conftest.er1
5355  cat conftest.err >&5
5356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357  (exit $ac_status); } &&
5358	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5359  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5360  (eval $ac_try) 2>&5
5361  ac_status=$?
5362  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5363  (exit $ac_status); }; } &&
5364	 { ac_try='test -s conftest$ac_exeext'
5365  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5366  (eval $ac_try) 2>&5
5367  ac_status=$?
5368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369  (exit $ac_status); }; }; then
5370  eval "$as_ac_var=yes"
5371else
5372  echo "$as_me: failed program was:" >&5
5373sed 's/^/| /' conftest.$ac_ext >&5
5374
5375eval "$as_ac_var=no"
5376fi
5377rm -f conftest.err conftest.$ac_objext \
5378      conftest$ac_exeext conftest.$ac_ext
5379fi
5380echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5381echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5382if test `eval echo '${'$as_ac_var'}'` = yes; then
5383  cat >>confdefs.h <<_ACEOF
5384#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5385_ACEOF
5386
5387fi
5388done
5389
5390
5391                                        ac_config_files="$ac_config_files Makefile test-wads/Makefile DOS/Makefile Win32/Makefile"
5392cat >confcache <<\_ACEOF
5393# This file is a shell script that caches the results of configure
5394# tests run on this system so they can be shared between configure
5395# scripts and configure runs, see configure's option --config-cache.
5396# It is not useful on other systems.  If it contains results you don't
5397# want to keep, you may remove or edit it.
5398#
5399# config.status only pays attention to the cache file if you give it
5400# the --recheck option to rerun configure.
5401#
5402# `ac_cv_env_foo' variables (set or unset) will be overridden when
5403# loading this file, other *unset* `ac_cv_foo' will be assigned the
5404# following values.
5405
5406_ACEOF
5407
5408# The following way of writing the cache mishandles newlines in values,
5409# but we know of no workaround that is simple, portable, and efficient.
5410# So, don't put newlines in cache variables' values.
5411# Ultrix sh set writes to stderr and can't be redirected directly,
5412# and sets the high bit in the cache file unless we assign to the vars.
5413{
5414  (set) 2>&1 |
5415    case `(ac_space=' '; set | grep ac_space) 2>&1` in
5416    *ac_space=\ *)
5417      # `set' does not quote correctly, so add quotes (double-quote
5418      # substitution turns \\\\ into \\, and sed turns \\ into \).
5419      sed -n \
5420	"s/'/'\\\\''/g;
5421	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5422      ;;
5423    *)
5424      # `set' quotes correctly as required by POSIX, so do not add quotes.
5425      sed -n \
5426	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5427      ;;
5428    esac;
5429} |
5430  sed '
5431     t clear
5432     : clear
5433     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5434     t end
5435     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5436     : end' >>confcache
5437if diff $cache_file confcache >/dev/null 2>&1; then :; else
5438  if test -w $cache_file; then
5439    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5440    cat confcache >$cache_file
5441  else
5442    echo "not updating unwritable cache $cache_file"
5443  fi
5444fi
5445rm -f confcache
5446
5447test "x$prefix" = xNONE && prefix=$ac_default_prefix
5448# Let make expand exec_prefix.
5449test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5450
5451# VPATH may cause trouble with some makes, so we remove $(srcdir),
5452# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5453# trailing colons and then remove the whole line if VPATH becomes empty
5454# (actually we leave an empty line to preserve line numbers).
5455if test "x$srcdir" = x.; then
5456  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5457s/:*\$(srcdir):*/:/;
5458s/:*\${srcdir}:*/:/;
5459s/:*@srcdir@:*/:/;
5460s/^\([^=]*=[	 ]*\):*/\1/;
5461s/:*$//;
5462s/^[^=]*=[	 ]*$//;
5463}'
5464fi
5465
5466DEFS=-DHAVE_CONFIG_H
5467
5468ac_libobjs=
5469ac_ltlibobjs=
5470for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5471  # 1. Remove the extension, and $U if already installed.
5472  ac_i=`echo "$ac_i" |
5473	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5474  # 2. Add them.
5475  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5476  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5477done
5478LIBOBJS=$ac_libobjs
5479
5480LTLIBOBJS=$ac_ltlibobjs
5481
5482
5483if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
5484  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
5485Usually this means the macro was only invoked conditionally." >&5
5486echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
5487Usually this means the macro was only invoked conditionally." >&2;}
5488   { (exit 1); exit 1; }; }
5489fi
5490if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5491  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5492Usually this means the macro was only invoked conditionally." >&5
5493echo "$as_me: error: conditional \"AMDEP\" was never defined.
5494Usually this means the macro was only invoked conditionally." >&2;}
5495   { (exit 1); exit 1; }; }
5496fi
5497if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5498  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5499Usually this means the macro was only invoked conditionally." >&5
5500echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5501Usually this means the macro was only invoked conditionally." >&2;}
5502   { (exit 1); exit 1; }; }
5503fi
5504if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5505  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5506Usually this means the macro was only invoked conditionally." >&5
5507echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5508Usually this means the macro was only invoked conditionally." >&2;}
5509   { (exit 1); exit 1; }; }
5510fi
5511
5512: ${CONFIG_STATUS=./config.status}
5513ac_clean_files_save=$ac_clean_files
5514ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5515{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5516echo "$as_me: creating $CONFIG_STATUS" >&6;}
5517cat >$CONFIG_STATUS <<_ACEOF
5518#! $SHELL
5519# Generated by $as_me.
5520# Run this file to recreate the current configuration.
5521# Compiler output produced by configure, useful for debugging
5522# configure, is in config.log if it exists.
5523
5524debug=false
5525ac_cs_recheck=false
5526ac_cs_silent=false
5527SHELL=\${CONFIG_SHELL-$SHELL}
5528_ACEOF
5529
5530cat >>$CONFIG_STATUS <<\_ACEOF
5531## --------------------- ##
5532## M4sh Initialization.  ##
5533## --------------------- ##
5534
5535# Be Bourne compatible
5536if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5537  emulate sh
5538  NULLCMD=:
5539  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5540  # is contrary to our usage.  Disable this feature.
5541  alias -g '${1+"$@"}'='"$@"'
5542elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5543  set -o posix
5544fi
5545DUALCASE=1; export DUALCASE # for MKS sh
5546
5547# Support unset when possible.
5548if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5549  as_unset=unset
5550else
5551  as_unset=false
5552fi
5553
5554
5555# Work around bugs in pre-3.0 UWIN ksh.
5556$as_unset ENV MAIL MAILPATH
5557PS1='$ '
5558PS2='> '
5559PS4='+ '
5560
5561# NLS nuisances.
5562for as_var in \
5563  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5564  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5565  LC_TELEPHONE LC_TIME
5566do
5567  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5568    eval $as_var=C; export $as_var
5569  else
5570    $as_unset $as_var
5571  fi
5572done
5573
5574# Required to use basename.
5575if expr a : '\(a\)' >/dev/null 2>&1; then
5576  as_expr=expr
5577else
5578  as_expr=false
5579fi
5580
5581if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5582  as_basename=basename
5583else
5584  as_basename=false
5585fi
5586
5587
5588# Name of the executable.
5589as_me=`$as_basename "$0" ||
5590$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5591	 X"$0" : 'X\(//\)$' \| \
5592	 X"$0" : 'X\(/\)$' \| \
5593	 .     : '\(.\)' 2>/dev/null ||
5594echo X/"$0" |
5595    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5596  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
5597  	  /^X\/\(\/\).*/{ s//\1/; q; }
5598  	  s/.*/./; q'`
5599
5600
5601# PATH needs CR, and LINENO needs CR and PATH.
5602# Avoid depending upon Character Ranges.
5603as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5604as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5605as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5606as_cr_digits='0123456789'
5607as_cr_alnum=$as_cr_Letters$as_cr_digits
5608
5609# The user is always right.
5610if test "${PATH_SEPARATOR+set}" != set; then
5611  echo "#! /bin/sh" >conf$$.sh
5612  echo  "exit 0"   >>conf$$.sh
5613  chmod +x conf$$.sh
5614  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5615    PATH_SEPARATOR=';'
5616  else
5617    PATH_SEPARATOR=:
5618  fi
5619  rm -f conf$$.sh
5620fi
5621
5622
5623  as_lineno_1=$LINENO
5624  as_lineno_2=$LINENO
5625  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5626  test "x$as_lineno_1" != "x$as_lineno_2" &&
5627  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5628  # Find who we are.  Look in the path if we contain no path at all
5629  # relative or not.
5630  case $0 in
5631    *[\\/]* ) as_myself=$0 ;;
5632    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633for as_dir in $PATH
5634do
5635  IFS=$as_save_IFS
5636  test -z "$as_dir" && as_dir=.
5637  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5638done
5639
5640       ;;
5641  esac
5642  # We did not find ourselves, most probably we were run as `sh COMMAND'
5643  # in which case we are not to be found in the path.
5644  if test "x$as_myself" = x; then
5645    as_myself=$0
5646  fi
5647  if test ! -f "$as_myself"; then
5648    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5649echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5650   { (exit 1); exit 1; }; }
5651  fi
5652  case $CONFIG_SHELL in
5653  '')
5654    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5656do
5657  IFS=$as_save_IFS
5658  test -z "$as_dir" && as_dir=.
5659  for as_base in sh bash ksh sh5; do
5660	 case $as_dir in
5661	 /*)
5662	   if ("$as_dir/$as_base" -c '
5663  as_lineno_1=$LINENO
5664  as_lineno_2=$LINENO
5665  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5666  test "x$as_lineno_1" != "x$as_lineno_2" &&
5667  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5668	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5669	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5670	     CONFIG_SHELL=$as_dir/$as_base
5671	     export CONFIG_SHELL
5672	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5673	   fi;;
5674	 esac
5675       done
5676done
5677;;
5678  esac
5679
5680  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5681  # uniformly replaced by the line number.  The first 'sed' inserts a
5682  # line-number line before each line; the second 'sed' does the real
5683  # work.  The second script uses 'N' to pair each line-number line
5684  # with the numbered line, and appends trailing '-' during
5685  # substitution so that $LINENO is not a special case at line end.
5686  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5687  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5688  sed '=' <$as_myself |
5689    sed '
5690      N
5691      s,$,-,
5692      : loop
5693      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5694      t loop
5695      s,-$,,
5696      s,^['$as_cr_digits']*\n,,
5697    ' >$as_me.lineno &&
5698  chmod +x $as_me.lineno ||
5699    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5700echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5701   { (exit 1); exit 1; }; }
5702
5703  # Don't try to exec as it changes $[0], causing all sort of problems
5704  # (the dirname of $[0] is not the place where we might find the
5705  # original and so on.  Autoconf is especially sensible to this).
5706  . ./$as_me.lineno
5707  # Exit status is that of the last command.
5708  exit
5709}
5710
5711
5712case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5713  *c*,-n*) ECHO_N= ECHO_C='
5714' ECHO_T='	' ;;
5715  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5716  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5717esac
5718
5719if expr a : '\(a\)' >/dev/null 2>&1; then
5720  as_expr=expr
5721else
5722  as_expr=false
5723fi
5724
5725rm -f conf$$ conf$$.exe conf$$.file
5726echo >conf$$.file
5727if ln -s conf$$.file conf$$ 2>/dev/null; then
5728  # We could just check for DJGPP; but this test a) works b) is more generic
5729  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5730  if test -f conf$$.exe; then
5731    # Don't use ln at all; we don't have any links
5732    as_ln_s='cp -p'
5733  else
5734    as_ln_s='ln -s'
5735  fi
5736elif ln conf$$.file conf$$ 2>/dev/null; then
5737  as_ln_s=ln
5738else
5739  as_ln_s='cp -p'
5740fi
5741rm -f conf$$ conf$$.exe conf$$.file
5742
5743if mkdir -p . 2>/dev/null; then
5744  as_mkdir_p=:
5745else
5746  test -d ./-p && rmdir ./-p
5747  as_mkdir_p=false
5748fi
5749
5750as_executable_p="test -f"
5751
5752# Sed expression to map a string onto a valid CPP name.
5753as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5754
5755# Sed expression to map a string onto a valid variable name.
5756as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5757
5758
5759# IFS
5760# We need space, tab and new line, in precisely that order.
5761as_nl='
5762'
5763IFS=" 	$as_nl"
5764
5765# CDPATH.
5766$as_unset CDPATH
5767
5768exec 6>&1
5769
5770# Open the log real soon, to keep \$[0] and so on meaningful, and to
5771# report actual input values of CONFIG_FILES etc. instead of their
5772# values after options handling.  Logging --version etc. is OK.
5773exec 5>>config.log
5774{
5775  echo
5776  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5777## Running $as_me. ##
5778_ASBOX
5779} >&5
5780cat >&5 <<_CSEOF
5781
5782This file was extended by bsp $as_me 5.2, which was
5783generated by GNU Autoconf 2.59.  Invocation command line was
5784
5785  CONFIG_FILES    = $CONFIG_FILES
5786  CONFIG_HEADERS  = $CONFIG_HEADERS
5787  CONFIG_LINKS    = $CONFIG_LINKS
5788  CONFIG_COMMANDS = $CONFIG_COMMANDS
5789  $ $0 $@
5790
5791_CSEOF
5792echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5793echo >&5
5794_ACEOF
5795
5796# Files that config.status was made for.
5797if test -n "$ac_config_files"; then
5798  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5799fi
5800
5801if test -n "$ac_config_headers"; then
5802  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5803fi
5804
5805if test -n "$ac_config_links"; then
5806  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5807fi
5808
5809if test -n "$ac_config_commands"; then
5810  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5811fi
5812
5813cat >>$CONFIG_STATUS <<\_ACEOF
5814
5815ac_cs_usage="\
5816\`$as_me' instantiates files from templates according to the
5817current configuration.
5818
5819Usage: $0 [OPTIONS] [FILE]...
5820
5821  -h, --help       print this help, then exit
5822  -V, --version    print version number, then exit
5823  -q, --quiet      do not print progress messages
5824  -d, --debug      don't remove temporary files
5825      --recheck    update $as_me by reconfiguring in the same conditions
5826  --file=FILE[:TEMPLATE]
5827		   instantiate the configuration file FILE
5828  --header=FILE[:TEMPLATE]
5829		   instantiate the configuration header FILE
5830
5831Configuration files:
5832$config_files
5833
5834Configuration headers:
5835$config_headers
5836
5837Configuration commands:
5838$config_commands
5839
5840Report bugs to <bug-autoconf@gnu.org>."
5841_ACEOF
5842
5843cat >>$CONFIG_STATUS <<_ACEOF
5844ac_cs_version="\\
5845bsp config.status 5.2
5846configured by $0, generated by GNU Autoconf 2.59,
5847  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5848
5849Copyright (C) 2003 Free Software Foundation, Inc.
5850This config.status script is free software; the Free Software Foundation
5851gives unlimited permission to copy, distribute and modify it."
5852srcdir=$srcdir
5853INSTALL="$INSTALL"
5854_ACEOF
5855
5856cat >>$CONFIG_STATUS <<\_ACEOF
5857# If no file are specified by the user, then we need to provide default
5858# value.  By we need to know if files were specified by the user.
5859ac_need_defaults=:
5860while test $# != 0
5861do
5862  case $1 in
5863  --*=*)
5864    ac_option=`expr "x$1" : 'x\([^=]*\)='`
5865    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5866    ac_shift=:
5867    ;;
5868  -*)
5869    ac_option=$1
5870    ac_optarg=$2
5871    ac_shift=shift
5872    ;;
5873  *) # This is not an option, so the user has probably given explicit
5874     # arguments.
5875     ac_option=$1
5876     ac_need_defaults=false;;
5877  esac
5878
5879  case $ac_option in
5880  # Handling of the options.
5881_ACEOF
5882cat >>$CONFIG_STATUS <<\_ACEOF
5883  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5884    ac_cs_recheck=: ;;
5885  --version | --vers* | -V )
5886    echo "$ac_cs_version"; exit 0 ;;
5887  --he | --h)
5888    # Conflict between --help and --header
5889    { { echo "$as_me:$LINENO: error: ambiguous option: $1
5890Try \`$0 --help' for more information." >&5
5891echo "$as_me: error: ambiguous option: $1
5892Try \`$0 --help' for more information." >&2;}
5893   { (exit 1); exit 1; }; };;
5894  --help | --hel | -h )
5895    echo "$ac_cs_usage"; exit 0 ;;
5896  --debug | --d* | -d )
5897    debug=: ;;
5898  --file | --fil | --fi | --f )
5899    $ac_shift
5900    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5901    ac_need_defaults=false;;
5902  --header | --heade | --head | --hea )
5903    $ac_shift
5904    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5905    ac_need_defaults=false;;
5906  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5907  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5908    ac_cs_silent=: ;;
5909
5910  # This is an error.
5911  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5912Try \`$0 --help' for more information." >&5
5913echo "$as_me: error: unrecognized option: $1
5914Try \`$0 --help' for more information." >&2;}
5915   { (exit 1); exit 1; }; } ;;
5916
5917  *) ac_config_targets="$ac_config_targets $1" ;;
5918
5919  esac
5920  shift
5921done
5922
5923ac_configure_extra_args=
5924
5925if $ac_cs_silent; then
5926  exec 6>/dev/null
5927  ac_configure_extra_args="$ac_configure_extra_args --silent"
5928fi
5929
5930_ACEOF
5931cat >>$CONFIG_STATUS <<_ACEOF
5932if \$ac_cs_recheck; then
5933  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5934  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5935fi
5936
5937_ACEOF
5938
5939cat >>$CONFIG_STATUS <<_ACEOF
5940#
5941# INIT-COMMANDS section.
5942#
5943
5944AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5945
5946_ACEOF
5947
5948
5949
5950cat >>$CONFIG_STATUS <<\_ACEOF
5951for ac_config_target in $ac_config_targets
5952do
5953  case "$ac_config_target" in
5954  # Handling of arguments.
5955  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5956  "test-wads/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-wads/Makefile" ;;
5957  "DOS/Makefile" ) CONFIG_FILES="$CONFIG_FILES DOS/Makefile" ;;
5958  "Win32/Makefile" ) CONFIG_FILES="$CONFIG_FILES Win32/Makefile" ;;
5959  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5960  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5961  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5962echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5963   { (exit 1); exit 1; }; };;
5964  esac
5965done
5966
5967# If the user did not use the arguments to specify the items to instantiate,
5968# then the envvar interface is used.  Set only those that are not.
5969# We use the long form for the default assignment because of an extremely
5970# bizarre bug on SunOS 4.1.3.
5971if $ac_need_defaults; then
5972  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5973  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5974  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5975fi
5976
5977# Have a temporary directory for convenience.  Make it in the build tree
5978# simply because there is no reason to put it here, and in addition,
5979# creating and moving files from /tmp can sometimes cause problems.
5980# Create a temporary directory, and hook for its removal unless debugging.
5981$debug ||
5982{
5983  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5984  trap '{ (exit 1); exit 1; }' 1 2 13 15
5985}
5986
5987# Create a (secure) tmp directory for tmp files.
5988
5989{
5990  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5991  test -n "$tmp" && test -d "$tmp"
5992}  ||
5993{
5994  tmp=./confstat$$-$RANDOM
5995  (umask 077 && mkdir $tmp)
5996} ||
5997{
5998   echo "$me: cannot create a temporary directory in ." >&2
5999   { (exit 1); exit 1; }
6000}
6001
6002_ACEOF
6003
6004cat >>$CONFIG_STATUS <<_ACEOF
6005
6006#
6007# CONFIG_FILES section.
6008#
6009
6010# No need to generate the scripts if there are no CONFIG_FILES.
6011# This happens for instance when ./config.status config.h
6012if test -n "\$CONFIG_FILES"; then
6013  # Protect against being on the right side of a sed subst in config.status.
6014  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6015   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6016s,@SHELL@,$SHELL,;t t
6017s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6018s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6019s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6020s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6021s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6022s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6023s,@exec_prefix@,$exec_prefix,;t t
6024s,@prefix@,$prefix,;t t
6025s,@program_transform_name@,$program_transform_name,;t t
6026s,@bindir@,$bindir,;t t
6027s,@sbindir@,$sbindir,;t t
6028s,@libexecdir@,$libexecdir,;t t
6029s,@datadir@,$datadir,;t t
6030s,@sysconfdir@,$sysconfdir,;t t
6031s,@sharedstatedir@,$sharedstatedir,;t t
6032s,@localstatedir@,$localstatedir,;t t
6033s,@libdir@,$libdir,;t t
6034s,@includedir@,$includedir,;t t
6035s,@oldincludedir@,$oldincludedir,;t t
6036s,@infodir@,$infodir,;t t
6037s,@mandir@,$mandir,;t t
6038s,@build_alias@,$build_alias,;t t
6039s,@host_alias@,$host_alias,;t t
6040s,@target_alias@,$target_alias,;t t
6041s,@DEFS@,$DEFS,;t t
6042s,@ECHO_C@,$ECHO_C,;t t
6043s,@ECHO_N@,$ECHO_N,;t t
6044s,@ECHO_T@,$ECHO_T,;t t
6045s,@LIBS@,$LIBS,;t t
6046s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6047s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6048s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6049s,@CYGPATH_W@,$CYGPATH_W,;t t
6050s,@PACKAGE@,$PACKAGE,;t t
6051s,@VERSION@,$VERSION,;t t
6052s,@ACLOCAL@,$ACLOCAL,;t t
6053s,@AUTOCONF@,$AUTOCONF,;t t
6054s,@AUTOMAKE@,$AUTOMAKE,;t t
6055s,@AUTOHEADER@,$AUTOHEADER,;t t
6056s,@MAKEINFO@,$MAKEINFO,;t t
6057s,@install_sh@,$install_sh,;t t
6058s,@STRIP@,$STRIP,;t t
6059s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
6060s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
6061s,@mkdir_p@,$mkdir_p,;t t
6062s,@AWK@,$AWK,;t t
6063s,@SET_MAKE@,$SET_MAKE,;t t
6064s,@am__leading_dot@,$am__leading_dot,;t t
6065s,@AMTAR@,$AMTAR,;t t
6066s,@am__tar@,$am__tar,;t t
6067s,@am__untar@,$am__untar,;t t
6068s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
6069s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
6070s,@MAINT@,$MAINT,;t t
6071s,@CC@,$CC,;t t
6072s,@CFLAGS@,$CFLAGS,;t t
6073s,@LDFLAGS@,$LDFLAGS,;t t
6074s,@CPPFLAGS@,$CPPFLAGS,;t t
6075s,@ac_ct_CC@,$ac_ct_CC,;t t
6076s,@EXEEXT@,$EXEEXT,;t t
6077s,@OBJEXT@,$OBJEXT,;t t
6078s,@DEPDIR@,$DEPDIR,;t t
6079s,@am__include@,$am__include,;t t
6080s,@am__quote@,$am__quote,;t t
6081s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
6082s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
6083s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
6084s,@CCDEPMODE@,$CCDEPMODE,;t t
6085s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
6086s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
6087s,@CPP@,$CPP,;t t
6088s,@EGREP@,$EGREP,;t t
6089s,@LIBOBJS@,$LIBOBJS,;t t
6090s,@LTLIBOBJS@,$LTLIBOBJS,;t t
6091CEOF
6092
6093_ACEOF
6094
6095  cat >>$CONFIG_STATUS <<\_ACEOF
6096  # Split the substitutions into bite-sized pieces for seds with
6097  # small command number limits, like on Digital OSF/1 and HP-UX.
6098  ac_max_sed_lines=48
6099  ac_sed_frag=1 # Number of current file.
6100  ac_beg=1 # First line for current file.
6101  ac_end=$ac_max_sed_lines # Line after last line for current file.
6102  ac_more_lines=:
6103  ac_sed_cmds=
6104  while $ac_more_lines; do
6105    if test $ac_beg -gt 1; then
6106      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6107    else
6108      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6109    fi
6110    if test ! -s $tmp/subs.frag; then
6111      ac_more_lines=false
6112    else
6113      # The purpose of the label and of the branching condition is to
6114      # speed up the sed processing (if there are no `@' at all, there
6115      # is no need to browse any of the substitutions).
6116      # These are the two extra sed commands mentioned above.
6117      (echo ':t
6118  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6119      if test -z "$ac_sed_cmds"; then
6120	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6121      else
6122	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6123      fi
6124      ac_sed_frag=`expr $ac_sed_frag + 1`
6125      ac_beg=$ac_end
6126      ac_end=`expr $ac_end + $ac_max_sed_lines`
6127    fi
6128  done
6129  if test -z "$ac_sed_cmds"; then
6130    ac_sed_cmds=cat
6131  fi
6132fi # test -n "$CONFIG_FILES"
6133
6134_ACEOF
6135cat >>$CONFIG_STATUS <<\_ACEOF
6136for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6137  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6138  case $ac_file in
6139  - | *:- | *:-:* ) # input from stdin
6140	cat >$tmp/stdin
6141	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6142	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6143  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6144	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6145  * )   ac_file_in=$ac_file.in ;;
6146  esac
6147
6148  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6149  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6150$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6151	 X"$ac_file" : 'X\(//\)[^/]' \| \
6152	 X"$ac_file" : 'X\(//\)$' \| \
6153	 X"$ac_file" : 'X\(/\)' \| \
6154	 .     : '\(.\)' 2>/dev/null ||
6155echo X"$ac_file" |
6156    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6157  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6158  	  /^X\(\/\/\)$/{ s//\1/; q; }
6159  	  /^X\(\/\).*/{ s//\1/; q; }
6160  	  s/.*/./; q'`
6161  { if $as_mkdir_p; then
6162    mkdir -p "$ac_dir"
6163  else
6164    as_dir="$ac_dir"
6165    as_dirs=
6166    while test ! -d "$as_dir"; do
6167      as_dirs="$as_dir $as_dirs"
6168      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6169$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6170	 X"$as_dir" : 'X\(//\)[^/]' \| \
6171	 X"$as_dir" : 'X\(//\)$' \| \
6172	 X"$as_dir" : 'X\(/\)' \| \
6173	 .     : '\(.\)' 2>/dev/null ||
6174echo X"$as_dir" |
6175    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6176  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6177  	  /^X\(\/\/\)$/{ s//\1/; q; }
6178  	  /^X\(\/\).*/{ s//\1/; q; }
6179  	  s/.*/./; q'`
6180    done
6181    test ! -n "$as_dirs" || mkdir $as_dirs
6182  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6183echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6184   { (exit 1); exit 1; }; }; }
6185
6186  ac_builddir=.
6187
6188if test "$ac_dir" != .; then
6189  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6190  # A "../" for each directory in $ac_dir_suffix.
6191  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6192else
6193  ac_dir_suffix= ac_top_builddir=
6194fi
6195
6196case $srcdir in
6197  .)  # No --srcdir option.  We are building in place.
6198    ac_srcdir=.
6199    if test -z "$ac_top_builddir"; then
6200       ac_top_srcdir=.
6201    else
6202       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6203    fi ;;
6204  [\\/]* | ?:[\\/]* )  # Absolute path.
6205    ac_srcdir=$srcdir$ac_dir_suffix;
6206    ac_top_srcdir=$srcdir ;;
6207  *) # Relative path.
6208    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6209    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6210esac
6211
6212# Do not use `cd foo && pwd` to compute absolute paths, because
6213# the directories may not exist.
6214case `pwd` in
6215.) ac_abs_builddir="$ac_dir";;
6216*)
6217  case "$ac_dir" in
6218  .) ac_abs_builddir=`pwd`;;
6219  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6220  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6221  esac;;
6222esac
6223case $ac_abs_builddir in
6224.) ac_abs_top_builddir=${ac_top_builddir}.;;
6225*)
6226  case ${ac_top_builddir}. in
6227  .) ac_abs_top_builddir=$ac_abs_builddir;;
6228  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6229  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6230  esac;;
6231esac
6232case $ac_abs_builddir in
6233.) ac_abs_srcdir=$ac_srcdir;;
6234*)
6235  case $ac_srcdir in
6236  .) ac_abs_srcdir=$ac_abs_builddir;;
6237  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6238  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6239  esac;;
6240esac
6241case $ac_abs_builddir in
6242.) ac_abs_top_srcdir=$ac_top_srcdir;;
6243*)
6244  case $ac_top_srcdir in
6245  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6246  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6247  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6248  esac;;
6249esac
6250
6251
6252  case $INSTALL in
6253  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6254  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
6255  esac
6256
6257  # Let's still pretend it is `configure' which instantiates (i.e., don't
6258  # use $as_me), people would be surprised to read:
6259  #    /* config.h.  Generated by config.status.  */
6260  if test x"$ac_file" = x-; then
6261    configure_input=
6262  else
6263    configure_input="$ac_file.  "
6264  fi
6265  configure_input=$configure_input"Generated from `echo $ac_file_in |
6266				     sed 's,.*/,,'` by configure."
6267
6268  # First look for the input files in the build tree, otherwise in the
6269  # src tree.
6270  ac_file_inputs=`IFS=:
6271    for f in $ac_file_in; do
6272      case $f in
6273      -) echo $tmp/stdin ;;
6274      [\\/$]*)
6275	 # Absolute (can't be DOS-style, as IFS=:)
6276	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6277echo "$as_me: error: cannot find input file: $f" >&2;}
6278   { (exit 1); exit 1; }; }
6279	 echo "$f";;
6280      *) # Relative
6281	 if test -f "$f"; then
6282	   # Build tree
6283	   echo "$f"
6284	 elif test -f "$srcdir/$f"; then
6285	   # Source tree
6286	   echo "$srcdir/$f"
6287	 else
6288	   # /dev/null tree
6289	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6290echo "$as_me: error: cannot find input file: $f" >&2;}
6291   { (exit 1); exit 1; }; }
6292	 fi;;
6293      esac
6294    done` || { (exit 1); exit 1; }
6295
6296  if test x"$ac_file" != x-; then
6297    { echo "$as_me:$LINENO: creating $ac_file" >&5
6298echo "$as_me: creating $ac_file" >&6;}
6299    rm -f "$ac_file"
6300  fi
6301_ACEOF
6302cat >>$CONFIG_STATUS <<_ACEOF
6303  sed "$ac_vpsub
6304$extrasub
6305_ACEOF
6306cat >>$CONFIG_STATUS <<\_ACEOF
6307:t
6308/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6309s,@configure_input@,$configure_input,;t t
6310s,@srcdir@,$ac_srcdir,;t t
6311s,@abs_srcdir@,$ac_abs_srcdir,;t t
6312s,@top_srcdir@,$ac_top_srcdir,;t t
6313s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
6314s,@builddir@,$ac_builddir,;t t
6315s,@abs_builddir@,$ac_abs_builddir,;t t
6316s,@top_builddir@,$ac_top_builddir,;t t
6317s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
6318s,@INSTALL@,$ac_INSTALL,;t t
6319" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
6320  rm -f $tmp/stdin
6321  if test x"$ac_file" != x-; then
6322    mv $tmp/out $ac_file
6323  else
6324    cat $tmp/out
6325    rm -f $tmp/out
6326  fi
6327
6328done
6329_ACEOF
6330cat >>$CONFIG_STATUS <<\_ACEOF
6331
6332#
6333# CONFIG_HEADER section.
6334#
6335
6336# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6337# NAME is the cpp macro being defined and VALUE is the value it is being given.
6338#
6339# ac_d sets the value in "#define NAME VALUE" lines.
6340ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
6341ac_dB='[	 ].*$,\1#\2'
6342ac_dC=' '
6343ac_dD=',;t'
6344# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6345ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
6346ac_uB='$,\1#\2define\3'
6347ac_uC=' '
6348ac_uD=',;t'
6349
6350for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
6351  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6352  case $ac_file in
6353  - | *:- | *:-:* ) # input from stdin
6354	cat >$tmp/stdin
6355	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6356	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6357  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6358	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6359  * )   ac_file_in=$ac_file.in ;;
6360  esac
6361
6362  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
6363echo "$as_me: creating $ac_file" >&6;}
6364
6365  # First look for the input files in the build tree, otherwise in the
6366  # src tree.
6367  ac_file_inputs=`IFS=:
6368    for f in $ac_file_in; do
6369      case $f in
6370      -) echo $tmp/stdin ;;
6371      [\\/$]*)
6372	 # Absolute (can't be DOS-style, as IFS=:)
6373	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6374echo "$as_me: error: cannot find input file: $f" >&2;}
6375   { (exit 1); exit 1; }; }
6376	 # Do quote $f, to prevent DOS paths from being IFS'd.
6377	 echo "$f";;
6378      *) # Relative
6379	 if test -f "$f"; then
6380	   # Build tree
6381	   echo "$f"
6382	 elif test -f "$srcdir/$f"; then
6383	   # Source tree
6384	   echo "$srcdir/$f"
6385	 else
6386	   # /dev/null tree
6387	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
6388echo "$as_me: error: cannot find input file: $f" >&2;}
6389   { (exit 1); exit 1; }; }
6390	 fi;;
6391      esac
6392    done` || { (exit 1); exit 1; }
6393  # Remove the trailing spaces.
6394  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
6395
6396_ACEOF
6397
6398# Transform confdefs.h into two sed scripts, `conftest.defines' and
6399# `conftest.undefs', that substitutes the proper values into
6400# config.h.in to produce config.h.  The first handles `#define'
6401# templates, and the second `#undef' templates.
6402# And first: Protect against being on the right side of a sed subst in
6403# config.status.  Protect against being in an unquoted here document
6404# in config.status.
6405rm -f conftest.defines conftest.undefs
6406# Using a here document instead of a string reduces the quoting nightmare.
6407# Putting comments in sed scripts is not portable.
6408#
6409# `end' is used to avoid that the second main sed command (meant for
6410# 0-ary CPP macros) applies to n-ary macro definitions.
6411# See the Autoconf documentation for `clear'.
6412cat >confdef2sed.sed <<\_ACEOF
6413s/[\\&,]/\\&/g
6414s,[\\$`],\\&,g
6415t clear
6416: clear
6417s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
6418t end
6419s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
6420: end
6421_ACEOF
6422# If some macros were called several times there might be several times
6423# the same #defines, which is useless.  Nevertheless, we may not want to
6424# sort them, since we want the *last* AC-DEFINE to be honored.
6425uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
6426sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
6427rm -f confdef2sed.sed
6428
6429# This sed command replaces #undef with comments.  This is necessary, for
6430# example, in the case of _POSIX_SOURCE, which is predefined and required
6431# on some systems where configure will not decide to define it.
6432cat >>conftest.undefs <<\_ACEOF
6433s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
6434_ACEOF
6435
6436# Break up conftest.defines because some shells have a limit on the size
6437# of here documents, and old seds have small limits too (100 cmds).
6438echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
6439echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
6440echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
6441echo '  :' >>$CONFIG_STATUS
6442rm -f conftest.tail
6443while grep . conftest.defines >/dev/null
6444do
6445  # Write a limited-size here document to $tmp/defines.sed.
6446  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
6447  # Speed up: don't consider the non `#define' lines.
6448  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
6449  # Work around the forget-to-reset-the-flag bug.
6450  echo 't clr' >>$CONFIG_STATUS
6451  echo ': clr' >>$CONFIG_STATUS
6452  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
6453  echo 'CEOF
6454  sed -f $tmp/defines.sed $tmp/in >$tmp/out
6455  rm -f $tmp/in
6456  mv $tmp/out $tmp/in
6457' >>$CONFIG_STATUS
6458  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
6459  rm -f conftest.defines
6460  mv conftest.tail conftest.defines
6461done
6462rm -f conftest.defines
6463echo '  fi # grep' >>$CONFIG_STATUS
6464echo >>$CONFIG_STATUS
6465
6466# Break up conftest.undefs because some shells have a limit on the size
6467# of here documents, and old seds have small limits too (100 cmds).
6468echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
6469rm -f conftest.tail
6470while grep . conftest.undefs >/dev/null
6471do
6472  # Write a limited-size here document to $tmp/undefs.sed.
6473  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
6474  # Speed up: don't consider the non `#undef'
6475  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
6476  # Work around the forget-to-reset-the-flag bug.
6477  echo 't clr' >>$CONFIG_STATUS
6478  echo ': clr' >>$CONFIG_STATUS
6479  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
6480  echo 'CEOF
6481  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
6482  rm -f $tmp/in
6483  mv $tmp/out $tmp/in
6484' >>$CONFIG_STATUS
6485  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
6486  rm -f conftest.undefs
6487  mv conftest.tail conftest.undefs
6488done
6489rm -f conftest.undefs
6490
6491cat >>$CONFIG_STATUS <<\_ACEOF
6492  # Let's still pretend it is `configure' which instantiates (i.e., don't
6493  # use $as_me), people would be surprised to read:
6494  #    /* config.h.  Generated by config.status.  */
6495  if test x"$ac_file" = x-; then
6496    echo "/* Generated by configure.  */" >$tmp/config.h
6497  else
6498    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
6499  fi
6500  cat $tmp/in >>$tmp/config.h
6501  rm -f $tmp/in
6502  if test x"$ac_file" != x-; then
6503    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
6504      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6505echo "$as_me: $ac_file is unchanged" >&6;}
6506    else
6507      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
6508$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6509	 X"$ac_file" : 'X\(//\)[^/]' \| \
6510	 X"$ac_file" : 'X\(//\)$' \| \
6511	 X"$ac_file" : 'X\(/\)' \| \
6512	 .     : '\(.\)' 2>/dev/null ||
6513echo X"$ac_file" |
6514    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6515  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6516  	  /^X\(\/\/\)$/{ s//\1/; q; }
6517  	  /^X\(\/\).*/{ s//\1/; q; }
6518  	  s/.*/./; q'`
6519      { if $as_mkdir_p; then
6520    mkdir -p "$ac_dir"
6521  else
6522    as_dir="$ac_dir"
6523    as_dirs=
6524    while test ! -d "$as_dir"; do
6525      as_dirs="$as_dir $as_dirs"
6526      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6527$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6528	 X"$as_dir" : 'X\(//\)[^/]' \| \
6529	 X"$as_dir" : 'X\(//\)$' \| \
6530	 X"$as_dir" : 'X\(/\)' \| \
6531	 .     : '\(.\)' 2>/dev/null ||
6532echo X"$as_dir" |
6533    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6534  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6535  	  /^X\(\/\/\)$/{ s//\1/; q; }
6536  	  /^X\(\/\).*/{ s//\1/; q; }
6537  	  s/.*/./; q'`
6538    done
6539    test ! -n "$as_dirs" || mkdir $as_dirs
6540  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6541echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6542   { (exit 1); exit 1; }; }; }
6543
6544      rm -f $ac_file
6545      mv $tmp/config.h $ac_file
6546    fi
6547  else
6548    cat $tmp/config.h
6549    rm -f $tmp/config.h
6550  fi
6551# Compute $ac_file's index in $config_headers.
6552_am_stamp_count=1
6553for _am_header in $config_headers :; do
6554  case $_am_header in
6555    $ac_file | $ac_file:* )
6556      break ;;
6557    * )
6558      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6559  esac
6560done
6561echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
6562$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6563	 X$ac_file : 'X\(//\)[^/]' \| \
6564	 X$ac_file : 'X\(//\)$' \| \
6565	 X$ac_file : 'X\(/\)' \| \
6566	 .     : '\(.\)' 2>/dev/null ||
6567echo X$ac_file |
6568    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6569  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6570  	  /^X\(\/\/\)$/{ s//\1/; q; }
6571  	  /^X\(\/\).*/{ s//\1/; q; }
6572  	  s/.*/./; q'`/stamp-h$_am_stamp_count
6573done
6574_ACEOF
6575cat >>$CONFIG_STATUS <<\_ACEOF
6576
6577#
6578# CONFIG_COMMANDS section.
6579#
6580for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
6581  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
6582  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
6583  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
6584$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6585	 X"$ac_dest" : 'X\(//\)[^/]' \| \
6586	 X"$ac_dest" : 'X\(//\)$' \| \
6587	 X"$ac_dest" : 'X\(/\)' \| \
6588	 .     : '\(.\)' 2>/dev/null ||
6589echo X"$ac_dest" |
6590    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6591  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6592  	  /^X\(\/\/\)$/{ s//\1/; q; }
6593  	  /^X\(\/\).*/{ s//\1/; q; }
6594  	  s/.*/./; q'`
6595  { if $as_mkdir_p; then
6596    mkdir -p "$ac_dir"
6597  else
6598    as_dir="$ac_dir"
6599    as_dirs=
6600    while test ! -d "$as_dir"; do
6601      as_dirs="$as_dir $as_dirs"
6602      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6603$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6604	 X"$as_dir" : 'X\(//\)[^/]' \| \
6605	 X"$as_dir" : 'X\(//\)$' \| \
6606	 X"$as_dir" : 'X\(/\)' \| \
6607	 .     : '\(.\)' 2>/dev/null ||
6608echo X"$as_dir" |
6609    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6610  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6611  	  /^X\(\/\/\)$/{ s//\1/; q; }
6612  	  /^X\(\/\).*/{ s//\1/; q; }
6613  	  s/.*/./; q'`
6614    done
6615    test ! -n "$as_dirs" || mkdir $as_dirs
6616  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
6617echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
6618   { (exit 1); exit 1; }; }; }
6619
6620  ac_builddir=.
6621
6622if test "$ac_dir" != .; then
6623  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6624  # A "../" for each directory in $ac_dir_suffix.
6625  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
6626else
6627  ac_dir_suffix= ac_top_builddir=
6628fi
6629
6630case $srcdir in
6631  .)  # No --srcdir option.  We are building in place.
6632    ac_srcdir=.
6633    if test -z "$ac_top_builddir"; then
6634       ac_top_srcdir=.
6635    else
6636       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
6637    fi ;;
6638  [\\/]* | ?:[\\/]* )  # Absolute path.
6639    ac_srcdir=$srcdir$ac_dir_suffix;
6640    ac_top_srcdir=$srcdir ;;
6641  *) # Relative path.
6642    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
6643    ac_top_srcdir=$ac_top_builddir$srcdir ;;
6644esac
6645
6646# Do not use `cd foo && pwd` to compute absolute paths, because
6647# the directories may not exist.
6648case `pwd` in
6649.) ac_abs_builddir="$ac_dir";;
6650*)
6651  case "$ac_dir" in
6652  .) ac_abs_builddir=`pwd`;;
6653  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
6654  *) ac_abs_builddir=`pwd`/"$ac_dir";;
6655  esac;;
6656esac
6657case $ac_abs_builddir in
6658.) ac_abs_top_builddir=${ac_top_builddir}.;;
6659*)
6660  case ${ac_top_builddir}. in
6661  .) ac_abs_top_builddir=$ac_abs_builddir;;
6662  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
6663  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
6664  esac;;
6665esac
6666case $ac_abs_builddir in
6667.) ac_abs_srcdir=$ac_srcdir;;
6668*)
6669  case $ac_srcdir in
6670  .) ac_abs_srcdir=$ac_abs_builddir;;
6671  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
6672  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
6673  esac;;
6674esac
6675case $ac_abs_builddir in
6676.) ac_abs_top_srcdir=$ac_top_srcdir;;
6677*)
6678  case $ac_top_srcdir in
6679  .) ac_abs_top_srcdir=$ac_abs_builddir;;
6680  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
6681  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
6682  esac;;
6683esac
6684
6685
6686  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
6687echo "$as_me: executing $ac_dest commands" >&6;}
6688  case $ac_dest in
6689    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6690  # Strip MF so we end up with the name of the file.
6691  mf=`echo "$mf" | sed -e 's/:.*$//'`
6692  # Check whether this is an Automake generated Makefile or not.
6693  # We used to match only the files named `Makefile.in', but
6694  # some people rename them; so instead we look at the file content.
6695  # Grep'ing the first line is not enough: some people post-process
6696  # each Makefile.in and add a new line on top of each file to say so.
6697  # So let's grep whole file.
6698  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6699    dirpart=`(dirname "$mf") 2>/dev/null ||
6700$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6701	 X"$mf" : 'X\(//\)[^/]' \| \
6702	 X"$mf" : 'X\(//\)$' \| \
6703	 X"$mf" : 'X\(/\)' \| \
6704	 .     : '\(.\)' 2>/dev/null ||
6705echo X"$mf" |
6706    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6707  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6708  	  /^X\(\/\/\)$/{ s//\1/; q; }
6709  	  /^X\(\/\).*/{ s//\1/; q; }
6710  	  s/.*/./; q'`
6711  else
6712    continue
6713  fi
6714  # Extract the definition of DEPDIR, am__include, and am__quote
6715  # from the Makefile without running `make'.
6716  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6717  test -z "$DEPDIR" && continue
6718  am__include=`sed -n 's/^am__include = //p' < "$mf"`
6719  test -z "am__include" && continue
6720  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6721  # When using ansi2knr, U may be empty or an underscore; expand it
6722  U=`sed -n 's/^U = //p' < "$mf"`
6723  # Find all dependency output files, they are included files with
6724  # $(DEPDIR) in their names.  We invoke sed twice because it is the
6725  # simplest approach to changing $(DEPDIR) to its actual value in the
6726  # expansion.
6727  for file in `sed -n "
6728    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6729       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6730    # Make sure the directory exists.
6731    test -f "$dirpart/$file" && continue
6732    fdir=`(dirname "$file") 2>/dev/null ||
6733$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6734	 X"$file" : 'X\(//\)[^/]' \| \
6735	 X"$file" : 'X\(//\)$' \| \
6736	 X"$file" : 'X\(/\)' \| \
6737	 .     : '\(.\)' 2>/dev/null ||
6738echo X"$file" |
6739    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6740  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6741  	  /^X\(\/\/\)$/{ s//\1/; q; }
6742  	  /^X\(\/\).*/{ s//\1/; q; }
6743  	  s/.*/./; q'`
6744    { if $as_mkdir_p; then
6745    mkdir -p $dirpart/$fdir
6746  else
6747    as_dir=$dirpart/$fdir
6748    as_dirs=
6749    while test ! -d "$as_dir"; do
6750      as_dirs="$as_dir $as_dirs"
6751      as_dir=`(dirname "$as_dir") 2>/dev/null ||
6752$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6753	 X"$as_dir" : 'X\(//\)[^/]' \| \
6754	 X"$as_dir" : 'X\(//\)$' \| \
6755	 X"$as_dir" : 'X\(/\)' \| \
6756	 .     : '\(.\)' 2>/dev/null ||
6757echo X"$as_dir" |
6758    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6759  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6760  	  /^X\(\/\/\)$/{ s//\1/; q; }
6761  	  /^X\(\/\).*/{ s//\1/; q; }
6762  	  s/.*/./; q'`
6763    done
6764    test ! -n "$as_dirs" || mkdir $as_dirs
6765  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
6766echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
6767   { (exit 1); exit 1; }; }; }
6768
6769    # echo "creating $dirpart/$file"
6770    echo '# dummy' > "$dirpart/$file"
6771  done
6772done
6773 ;;
6774  esac
6775done
6776_ACEOF
6777
6778cat >>$CONFIG_STATUS <<\_ACEOF
6779
6780{ (exit 0); exit 0; }
6781_ACEOF
6782chmod +x $CONFIG_STATUS
6783ac_clean_files=$ac_clean_files_save
6784
6785
6786# configure is writing to config.log, and then calls config.status.
6787# config.status does its own redirection, appending to config.log.
6788# Unfortunately, on DOS this fails, as config.log is still kept open
6789# by configure, so config.status won't be able to write to it; its
6790# output is simply discarded.  So we exec the FD to /dev/null,
6791# effectively closing config.log, so it can be properly (re)opened and
6792# appended to by config.status.  When coming back to configure, we
6793# need to make the FD available again.
6794if test "$no_create" != yes; then
6795  ac_cs_success=:
6796  ac_config_status_args=
6797  test "$silent" = yes &&
6798    ac_config_status_args="$ac_config_status_args --quiet"
6799  exec 5>/dev/null
6800  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6801  exec 5>>config.log
6802  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6803  # would make configure fail if this is the last instruction.
6804  $ac_cs_success || { (exit 1); exit 1; }
6805fi
6806
6807