1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.57.
4#
5# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6# Free Software Foundation, Inc.
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ##
10## M4sh Initialization.  ##
11## --------------------- ##
12
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15  emulate sh
16  NULLCMD=:
17  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18  # is contrary to our usage.  Disable this feature.
19  alias -g '${1+"$@"}'='"$@"'
20elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21  set -o posix
22fi
23
24# Support unset when possible.
25if (FOO=FOO; unset FOO) >/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 -n "`(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  as_mkdir_p=false
222fi
223
224as_executable_p="test -f"
225
226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" 	$as_nl"
238
239# CDPATH.
240$as_unset CDPATH
241
242
243# Find the correct PATH separator.  Usually this is `:', but
244# DJGPP uses `;' like DOS.
245if test "X${PATH_SEPARATOR+set}" != Xset; then
246  UNAME=${UNAME-`uname 2>/dev/null`}
247  case X$UNAME in
248    *-DOS) lt_cv_sys_path_separator=';' ;;
249    *)     lt_cv_sys_path_separator=':' ;;
250  esac
251  PATH_SEPARATOR=$lt_cv_sys_path_separator
252fi
253
254
255# Check that we are running under the correct shell.
256SHELL=${CONFIG_SHELL-/bin/sh}
257
258case X$ECHO in
259X*--fallback-echo)
260  # Remove one level of quotation (which was required for Make).
261  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262  ;;
263esac
264
265echo=${ECHO-echo}
266if test "X$1" = X--no-reexec; then
267  # Discard the --no-reexec flag, and continue.
268  shift
269elif test "X$1" = X--fallback-echo; then
270  # Avoid inline document here, it may be left over
271  :
272elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273  # Yippee, $echo works!
274  :
275else
276  # Restart under the correct shell.
277  exec $SHELL "$0" --no-reexec ${1+"$@"}
278fi
279
280if test "X$1" = X--fallback-echo; then
281  # used as fallback echo
282  shift
283  cat <<EOF
284
285EOF
286  exit 0
287fi
288
289# The HP-UX ksh and POSIX shell print the target directory to stdout
290# if CDPATH is set.
291if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293if test -z "$ECHO"; then
294if test "X${echo_test_string+set}" != Xset; then
295# find a string as large as possible, as long as the shell can cope with it
296  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299       echo_test_string="`eval $cmd`" &&
300       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301    then
302      break
303    fi
304  done
305fi
306
307if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309   test "X$echo_testing_string" = "X$echo_test_string"; then
310  :
311else
312  # The Solaris, AIX, and Digital Unix default echo programs unquote
313  # backslashes.  This makes it impossible to quote backslashes using
314  #   echo "$something" | sed 's/\\/\\\\/g'
315  #
316  # So, first we look for a working echo in the user's PATH.
317
318  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319  for dir in $PATH /usr/ucb; do
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338	 test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350	 test "X$echo_testing_string" = "X$echo_test_string"; then
351	# Cool, printf works
352	:
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358	export CONFIG_SHELL
359	SHELL="$CONFIG_SHELL"
360	export SHELL
361	echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363	   test "X$echo_testing_string" = 'X\t' &&
364	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365	   test "X$echo_testing_string" = "X$echo_test_string"; then
366	echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368	# maybe with a smaller string...
369	prev=:
370
371	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373	  then
374	    break
375	  fi
376	  prev="$cmd"
377	done
378
379	if test "$prev" != 'sed 50q "$0"'; then
380	  echo_test_string=`eval $prev`
381	  export echo_test_string
382	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383	else
384	  # Oops.  We lost completely, so just stick with echo.
385	  echo=echo
386	fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402# Name of the host.
403# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404# so uname gets run too.
405ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407exec 6>&1
408
409#
410# Initializations.
411#
412ac_default_prefix=/usr/local
413ac_config_libobj_dir=.
414cross_compiling=no
415subdirs=
416MFLAGS=
417MAKEFLAGS=
418SHELL=${CONFIG_SHELL-/bin/sh}
419
420# Maximum number of lines to put in a shell here document.
421# This variable seems obsolete.  It should probably be removed, and
422# only ac_max_sed_lines should be used.
423: ${ac_max_here_lines=38}
424
425# Identity of this package.
426PACKAGE_NAME=
427PACKAGE_TARNAME=
428PACKAGE_VERSION=
429PACKAGE_STRING=
430PACKAGE_BUGREPORT=
431
432ac_unique_file="src/unit.cc"
433ac_default_prefix=/usr/local
434# Factoring default headers for most tests.
435ac_includes_default="\
436#include <stdio.h>
437#if HAVE_SYS_TYPES_H
438# include <sys/types.h>
439#endif
440#if HAVE_SYS_STAT_H
441# include <sys/stat.h>
442#endif
443#if STDC_HEADERS
444# include <stdlib.h>
445# include <stddef.h>
446#else
447# if HAVE_STDLIB_H
448#  include <stdlib.h>
449# endif
450#endif
451#if HAVE_STRING_H
452# if !STDC_HEADERS && HAVE_MEMORY_H
453#  include <memory.h>
454# endif
455# include <string.h>
456#endif
457#if HAVE_STRINGS_H
458# include <strings.h>
459#endif
460#if HAVE_INTTYPES_H
461# include <inttypes.h>
462#else
463# if HAVE_STDINT_H
464#  include <stdint.h>
465# endif
466#endif
467#if HAVE_UNISTD_H
468# include <unistd.h>
469#endif"
470
471ac_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 AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIBTOOL_DEPS CONFIGURED_CXXFLAGS AM_CXXFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL PORTAUDIO_TRUE PORTAUDIO_FALSE LNK EXTRA_REGEX_OBJ EXTRA_PORTAUDIO_LIBS EXTRA_PORTAUDIO_DEFS YACC LEX LEXLIB LEX_OUTPUT_ROOT CXXCPP LIBOBJS LTLIBOBJS'
472ac_subst_files=''
473
474# Initialize some variables set by options.
475ac_init_help=
476ac_init_version=false
477# The variables have the same names as the options, with
478# dashes changed to underlines.
479cache_file=/dev/null
480exec_prefix=NONE
481no_create=
482no_recursion=
483prefix=NONE
484program_prefix=NONE
485program_suffix=NONE
486program_transform_name=s,x,x,
487silent=
488site=
489srcdir=
490verbose=
491x_includes=NONE
492x_libraries=NONE
493
494# Installation directory options.
495# These are left unexpanded so users can "make install exec_prefix=/foo"
496# and all the variables that are supposed to be based on exec_prefix
497# by default will actually change.
498# Use braces instead of parens because sh, perl, etc. also accept them.
499bindir='${exec_prefix}/bin'
500sbindir='${exec_prefix}/sbin'
501libexecdir='${exec_prefix}/libexec'
502datadir='${prefix}/share'
503sysconfdir='${prefix}/etc'
504sharedstatedir='${prefix}/com'
505localstatedir='${prefix}/var'
506libdir='${exec_prefix}/lib'
507includedir='${prefix}/include'
508oldincludedir='/usr/include'
509infodir='${prefix}/info'
510mandir='${prefix}/man'
511
512ac_prev=
513for ac_option
514do
515  # If the previous option needs an argument, assign it.
516  if test -n "$ac_prev"; then
517    eval "$ac_prev=\$ac_option"
518    ac_prev=
519    continue
520  fi
521
522  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524  # Accept the important Cygnus configure options, so we can diagnose typos.
525
526  case $ac_option in
527
528  -bindir | --bindir | --bindi | --bind | --bin | --bi)
529    ac_prev=bindir ;;
530  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531    bindir=$ac_optarg ;;
532
533  -build | --build | --buil | --bui | --bu)
534    ac_prev=build_alias ;;
535  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536    build_alias=$ac_optarg ;;
537
538  -cache-file | --cache-file | --cache-fil | --cache-fi \
539  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540    ac_prev=cache_file ;;
541  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543    cache_file=$ac_optarg ;;
544
545  --config-cache | -C)
546    cache_file=config.cache ;;
547
548  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549    ac_prev=datadir ;;
550  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551  | --da=*)
552    datadir=$ac_optarg ;;
553
554  -disable-* | --disable-*)
555    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556    # Reject names that are not valid shell variable names.
557    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559   { (exit 1); exit 1; }; }
560    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561    eval "enable_$ac_feature=no" ;;
562
563  -enable-* | --enable-*)
564    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565    # Reject names that are not valid shell variable names.
566    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568   { (exit 1); exit 1; }; }
569    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570    case $ac_option in
571      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572      *) ac_optarg=yes ;;
573    esac
574    eval "enable_$ac_feature='$ac_optarg'" ;;
575
576  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578  | --exec | --exe | --ex)
579    ac_prev=exec_prefix ;;
580  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582  | --exec=* | --exe=* | --ex=*)
583    exec_prefix=$ac_optarg ;;
584
585  -gas | --gas | --ga | --g)
586    # Obsolete; use --with-gas.
587    with_gas=yes ;;
588
589  -help | --help | --hel | --he | -h)
590    ac_init_help=long ;;
591  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592    ac_init_help=recursive ;;
593  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594    ac_init_help=short ;;
595
596  -host | --host | --hos | --ho)
597    ac_prev=host_alias ;;
598  -host=* | --host=* | --hos=* | --ho=*)
599    host_alias=$ac_optarg ;;
600
601  -includedir | --includedir | --includedi | --included | --include \
602  | --includ | --inclu | --incl | --inc)
603    ac_prev=includedir ;;
604  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605  | --includ=* | --inclu=* | --incl=* | --inc=*)
606    includedir=$ac_optarg ;;
607
608  -infodir | --infodir | --infodi | --infod | --info | --inf)
609    ac_prev=infodir ;;
610  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611    infodir=$ac_optarg ;;
612
613  -libdir | --libdir | --libdi | --libd)
614    ac_prev=libdir ;;
615  -libdir=* | --libdir=* | --libdi=* | --libd=*)
616    libdir=$ac_optarg ;;
617
618  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619  | --libexe | --libex | --libe)
620    ac_prev=libexecdir ;;
621  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622  | --libexe=* | --libex=* | --libe=*)
623    libexecdir=$ac_optarg ;;
624
625  -localstatedir | --localstatedir | --localstatedi | --localstated \
626  | --localstate | --localstat | --localsta | --localst \
627  | --locals | --local | --loca | --loc | --lo)
628    ac_prev=localstatedir ;;
629  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632    localstatedir=$ac_optarg ;;
633
634  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635    ac_prev=mandir ;;
636  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637    mandir=$ac_optarg ;;
638
639  -nfp | --nfp | --nf)
640    # Obsolete; use --without-fp.
641    with_fp=no ;;
642
643  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644  | --no-cr | --no-c | -n)
645    no_create=yes ;;
646
647  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649    no_recursion=yes ;;
650
651  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653  | --oldin | --oldi | --old | --ol | --o)
654    ac_prev=oldincludedir ;;
655  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658    oldincludedir=$ac_optarg ;;
659
660  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661    ac_prev=prefix ;;
662  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663    prefix=$ac_optarg ;;
664
665  -program-prefix | --program-prefix | --program-prefi | --program-pref \
666  | --program-pre | --program-pr | --program-p)
667    ac_prev=program_prefix ;;
668  -program-prefix=* | --program-prefix=* | --program-prefi=* \
669  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670    program_prefix=$ac_optarg ;;
671
672  -program-suffix | --program-suffix | --program-suffi | --program-suff \
673  | --program-suf | --program-su | --program-s)
674    ac_prev=program_suffix ;;
675  -program-suffix=* | --program-suffix=* | --program-suffi=* \
676  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677    program_suffix=$ac_optarg ;;
678
679  -program-transform-name | --program-transform-name \
680  | --program-transform-nam | --program-transform-na \
681  | --program-transform-n | --program-transform- \
682  | --program-transform | --program-transfor \
683  | --program-transfo | --program-transf \
684  | --program-trans | --program-tran \
685  | --progr-tra | --program-tr | --program-t)
686    ac_prev=program_transform_name ;;
687  -program-transform-name=* | --program-transform-name=* \
688  | --program-transform-nam=* | --program-transform-na=* \
689  | --program-transform-n=* | --program-transform-=* \
690  | --program-transform=* | --program-transfor=* \
691  | --program-transfo=* | --program-transf=* \
692  | --program-trans=* | --program-tran=* \
693  | --progr-tra=* | --program-tr=* | --program-t=*)
694    program_transform_name=$ac_optarg ;;
695
696  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697  | -silent | --silent | --silen | --sile | --sil)
698    silent=yes ;;
699
700  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701    ac_prev=sbindir ;;
702  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703  | --sbi=* | --sb=*)
704    sbindir=$ac_optarg ;;
705
706  -sharedstatedir | --sharedstatedir | --sharedstatedi \
707  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708  | --sharedst | --shareds | --shared | --share | --shar \
709  | --sha | --sh)
710    ac_prev=sharedstatedir ;;
711  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714  | --sha=* | --sh=*)
715    sharedstatedir=$ac_optarg ;;
716
717  -site | --site | --sit)
718    ac_prev=site ;;
719  -site=* | --site=* | --sit=*)
720    site=$ac_optarg ;;
721
722  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723    ac_prev=srcdir ;;
724  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725    srcdir=$ac_optarg ;;
726
727  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728  | --syscon | --sysco | --sysc | --sys | --sy)
729    ac_prev=sysconfdir ;;
730  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732    sysconfdir=$ac_optarg ;;
733
734  -target | --target | --targe | --targ | --tar | --ta | --t)
735    ac_prev=target_alias ;;
736  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737    target_alias=$ac_optarg ;;
738
739  -v | -verbose | --verbose | --verbos | --verbo | --verb)
740    verbose=yes ;;
741
742  -version | --version | --versio | --versi | --vers | -V)
743    ac_init_version=: ;;
744
745  -with-* | --with-*)
746    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747    # Reject names that are not valid shell variable names.
748    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749      { echo "$as_me: error: invalid package name: $ac_package" >&2
750   { (exit 1); exit 1; }; }
751    ac_package=`echo $ac_package| sed 's/-/_/g'`
752    case $ac_option in
753      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754      *) ac_optarg=yes ;;
755    esac
756    eval "with_$ac_package='$ac_optarg'" ;;
757
758  -without-* | --without-*)
759    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760    # Reject names that are not valid shell variable names.
761    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762      { echo "$as_me: error: invalid package name: $ac_package" >&2
763   { (exit 1); exit 1; }; }
764    ac_package=`echo $ac_package | sed 's/-/_/g'`
765    eval "with_$ac_package=no" ;;
766
767  --x)
768    # Obsolete; use --with-x.
769    with_x=yes ;;
770
771  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772  | --x-incl | --x-inc | --x-in | --x-i)
773    ac_prev=x_includes ;;
774  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776    x_includes=$ac_optarg ;;
777
778  -x-libraries | --x-libraries | --x-librarie | --x-librari \
779  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780    ac_prev=x_libraries ;;
781  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783    x_libraries=$ac_optarg ;;
784
785  -*) { echo "$as_me: error: unrecognized option: $ac_option
786Try \`$0 --help' for more information." >&2
787   { (exit 1); exit 1; }; }
788    ;;
789
790  *=*)
791    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792    # Reject names that are not valid shell variable names.
793    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795   { (exit 1); exit 1; }; }
796    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797    eval "$ac_envvar='$ac_optarg'"
798    export $ac_envvar ;;
799
800  *)
801    # FIXME: should be removed in autoconf 3.0.
802    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806    ;;
807
808  esac
809done
810
811if test -n "$ac_prev"; then
812  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813  { echo "$as_me: error: missing argument to $ac_option" >&2
814   { (exit 1); exit 1; }; }
815fi
816
817# Be sure to have absolute paths.
818for ac_var in exec_prefix prefix
819do
820  eval ac_val=$`echo $ac_var`
821  case $ac_val in
822    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824   { (exit 1); exit 1; }; };;
825  esac
826done
827
828# Be sure to have absolute paths.
829for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830              localstatedir libdir includedir oldincludedir infodir mandir
831do
832  eval ac_val=$`echo $ac_var`
833  case $ac_val in
834    [\\/$]* | ?:[\\/]* ) ;;
835    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836   { (exit 1); exit 1; }; };;
837  esac
838done
839
840# There might be people who depend on the old broken behavior: `$host'
841# used to hold the argument of --host etc.
842# FIXME: To remove some day.
843build=$build_alias
844host=$host_alias
845target=$target_alias
846
847# FIXME: To remove some day.
848if test "x$host_alias" != x; then
849  if test "x$build_alias" = x; then
850    cross_compiling=maybe
851    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852    If a cross compiler is detected then cross compile mode will be used." >&2
853  elif test "x$build_alias" != "x$host_alias"; then
854    cross_compiling=yes
855  fi
856fi
857
858ac_tool_prefix=
859test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861test "$silent" = yes && exec 6>/dev/null
862
863
864# Find the source files, if location was not specified.
865if test -z "$srcdir"; then
866  ac_srcdir_defaulted=yes
867  # Try the directory containing this script, then its parent.
868  ac_confdir=`(dirname "$0") 2>/dev/null ||
869$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870         X"$0" : 'X\(//\)[^/]' \| \
871         X"$0" : 'X\(//\)$' \| \
872         X"$0" : 'X\(/\)' \| \
873         .     : '\(.\)' 2>/dev/null ||
874echo X"$0" |
875    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877  	  /^X\(\/\/\)$/{ s//\1/; q; }
878  	  /^X\(\/\).*/{ s//\1/; q; }
879  	  s/.*/./; q'`
880  srcdir=$ac_confdir
881  if test ! -r $srcdir/$ac_unique_file; then
882    srcdir=..
883  fi
884else
885  ac_srcdir_defaulted=no
886fi
887if test ! -r $srcdir/$ac_unique_file; then
888  if test "$ac_srcdir_defaulted" = yes; then
889    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890   { (exit 1); exit 1; }; }
891  else
892    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893   { (exit 1); exit 1; }; }
894  fi
895fi
896(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898   { (exit 1); exit 1; }; }
899srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900ac_env_build_alias_set=${build_alias+set}
901ac_env_build_alias_value=$build_alias
902ac_cv_env_build_alias_set=${build_alias+set}
903ac_cv_env_build_alias_value=$build_alias
904ac_env_host_alias_set=${host_alias+set}
905ac_env_host_alias_value=$host_alias
906ac_cv_env_host_alias_set=${host_alias+set}
907ac_cv_env_host_alias_value=$host_alias
908ac_env_target_alias_set=${target_alias+set}
909ac_env_target_alias_value=$target_alias
910ac_cv_env_target_alias_set=${target_alias+set}
911ac_cv_env_target_alias_value=$target_alias
912ac_env_CC_set=${CC+set}
913ac_env_CC_value=$CC
914ac_cv_env_CC_set=${CC+set}
915ac_cv_env_CC_value=$CC
916ac_env_CFLAGS_set=${CFLAGS+set}
917ac_env_CFLAGS_value=$CFLAGS
918ac_cv_env_CFLAGS_set=${CFLAGS+set}
919ac_cv_env_CFLAGS_value=$CFLAGS
920ac_env_LDFLAGS_set=${LDFLAGS+set}
921ac_env_LDFLAGS_value=$LDFLAGS
922ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923ac_cv_env_LDFLAGS_value=$LDFLAGS
924ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925ac_env_CPPFLAGS_value=$CPPFLAGS
926ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928ac_env_CXX_set=${CXX+set}
929ac_env_CXX_value=$CXX
930ac_cv_env_CXX_set=${CXX+set}
931ac_cv_env_CXX_value=$CXX
932ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933ac_env_CXXFLAGS_value=$CXXFLAGS
934ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936ac_env_CPP_set=${CPP+set}
937ac_env_CPP_value=$CPP
938ac_cv_env_CPP_set=${CPP+set}
939ac_cv_env_CPP_value=$CPP
940ac_env_CXXCPP_set=${CXXCPP+set}
941ac_env_CXXCPP_value=$CXXCPP
942ac_cv_env_CXXCPP_set=${CXXCPP+set}
943ac_cv_env_CXXCPP_value=$CXXCPP
944
945#
946# Report the --help message.
947#
948if test "$ac_init_help" = "long"; then
949  # Omit some internal or obsolete options to make the list less imposing.
950  # This message is too long to be a string in the A/UX 3.1 sh.
951  cat <<_ACEOF
952\`configure' configures this package to adapt to many kinds of systems.
953
954Usage: $0 [OPTION]... [VAR=VALUE]...
955
956To assign environment variables (e.g., CC, CFLAGS...), specify them as
957VAR=VALUE.  See below for descriptions of some of the useful variables.
958
959Defaults for the options are specified in brackets.
960
961Configuration:
962  -h, --help              display this help and exit
963      --help=short        display options specific to this package
964      --help=recursive    display the short help of all the included packages
965  -V, --version           display version information and exit
966  -q, --quiet, --silent   do not print \`checking...' messages
967      --cache-file=FILE   cache test results in FILE [disabled]
968  -C, --config-cache      alias for \`--cache-file=config.cache'
969  -n, --no-create         do not create output files
970      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
971
972_ACEOF
973
974  cat <<_ACEOF
975Installation directories:
976  --prefix=PREFIX         install architecture-independent files in PREFIX
977                          [$ac_default_prefix]
978  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
979                          [PREFIX]
980
981By default, \`make install' will install all the files in
982\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
983an installation prefix other than \`$ac_default_prefix' using \`--prefix',
984for instance \`--prefix=\$HOME'.
985
986For better control, use the options below.
987
988Fine tuning of the installation directories:
989  --bindir=DIR           user executables [EPREFIX/bin]
990  --sbindir=DIR          system admin executables [EPREFIX/sbin]
991  --libexecdir=DIR       program executables [EPREFIX/libexec]
992  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
993  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
994  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
995  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
996  --libdir=DIR           object code libraries [EPREFIX/lib]
997  --includedir=DIR       C header files [PREFIX/include]
998  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
999  --infodir=DIR          info documentation [PREFIX/info]
1000  --mandir=DIR           man documentation [PREFIX/man]
1001_ACEOF
1002
1003  cat <<\_ACEOF
1004
1005Program names:
1006  --program-prefix=PREFIX            prepend PREFIX to installed program names
1007  --program-suffix=SUFFIX            append SUFFIX to installed program names
1008  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1009
1010System types:
1011  --build=BUILD     configure for building on BUILD [guessed]
1012  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1013_ACEOF
1014fi
1015
1016if test -n "$ac_init_help"; then
1017
1018  cat <<\_ACEOF
1019
1020Optional Features:
1021  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1022  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1023  --disable-dependency-tracking Speeds up one-time builds
1024  --enable-dependency-tracking  Do not reject slow dependency extractors
1025  --enable-shared=PKGS  build shared libraries default=yes
1026  --enable-static=PKGS  build static libraries default=yes
1027  --enable-fast-install=PKGS  optimize for fast installation default=yes
1028  --disable-libtool-lock  avoid locking (might break parallel builds)
1029  --enable-charsets       allow automatic conversions between character sets
1030  --enable-portaudio      alternative sound output method
1031
1032Optional Packages:
1033  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1034  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1035  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1036  --with-pic              try to use only PIC/non-PIC objects default=use both
1037  --with-dmalloc          dmalloc debugging library (developers only)
1038
1039Some influential environment variables:
1040  CC          C compiler command
1041  CFLAGS      C compiler flags
1042  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1043              nonstandard directory <lib dir>
1044  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1045              headers in a nonstandard directory <include dir>
1046  CXX         C++ compiler command
1047  CXXFLAGS    C++ compiler flags
1048  CPP         C preprocessor
1049  CXXCPP      C++ preprocessor
1050
1051Use these variables to override the choices made by `configure' or to help
1052it to find libraries and programs with nonstandard names/locations.
1053
1054_ACEOF
1055fi
1056
1057if test "$ac_init_help" = "recursive"; then
1058  # If there are subdirs, report their specific --help.
1059  ac_popdir=`pwd`
1060  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1061    test -d $ac_dir || continue
1062    ac_builddir=.
1063
1064if test "$ac_dir" != .; then
1065  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1066  # A "../" for each directory in $ac_dir_suffix.
1067  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1068else
1069  ac_dir_suffix= ac_top_builddir=
1070fi
1071
1072case $srcdir in
1073  .)  # No --srcdir option.  We are building in place.
1074    ac_srcdir=.
1075    if test -z "$ac_top_builddir"; then
1076       ac_top_srcdir=.
1077    else
1078       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1079    fi ;;
1080  [\\/]* | ?:[\\/]* )  # Absolute path.
1081    ac_srcdir=$srcdir$ac_dir_suffix;
1082    ac_top_srcdir=$srcdir ;;
1083  *) # Relative path.
1084    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1085    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1086esac
1087# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1088# absolute.
1089ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1090ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1091ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1092ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1093
1094    cd $ac_dir
1095    # Check for guested configure; otherwise get Cygnus style configure.
1096    if test -f $ac_srcdir/configure.gnu; then
1097      echo
1098      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1099    elif test -f $ac_srcdir/configure; then
1100      echo
1101      $SHELL $ac_srcdir/configure  --help=recursive
1102    elif test -f $ac_srcdir/configure.ac ||
1103           test -f $ac_srcdir/configure.in; then
1104      echo
1105      $ac_configure --help
1106    else
1107      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1108    fi
1109    cd $ac_popdir
1110  done
1111fi
1112
1113test -n "$ac_init_help" && exit 0
1114if $ac_init_version; then
1115  cat <<\_ACEOF
1116
1117Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1118Free Software Foundation, Inc.
1119This configure script is free software; the Free Software Foundation
1120gives unlimited permission to copy, distribute and modify it.
1121_ACEOF
1122  exit 0
1123fi
1124exec 5>config.log
1125cat >&5 <<_ACEOF
1126This file contains any messages produced by compilers while
1127running configure, to aid debugging if configure makes a mistake.
1128
1129It was created by $as_me, which was
1130generated by GNU Autoconf 2.57.  Invocation command line was
1131
1132  $ $0 $@
1133
1134_ACEOF
1135{
1136cat <<_ASUNAME
1137## --------- ##
1138## Platform. ##
1139## --------- ##
1140
1141hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1142uname -m = `(uname -m) 2>/dev/null || echo unknown`
1143uname -r = `(uname -r) 2>/dev/null || echo unknown`
1144uname -s = `(uname -s) 2>/dev/null || echo unknown`
1145uname -v = `(uname -v) 2>/dev/null || echo unknown`
1146
1147/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1148/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1149
1150/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1151/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1152/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1153hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1154/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1155/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1156/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1157
1158_ASUNAME
1159
1160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1161for as_dir in $PATH
1162do
1163  IFS=$as_save_IFS
1164  test -z "$as_dir" && as_dir=.
1165  echo "PATH: $as_dir"
1166done
1167
1168} >&5
1169
1170cat >&5 <<_ACEOF
1171
1172
1173## ----------- ##
1174## Core tests. ##
1175## ----------- ##
1176
1177_ACEOF
1178
1179
1180# Keep a trace of the command line.
1181# Strip out --no-create and --no-recursion so they do not pile up.
1182# Strip out --silent because we don't want to record it for future runs.
1183# Also quote any args containing shell meta-characters.
1184# Make two passes to allow for proper duplicate-argument suppression.
1185ac_configure_args=
1186ac_configure_args0=
1187ac_configure_args1=
1188ac_sep=
1189ac_must_keep_next=false
1190for ac_pass in 1 2
1191do
1192  for ac_arg
1193  do
1194    case $ac_arg in
1195    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1196    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197    | -silent | --silent | --silen | --sile | --sil)
1198      continue ;;
1199    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1200      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1201    esac
1202    case $ac_pass in
1203    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1204    2)
1205      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1206      if test $ac_must_keep_next = true; then
1207        ac_must_keep_next=false # Got value, back to normal.
1208      else
1209        case $ac_arg in
1210          *=* | --config-cache | -C | -disable-* | --disable-* \
1211          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1212          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1213          | -with-* | --with-* | -without-* | --without-* | --x)
1214            case "$ac_configure_args0 " in
1215              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1216            esac
1217            ;;
1218          -* ) ac_must_keep_next=true ;;
1219        esac
1220      fi
1221      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1222      # Get rid of the leading space.
1223      ac_sep=" "
1224      ;;
1225    esac
1226  done
1227done
1228$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1229$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1230
1231# When interrupted or exit'd, cleanup temporary files, and complete
1232# config.log.  We remove comments because anyway the quotes in there
1233# would cause problems or look ugly.
1234# WARNING: Be sure not to use single quotes in there, as some shells,
1235# such as our DU 5.0 friend, will then `close' the trap.
1236trap 'exit_status=$?
1237  # Save into config.log some information that might help in debugging.
1238  {
1239    echo
1240
1241    cat <<\_ASBOX
1242## ---------------- ##
1243## Cache variables. ##
1244## ---------------- ##
1245_ASBOX
1246    echo
1247    # The following way of writing the cache mishandles newlines in values,
1248{
1249  (set) 2>&1 |
1250    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1251    *ac_space=\ *)
1252      sed -n \
1253        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1254    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1255      ;;
1256    *)
1257      sed -n \
1258        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1259      ;;
1260    esac;
1261}
1262    echo
1263
1264    cat <<\_ASBOX
1265## ----------------- ##
1266## Output variables. ##
1267## ----------------- ##
1268_ASBOX
1269    echo
1270    for ac_var in $ac_subst_vars
1271    do
1272      eval ac_val=$`echo $ac_var`
1273      echo "$ac_var='"'"'$ac_val'"'"'"
1274    done | sort
1275    echo
1276
1277    if test -n "$ac_subst_files"; then
1278      cat <<\_ASBOX
1279## ------------- ##
1280## Output files. ##
1281## ------------- ##
1282_ASBOX
1283      echo
1284      for ac_var in $ac_subst_files
1285      do
1286	eval ac_val=$`echo $ac_var`
1287        echo "$ac_var='"'"'$ac_val'"'"'"
1288      done | sort
1289      echo
1290    fi
1291
1292    if test -s confdefs.h; then
1293      cat <<\_ASBOX
1294## ----------- ##
1295## confdefs.h. ##
1296## ----------- ##
1297_ASBOX
1298      echo
1299      sed "/^$/d" confdefs.h | sort
1300      echo
1301    fi
1302    test "$ac_signal" != 0 &&
1303      echo "$as_me: caught signal $ac_signal"
1304    echo "$as_me: exit $exit_status"
1305  } >&5
1306  rm -f core core.* *.core &&
1307  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1308    exit $exit_status
1309     ' 0
1310for ac_signal in 1 2 13 15; do
1311  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1312done
1313ac_signal=0
1314
1315# confdefs.h avoids OS command line length limits that DEFS can exceed.
1316rm -rf conftest* confdefs.h
1317# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1318echo >confdefs.h
1319
1320# Predefined preprocessor variables.
1321
1322cat >>confdefs.h <<_ACEOF
1323#define PACKAGE_NAME "$PACKAGE_NAME"
1324_ACEOF
1325
1326
1327cat >>confdefs.h <<_ACEOF
1328#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1329_ACEOF
1330
1331
1332cat >>confdefs.h <<_ACEOF
1333#define PACKAGE_VERSION "$PACKAGE_VERSION"
1334_ACEOF
1335
1336
1337cat >>confdefs.h <<_ACEOF
1338#define PACKAGE_STRING "$PACKAGE_STRING"
1339_ACEOF
1340
1341
1342cat >>confdefs.h <<_ACEOF
1343#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1344_ACEOF
1345
1346
1347# Let the site file select an alternate cache file if it wants to.
1348# Prefer explicitly selected file to automatically selected ones.
1349if test -z "$CONFIG_SITE"; then
1350  if test "x$prefix" != xNONE; then
1351    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1352  else
1353    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1354  fi
1355fi
1356for ac_site_file in $CONFIG_SITE; do
1357  if test -r "$ac_site_file"; then
1358    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1359echo "$as_me: loading site script $ac_site_file" >&6;}
1360    sed 's/^/| /' "$ac_site_file" >&5
1361    . "$ac_site_file"
1362  fi
1363done
1364
1365if test -r "$cache_file"; then
1366  # Some versions of bash will fail to source /dev/null (special
1367  # files actually), so we avoid doing that.
1368  if test -f "$cache_file"; then
1369    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1370echo "$as_me: loading cache $cache_file" >&6;}
1371    case $cache_file in
1372      [\\/]* | ?:[\\/]* ) . $cache_file;;
1373      *)                      . ./$cache_file;;
1374    esac
1375  fi
1376else
1377  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1378echo "$as_me: creating cache $cache_file" >&6;}
1379  >$cache_file
1380fi
1381
1382# Check that the precious variables saved in the cache have kept the same
1383# value.
1384ac_cache_corrupted=false
1385for ac_var in `(set) 2>&1 |
1386               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1387  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1388  eval ac_new_set=\$ac_env_${ac_var}_set
1389  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1390  eval ac_new_val="\$ac_env_${ac_var}_value"
1391  case $ac_old_set,$ac_new_set in
1392    set,)
1393      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1394echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1395      ac_cache_corrupted=: ;;
1396    ,set)
1397      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1398echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1399      ac_cache_corrupted=: ;;
1400    ,);;
1401    *)
1402      if test "x$ac_old_val" != "x$ac_new_val"; then
1403        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1404echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1405        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1406echo "$as_me:   former value:  $ac_old_val" >&2;}
1407        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1408echo "$as_me:   current value: $ac_new_val" >&2;}
1409        ac_cache_corrupted=:
1410      fi;;
1411  esac
1412  # Pass precious variables to config.status.
1413  if test "$ac_new_set" = set; then
1414    case $ac_new_val in
1415    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1416      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1417    *) ac_arg=$ac_var=$ac_new_val ;;
1418    esac
1419    case " $ac_configure_args " in
1420      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1421      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1422    esac
1423  fi
1424done
1425if $ac_cache_corrupted; then
1426  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1427echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1428  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1429echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1430   { (exit 1); exit 1; }; }
1431fi
1432
1433ac_ext=c
1434ac_cpp='$CPP $CPPFLAGS'
1435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1437ac_compiler_gnu=$ac_cv_c_compiler_gnu
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457am__api_version="1.7"
1458ac_aux_dir=
1459for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1460  if test -f $ac_dir/install-sh; then
1461    ac_aux_dir=$ac_dir
1462    ac_install_sh="$ac_aux_dir/install-sh -c"
1463    break
1464  elif test -f $ac_dir/install.sh; then
1465    ac_aux_dir=$ac_dir
1466    ac_install_sh="$ac_aux_dir/install.sh -c"
1467    break
1468  elif test -f $ac_dir/shtool; then
1469    ac_aux_dir=$ac_dir
1470    ac_install_sh="$ac_aux_dir/shtool install -c"
1471    break
1472  fi
1473done
1474if test -z "$ac_aux_dir"; then
1475  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1476echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1477   { (exit 1); exit 1; }; }
1478fi
1479ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1480ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1481ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1482
1483# Find a good install program.  We prefer a C program (faster),
1484# so one script is as good as another.  But avoid the broken or
1485# incompatible versions:
1486# SysV /etc/install, /usr/sbin/install
1487# SunOS /usr/etc/install
1488# IRIX /sbin/install
1489# AIX /bin/install
1490# AmigaOS /C/install, which installs bootblocks on floppy discs
1491# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1492# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1493# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1494# ./install, which can be erroneously created by make from ./install.sh.
1495echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1496echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1497if test -z "$INSTALL"; then
1498if test "${ac_cv_path_install+set}" = set; then
1499  echo $ECHO_N "(cached) $ECHO_C" >&6
1500else
1501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH
1503do
1504  IFS=$as_save_IFS
1505  test -z "$as_dir" && as_dir=.
1506  # Account for people who put trailing slashes in PATH elements.
1507case $as_dir/ in
1508  ./ | .// | /cC/* | \
1509  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1510  /usr/ucb/* ) ;;
1511  *)
1512    # OSF1 and SCO ODT 3.0 have their own names for install.
1513    # Don't use installbsd from OSF since it installs stuff as root
1514    # by default.
1515    for ac_prog in ginstall scoinst install; do
1516      for ac_exec_ext in '' $ac_executable_extensions; do
1517        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1518          if test $ac_prog = install &&
1519            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1520            # AIX install.  It has an incompatible calling convention.
1521            :
1522          elif test $ac_prog = install &&
1523            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1524            # program-specific install script used by HP pwplus--don't use.
1525            :
1526          else
1527            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1528            break 3
1529          fi
1530        fi
1531      done
1532    done
1533    ;;
1534esac
1535done
1536
1537
1538fi
1539  if test "${ac_cv_path_install+set}" = set; then
1540    INSTALL=$ac_cv_path_install
1541  else
1542    # As a last resort, use the slow shell script.  We don't cache a
1543    # path for INSTALL within a source directory, because that will
1544    # break other packages using the cache if that directory is
1545    # removed, or if the path is relative.
1546    INSTALL=$ac_install_sh
1547  fi
1548fi
1549echo "$as_me:$LINENO: result: $INSTALL" >&5
1550echo "${ECHO_T}$INSTALL" >&6
1551
1552# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1553# It thinks the first close brace ends the variable substitution.
1554test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1555
1556test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1557
1558test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1559
1560echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1561echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1562# Just in case
1563sleep 1
1564echo timestamp > conftest.file
1565# Do `set' in a subshell so we don't clobber the current shell's
1566# arguments.  Must try -L first in case configure is actually a
1567# symlink; some systems play weird games with the mod time of symlinks
1568# (eg FreeBSD returns the mod time of the symlink's containing
1569# directory).
1570if (
1571   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1572   if test "$*" = "X"; then
1573      # -L didn't work.
1574      set X `ls -t $srcdir/configure conftest.file`
1575   fi
1576   rm -f conftest.file
1577   if test "$*" != "X $srcdir/configure conftest.file" \
1578      && test "$*" != "X conftest.file $srcdir/configure"; then
1579
1580      # If neither matched, then we have a broken ls.  This can happen
1581      # if, for instance, CONFIG_SHELL is bash and it inherits a
1582      # broken ls alias from the environment.  This has actually
1583      # happened.  Such a system could not be considered "sane".
1584      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1585alias in your environment" >&5
1586echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1587alias in your environment" >&2;}
1588   { (exit 1); exit 1; }; }
1589   fi
1590
1591   test "$2" = conftest.file
1592   )
1593then
1594   # Ok.
1595   :
1596else
1597   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1598Check your system clock" >&5
1599echo "$as_me: error: newly created file is older than distributed files!
1600Check your system clock" >&2;}
1601   { (exit 1); exit 1; }; }
1602fi
1603echo "$as_me:$LINENO: result: yes" >&5
1604echo "${ECHO_T}yes" >&6
1605test "$program_prefix" != NONE &&
1606  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1607# Use a double $ so make ignores it.
1608test "$program_suffix" != NONE &&
1609  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1610# Double any \ or $.  echo might interpret backslashes.
1611# By default was `s,x,x', remove it if useless.
1612cat <<\_ACEOF >conftest.sed
1613s/[\\$]/&&/g;s/;s,x,x,$//
1614_ACEOF
1615program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1616rm conftest.sed
1617
1618
1619# expand $ac_aux_dir to an absolute path
1620am_aux_dir=`cd $ac_aux_dir && pwd`
1621
1622test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1623# Use eval to expand $SHELL
1624if eval "$MISSING --run true"; then
1625  am_missing_run="$MISSING --run "
1626else
1627  am_missing_run=
1628  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1629echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1630fi
1631
1632for ac_prog in gawk mawk nawk awk
1633do
1634  # Extract the first word of "$ac_prog", so it can be a program name with args.
1635set dummy $ac_prog; ac_word=$2
1636echo "$as_me:$LINENO: checking for $ac_word" >&5
1637echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638if test "${ac_cv_prog_AWK+set}" = set; then
1639  echo $ECHO_N "(cached) $ECHO_C" >&6
1640else
1641  if test -n "$AWK"; then
1642  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1643else
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH
1646do
1647  IFS=$as_save_IFS
1648  test -z "$as_dir" && as_dir=.
1649  for ac_exec_ext in '' $ac_executable_extensions; do
1650  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651    ac_cv_prog_AWK="$ac_prog"
1652    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653    break 2
1654  fi
1655done
1656done
1657
1658fi
1659fi
1660AWK=$ac_cv_prog_AWK
1661if test -n "$AWK"; then
1662  echo "$as_me:$LINENO: result: $AWK" >&5
1663echo "${ECHO_T}$AWK" >&6
1664else
1665  echo "$as_me:$LINENO: result: no" >&5
1666echo "${ECHO_T}no" >&6
1667fi
1668
1669  test -n "$AWK" && break
1670done
1671
1672echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1673echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1674set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1675if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1676  echo $ECHO_N "(cached) $ECHO_C" >&6
1677else
1678  cat >conftest.make <<\_ACEOF
1679all:
1680	@echo 'ac_maketemp="$(MAKE)"'
1681_ACEOF
1682# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1683eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1684if test -n "$ac_maketemp"; then
1685  eval ac_cv_prog_make_${ac_make}_set=yes
1686else
1687  eval ac_cv_prog_make_${ac_make}_set=no
1688fi
1689rm -f conftest.make
1690fi
1691if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1692  echo "$as_me:$LINENO: result: yes" >&5
1693echo "${ECHO_T}yes" >&6
1694  SET_MAKE=
1695else
1696  echo "$as_me:$LINENO: result: no" >&5
1697echo "${ECHO_T}no" >&6
1698  SET_MAKE="MAKE=${MAKE-make}"
1699fi
1700
1701rm -rf .tst 2>/dev/null
1702mkdir .tst 2>/dev/null
1703if test -d .tst; then
1704  am__leading_dot=.
1705else
1706  am__leading_dot=_
1707fi
1708rmdir .tst 2>/dev/null
1709
1710 # test to see if srcdir already configured
1711if test "`cd $srcdir && pwd`" != "`pwd`" &&
1712   test -f $srcdir/config.status; then
1713  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1714echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1715   { (exit 1); exit 1; }; }
1716fi
1717
1718# test whether we have cygpath
1719if test -z "$CYGPATH_W"; then
1720  if (cygpath --version) >/dev/null 2>/dev/null; then
1721    CYGPATH_W='cygpath -w'
1722  else
1723    CYGPATH_W=echo
1724  fi
1725fi
1726
1727
1728# Define the identity of the package.
1729 PACKAGE=epos
1730 VERSION=2.5.37
1731
1732
1733cat >>confdefs.h <<_ACEOF
1734#define PACKAGE "$PACKAGE"
1735_ACEOF
1736
1737
1738cat >>confdefs.h <<_ACEOF
1739#define VERSION "$VERSION"
1740_ACEOF
1741
1742# Some tools Automake needs.
1743
1744ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1745
1746
1747AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1748
1749
1750AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1751
1752
1753AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1754
1755
1756MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1757
1758
1759AMTAR=${AMTAR-"${am_missing_run}tar"}
1760
1761install_sh=${install_sh-"$am_aux_dir/install-sh"}
1762
1763# Installed binaries are usually stripped using `strip' when the user
1764# run `make install-strip'.  However `strip' might not be the right
1765# tool to use in cross-compilation environments, therefore Automake
1766# will honor the `STRIP' environment variable to overrule this program.
1767if test "$cross_compiling" != no; then
1768  if test -n "$ac_tool_prefix"; then
1769  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1770set dummy ${ac_tool_prefix}strip; ac_word=$2
1771echo "$as_me:$LINENO: checking for $ac_word" >&5
1772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1773if test "${ac_cv_prog_STRIP+set}" = set; then
1774  echo $ECHO_N "(cached) $ECHO_C" >&6
1775else
1776  if test -n "$STRIP"; then
1777  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1778else
1779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1780for as_dir in $PATH
1781do
1782  IFS=$as_save_IFS
1783  test -z "$as_dir" && as_dir=.
1784  for ac_exec_ext in '' $ac_executable_extensions; do
1785  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1786    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1787    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1788    break 2
1789  fi
1790done
1791done
1792
1793fi
1794fi
1795STRIP=$ac_cv_prog_STRIP
1796if test -n "$STRIP"; then
1797  echo "$as_me:$LINENO: result: $STRIP" >&5
1798echo "${ECHO_T}$STRIP" >&6
1799else
1800  echo "$as_me:$LINENO: result: no" >&5
1801echo "${ECHO_T}no" >&6
1802fi
1803
1804fi
1805if test -z "$ac_cv_prog_STRIP"; then
1806  ac_ct_STRIP=$STRIP
1807  # Extract the first word of "strip", so it can be a program name with args.
1808set dummy strip; ac_word=$2
1809echo "$as_me:$LINENO: checking for $ac_word" >&5
1810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1811if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1812  echo $ECHO_N "(cached) $ECHO_C" >&6
1813else
1814  if test -n "$ac_ct_STRIP"; then
1815  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1816else
1817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1818for as_dir in $PATH
1819do
1820  IFS=$as_save_IFS
1821  test -z "$as_dir" && as_dir=.
1822  for ac_exec_ext in '' $ac_executable_extensions; do
1823  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1824    ac_cv_prog_ac_ct_STRIP="strip"
1825    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1826    break 2
1827  fi
1828done
1829done
1830
1831  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1832fi
1833fi
1834ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1835if test -n "$ac_ct_STRIP"; then
1836  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1837echo "${ECHO_T}$ac_ct_STRIP" >&6
1838else
1839  echo "$as_me:$LINENO: result: no" >&5
1840echo "${ECHO_T}no" >&6
1841fi
1842
1843  STRIP=$ac_ct_STRIP
1844else
1845  STRIP="$ac_cv_prog_STRIP"
1846fi
1847
1848fi
1849INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1850
1851# We need awk for the "check" target.  The system "awk" is bad on
1852# some platforms.
1853
1854
1855
1856
1857
1858CCC="g++ c++ cc++ gcc cc"
1859ac_ext=c
1860ac_cpp='$CPP $CPPFLAGS'
1861ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1862ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1863ac_compiler_gnu=$ac_cv_c_compiler_gnu
1864if test -n "$ac_tool_prefix"; then
1865  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1866set dummy ${ac_tool_prefix}gcc; ac_word=$2
1867echo "$as_me:$LINENO: checking for $ac_word" >&5
1868echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869if test "${ac_cv_prog_CC+set}" = set; then
1870  echo $ECHO_N "(cached) $ECHO_C" >&6
1871else
1872  if test -n "$CC"; then
1873  ac_cv_prog_CC="$CC" # Let the user override the test.
1874else
1875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876for as_dir in $PATH
1877do
1878  IFS=$as_save_IFS
1879  test -z "$as_dir" && as_dir=.
1880  for ac_exec_ext in '' $ac_executable_extensions; do
1881  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1883    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884    break 2
1885  fi
1886done
1887done
1888
1889fi
1890fi
1891CC=$ac_cv_prog_CC
1892if test -n "$CC"; then
1893  echo "$as_me:$LINENO: result: $CC" >&5
1894echo "${ECHO_T}$CC" >&6
1895else
1896  echo "$as_me:$LINENO: result: no" >&5
1897echo "${ECHO_T}no" >&6
1898fi
1899
1900fi
1901if test -z "$ac_cv_prog_CC"; then
1902  ac_ct_CC=$CC
1903  # Extract the first word of "gcc", so it can be a program name with args.
1904set dummy gcc; ac_word=$2
1905echo "$as_me:$LINENO: checking for $ac_word" >&5
1906echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1907if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1908  echo $ECHO_N "(cached) $ECHO_C" >&6
1909else
1910  if test -n "$ac_ct_CC"; then
1911  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1912else
1913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1914for as_dir in $PATH
1915do
1916  IFS=$as_save_IFS
1917  test -z "$as_dir" && as_dir=.
1918  for ac_exec_ext in '' $ac_executable_extensions; do
1919  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1920    ac_cv_prog_ac_ct_CC="gcc"
1921    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1922    break 2
1923  fi
1924done
1925done
1926
1927fi
1928fi
1929ac_ct_CC=$ac_cv_prog_ac_ct_CC
1930if test -n "$ac_ct_CC"; then
1931  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1932echo "${ECHO_T}$ac_ct_CC" >&6
1933else
1934  echo "$as_me:$LINENO: result: no" >&5
1935echo "${ECHO_T}no" >&6
1936fi
1937
1938  CC=$ac_ct_CC
1939else
1940  CC="$ac_cv_prog_CC"
1941fi
1942
1943if test -z "$CC"; then
1944  if test -n "$ac_tool_prefix"; then
1945  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1946set dummy ${ac_tool_prefix}cc; ac_word=$2
1947echo "$as_me:$LINENO: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1949if test "${ac_cv_prog_CC+set}" = set; then
1950  echo $ECHO_N "(cached) $ECHO_C" >&6
1951else
1952  if test -n "$CC"; then
1953  ac_cv_prog_CC="$CC" # Let the user override the test.
1954else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH
1957do
1958  IFS=$as_save_IFS
1959  test -z "$as_dir" && as_dir=.
1960  for ac_exec_ext in '' $ac_executable_extensions; do
1961  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1962    ac_cv_prog_CC="${ac_tool_prefix}cc"
1963    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1964    break 2
1965  fi
1966done
1967done
1968
1969fi
1970fi
1971CC=$ac_cv_prog_CC
1972if test -n "$CC"; then
1973  echo "$as_me:$LINENO: result: $CC" >&5
1974echo "${ECHO_T}$CC" >&6
1975else
1976  echo "$as_me:$LINENO: result: no" >&5
1977echo "${ECHO_T}no" >&6
1978fi
1979
1980fi
1981if test -z "$ac_cv_prog_CC"; then
1982  ac_ct_CC=$CC
1983  # Extract the first word of "cc", so it can be a program name with args.
1984set dummy cc; ac_word=$2
1985echo "$as_me:$LINENO: checking for $ac_word" >&5
1986echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1987if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1988  echo $ECHO_N "(cached) $ECHO_C" >&6
1989else
1990  if test -n "$ac_ct_CC"; then
1991  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1992else
1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994for as_dir in $PATH
1995do
1996  IFS=$as_save_IFS
1997  test -z "$as_dir" && as_dir=.
1998  for ac_exec_ext in '' $ac_executable_extensions; do
1999  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2000    ac_cv_prog_ac_ct_CC="cc"
2001    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002    break 2
2003  fi
2004done
2005done
2006
2007fi
2008fi
2009ac_ct_CC=$ac_cv_prog_ac_ct_CC
2010if test -n "$ac_ct_CC"; then
2011  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2012echo "${ECHO_T}$ac_ct_CC" >&6
2013else
2014  echo "$as_me:$LINENO: result: no" >&5
2015echo "${ECHO_T}no" >&6
2016fi
2017
2018  CC=$ac_ct_CC
2019else
2020  CC="$ac_cv_prog_CC"
2021fi
2022
2023fi
2024if test -z "$CC"; then
2025  # Extract the first word of "cc", so it can be a program name with args.
2026set dummy cc; ac_word=$2
2027echo "$as_me:$LINENO: checking for $ac_word" >&5
2028echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2029if test "${ac_cv_prog_CC+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test -n "$CC"; then
2033  ac_cv_prog_CC="$CC" # Let the user override the test.
2034else
2035  ac_prog_rejected=no
2036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2037for as_dir in $PATH
2038do
2039  IFS=$as_save_IFS
2040  test -z "$as_dir" && as_dir=.
2041  for ac_exec_ext in '' $ac_executable_extensions; do
2042  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2043    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2044       ac_prog_rejected=yes
2045       continue
2046     fi
2047    ac_cv_prog_CC="cc"
2048    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2049    break 2
2050  fi
2051done
2052done
2053
2054if test $ac_prog_rejected = yes; then
2055  # We found a bogon in the path, so make sure we never use it.
2056  set dummy $ac_cv_prog_CC
2057  shift
2058  if test $# != 0; then
2059    # We chose a different compiler from the bogus one.
2060    # However, it has the same basename, so the bogon will be chosen
2061    # first if we set CC to just the basename; use the full file name.
2062    shift
2063    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2064  fi
2065fi
2066fi
2067fi
2068CC=$ac_cv_prog_CC
2069if test -n "$CC"; then
2070  echo "$as_me:$LINENO: result: $CC" >&5
2071echo "${ECHO_T}$CC" >&6
2072else
2073  echo "$as_me:$LINENO: result: no" >&5
2074echo "${ECHO_T}no" >&6
2075fi
2076
2077fi
2078if test -z "$CC"; then
2079  if test -n "$ac_tool_prefix"; then
2080  for ac_prog in cl
2081  do
2082    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2083set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2084echo "$as_me:$LINENO: checking for $ac_word" >&5
2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2086if test "${ac_cv_prog_CC+set}" = set; then
2087  echo $ECHO_N "(cached) $ECHO_C" >&6
2088else
2089  if test -n "$CC"; then
2090  ac_cv_prog_CC="$CC" # Let the user override the test.
2091else
2092as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093for as_dir in $PATH
2094do
2095  IFS=$as_save_IFS
2096  test -z "$as_dir" && as_dir=.
2097  for ac_exec_ext in '' $ac_executable_extensions; do
2098  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2099    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2100    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101    break 2
2102  fi
2103done
2104done
2105
2106fi
2107fi
2108CC=$ac_cv_prog_CC
2109if test -n "$CC"; then
2110  echo "$as_me:$LINENO: result: $CC" >&5
2111echo "${ECHO_T}$CC" >&6
2112else
2113  echo "$as_me:$LINENO: result: no" >&5
2114echo "${ECHO_T}no" >&6
2115fi
2116
2117    test -n "$CC" && break
2118  done
2119fi
2120if test -z "$CC"; then
2121  ac_ct_CC=$CC
2122  for ac_prog in cl
2123do
2124  # Extract the first word of "$ac_prog", so it can be a program name with args.
2125set dummy $ac_prog; ac_word=$2
2126echo "$as_me:$LINENO: checking for $ac_word" >&5
2127echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2128if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  if test -n "$ac_ct_CC"; then
2132  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2133else
2134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2135for as_dir in $PATH
2136do
2137  IFS=$as_save_IFS
2138  test -z "$as_dir" && as_dir=.
2139  for ac_exec_ext in '' $ac_executable_extensions; do
2140  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2141    ac_cv_prog_ac_ct_CC="$ac_prog"
2142    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2143    break 2
2144  fi
2145done
2146done
2147
2148fi
2149fi
2150ac_ct_CC=$ac_cv_prog_ac_ct_CC
2151if test -n "$ac_ct_CC"; then
2152  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2153echo "${ECHO_T}$ac_ct_CC" >&6
2154else
2155  echo "$as_me:$LINENO: result: no" >&5
2156echo "${ECHO_T}no" >&6
2157fi
2158
2159  test -n "$ac_ct_CC" && break
2160done
2161
2162  CC=$ac_ct_CC
2163fi
2164
2165fi
2166
2167
2168test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2169See \`config.log' for more details." >&5
2170echo "$as_me: error: no acceptable C compiler found in \$PATH
2171See \`config.log' for more details." >&2;}
2172   { (exit 1); exit 1; }; }
2173
2174# Provide some information about the compiler.
2175echo "$as_me:$LINENO:" \
2176     "checking for C compiler version" >&5
2177ac_compiler=`set X $ac_compile; echo $2`
2178{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2179  (eval $ac_compiler --version </dev/null >&5) 2>&5
2180  ac_status=$?
2181  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2182  (exit $ac_status); }
2183{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2184  (eval $ac_compiler -v </dev/null >&5) 2>&5
2185  ac_status=$?
2186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187  (exit $ac_status); }
2188{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2189  (eval $ac_compiler -V </dev/null >&5) 2>&5
2190  ac_status=$?
2191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192  (exit $ac_status); }
2193
2194cat >conftest.$ac_ext <<_ACEOF
2195#line $LINENO "configure"
2196/* confdefs.h.  */
2197_ACEOF
2198cat confdefs.h >>conftest.$ac_ext
2199cat >>conftest.$ac_ext <<_ACEOF
2200/* end confdefs.h.  */
2201
2202int
2203main ()
2204{
2205
2206  ;
2207  return 0;
2208}
2209_ACEOF
2210ac_clean_files_save=$ac_clean_files
2211ac_clean_files="$ac_clean_files a.out a.exe b.out"
2212# Try to create an executable without -o first, disregard a.out.
2213# It will help us diagnose broken compilers, and finding out an intuition
2214# of exeext.
2215echo "$as_me:$LINENO: checking for C compiler default output" >&5
2216echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2217ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2218if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2219  (eval $ac_link_default) 2>&5
2220  ac_status=$?
2221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2222  (exit $ac_status); }; then
2223  # Find the output, starting from the most likely.  This scheme is
2224# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2225# resort.
2226
2227# Be careful to initialize this variable, since it used to be cached.
2228# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2229ac_cv_exeext=
2230# b.out is created by i960 compilers.
2231for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2232do
2233  test -f "$ac_file" || continue
2234  case $ac_file in
2235    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2236        ;;
2237    conftest.$ac_ext )
2238        # This is the source file.
2239        ;;
2240    [ab].out )
2241        # We found the default executable, but exeext='' is most
2242        # certainly right.
2243        break;;
2244    *.* )
2245        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2246        # FIXME: I believe we export ac_cv_exeext for Libtool,
2247        # but it would be cool to find out if it's true.  Does anybody
2248        # maintain Libtool? --akim.
2249        export ac_cv_exeext
2250        break;;
2251    * )
2252        break;;
2253  esac
2254done
2255else
2256  echo "$as_me: failed program was:" >&5
2257sed 's/^/| /' conftest.$ac_ext >&5
2258
2259{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2260See \`config.log' for more details." >&5
2261echo "$as_me: error: C compiler cannot create executables
2262See \`config.log' for more details." >&2;}
2263   { (exit 77); exit 77; }; }
2264fi
2265
2266ac_exeext=$ac_cv_exeext
2267echo "$as_me:$LINENO: result: $ac_file" >&5
2268echo "${ECHO_T}$ac_file" >&6
2269
2270# Check the compiler produces executables we can run.  If not, either
2271# the compiler is broken, or we cross compile.
2272echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2273echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2274# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2275# If not cross compiling, check that we can run a simple program.
2276if test "$cross_compiling" != yes; then
2277  if { ac_try='./$ac_file'
2278  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2279  (eval $ac_try) 2>&5
2280  ac_status=$?
2281  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2282  (exit $ac_status); }; }; then
2283    cross_compiling=no
2284  else
2285    if test "$cross_compiling" = maybe; then
2286	cross_compiling=yes
2287    else
2288	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2289If you meant to cross compile, use \`--host'.
2290See \`config.log' for more details." >&5
2291echo "$as_me: error: cannot run C compiled programs.
2292If you meant to cross compile, use \`--host'.
2293See \`config.log' for more details." >&2;}
2294   { (exit 1); exit 1; }; }
2295    fi
2296  fi
2297fi
2298echo "$as_me:$LINENO: result: yes" >&5
2299echo "${ECHO_T}yes" >&6
2300
2301rm -f a.out a.exe conftest$ac_cv_exeext b.out
2302ac_clean_files=$ac_clean_files_save
2303# Check the compiler produces executables we can run.  If not, either
2304# the compiler is broken, or we cross compile.
2305echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2306echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2307echo "$as_me:$LINENO: result: $cross_compiling" >&5
2308echo "${ECHO_T}$cross_compiling" >&6
2309
2310echo "$as_me:$LINENO: checking for suffix of executables" >&5
2311echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2312if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2313  (eval $ac_link) 2>&5
2314  ac_status=$?
2315  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316  (exit $ac_status); }; then
2317  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2318# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2319# work properly (i.e., refer to `conftest.exe'), while it won't with
2320# `rm'.
2321for ac_file in conftest.exe conftest conftest.*; do
2322  test -f "$ac_file" || continue
2323  case $ac_file in
2324    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2325    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2326          export ac_cv_exeext
2327          break;;
2328    * ) break;;
2329  esac
2330done
2331else
2332  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2333See \`config.log' for more details." >&5
2334echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2335See \`config.log' for more details." >&2;}
2336   { (exit 1); exit 1; }; }
2337fi
2338
2339rm -f conftest$ac_cv_exeext
2340echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2341echo "${ECHO_T}$ac_cv_exeext" >&6
2342
2343rm -f conftest.$ac_ext
2344EXEEXT=$ac_cv_exeext
2345ac_exeext=$EXEEXT
2346echo "$as_me:$LINENO: checking for suffix of object files" >&5
2347echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2348if test "${ac_cv_objext+set}" = set; then
2349  echo $ECHO_N "(cached) $ECHO_C" >&6
2350else
2351  cat >conftest.$ac_ext <<_ACEOF
2352#line $LINENO "configure"
2353/* confdefs.h.  */
2354_ACEOF
2355cat confdefs.h >>conftest.$ac_ext
2356cat >>conftest.$ac_ext <<_ACEOF
2357/* end confdefs.h.  */
2358
2359int
2360main ()
2361{
2362
2363  ;
2364  return 0;
2365}
2366_ACEOF
2367rm -f conftest.o conftest.obj
2368if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2369  (eval $ac_compile) 2>&5
2370  ac_status=$?
2371  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372  (exit $ac_status); }; then
2373  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2374  case $ac_file in
2375    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2376    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2377       break;;
2378  esac
2379done
2380else
2381  echo "$as_me: failed program was:" >&5
2382sed 's/^/| /' conftest.$ac_ext >&5
2383
2384{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2385See \`config.log' for more details." >&5
2386echo "$as_me: error: cannot compute suffix of object files: cannot compile
2387See \`config.log' for more details." >&2;}
2388   { (exit 1); exit 1; }; }
2389fi
2390
2391rm -f conftest.$ac_cv_objext conftest.$ac_ext
2392fi
2393echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2394echo "${ECHO_T}$ac_cv_objext" >&6
2395OBJEXT=$ac_cv_objext
2396ac_objext=$OBJEXT
2397echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2398echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2399if test "${ac_cv_c_compiler_gnu+set}" = set; then
2400  echo $ECHO_N "(cached) $ECHO_C" >&6
2401else
2402  cat >conftest.$ac_ext <<_ACEOF
2403#line $LINENO "configure"
2404/* confdefs.h.  */
2405_ACEOF
2406cat confdefs.h >>conftest.$ac_ext
2407cat >>conftest.$ac_ext <<_ACEOF
2408/* end confdefs.h.  */
2409
2410int
2411main ()
2412{
2413#ifndef __GNUC__
2414       choke me
2415#endif
2416
2417  ;
2418  return 0;
2419}
2420_ACEOF
2421rm -f conftest.$ac_objext
2422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2423  (eval $ac_compile) 2>&5
2424  ac_status=$?
2425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426  (exit $ac_status); } &&
2427         { ac_try='test -s conftest.$ac_objext'
2428  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2429  (eval $ac_try) 2>&5
2430  ac_status=$?
2431  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432  (exit $ac_status); }; }; then
2433  ac_compiler_gnu=yes
2434else
2435  echo "$as_me: failed program was:" >&5
2436sed 's/^/| /' conftest.$ac_ext >&5
2437
2438ac_compiler_gnu=no
2439fi
2440rm -f conftest.$ac_objext conftest.$ac_ext
2441ac_cv_c_compiler_gnu=$ac_compiler_gnu
2442
2443fi
2444echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2445echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2446GCC=`test $ac_compiler_gnu = yes && echo yes`
2447ac_test_CFLAGS=${CFLAGS+set}
2448ac_save_CFLAGS=$CFLAGS
2449CFLAGS="-g"
2450echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2451echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2452if test "${ac_cv_prog_cc_g+set}" = set; then
2453  echo $ECHO_N "(cached) $ECHO_C" >&6
2454else
2455  cat >conftest.$ac_ext <<_ACEOF
2456#line $LINENO "configure"
2457/* confdefs.h.  */
2458_ACEOF
2459cat confdefs.h >>conftest.$ac_ext
2460cat >>conftest.$ac_ext <<_ACEOF
2461/* end confdefs.h.  */
2462
2463int
2464main ()
2465{
2466
2467  ;
2468  return 0;
2469}
2470_ACEOF
2471rm -f conftest.$ac_objext
2472if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2473  (eval $ac_compile) 2>&5
2474  ac_status=$?
2475  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476  (exit $ac_status); } &&
2477         { ac_try='test -s conftest.$ac_objext'
2478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479  (eval $ac_try) 2>&5
2480  ac_status=$?
2481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482  (exit $ac_status); }; }; then
2483  ac_cv_prog_cc_g=yes
2484else
2485  echo "$as_me: failed program was:" >&5
2486sed 's/^/| /' conftest.$ac_ext >&5
2487
2488ac_cv_prog_cc_g=no
2489fi
2490rm -f conftest.$ac_objext conftest.$ac_ext
2491fi
2492echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2493echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2494if test "$ac_test_CFLAGS" = set; then
2495  CFLAGS=$ac_save_CFLAGS
2496elif test $ac_cv_prog_cc_g = yes; then
2497  if test "$GCC" = yes; then
2498    CFLAGS="-g -O2"
2499  else
2500    CFLAGS="-g"
2501  fi
2502else
2503  if test "$GCC" = yes; then
2504    CFLAGS="-O2"
2505  else
2506    CFLAGS=
2507  fi
2508fi
2509echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2510echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2511if test "${ac_cv_prog_cc_stdc+set}" = set; then
2512  echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514  ac_cv_prog_cc_stdc=no
2515ac_save_CC=$CC
2516cat >conftest.$ac_ext <<_ACEOF
2517#line $LINENO "configure"
2518/* confdefs.h.  */
2519_ACEOF
2520cat confdefs.h >>conftest.$ac_ext
2521cat >>conftest.$ac_ext <<_ACEOF
2522/* end confdefs.h.  */
2523#include <stdarg.h>
2524#include <stdio.h>
2525#include <sys/types.h>
2526#include <sys/stat.h>
2527/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2528struct buf { int x; };
2529FILE * (*rcsopen) (struct buf *, struct stat *, int);
2530static char *e (p, i)
2531     char **p;
2532     int i;
2533{
2534  return p[i];
2535}
2536static char *f (char * (*g) (char **, int), char **p, ...)
2537{
2538  char *s;
2539  va_list v;
2540  va_start (v,p);
2541  s = g (p, va_arg (v,int));
2542  va_end (v);
2543  return s;
2544}
2545int test (int i, double x);
2546struct s1 {int (*f) (int a);};
2547struct s2 {int (*f) (double a);};
2548int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2549int argc;
2550char **argv;
2551int
2552main ()
2553{
2554return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2555  ;
2556  return 0;
2557}
2558_ACEOF
2559# Don't try gcc -ansi; that turns off useful extensions and
2560# breaks some systems' header files.
2561# AIX			-qlanglvl=ansi
2562# Ultrix and OSF/1	-std1
2563# HP-UX 10.20 and later	-Ae
2564# HP-UX older versions	-Aa -D_HPUX_SOURCE
2565# SVR4			-Xc -D__EXTENSIONS__
2566for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2567do
2568  CC="$ac_save_CC $ac_arg"
2569  rm -f conftest.$ac_objext
2570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2571  (eval $ac_compile) 2>&5
2572  ac_status=$?
2573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2574  (exit $ac_status); } &&
2575         { ac_try='test -s conftest.$ac_objext'
2576  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2577  (eval $ac_try) 2>&5
2578  ac_status=$?
2579  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2580  (exit $ac_status); }; }; then
2581  ac_cv_prog_cc_stdc=$ac_arg
2582break
2583else
2584  echo "$as_me: failed program was:" >&5
2585sed 's/^/| /' conftest.$ac_ext >&5
2586
2587fi
2588rm -f conftest.$ac_objext
2589done
2590rm -f conftest.$ac_ext conftest.$ac_objext
2591CC=$ac_save_CC
2592
2593fi
2594
2595case "x$ac_cv_prog_cc_stdc" in
2596  x|xno)
2597    echo "$as_me:$LINENO: result: none needed" >&5
2598echo "${ECHO_T}none needed" >&6 ;;
2599  *)
2600    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2601echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2602    CC="$CC $ac_cv_prog_cc_stdc" ;;
2603esac
2604
2605# Some people use a C++ compiler to compile C.  Since we use `exit',
2606# in C++ we need to declare it.  In case someone uses the same compiler
2607# for both compiling C and C++ we need to have the C++ compiler decide
2608# the declaration of exit, since it's the most demanding environment.
2609cat >conftest.$ac_ext <<_ACEOF
2610#ifndef __cplusplus
2611  choke me
2612#endif
2613_ACEOF
2614rm -f conftest.$ac_objext
2615if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2616  (eval $ac_compile) 2>&5
2617  ac_status=$?
2618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619  (exit $ac_status); } &&
2620         { ac_try='test -s conftest.$ac_objext'
2621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2622  (eval $ac_try) 2>&5
2623  ac_status=$?
2624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625  (exit $ac_status); }; }; then
2626  for ac_declaration in \
2627   ''\
2628   '#include <stdlib.h>' \
2629   'extern "C" void std::exit (int) throw (); using std::exit;' \
2630   'extern "C" void std::exit (int); using std::exit;' \
2631   'extern "C" void exit (int) throw ();' \
2632   'extern "C" void exit (int);' \
2633   'void exit (int);'
2634do
2635  cat >conftest.$ac_ext <<_ACEOF
2636#line $LINENO "configure"
2637/* confdefs.h.  */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h.  */
2642#include <stdlib.h>
2643$ac_declaration
2644int
2645main ()
2646{
2647exit (42);
2648  ;
2649  return 0;
2650}
2651_ACEOF
2652rm -f conftest.$ac_objext
2653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2654  (eval $ac_compile) 2>&5
2655  ac_status=$?
2656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657  (exit $ac_status); } &&
2658         { ac_try='test -s conftest.$ac_objext'
2659  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2660  (eval $ac_try) 2>&5
2661  ac_status=$?
2662  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2663  (exit $ac_status); }; }; then
2664  :
2665else
2666  echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668
2669continue
2670fi
2671rm -f conftest.$ac_objext conftest.$ac_ext
2672  cat >conftest.$ac_ext <<_ACEOF
2673#line $LINENO "configure"
2674/* confdefs.h.  */
2675_ACEOF
2676cat confdefs.h >>conftest.$ac_ext
2677cat >>conftest.$ac_ext <<_ACEOF
2678/* end confdefs.h.  */
2679$ac_declaration
2680int
2681main ()
2682{
2683exit (42);
2684  ;
2685  return 0;
2686}
2687_ACEOF
2688rm -f conftest.$ac_objext
2689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2690  (eval $ac_compile) 2>&5
2691  ac_status=$?
2692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2693  (exit $ac_status); } &&
2694         { ac_try='test -s conftest.$ac_objext'
2695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2696  (eval $ac_try) 2>&5
2697  ac_status=$?
2698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699  (exit $ac_status); }; }; then
2700  break
2701else
2702  echo "$as_me: failed program was:" >&5
2703sed 's/^/| /' conftest.$ac_ext >&5
2704
2705fi
2706rm -f conftest.$ac_objext conftest.$ac_ext
2707done
2708rm -f conftest*
2709if test -n "$ac_declaration"; then
2710  echo '#ifdef __cplusplus' >>confdefs.h
2711  echo $ac_declaration      >>confdefs.h
2712  echo '#endif'             >>confdefs.h
2713fi
2714
2715else
2716  echo "$as_me: failed program was:" >&5
2717sed 's/^/| /' conftest.$ac_ext >&5
2718
2719fi
2720rm -f conftest.$ac_objext conftest.$ac_ext
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726DEPDIR="${am__leading_dot}deps"
2727
2728          ac_config_commands="$ac_config_commands depfiles"
2729
2730
2731am_make=${MAKE-make}
2732cat > confinc << 'END'
2733am__doit:
2734	@echo done
2735.PHONY: am__doit
2736END
2737# If we don't find an include directive, just comment out the code.
2738echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2739echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2740am__include="#"
2741am__quote=
2742_am_result=none
2743# First try GNU make style include.
2744echo "include confinc" > confmf
2745# We grep out `Entering directory' and `Leaving directory'
2746# messages which can occur if `w' ends up in MAKEFLAGS.
2747# In particular we don't look at `^make:' because GNU make might
2748# be invoked under some other name (usually "gmake"), in which
2749# case it prints its new name instead of `make'.
2750if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2751   am__include=include
2752   am__quote=
2753   _am_result=GNU
2754fi
2755# Now try BSD make style include.
2756if test "$am__include" = "#"; then
2757   echo '.include "confinc"' > confmf
2758   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2759      am__include=.include
2760      am__quote="\""
2761      _am_result=BSD
2762   fi
2763fi
2764
2765
2766echo "$as_me:$LINENO: result: $_am_result" >&5
2767echo "${ECHO_T}$_am_result" >&6
2768rm -f confinc confmf
2769
2770# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2771if test "${enable_dependency_tracking+set}" = set; then
2772  enableval="$enable_dependency_tracking"
2773
2774fi;
2775if test "x$enable_dependency_tracking" != xno; then
2776  am_depcomp="$ac_aux_dir/depcomp"
2777  AMDEPBACKSLASH='\'
2778fi
2779
2780
2781if test "x$enable_dependency_tracking" != xno; then
2782  AMDEP_TRUE=
2783  AMDEP_FALSE='#'
2784else
2785  AMDEP_TRUE='#'
2786  AMDEP_FALSE=
2787fi
2788
2789
2790
2791
2792depcc="$CC"   am_compiler_list=
2793
2794echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2795echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2796if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2797  echo $ECHO_N "(cached) $ECHO_C" >&6
2798else
2799  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2800  # We make a subdir and do the tests there.  Otherwise we can end up
2801  # making bogus files that we don't know about and never remove.  For
2802  # instance it was reported that on HP-UX the gcc test will end up
2803  # making a dummy file named `D' -- because `-MD' means `put the output
2804  # in D'.
2805  mkdir conftest.dir
2806  # Copy depcomp to subdir because otherwise we won't find it if we're
2807  # using a relative directory.
2808  cp "$am_depcomp" conftest.dir
2809  cd conftest.dir
2810  # We will build objects and dependencies in a subdirectory because
2811  # it helps to detect inapplicable dependency modes.  For instance
2812  # both Tru64's cc and ICC support -MD to output dependencies as a
2813  # side effect of compilation, but ICC will put the dependencies in
2814  # the current directory while Tru64 will put them in the object
2815  # directory.
2816  mkdir sub
2817
2818  am_cv_CC_dependencies_compiler_type=none
2819  if test "$am_compiler_list" = ""; then
2820     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2821  fi
2822  for depmode in $am_compiler_list; do
2823    # Setup a source with many dependencies, because some compilers
2824    # like to wrap large dependency lists on column 80 (with \), and
2825    # we should not choose a depcomp mode which is confused by this.
2826    #
2827    # We need to recreate these files for each test, as the compiler may
2828    # overwrite some of them when testing with obscure command lines.
2829    # This happens at least with the AIX C compiler.
2830    : > sub/conftest.c
2831    for i in 1 2 3 4 5 6; do
2832      echo '#include "conftst'$i'.h"' >> sub/conftest.c
2833      : > sub/conftst$i.h
2834    done
2835    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2836
2837    case $depmode in
2838    nosideeffect)
2839      # after this tag, mechanisms are not by side-effect, so they'll
2840      # only be used when explicitly requested
2841      if test "x$enable_dependency_tracking" = xyes; then
2842	continue
2843      else
2844	break
2845      fi
2846      ;;
2847    none) break ;;
2848    esac
2849    # We check with `-c' and `-o' for the sake of the "dashmstdout"
2850    # mode.  It turns out that the SunPro C++ compiler does not properly
2851    # handle `-M -o', and we need to detect this.
2852    if depmode=$depmode \
2853       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2854       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2855       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2856         >/dev/null 2>conftest.err &&
2857       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2858       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2859       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2860      # icc doesn't choke on unknown options, it will just issue warnings
2861      # (even with -Werror).  So we grep stderr for any message
2862      # that says an option was ignored.
2863      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
2864        am_cv_CC_dependencies_compiler_type=$depmode
2865        break
2866      fi
2867    fi
2868  done
2869
2870  cd ..
2871  rm -rf conftest.dir
2872else
2873  am_cv_CC_dependencies_compiler_type=none
2874fi
2875
2876fi
2877echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2878echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2879CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2880
2881
2882
2883if
2884  test "x$enable_dependency_tracking" != xno \
2885  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
2886  am__fastdepCC_TRUE=
2887  am__fastdepCC_FALSE='#'
2888else
2889  am__fastdepCC_TRUE='#'
2890  am__fastdepCC_FALSE=
2891fi
2892
2893
2894ac_ext=cc
2895ac_cpp='$CXXCPP $CPPFLAGS'
2896ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2899if test -n "$ac_tool_prefix"; then
2900  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2901  do
2902    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2903set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2904echo "$as_me:$LINENO: checking for $ac_word" >&5
2905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2906if test "${ac_cv_prog_CXX+set}" = set; then
2907  echo $ECHO_N "(cached) $ECHO_C" >&6
2908else
2909  if test -n "$CXX"; then
2910  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2911else
2912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913for as_dir in $PATH
2914do
2915  IFS=$as_save_IFS
2916  test -z "$as_dir" && as_dir=.
2917  for ac_exec_ext in '' $ac_executable_extensions; do
2918  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2919    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2920    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2921    break 2
2922  fi
2923done
2924done
2925
2926fi
2927fi
2928CXX=$ac_cv_prog_CXX
2929if test -n "$CXX"; then
2930  echo "$as_me:$LINENO: result: $CXX" >&5
2931echo "${ECHO_T}$CXX" >&6
2932else
2933  echo "$as_me:$LINENO: result: no" >&5
2934echo "${ECHO_T}no" >&6
2935fi
2936
2937    test -n "$CXX" && break
2938  done
2939fi
2940if test -z "$CXX"; then
2941  ac_ct_CXX=$CXX
2942  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2943do
2944  # Extract the first word of "$ac_prog", so it can be a program name with args.
2945set dummy $ac_prog; ac_word=$2
2946echo "$as_me:$LINENO: checking for $ac_word" >&5
2947echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2948if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2949  echo $ECHO_N "(cached) $ECHO_C" >&6
2950else
2951  if test -n "$ac_ct_CXX"; then
2952  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957  IFS=$as_save_IFS
2958  test -z "$as_dir" && as_dir=.
2959  for ac_exec_ext in '' $ac_executable_extensions; do
2960  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2961    ac_cv_prog_ac_ct_CXX="$ac_prog"
2962    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2963    break 2
2964  fi
2965done
2966done
2967
2968fi
2969fi
2970ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2971if test -n "$ac_ct_CXX"; then
2972  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2973echo "${ECHO_T}$ac_ct_CXX" >&6
2974else
2975  echo "$as_me:$LINENO: result: no" >&5
2976echo "${ECHO_T}no" >&6
2977fi
2978
2979  test -n "$ac_ct_CXX" && break
2980done
2981test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2982
2983  CXX=$ac_ct_CXX
2984fi
2985
2986
2987# Provide some information about the compiler.
2988echo "$as_me:$LINENO:" \
2989     "checking for C++ compiler version" >&5
2990ac_compiler=`set X $ac_compile; echo $2`
2991{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2992  (eval $ac_compiler --version </dev/null >&5) 2>&5
2993  ac_status=$?
2994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995  (exit $ac_status); }
2996{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2997  (eval $ac_compiler -v </dev/null >&5) 2>&5
2998  ac_status=$?
2999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000  (exit $ac_status); }
3001{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3002  (eval $ac_compiler -V </dev/null >&5) 2>&5
3003  ac_status=$?
3004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005  (exit $ac_status); }
3006
3007echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3009if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3010  echo $ECHO_N "(cached) $ECHO_C" >&6
3011else
3012  cat >conftest.$ac_ext <<_ACEOF
3013#line $LINENO "configure"
3014/* confdefs.h.  */
3015_ACEOF
3016cat confdefs.h >>conftest.$ac_ext
3017cat >>conftest.$ac_ext <<_ACEOF
3018/* end confdefs.h.  */
3019
3020int
3021main ()
3022{
3023#ifndef __GNUC__
3024       choke me
3025#endif
3026
3027  ;
3028  return 0;
3029}
3030_ACEOF
3031rm -f conftest.$ac_objext
3032if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3033  (eval $ac_compile) 2>&5
3034  ac_status=$?
3035  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036  (exit $ac_status); } &&
3037         { ac_try='test -s conftest.$ac_objext'
3038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3039  (eval $ac_try) 2>&5
3040  ac_status=$?
3041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042  (exit $ac_status); }; }; then
3043  ac_compiler_gnu=yes
3044else
3045  echo "$as_me: failed program was:" >&5
3046sed 's/^/| /' conftest.$ac_ext >&5
3047
3048ac_compiler_gnu=no
3049fi
3050rm -f conftest.$ac_objext conftest.$ac_ext
3051ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3052
3053fi
3054echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3055echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3056GXX=`test $ac_compiler_gnu = yes && echo yes`
3057ac_test_CXXFLAGS=${CXXFLAGS+set}
3058ac_save_CXXFLAGS=$CXXFLAGS
3059CXXFLAGS="-g"
3060echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3061echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3062if test "${ac_cv_prog_cxx_g+set}" = set; then
3063  echo $ECHO_N "(cached) $ECHO_C" >&6
3064else
3065  cat >conftest.$ac_ext <<_ACEOF
3066#line $LINENO "configure"
3067/* confdefs.h.  */
3068_ACEOF
3069cat confdefs.h >>conftest.$ac_ext
3070cat >>conftest.$ac_ext <<_ACEOF
3071/* end confdefs.h.  */
3072
3073int
3074main ()
3075{
3076
3077  ;
3078  return 0;
3079}
3080_ACEOF
3081rm -f conftest.$ac_objext
3082if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3083  (eval $ac_compile) 2>&5
3084  ac_status=$?
3085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086  (exit $ac_status); } &&
3087         { ac_try='test -s conftest.$ac_objext'
3088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3089  (eval $ac_try) 2>&5
3090  ac_status=$?
3091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092  (exit $ac_status); }; }; then
3093  ac_cv_prog_cxx_g=yes
3094else
3095  echo "$as_me: failed program was:" >&5
3096sed 's/^/| /' conftest.$ac_ext >&5
3097
3098ac_cv_prog_cxx_g=no
3099fi
3100rm -f conftest.$ac_objext conftest.$ac_ext
3101fi
3102echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3103echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3104if test "$ac_test_CXXFLAGS" = set; then
3105  CXXFLAGS=$ac_save_CXXFLAGS
3106elif test $ac_cv_prog_cxx_g = yes; then
3107  if test "$GXX" = yes; then
3108    CXXFLAGS="-g -O2"
3109  else
3110    CXXFLAGS="-g"
3111  fi
3112else
3113  if test "$GXX" = yes; then
3114    CXXFLAGS="-O2"
3115  else
3116    CXXFLAGS=
3117  fi
3118fi
3119for ac_declaration in \
3120   ''\
3121   '#include <stdlib.h>' \
3122   'extern "C" void std::exit (int) throw (); using std::exit;' \
3123   'extern "C" void std::exit (int); using std::exit;' \
3124   'extern "C" void exit (int) throw ();' \
3125   'extern "C" void exit (int);' \
3126   'void exit (int);'
3127do
3128  cat >conftest.$ac_ext <<_ACEOF
3129#line $LINENO "configure"
3130/* confdefs.h.  */
3131_ACEOF
3132cat confdefs.h >>conftest.$ac_ext
3133cat >>conftest.$ac_ext <<_ACEOF
3134/* end confdefs.h.  */
3135#include <stdlib.h>
3136$ac_declaration
3137int
3138main ()
3139{
3140exit (42);
3141  ;
3142  return 0;
3143}
3144_ACEOF
3145rm -f conftest.$ac_objext
3146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147  (eval $ac_compile) 2>&5
3148  ac_status=$?
3149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150  (exit $ac_status); } &&
3151         { ac_try='test -s conftest.$ac_objext'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; }; then
3157  :
3158else
3159  echo "$as_me: failed program was:" >&5
3160sed 's/^/| /' conftest.$ac_ext >&5
3161
3162continue
3163fi
3164rm -f conftest.$ac_objext conftest.$ac_ext
3165  cat >conftest.$ac_ext <<_ACEOF
3166#line $LINENO "configure"
3167/* confdefs.h.  */
3168_ACEOF
3169cat confdefs.h >>conftest.$ac_ext
3170cat >>conftest.$ac_ext <<_ACEOF
3171/* end confdefs.h.  */
3172$ac_declaration
3173int
3174main ()
3175{
3176exit (42);
3177  ;
3178  return 0;
3179}
3180_ACEOF
3181rm -f conftest.$ac_objext
3182if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183  (eval $ac_compile) 2>&5
3184  ac_status=$?
3185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186  (exit $ac_status); } &&
3187         { ac_try='test -s conftest.$ac_objext'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; }; then
3193  break
3194else
3195  echo "$as_me: failed program was:" >&5
3196sed 's/^/| /' conftest.$ac_ext >&5
3197
3198fi
3199rm -f conftest.$ac_objext conftest.$ac_ext
3200done
3201rm -f conftest*
3202if test -n "$ac_declaration"; then
3203  echo '#ifdef __cplusplus' >>confdefs.h
3204  echo $ac_declaration      >>confdefs.h
3205  echo '#endif'             >>confdefs.h
3206fi
3207
3208ac_ext=c
3209ac_cpp='$CPP $CPPFLAGS'
3210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3212ac_compiler_gnu=$ac_cv_c_compiler_gnu
3213
3214depcc="$CXX"  am_compiler_list=
3215
3216echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3217echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3218if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3219  echo $ECHO_N "(cached) $ECHO_C" >&6
3220else
3221  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3222  # We make a subdir and do the tests there.  Otherwise we can end up
3223  # making bogus files that we don't know about and never remove.  For
3224  # instance it was reported that on HP-UX the gcc test will end up
3225  # making a dummy file named `D' -- because `-MD' means `put the output
3226  # in D'.
3227  mkdir conftest.dir
3228  # Copy depcomp to subdir because otherwise we won't find it if we're
3229  # using a relative directory.
3230  cp "$am_depcomp" conftest.dir
3231  cd conftest.dir
3232  # We will build objects and dependencies in a subdirectory because
3233  # it helps to detect inapplicable dependency modes.  For instance
3234  # both Tru64's cc and ICC support -MD to output dependencies as a
3235  # side effect of compilation, but ICC will put the dependencies in
3236  # the current directory while Tru64 will put them in the object
3237  # directory.
3238  mkdir sub
3239
3240  am_cv_CXX_dependencies_compiler_type=none
3241  if test "$am_compiler_list" = ""; then
3242     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3243  fi
3244  for depmode in $am_compiler_list; do
3245    # Setup a source with many dependencies, because some compilers
3246    # like to wrap large dependency lists on column 80 (with \), and
3247    # we should not choose a depcomp mode which is confused by this.
3248    #
3249    # We need to recreate these files for each test, as the compiler may
3250    # overwrite some of them when testing with obscure command lines.
3251    # This happens at least with the AIX C compiler.
3252    : > sub/conftest.c
3253    for i in 1 2 3 4 5 6; do
3254      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3255      : > sub/conftst$i.h
3256    done
3257    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3258
3259    case $depmode in
3260    nosideeffect)
3261      # after this tag, mechanisms are not by side-effect, so they'll
3262      # only be used when explicitly requested
3263      if test "x$enable_dependency_tracking" = xyes; then
3264	continue
3265      else
3266	break
3267      fi
3268      ;;
3269    none) break ;;
3270    esac
3271    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3272    # mode.  It turns out that the SunPro C++ compiler does not properly
3273    # handle `-M -o', and we need to detect this.
3274    if depmode=$depmode \
3275       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3276       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3277       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3278         >/dev/null 2>conftest.err &&
3279       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3280       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3281       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3282      # icc doesn't choke on unknown options, it will just issue warnings
3283      # (even with -Werror).  So we grep stderr for any message
3284      # that says an option was ignored.
3285      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3286        am_cv_CXX_dependencies_compiler_type=$depmode
3287        break
3288      fi
3289    fi
3290  done
3291
3292  cd ..
3293  rm -rf conftest.dir
3294else
3295  am_cv_CXX_dependencies_compiler_type=none
3296fi
3297
3298fi
3299echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3300echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3301CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3302
3303
3304
3305if
3306  test "x$enable_dependency_tracking" != xno \
3307  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3308  am__fastdepCXX_TRUE=
3309  am__fastdepCXX_FALSE='#'
3310else
3311  am__fastdepCXX_TRUE='#'
3312  am__fastdepCXX_FALSE=
3313fi
3314
3315
3316if test $GXX = yes; then
3317	if $CXX -v 2>&1 | grep -q egcs
3318		then AM_CXXFLAGS="-Wall -Wunused -pipe -gstabs+ -fdefer-pop -O"
3319		else AM_CXXFLAGS="-Wall -Wunused -gstabs+ -O"
3320	fi
3321	else AM_CXXFLAGS=-O
3322fi
3323
3324
3325
3326
3327echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3328echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3329set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
3330if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3331  echo $ECHO_N "(cached) $ECHO_C" >&6
3332else
3333  cat >conftest.make <<\_ACEOF
3334all:
3335	@echo 'ac_maketemp="$(MAKE)"'
3336_ACEOF
3337# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3338eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3339if test -n "$ac_maketemp"; then
3340  eval ac_cv_prog_make_${ac_make}_set=yes
3341else
3342  eval ac_cv_prog_make_${ac_make}_set=no
3343fi
3344rm -f conftest.make
3345fi
3346if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3347  echo "$as_me:$LINENO: result: yes" >&5
3348echo "${ECHO_T}yes" >&6
3349  SET_MAKE=
3350else
3351  echo "$as_me:$LINENO: result: no" >&5
3352echo "${ECHO_T}no" >&6
3353  SET_MAKE="MAKE=${MAKE-make}"
3354fi
3355
3356# Check whether --enable-shared or --disable-shared was given.
3357if test "${enable_shared+set}" = set; then
3358  enableval="$enable_shared"
3359  p=${PACKAGE-default}
3360case $enableval in
3361yes) enable_shared=yes ;;
3362no) enable_shared=no ;;
3363*)
3364  enable_shared=no
3365  # Look at the argument we got.  We use all the common list separators.
3366  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3367  for pkg in $enableval; do
3368    if test "X$pkg" = "X$p"; then
3369      enable_shared=yes
3370    fi
3371  done
3372  IFS="$ac_save_ifs"
3373  ;;
3374esac
3375else
3376  enable_shared=yes
3377fi;
3378# Check whether --enable-static or --disable-static was given.
3379if test "${enable_static+set}" = set; then
3380  enableval="$enable_static"
3381  p=${PACKAGE-default}
3382case $enableval in
3383yes) enable_static=yes ;;
3384no) enable_static=no ;;
3385*)
3386  enable_static=no
3387  # Look at the argument we got.  We use all the common list separators.
3388  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3389  for pkg in $enableval; do
3390    if test "X$pkg" = "X$p"; then
3391      enable_static=yes
3392    fi
3393  done
3394  IFS="$ac_save_ifs"
3395  ;;
3396esac
3397else
3398  enable_static=yes
3399fi;
3400# Check whether --enable-fast-install or --disable-fast-install was given.
3401if test "${enable_fast_install+set}" = set; then
3402  enableval="$enable_fast_install"
3403  p=${PACKAGE-default}
3404case $enableval in
3405yes) enable_fast_install=yes ;;
3406no) enable_fast_install=no ;;
3407*)
3408  enable_fast_install=no
3409  # Look at the argument we got.  We use all the common list separators.
3410  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3411  for pkg in $enableval; do
3412    if test "X$pkg" = "X$p"; then
3413      enable_fast_install=yes
3414    fi
3415  done
3416  IFS="$ac_save_ifs"
3417  ;;
3418esac
3419else
3420  enable_fast_install=yes
3421fi;
3422# Make sure we can run config.sub.
3423$ac_config_sub sun4 >/dev/null 2>&1 ||
3424  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3425echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3426   { (exit 1); exit 1; }; }
3427
3428echo "$as_me:$LINENO: checking build system type" >&5
3429echo $ECHO_N "checking build system type... $ECHO_C" >&6
3430if test "${ac_cv_build+set}" = set; then
3431  echo $ECHO_N "(cached) $ECHO_C" >&6
3432else
3433  ac_cv_build_alias=$build_alias
3434test -z "$ac_cv_build_alias" &&
3435  ac_cv_build_alias=`$ac_config_guess`
3436test -z "$ac_cv_build_alias" &&
3437  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3438echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3439   { (exit 1); exit 1; }; }
3440ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3441  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3442echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3443   { (exit 1); exit 1; }; }
3444
3445fi
3446echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3447echo "${ECHO_T}$ac_cv_build" >&6
3448build=$ac_cv_build
3449build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3450build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3451build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3452
3453
3454echo "$as_me:$LINENO: checking host system type" >&5
3455echo $ECHO_N "checking host system type... $ECHO_C" >&6
3456if test "${ac_cv_host+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  ac_cv_host_alias=$host_alias
3460test -z "$ac_cv_host_alias" &&
3461  ac_cv_host_alias=$ac_cv_build_alias
3462ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3463  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3464echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3465   { (exit 1); exit 1; }; }
3466
3467fi
3468echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3469echo "${ECHO_T}$ac_cv_host" >&6
3470host=$ac_cv_host
3471host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3472host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3473host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3474
3475
3476# Find the correct PATH separator.  Usually this is `:', but
3477# DJGPP uses `;' like DOS.
3478if test "X${PATH_SEPARATOR+set}" != Xset; then
3479  UNAME=${UNAME-`uname 2>/dev/null`}
3480  case X$UNAME in
3481    *-DOS) lt_cv_sys_path_separator=';' ;;
3482    *)     lt_cv_sys_path_separator=':' ;;
3483  esac
3484  PATH_SEPARATOR=$lt_cv_sys_path_separator
3485fi
3486
3487
3488# Check whether --with-gnu-ld or --without-gnu-ld was given.
3489if test "${with_gnu_ld+set}" = set; then
3490  withval="$with_gnu_ld"
3491  test "$withval" = no || with_gnu_ld=yes
3492else
3493  with_gnu_ld=no
3494fi;
3495ac_prog=ld
3496if test "$GCC" = yes; then
3497  # Check if gcc -print-prog-name=ld gives a path.
3498  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3499echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3500  case $host in
3501  *-*-mingw*)
3502    # gcc leaves a trailing carriage return which upsets mingw
3503    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3504  *)
3505    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3506  esac
3507  case $ac_prog in
3508    # Accept absolute paths.
3509    [\\/]* | [A-Za-z]:[\\/]*)
3510      re_direlt='/[^/][^/]*/\.\./'
3511      # Canonicalize the path of ld
3512      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3513      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3514	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3515      done
3516      test -z "$LD" && LD="$ac_prog"
3517      ;;
3518  "")
3519    # If it fails, then pretend we aren't using GCC.
3520    ac_prog=ld
3521    ;;
3522  *)
3523    # If it is relative, then search for the first ld in PATH.
3524    with_gnu_ld=unknown
3525    ;;
3526  esac
3527elif test "$with_gnu_ld" = yes; then
3528  echo "$as_me:$LINENO: checking for GNU ld" >&5
3529echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3530else
3531  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3532echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3533fi
3534if test "${lt_cv_path_LD+set}" = set; then
3535  echo $ECHO_N "(cached) $ECHO_C" >&6
3536else
3537  if test -z "$LD"; then
3538  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3539  for ac_dir in $PATH; do
3540    test -z "$ac_dir" && ac_dir=.
3541    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3542      lt_cv_path_LD="$ac_dir/$ac_prog"
3543      # Check to see if the program is GNU ld.  I'd rather use --version,
3544      # but apparently some GNU ld's only accept -v.
3545      # Break only if it was the GNU/non-GNU ld that we prefer.
3546      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3547	test "$with_gnu_ld" != no && break
3548      else
3549	test "$with_gnu_ld" != yes && break
3550      fi
3551    fi
3552  done
3553  IFS="$ac_save_ifs"
3554else
3555  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3556fi
3557fi
3558
3559LD="$lt_cv_path_LD"
3560if test -n "$LD"; then
3561  echo "$as_me:$LINENO: result: $LD" >&5
3562echo "${ECHO_T}$LD" >&6
3563else
3564  echo "$as_me:$LINENO: result: no" >&5
3565echo "${ECHO_T}no" >&6
3566fi
3567test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3568echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3569   { (exit 1); exit 1; }; }
3570echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3571echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3572if test "${lt_cv_prog_gnu_ld+set}" = set; then
3573  echo $ECHO_N "(cached) $ECHO_C" >&6
3574else
3575  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3576if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3577  lt_cv_prog_gnu_ld=yes
3578else
3579  lt_cv_prog_gnu_ld=no
3580fi
3581fi
3582echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3583echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3584with_gnu_ld=$lt_cv_prog_gnu_ld
3585
3586
3587echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3588echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3589if test "${lt_cv_ld_reload_flag+set}" = set; then
3590  echo $ECHO_N "(cached) $ECHO_C" >&6
3591else
3592  lt_cv_ld_reload_flag='-r'
3593fi
3594echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3595echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3596reload_flag=$lt_cv_ld_reload_flag
3597test -n "$reload_flag" && reload_flag=" $reload_flag"
3598
3599echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3600echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3601if test "${lt_cv_path_NM+set}" = set; then
3602  echo $ECHO_N "(cached) $ECHO_C" >&6
3603else
3604  if test -n "$NM"; then
3605  # Let the user override the test.
3606  lt_cv_path_NM="$NM"
3607else
3608  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3609  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3610    test -z "$ac_dir" && ac_dir=.
3611    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3612    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3613      # Check to see if the nm accepts a BSD-compat flag.
3614      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615      #   nm: unknown option "B" ignored
3616      # Tru64's nm complains that /dev/null is an invalid object file
3617      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3618	lt_cv_path_NM="$tmp_nm -B"
3619	break
3620      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3621	lt_cv_path_NM="$tmp_nm -p"
3622	break
3623      else
3624	lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3625	continue # so that we can try to find one that supports BSD flags
3626      fi
3627    fi
3628  done
3629  IFS="$ac_save_ifs"
3630  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3631fi
3632fi
3633
3634NM="$lt_cv_path_NM"
3635echo "$as_me:$LINENO: result: $NM" >&5
3636echo "${ECHO_T}$NM" >&6
3637
3638echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3639echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3640if test "${lt_cv_path_SED+set}" = set; then
3641  echo $ECHO_N "(cached) $ECHO_C" >&6
3642else
3643  # Loop through the user's path and test for sed and gsed.
3644# Then use that list of sed's as ones to test for truncation.
3645as_executable_p="test -f"
3646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647for as_dir in $PATH
3648do
3649  IFS=$as_save_IFS
3650  test -z "$as_dir" && as_dir=.
3651  for ac_prog in sed gsed; do
3652    for ac_exec_ext in '' $ac_executable_extensions; do
3653      if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3654        _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3655      fi
3656    done
3657  done
3658done
3659
3660  # Create a temporary directory, and hook for its removal unless debugging.
3661$debug ||
3662{
3663  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3664  trap '{ (exit 1); exit 1; }' 1 2 13 15
3665}
3666
3667# Create a (secure) tmp directory for tmp files.
3668: ${TMPDIR=/tmp}
3669{
3670  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3671  test -n "$tmp" && test -d "$tmp"
3672}  ||
3673{
3674  tmp=$TMPDIR/sed$$-$RANDOM
3675  (umask 077 && mkdir $tmp)
3676} ||
3677{
3678   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3679   { (exit 1); exit 1; }
3680}
3681  _max=0
3682  _count=0
3683  # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3684  # along with /bin/sed that truncates output.
3685  for _sed in $_sed_list /usr/xpg4/bin/sed; do
3686    test ! -f ${_sed} && break
3687    cat /dev/null > "$tmp/sed.in"
3688    _count=0
3689    echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3690    # Check for GNU sed and select it if it is found.
3691    if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3692      lt_cv_path_SED=${_sed}
3693      break
3694    fi
3695    while true; do
3696      cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3697      mv "$tmp/sed.tmp" "$tmp/sed.in"
3698      cp "$tmp/sed.in" "$tmp/sed.nl"
3699      echo >>"$tmp/sed.nl"
3700      ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3701      cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3702      # 40000 chars as input seems more than enough
3703      test $_count -gt 10 && break
3704      _count=`expr $_count + 1`
3705      if test $_count -gt $_max; then
3706        _max=$_count
3707        lt_cv_path_SED=$_sed
3708      fi
3709    done
3710  done
3711  rm -rf "$tmp"
3712
3713fi
3714
3715if test "X$SED" != "X"; then
3716  lt_cv_path_SED=$SED
3717else
3718  SED=$lt_cv_path_SED
3719fi
3720echo "$as_me:$LINENO: result: $SED" >&5
3721echo "${ECHO_T}$SED" >&6
3722
3723echo "$as_me:$LINENO: checking whether ln -s works" >&5
3724echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3725LN_S=$as_ln_s
3726if test "$LN_S" = "ln -s"; then
3727  echo "$as_me:$LINENO: result: yes" >&5
3728echo "${ECHO_T}yes" >&6
3729else
3730  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3731echo "${ECHO_T}no, using $LN_S" >&6
3732fi
3733
3734echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3735echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3736if test "${lt_cv_deplibs_check_method+set}" = set; then
3737  echo $ECHO_N "(cached) $ECHO_C" >&6
3738else
3739  lt_cv_file_magic_cmd='$MAGIC_CMD'
3740lt_cv_file_magic_test_file=
3741lt_cv_deplibs_check_method='unknown'
3742# Need to set the preceding variable on all platforms that support
3743# interlibrary dependencies.
3744# 'none' -- dependencies not supported.
3745# `unknown' -- same as none, but documents that we really don't know.
3746# 'pass_all' -- all dependencies passed with no checks.
3747# 'test_compile' -- check by making test program.
3748# 'file_magic [[regex]]' -- check by looking for files in library path
3749# which responds to the $file_magic_cmd with a given egrep regex.
3750# If you have `file' or equivalent on your system and you're not sure
3751# whether `pass_all' will *always* work, you probably want this one.
3752
3753case $host_os in
3754aix4* | aix5*)
3755  lt_cv_deplibs_check_method=pass_all
3756  ;;
3757
3758beos*)
3759  lt_cv_deplibs_check_method=pass_all
3760  ;;
3761
3762bsdi4*)
3763  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3764  lt_cv_file_magic_cmd='/usr/bin/file -L'
3765  lt_cv_file_magic_test_file=/shlib/libc.so
3766  ;;
3767
3768cygwin* | mingw* | pw32*)
3769  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3770  lt_cv_file_magic_cmd='$OBJDUMP -f'
3771  ;;
3772
3773darwin* | rhapsody*)
3774  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3775  lt_cv_file_magic_cmd='/usr/bin/file -L'
3776  case "$host_os" in
3777  rhapsody* | darwin1.[012])
3778    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3779    ;;
3780  *) # Darwin 1.3 on
3781    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3782    ;;
3783  esac
3784  ;;
3785
3786freebsd*)
3787  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3788    case $host_cpu in
3789    i*86 )
3790      # Not sure whether the presence of OpenBSD here was a mistake.
3791      # Let's accept both of them until this is cleared up.
3792      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3793      lt_cv_file_magic_cmd=/usr/bin/file
3794      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3795      ;;
3796    esac
3797  else
3798    lt_cv_deplibs_check_method=pass_all
3799  fi
3800  ;;
3801
3802gnu*)
3803  lt_cv_deplibs_check_method=pass_all
3804  ;;
3805
3806hpux10.20*|hpux11*)
3807  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3808  lt_cv_file_magic_cmd=/usr/bin/file
3809  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3810  ;;
3811
3812irix5* | irix6* | nonstopux*)
3813  case $host_os in
3814  irix5* | nonstopux*)
3815    # this will be overridden with pass_all, but let us keep it just in case
3816    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3817    ;;
3818  *)
3819    case $LD in
3820    *-32|*"-32 ") libmagic=32-bit;;
3821    *-n32|*"-n32 ") libmagic=N32;;
3822    *-64|*"-64 ") libmagic=64-bit;;
3823    *) libmagic=never-match;;
3824    esac
3825    # this will be overridden with pass_all, but let us keep it just in case
3826    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3827    ;;
3828  esac
3829  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3830  lt_cv_deplibs_check_method=pass_all
3831  ;;
3832
3833# This must be Linux ELF.
3834linux-gnu*)
3835  case $host_cpu in
3836  alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | s390* | x86_64*)
3837    lt_cv_deplibs_check_method=pass_all ;;
3838  *)
3839    # glibc up to 2.1.1 does not perform some relocations on ARM
3840    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3841  esac
3842  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3843  ;;
3844
3845netbsd*)
3846  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3847    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3848  else
3849    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3850  fi
3851  ;;
3852
3853newos6*)
3854  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3855  lt_cv_file_magic_cmd=/usr/bin/file
3856  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3857  ;;
3858
3859openbsd*)
3860  lt_cv_file_magic_cmd=/usr/bin/file
3861  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3862  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3863    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3864  else
3865    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3866  fi
3867  ;;
3868
3869osf3* | osf4* | osf5*)
3870  # this will be overridden with pass_all, but let us keep it just in case
3871  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3872  lt_cv_file_magic_test_file=/shlib/libc.so
3873  lt_cv_deplibs_check_method=pass_all
3874  ;;
3875
3876sco3.2v5*)
3877  lt_cv_deplibs_check_method=pass_all
3878  ;;
3879
3880solaris*)
3881  lt_cv_deplibs_check_method=pass_all
3882  lt_cv_file_magic_test_file=/lib/libc.so
3883  ;;
3884
3885sysv5uw[78]* | sysv4*uw2*)
3886  lt_cv_deplibs_check_method=pass_all
3887  ;;
3888
3889sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3890  case $host_vendor in
3891  motorola)
3892    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
3893    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3894    ;;
3895  ncr)
3896    lt_cv_deplibs_check_method=pass_all
3897    ;;
3898  sequent)
3899    lt_cv_file_magic_cmd='/bin/file'
3900    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3901    ;;
3902  sni)
3903    lt_cv_file_magic_cmd='/bin/file'
3904    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3905    lt_cv_file_magic_test_file=/lib/libc.so
3906    ;;
3907  siemens)
3908    lt_cv_deplibs_check_method=pass_all
3909    ;;
3910  esac
3911  ;;
3912esac
3913
3914fi
3915echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3916echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3917file_magic_cmd=$lt_cv_file_magic_cmd
3918deplibs_check_method=$lt_cv_deplibs_check_method
3919
3920
3921
3922
3923
3924
3925
3926
3927# Check for command to grab the raw symbol name followed by C symbol from nm.
3928echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3929echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3930if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3931  echo $ECHO_N "(cached) $ECHO_C" >&6
3932else
3933
3934# These are sane defaults that work on at least a few old systems.
3935# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3936
3937# Character class describing NM global symbol codes.
3938symcode='[BCDEGRST]'
3939
3940# Regexp to match symbols that can be accessed directly from C.
3941sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3942
3943# Transform the above into a raw symbol and a C symbol.
3944symxfrm='\1 \2\3 \3'
3945
3946# Transform an extracted symbol line into a proper C declaration
3947lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3948
3949# Transform an extracted symbol line into symbol name and symbol address
3950lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3951
3952# Define system-specific variables.
3953case $host_os in
3954aix*)
3955  symcode='[BCDT]'
3956  ;;
3957cygwin* | mingw* | pw32*)
3958  symcode='[ABCDGISTW]'
3959  ;;
3960hpux*) # Its linker distinguishes data from code symbols
3961  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3962  lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3963  ;;
3964irix* | nonstopux*)
3965  symcode='[BCDEGRST]'
3966  ;;
3967osf*)
3968  symcode='[BCDEGQRST]'
3969  ;;
3970solaris* | sysv5*)
3971  symcode='[BDT]'
3972  ;;
3973sysv4)
3974  symcode='[DFNSTU]'
3975  ;;
3976esac
3977
3978# Handle CRLF in mingw tool chain
3979opt_cr=
3980case $host_os in
3981mingw*)
3982  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3983  ;;
3984esac
3985
3986# If we're using GNU nm, then use its standard symbol codes.
3987if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3988  symcode='[ABCDGISTW]'
3989fi
3990
3991# Try without a prefix undercore, then with it.
3992for ac_symprfx in "" "_"; do
3993
3994  # Write the raw and C identifiers.
3995lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3996
3997  # Check to see that the pipe works correctly.
3998  pipe_works=no
3999  rm -f conftest*
4000  cat > conftest.$ac_ext <<EOF
4001#ifdef __cplusplus
4002extern "C" {
4003#endif
4004char nm_test_var;
4005void nm_test_func(){}
4006#ifdef __cplusplus
4007}
4008#endif
4009int main(){nm_test_var='a';nm_test_func();return(0);}
4010EOF
4011
4012  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4013  (eval $ac_compile) 2>&5
4014  ac_status=$?
4015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016  (exit $ac_status); }; then
4017    # Now try to grab the symbols.
4018    nlist=conftest.nm
4019    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4020  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4021  ac_status=$?
4022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023  (exit $ac_status); } && test -s "$nlist"; then
4024      # Try sorting and uniquifying the output.
4025      if sort "$nlist" | uniq > "$nlist"T; then
4026	mv -f "$nlist"T "$nlist"
4027      else
4028	rm -f "$nlist"T
4029      fi
4030
4031      # Make sure that we snagged all the symbols we need.
4032      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4033	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4034	  cat <<EOF > conftest.$ac_ext
4035#ifdef __cplusplus
4036extern "C" {
4037#endif
4038
4039EOF
4040	  # Now generate the symbol file.
4041	  eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4042
4043	  cat <<EOF >> conftest.$ac_ext
4044#if defined (__STDC__) && __STDC__
4045# define lt_ptr void *
4046#else
4047# define lt_ptr char *
4048# define const
4049#endif
4050
4051/* The mapping between symbol names and symbols. */
4052const struct {
4053  const char *name;
4054  lt_ptr address;
4055}
4056lt_preloaded_symbols[] =
4057{
4058EOF
4059	  sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4060	  cat <<\EOF >> conftest.$ac_ext
4061  {0, (lt_ptr) 0}
4062};
4063
4064#ifdef __cplusplus
4065}
4066#endif
4067EOF
4068	  # Now try linking the two files.
4069	  mv conftest.$ac_objext conftstm.$ac_objext
4070	  save_LIBS="$LIBS"
4071	  save_CFLAGS="$CFLAGS"
4072	  LIBS="conftstm.$ac_objext"
4073	  CFLAGS="$CFLAGS$no_builtin_flag"
4074	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4075  (eval $ac_link) 2>&5
4076  ac_status=$?
4077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4078  (exit $ac_status); } && test -s conftest$ac_exeext; then
4079	    pipe_works=yes
4080	  fi
4081	  LIBS="$save_LIBS"
4082	  CFLAGS="$save_CFLAGS"
4083	else
4084	  echo "cannot find nm_test_func in $nlist" >&5
4085	fi
4086      else
4087	echo "cannot find nm_test_var in $nlist" >&5
4088      fi
4089    else
4090      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4091    fi
4092  else
4093    echo "$progname: failed program was:" >&5
4094    cat conftest.$ac_ext >&5
4095  fi
4096  rm -f conftest* conftst*
4097
4098  # Do not use the global_symbol_pipe unless it works.
4099  if test "$pipe_works" = yes; then
4100    break
4101  else
4102    lt_cv_sys_global_symbol_pipe=
4103  fi
4104done
4105
4106fi
4107
4108global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4109if test -z "$lt_cv_sys_global_symbol_pipe"; then
4110  global_symbol_to_cdecl=
4111  global_symbol_to_c_name_address=
4112else
4113  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4114  global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4115fi
4116if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4117then
4118  echo "$as_me:$LINENO: result: failed" >&5
4119echo "${ECHO_T}failed" >&6
4120else
4121  echo "$as_me:$LINENO: result: ok" >&5
4122echo "${ECHO_T}ok" >&6
4123fi
4124
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4131echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4132# On Suns, sometimes $CPP names a directory.
4133if test -n "$CPP" && test -d "$CPP"; then
4134  CPP=
4135fi
4136if test -z "$CPP"; then
4137  if test "${ac_cv_prog_CPP+set}" = set; then
4138  echo $ECHO_N "(cached) $ECHO_C" >&6
4139else
4140      # Double quotes because CPP needs to be expanded
4141    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4142    do
4143      ac_preproc_ok=false
4144for ac_c_preproc_warn_flag in '' yes
4145do
4146  # Use a header file that comes with gcc, so configuring glibc
4147  # with a fresh cross-compiler works.
4148  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4149  # <limits.h> exists even on freestanding compilers.
4150  # On the NeXT, cc -E runs the code through the compiler's parser,
4151  # not just through cpp. "Syntax error" is here to catch this case.
4152  cat >conftest.$ac_ext <<_ACEOF
4153#line $LINENO "configure"
4154/* confdefs.h.  */
4155_ACEOF
4156cat confdefs.h >>conftest.$ac_ext
4157cat >>conftest.$ac_ext <<_ACEOF
4158/* end confdefs.h.  */
4159#ifdef __STDC__
4160# include <limits.h>
4161#else
4162# include <assert.h>
4163#endif
4164                     Syntax error
4165_ACEOF
4166if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4167  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4168  ac_status=$?
4169  grep -v '^ *+' conftest.er1 >conftest.err
4170  rm -f conftest.er1
4171  cat conftest.err >&5
4172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173  (exit $ac_status); } >/dev/null; then
4174  if test -s conftest.err; then
4175    ac_cpp_err=$ac_c_preproc_warn_flag
4176  else
4177    ac_cpp_err=
4178  fi
4179else
4180  ac_cpp_err=yes
4181fi
4182if test -z "$ac_cpp_err"; then
4183  :
4184else
4185  echo "$as_me: failed program was:" >&5
4186sed 's/^/| /' conftest.$ac_ext >&5
4187
4188  # Broken: fails on valid input.
4189continue
4190fi
4191rm -f conftest.err conftest.$ac_ext
4192
4193  # OK, works on sane cases.  Now check whether non-existent headers
4194  # can be detected and how.
4195  cat >conftest.$ac_ext <<_ACEOF
4196#line $LINENO "configure"
4197/* confdefs.h.  */
4198_ACEOF
4199cat confdefs.h >>conftest.$ac_ext
4200cat >>conftest.$ac_ext <<_ACEOF
4201/* end confdefs.h.  */
4202#include <ac_nonexistent.h>
4203_ACEOF
4204if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4205  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4206  ac_status=$?
4207  grep -v '^ *+' conftest.er1 >conftest.err
4208  rm -f conftest.er1
4209  cat conftest.err >&5
4210  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211  (exit $ac_status); } >/dev/null; then
4212  if test -s conftest.err; then
4213    ac_cpp_err=$ac_c_preproc_warn_flag
4214  else
4215    ac_cpp_err=
4216  fi
4217else
4218  ac_cpp_err=yes
4219fi
4220if test -z "$ac_cpp_err"; then
4221  # Broken: success on invalid input.
4222continue
4223else
4224  echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4227  # Passes both tests.
4228ac_preproc_ok=:
4229break
4230fi
4231rm -f conftest.err conftest.$ac_ext
4232
4233done
4234# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4235rm -f conftest.err conftest.$ac_ext
4236if $ac_preproc_ok; then
4237  break
4238fi
4239
4240    done
4241    ac_cv_prog_CPP=$CPP
4242
4243fi
4244  CPP=$ac_cv_prog_CPP
4245else
4246  ac_cv_prog_CPP=$CPP
4247fi
4248echo "$as_me:$LINENO: result: $CPP" >&5
4249echo "${ECHO_T}$CPP" >&6
4250ac_preproc_ok=false
4251for ac_c_preproc_warn_flag in '' yes
4252do
4253  # Use a header file that comes with gcc, so configuring glibc
4254  # with a fresh cross-compiler works.
4255  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4256  # <limits.h> exists even on freestanding compilers.
4257  # On the NeXT, cc -E runs the code through the compiler's parser,
4258  # not just through cpp. "Syntax error" is here to catch this case.
4259  cat >conftest.$ac_ext <<_ACEOF
4260#line $LINENO "configure"
4261/* confdefs.h.  */
4262_ACEOF
4263cat confdefs.h >>conftest.$ac_ext
4264cat >>conftest.$ac_ext <<_ACEOF
4265/* end confdefs.h.  */
4266#ifdef __STDC__
4267# include <limits.h>
4268#else
4269# include <assert.h>
4270#endif
4271                     Syntax error
4272_ACEOF
4273if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4274  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4275  ac_status=$?
4276  grep -v '^ *+' conftest.er1 >conftest.err
4277  rm -f conftest.er1
4278  cat conftest.err >&5
4279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280  (exit $ac_status); } >/dev/null; then
4281  if test -s conftest.err; then
4282    ac_cpp_err=$ac_c_preproc_warn_flag
4283  else
4284    ac_cpp_err=
4285  fi
4286else
4287  ac_cpp_err=yes
4288fi
4289if test -z "$ac_cpp_err"; then
4290  :
4291else
4292  echo "$as_me: failed program was:" >&5
4293sed 's/^/| /' conftest.$ac_ext >&5
4294
4295  # Broken: fails on valid input.
4296continue
4297fi
4298rm -f conftest.err conftest.$ac_ext
4299
4300  # OK, works on sane cases.  Now check whether non-existent headers
4301  # can be detected and how.
4302  cat >conftest.$ac_ext <<_ACEOF
4303#line $LINENO "configure"
4304/* confdefs.h.  */
4305_ACEOF
4306cat confdefs.h >>conftest.$ac_ext
4307cat >>conftest.$ac_ext <<_ACEOF
4308/* end confdefs.h.  */
4309#include <ac_nonexistent.h>
4310_ACEOF
4311if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4312  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4313  ac_status=$?
4314  grep -v '^ *+' conftest.er1 >conftest.err
4315  rm -f conftest.er1
4316  cat conftest.err >&5
4317  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318  (exit $ac_status); } >/dev/null; then
4319  if test -s conftest.err; then
4320    ac_cpp_err=$ac_c_preproc_warn_flag
4321  else
4322    ac_cpp_err=
4323  fi
4324else
4325  ac_cpp_err=yes
4326fi
4327if test -z "$ac_cpp_err"; then
4328  # Broken: success on invalid input.
4329continue
4330else
4331  echo "$as_me: failed program was:" >&5
4332sed 's/^/| /' conftest.$ac_ext >&5
4333
4334  # Passes both tests.
4335ac_preproc_ok=:
4336break
4337fi
4338rm -f conftest.err conftest.$ac_ext
4339
4340done
4341# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342rm -f conftest.err conftest.$ac_ext
4343if $ac_preproc_ok; then
4344  :
4345else
4346  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4347See \`config.log' for more details." >&5
4348echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4349See \`config.log' for more details." >&2;}
4350   { (exit 1); exit 1; }; }
4351fi
4352
4353ac_ext=c
4354ac_cpp='$CPP $CPPFLAGS'
4355ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359
4360echo "$as_me:$LINENO: checking for egrep" >&5
4361echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4362if test "${ac_cv_prog_egrep+set}" = set; then
4363  echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4366    then ac_cv_prog_egrep='grep -E'
4367    else ac_cv_prog_egrep='egrep'
4368    fi
4369fi
4370echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4371echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4372 EGREP=$ac_cv_prog_egrep
4373
4374
4375echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4376echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4377if test "${ac_cv_header_stdc+set}" = set; then
4378  echo $ECHO_N "(cached) $ECHO_C" >&6
4379else
4380  cat >conftest.$ac_ext <<_ACEOF
4381#line $LINENO "configure"
4382/* confdefs.h.  */
4383_ACEOF
4384cat confdefs.h >>conftest.$ac_ext
4385cat >>conftest.$ac_ext <<_ACEOF
4386/* end confdefs.h.  */
4387#include <stdlib.h>
4388#include <stdarg.h>
4389#include <string.h>
4390#include <float.h>
4391
4392int
4393main ()
4394{
4395
4396  ;
4397  return 0;
4398}
4399_ACEOF
4400rm -f conftest.$ac_objext
4401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402  (eval $ac_compile) 2>&5
4403  ac_status=$?
4404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405  (exit $ac_status); } &&
4406         { ac_try='test -s conftest.$ac_objext'
4407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4408  (eval $ac_try) 2>&5
4409  ac_status=$?
4410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411  (exit $ac_status); }; }; then
4412  ac_cv_header_stdc=yes
4413else
4414  echo "$as_me: failed program was:" >&5
4415sed 's/^/| /' conftest.$ac_ext >&5
4416
4417ac_cv_header_stdc=no
4418fi
4419rm -f conftest.$ac_objext conftest.$ac_ext
4420
4421if test $ac_cv_header_stdc = yes; then
4422  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4423  cat >conftest.$ac_ext <<_ACEOF
4424#line $LINENO "configure"
4425/* confdefs.h.  */
4426_ACEOF
4427cat confdefs.h >>conftest.$ac_ext
4428cat >>conftest.$ac_ext <<_ACEOF
4429/* end confdefs.h.  */
4430#include <string.h>
4431
4432_ACEOF
4433if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4434  $EGREP "memchr" >/dev/null 2>&1; then
4435  :
4436else
4437  ac_cv_header_stdc=no
4438fi
4439rm -f conftest*
4440
4441fi
4442
4443if test $ac_cv_header_stdc = yes; then
4444  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4445  cat >conftest.$ac_ext <<_ACEOF
4446#line $LINENO "configure"
4447/* confdefs.h.  */
4448_ACEOF
4449cat confdefs.h >>conftest.$ac_ext
4450cat >>conftest.$ac_ext <<_ACEOF
4451/* end confdefs.h.  */
4452#include <stdlib.h>
4453
4454_ACEOF
4455if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4456  $EGREP "free" >/dev/null 2>&1; then
4457  :
4458else
4459  ac_cv_header_stdc=no
4460fi
4461rm -f conftest*
4462
4463fi
4464
4465if test $ac_cv_header_stdc = yes; then
4466  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4467  if test "$cross_compiling" = yes; then
4468  :
4469else
4470  cat >conftest.$ac_ext <<_ACEOF
4471#line $LINENO "configure"
4472/* confdefs.h.  */
4473_ACEOF
4474cat confdefs.h >>conftest.$ac_ext
4475cat >>conftest.$ac_ext <<_ACEOF
4476/* end confdefs.h.  */
4477#include <ctype.h>
4478#if ((' ' & 0x0FF) == 0x020)
4479# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4480# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4481#else
4482# define ISLOWER(c) \
4483                   (('a' <= (c) && (c) <= 'i') \
4484                     || ('j' <= (c) && (c) <= 'r') \
4485                     || ('s' <= (c) && (c) <= 'z'))
4486# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4487#endif
4488
4489#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4490int
4491main ()
4492{
4493  int i;
4494  for (i = 0; i < 256; i++)
4495    if (XOR (islower (i), ISLOWER (i))
4496        || toupper (i) != TOUPPER (i))
4497      exit(2);
4498  exit (0);
4499}
4500_ACEOF
4501rm -f conftest$ac_exeext
4502if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4503  (eval $ac_link) 2>&5
4504  ac_status=$?
4505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4508  (eval $ac_try) 2>&5
4509  ac_status=$?
4510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511  (exit $ac_status); }; }; then
4512  :
4513else
4514  echo "$as_me: program exited with status $ac_status" >&5
4515echo "$as_me: failed program was:" >&5
4516sed 's/^/| /' conftest.$ac_ext >&5
4517
4518( exit $ac_status )
4519ac_cv_header_stdc=no
4520fi
4521rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4522fi
4523fi
4524fi
4525echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4526echo "${ECHO_T}$ac_cv_header_stdc" >&6
4527if test $ac_cv_header_stdc = yes; then
4528
4529cat >>confdefs.h <<\_ACEOF
4530#define STDC_HEADERS 1
4531_ACEOF
4532
4533fi
4534
4535# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4546                  inttypes.h stdint.h unistd.h
4547do
4548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4549echo "$as_me:$LINENO: checking for $ac_header" >&5
4550echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4551if eval "test \"\${$as_ac_Header+set}\" = set"; then
4552  echo $ECHO_N "(cached) $ECHO_C" >&6
4553else
4554  cat >conftest.$ac_ext <<_ACEOF
4555#line $LINENO "configure"
4556/* confdefs.h.  */
4557_ACEOF
4558cat confdefs.h >>conftest.$ac_ext
4559cat >>conftest.$ac_ext <<_ACEOF
4560/* end confdefs.h.  */
4561$ac_includes_default
4562
4563#include <$ac_header>
4564_ACEOF
4565rm -f conftest.$ac_objext
4566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4567  (eval $ac_compile) 2>&5
4568  ac_status=$?
4569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570  (exit $ac_status); } &&
4571         { ac_try='test -s conftest.$ac_objext'
4572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573  (eval $ac_try) 2>&5
4574  ac_status=$?
4575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576  (exit $ac_status); }; }; then
4577  eval "$as_ac_Header=yes"
4578else
4579  echo "$as_me: failed program was:" >&5
4580sed 's/^/| /' conftest.$ac_ext >&5
4581
4582eval "$as_ac_Header=no"
4583fi
4584rm -f conftest.$ac_objext conftest.$ac_ext
4585fi
4586echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4587echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4588if test `eval echo '${'$as_ac_Header'}'` = yes; then
4589  cat >>confdefs.h <<_ACEOF
4590#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4591_ACEOF
4592
4593fi
4594
4595done
4596
4597
4598
4599for ac_header in dlfcn.h
4600do
4601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4602if eval "test \"\${$as_ac_Header+set}\" = set"; then
4603  echo "$as_me:$LINENO: checking for $ac_header" >&5
4604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4605if eval "test \"\${$as_ac_Header+set}\" = set"; then
4606  echo $ECHO_N "(cached) $ECHO_C" >&6
4607fi
4608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4610else
4611  # Is the header compilable?
4612echo "$as_me:$LINENO: checking $ac_header usability" >&5
4613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4614cat >conftest.$ac_ext <<_ACEOF
4615#line $LINENO "configure"
4616/* confdefs.h.  */
4617_ACEOF
4618cat confdefs.h >>conftest.$ac_ext
4619cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h.  */
4621$ac_includes_default
4622#include <$ac_header>
4623_ACEOF
4624rm -f conftest.$ac_objext
4625if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4626  (eval $ac_compile) 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); } &&
4630         { ac_try='test -s conftest.$ac_objext'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; }; then
4636  ac_header_compiler=yes
4637else
4638  echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641ac_header_compiler=no
4642fi
4643rm -f conftest.$ac_objext conftest.$ac_ext
4644echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4645echo "${ECHO_T}$ac_header_compiler" >&6
4646
4647# Is the header present?
4648echo "$as_me:$LINENO: checking $ac_header presence" >&5
4649echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4650cat >conftest.$ac_ext <<_ACEOF
4651#line $LINENO "configure"
4652/* confdefs.h.  */
4653_ACEOF
4654cat confdefs.h >>conftest.$ac_ext
4655cat >>conftest.$ac_ext <<_ACEOF
4656/* end confdefs.h.  */
4657#include <$ac_header>
4658_ACEOF
4659if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4660  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4661  ac_status=$?
4662  grep -v '^ *+' conftest.er1 >conftest.err
4663  rm -f conftest.er1
4664  cat conftest.err >&5
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); } >/dev/null; then
4667  if test -s conftest.err; then
4668    ac_cpp_err=$ac_c_preproc_warn_flag
4669  else
4670    ac_cpp_err=
4671  fi
4672else
4673  ac_cpp_err=yes
4674fi
4675if test -z "$ac_cpp_err"; then
4676  ac_header_preproc=yes
4677else
4678  echo "$as_me: failed program was:" >&5
4679sed 's/^/| /' conftest.$ac_ext >&5
4680
4681  ac_header_preproc=no
4682fi
4683rm -f conftest.err conftest.$ac_ext
4684echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4685echo "${ECHO_T}$ac_header_preproc" >&6
4686
4687# So?  What about this header?
4688case $ac_header_compiler:$ac_header_preproc in
4689  yes:no )
4690    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4691echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4692    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4693echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4694    (
4695      cat <<\_ASBOX
4696## ------------------------------------ ##
4697## Report this to bug-autoconf@gnu.org. ##
4698## ------------------------------------ ##
4699_ASBOX
4700    ) |
4701      sed "s/^/$as_me: WARNING:     /" >&2
4702    ;;
4703  no:yes )
4704    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4705echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4706    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4707echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4708    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4709echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4710    (
4711      cat <<\_ASBOX
4712## ------------------------------------ ##
4713## Report this to bug-autoconf@gnu.org. ##
4714## ------------------------------------ ##
4715_ASBOX
4716    ) |
4717      sed "s/^/$as_me: WARNING:     /" >&2
4718    ;;
4719esac
4720echo "$as_me:$LINENO: checking for $ac_header" >&5
4721echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4722if eval "test \"\${$as_ac_Header+set}\" = set"; then
4723  echo $ECHO_N "(cached) $ECHO_C" >&6
4724else
4725  eval "$as_ac_Header=$ac_header_preproc"
4726fi
4727echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4728echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4729
4730fi
4731if test `eval echo '${'$as_ac_Header'}'` = yes; then
4732  cat >>confdefs.h <<_ACEOF
4733#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4734_ACEOF
4735
4736fi
4737
4738done
4739
4740
4741
4742
4743
4744
4745# Only perform the check for file, if the check method requires it
4746case $deplibs_check_method in
4747file_magic*)
4748  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4749    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4750echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4751if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4752  echo $ECHO_N "(cached) $ECHO_C" >&6
4753else
4754  case $MAGIC_CMD in
4755  /*)
4756  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4757  ;;
4758  ?:/*)
4759  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4760  ;;
4761  *)
4762  ac_save_MAGIC_CMD="$MAGIC_CMD"
4763  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4764  ac_dummy="/usr/bin:$PATH"
4765  for ac_dir in $ac_dummy; do
4766    test -z "$ac_dir" && ac_dir=.
4767    if test -f $ac_dir/${ac_tool_prefix}file; then
4768      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4769      if test -n "$file_magic_test_file"; then
4770	case $deplibs_check_method in
4771	"file_magic "*)
4772	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4773	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4774	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4775	    egrep "$file_magic_regex" > /dev/null; then
4776	    :
4777	  else
4778	    cat <<EOF 1>&2
4779
4780*** Warning: the command libtool uses to detect shared libraries,
4781*** $file_magic_cmd, produces output that libtool cannot recognize.
4782*** The result is that libtool may fail to recognize shared libraries
4783*** as such.  This will affect the creation of libtool libraries that
4784*** depend on shared libraries, but programs linked with such libtool
4785*** libraries will work regardless of this problem.  Nevertheless, you
4786*** may want to report the problem to your system manager and/or to
4787*** bug-libtool@gnu.org
4788
4789EOF
4790	  fi ;;
4791	esac
4792      fi
4793      break
4794    fi
4795  done
4796  IFS="$ac_save_ifs"
4797  MAGIC_CMD="$ac_save_MAGIC_CMD"
4798  ;;
4799esac
4800fi
4801
4802MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4803if test -n "$MAGIC_CMD"; then
4804  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4805echo "${ECHO_T}$MAGIC_CMD" >&6
4806else
4807  echo "$as_me:$LINENO: result: no" >&5
4808echo "${ECHO_T}no" >&6
4809fi
4810
4811if test -z "$lt_cv_path_MAGIC_CMD"; then
4812  if test -n "$ac_tool_prefix"; then
4813    echo "$as_me:$LINENO: checking for file" >&5
4814echo $ECHO_N "checking for file... $ECHO_C" >&6
4815if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4816  echo $ECHO_N "(cached) $ECHO_C" >&6
4817else
4818  case $MAGIC_CMD in
4819  /*)
4820  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4821  ;;
4822  ?:/*)
4823  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4824  ;;
4825  *)
4826  ac_save_MAGIC_CMD="$MAGIC_CMD"
4827  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4828  ac_dummy="/usr/bin:$PATH"
4829  for ac_dir in $ac_dummy; do
4830    test -z "$ac_dir" && ac_dir=.
4831    if test -f $ac_dir/file; then
4832      lt_cv_path_MAGIC_CMD="$ac_dir/file"
4833      if test -n "$file_magic_test_file"; then
4834	case $deplibs_check_method in
4835	"file_magic "*)
4836	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4837	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4838	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4839	    egrep "$file_magic_regex" > /dev/null; then
4840	    :
4841	  else
4842	    cat <<EOF 1>&2
4843
4844*** Warning: the command libtool uses to detect shared libraries,
4845*** $file_magic_cmd, produces output that libtool cannot recognize.
4846*** The result is that libtool may fail to recognize shared libraries
4847*** as such.  This will affect the creation of libtool libraries that
4848*** depend on shared libraries, but programs linked with such libtool
4849*** libraries will work regardless of this problem.  Nevertheless, you
4850*** may want to report the problem to your system manager and/or to
4851*** bug-libtool@gnu.org
4852
4853EOF
4854	  fi ;;
4855	esac
4856      fi
4857      break
4858    fi
4859  done
4860  IFS="$ac_save_ifs"
4861  MAGIC_CMD="$ac_save_MAGIC_CMD"
4862  ;;
4863esac
4864fi
4865
4866MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4867if test -n "$MAGIC_CMD"; then
4868  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4869echo "${ECHO_T}$MAGIC_CMD" >&6
4870else
4871  echo "$as_me:$LINENO: result: no" >&5
4872echo "${ECHO_T}no" >&6
4873fi
4874
4875  else
4876    MAGIC_CMD=:
4877  fi
4878fi
4879
4880  fi
4881  ;;
4882esac
4883
4884if test -n "$ac_tool_prefix"; then
4885  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4886set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4887echo "$as_me:$LINENO: checking for $ac_word" >&5
4888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4889if test "${ac_cv_prog_RANLIB+set}" = set; then
4890  echo $ECHO_N "(cached) $ECHO_C" >&6
4891else
4892  if test -n "$RANLIB"; then
4893  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4894else
4895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896for as_dir in $PATH
4897do
4898  IFS=$as_save_IFS
4899  test -z "$as_dir" && as_dir=.
4900  for ac_exec_ext in '' $ac_executable_extensions; do
4901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4904    break 2
4905  fi
4906done
4907done
4908
4909fi
4910fi
4911RANLIB=$ac_cv_prog_RANLIB
4912if test -n "$RANLIB"; then
4913  echo "$as_me:$LINENO: result: $RANLIB" >&5
4914echo "${ECHO_T}$RANLIB" >&6
4915else
4916  echo "$as_me:$LINENO: result: no" >&5
4917echo "${ECHO_T}no" >&6
4918fi
4919
4920fi
4921if test -z "$ac_cv_prog_RANLIB"; then
4922  ac_ct_RANLIB=$RANLIB
4923  # Extract the first word of "ranlib", so it can be a program name with args.
4924set dummy ranlib; ac_word=$2
4925echo "$as_me:$LINENO: checking for $ac_word" >&5
4926echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4927if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4928  echo $ECHO_N "(cached) $ECHO_C" >&6
4929else
4930  if test -n "$ac_ct_RANLIB"; then
4931  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4932else
4933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936  IFS=$as_save_IFS
4937  test -z "$as_dir" && as_dir=.
4938  for ac_exec_ext in '' $ac_executable_extensions; do
4939  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940    ac_cv_prog_ac_ct_RANLIB="ranlib"
4941    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942    break 2
4943  fi
4944done
4945done
4946
4947  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4948fi
4949fi
4950ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4951if test -n "$ac_ct_RANLIB"; then
4952  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4953echo "${ECHO_T}$ac_ct_RANLIB" >&6
4954else
4955  echo "$as_me:$LINENO: result: no" >&5
4956echo "${ECHO_T}no" >&6
4957fi
4958
4959  RANLIB=$ac_ct_RANLIB
4960else
4961  RANLIB="$ac_cv_prog_RANLIB"
4962fi
4963
4964if test -n "$ac_tool_prefix"; then
4965  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4966set dummy ${ac_tool_prefix}strip; ac_word=$2
4967echo "$as_me:$LINENO: checking for $ac_word" >&5
4968echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4969if test "${ac_cv_prog_STRIP+set}" = set; then
4970  echo $ECHO_N "(cached) $ECHO_C" >&6
4971else
4972  if test -n "$STRIP"; then
4973  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980  for ac_exec_ext in '' $ac_executable_extensions; do
4981  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4983    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987done
4988
4989fi
4990fi
4991STRIP=$ac_cv_prog_STRIP
4992if test -n "$STRIP"; then
4993  echo "$as_me:$LINENO: result: $STRIP" >&5
4994echo "${ECHO_T}$STRIP" >&6
4995else
4996  echo "$as_me:$LINENO: result: no" >&5
4997echo "${ECHO_T}no" >&6
4998fi
4999
5000fi
5001if test -z "$ac_cv_prog_STRIP"; then
5002  ac_ct_STRIP=$STRIP
5003  # Extract the first word of "strip", so it can be a program name with args.
5004set dummy strip; ac_word=$2
5005echo "$as_me:$LINENO: checking for $ac_word" >&5
5006echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5007if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5008  echo $ECHO_N "(cached) $ECHO_C" >&6
5009else
5010  if test -n "$ac_ct_STRIP"; then
5011  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5012else
5013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016  IFS=$as_save_IFS
5017  test -z "$as_dir" && as_dir=.
5018  for ac_exec_ext in '' $ac_executable_extensions; do
5019  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020    ac_cv_prog_ac_ct_STRIP="strip"
5021    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022    break 2
5023  fi
5024done
5025done
5026
5027  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5028fi
5029fi
5030ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5031if test -n "$ac_ct_STRIP"; then
5032  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5033echo "${ECHO_T}$ac_ct_STRIP" >&6
5034else
5035  echo "$as_me:$LINENO: result: no" >&5
5036echo "${ECHO_T}no" >&6
5037fi
5038
5039  STRIP=$ac_ct_STRIP
5040else
5041  STRIP="$ac_cv_prog_STRIP"
5042fi
5043
5044
5045enable_dlopen=no
5046enable_win32_dll=no
5047
5048# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5049if test "${enable_libtool_lock+set}" = set; then
5050  enableval="$enable_libtool_lock"
5051
5052fi;
5053test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5054
5055# Some flags need to be propagated to the compiler or linker for good
5056# libtool support.
5057case $host in
5058*-*-irix6*)
5059  # Find out which ABI we are using.
5060  echo '#line 5060 "configure"' > conftest.$ac_ext
5061  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5062  (eval $ac_compile) 2>&5
5063  ac_status=$?
5064  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5065  (exit $ac_status); }; then
5066    case `/usr/bin/file conftest.$ac_objext` in
5067    *32-bit*)
5068      LD="${LD-ld} -32"
5069      ;;
5070    *N32*)
5071      LD="${LD-ld} -n32"
5072      ;;
5073    *64-bit*)
5074      LD="${LD-ld} -64"
5075      ;;
5076    esac
5077  fi
5078  rm -rf conftest*
5079  ;;
5080
5081*-*-sco3.2v5*)
5082  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5083  SAVE_CFLAGS="$CFLAGS"
5084  CFLAGS="$CFLAGS -belf"
5085  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5086echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5087if test "${lt_cv_cc_needs_belf+set}" = set; then
5088  echo $ECHO_N "(cached) $ECHO_C" >&6
5089else
5090
5091
5092     ac_ext=c
5093ac_cpp='$CPP $CPPFLAGS'
5094ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5095ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5096ac_compiler_gnu=$ac_cv_c_compiler_gnu
5097
5098     cat >conftest.$ac_ext <<_ACEOF
5099#line $LINENO "configure"
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105
5106int
5107main ()
5108{
5109
5110  ;
5111  return 0;
5112}
5113_ACEOF
5114rm -f conftest.$ac_objext conftest$ac_exeext
5115if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5116  (eval $ac_link) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); } &&
5120         { ac_try='test -s conftest$ac_exeext'
5121  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5122  (eval $ac_try) 2>&5
5123  ac_status=$?
5124  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125  (exit $ac_status); }; }; then
5126  lt_cv_cc_needs_belf=yes
5127else
5128  echo "$as_me: failed program was:" >&5
5129sed 's/^/| /' conftest.$ac_ext >&5
5130
5131lt_cv_cc_needs_belf=no
5132fi
5133rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5134     ac_ext=c
5135ac_cpp='$CPP $CPPFLAGS'
5136ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5137ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5138ac_compiler_gnu=$ac_cv_c_compiler_gnu
5139
5140fi
5141echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5142echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5143  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5144    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5145    CFLAGS="$SAVE_CFLAGS"
5146  fi
5147  ;;
5148
5149
5150esac
5151
5152# Sed substitution that helps us do robust quoting.  It backslashifies
5153# metacharacters that are still active within double-quoted strings.
5154Xsed='sed -e s/^X//'
5155sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5156
5157# Same as above, but do not quote variable references.
5158double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5159
5160# Sed substitution to delay expansion of an escaped shell variable in a
5161# double_quote_subst'ed string.
5162delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5163
5164# Constants:
5165rm="rm -f"
5166
5167# Global variables:
5168default_ofile=libtool
5169can_build_shared=yes
5170
5171# All known linkers require a `.a' archive for static linking (except M$VC,
5172# which needs '.lib').
5173libext=a
5174ltmain="$ac_aux_dir/ltmain.sh"
5175ofile="$default_ofile"
5176with_gnu_ld="$lt_cv_prog_gnu_ld"
5177need_locks="$enable_libtool_lock"
5178
5179old_CC="$CC"
5180old_CFLAGS="$CFLAGS"
5181
5182# Set sane defaults for various variables
5183test -z "$AR" && AR=ar
5184test -z "$AR_FLAGS" && AR_FLAGS=cru
5185test -z "$AS" && AS=as
5186test -z "$CC" && CC=cc
5187test -z "$DLLTOOL" && DLLTOOL=dlltool
5188test -z "$LD" && LD=ld
5189test -z "$LN_S" && LN_S="ln -s"
5190test -z "$MAGIC_CMD" && MAGIC_CMD=file
5191test -z "$NM" && NM=nm
5192test -z "$OBJDUMP" && OBJDUMP=objdump
5193test -z "$RANLIB" && RANLIB=:
5194test -z "$STRIP" && STRIP=:
5195test -z "$ac_objext" && ac_objext=o
5196
5197if test x"$host" != x"$build"; then
5198  ac_tool_prefix=${host_alias}-
5199else
5200  ac_tool_prefix=
5201fi
5202
5203# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5204case $host_os in
5205linux-gnu*) ;;
5206linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5207esac
5208
5209case $host_os in
5210aix3*)
5211  # AIX sometimes has problems with the GCC collect2 program.  For some
5212  # reason, if we set the COLLECT_NAMES environment variable, the problems
5213  # vanish in a puff of smoke.
5214  if test "X${COLLECT_NAMES+set}" != Xset; then
5215    COLLECT_NAMES=
5216    export COLLECT_NAMES
5217  fi
5218  ;;
5219esac
5220
5221# Determine commands to create old-style static archives.
5222old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5223old_postinstall_cmds='chmod 644 $oldlib'
5224old_postuninstall_cmds=
5225
5226if test -n "$RANLIB"; then
5227  case $host_os in
5228  openbsd*)
5229    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5230    ;;
5231  *)
5232    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5233    ;;
5234  esac
5235  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5236fi
5237
5238# Allow CC to be a program name with arguments.
5239set dummy $CC
5240compiler="$2"
5241
5242echo "$as_me:$LINENO: checking for objdir" >&5
5243echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5244rm -f .libs 2>/dev/null
5245mkdir .libs 2>/dev/null
5246if test -d .libs; then
5247  objdir=.libs
5248else
5249  # MS-DOS does not allow filenames that begin with a dot.
5250  objdir=_libs
5251fi
5252rmdir .libs 2>/dev/null
5253echo "$as_me:$LINENO: result: $objdir" >&5
5254echo "${ECHO_T}$objdir" >&6
5255
5256
5257
5258# Check whether --with-pic or --without-pic was given.
5259if test "${with_pic+set}" = set; then
5260  withval="$with_pic"
5261  pic_mode="$withval"
5262else
5263  pic_mode=default
5264fi;
5265test -z "$pic_mode" && pic_mode=default
5266
5267# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5268# in isolation, and that seeing it set (from the cache) indicates that
5269# the associated values are set (in the cache) correctly too.
5270echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5271echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5272if test "${lt_cv_prog_cc_pic+set}" = set; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275   lt_cv_prog_cc_pic=
5276  lt_cv_prog_cc_shlib=
5277  lt_cv_prog_cc_wl=
5278  lt_cv_prog_cc_static=
5279  lt_cv_prog_cc_no_builtin=
5280  lt_cv_prog_cc_can_build_shared=$can_build_shared
5281
5282  if test "$GCC" = yes; then
5283    lt_cv_prog_cc_wl='-Wl,'
5284    lt_cv_prog_cc_static='-static'
5285
5286    case $host_os in
5287    aix*)
5288      # Below there is a dirty hack to force normal static linking with -ldl
5289      # The problem is because libdl dynamically linked with both libc and
5290      # libC (AIX C++ library), which obviously doesn't included in libraries
5291      # list by gcc. This cause undefined symbols with -static flags.
5292      # This hack allows C programs to be linked with "-static -ldl", but
5293      # not sure about C++ programs.
5294      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5295      ;;
5296    amigaos*)
5297      # FIXME: we need at least 68020 code to build shared libraries, but
5298      # adding the `-m68020' flag to GCC prevents building anything better,
5299      # like `-m68040'.
5300      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5301      ;;
5302    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5303      # PIC is the default for these OSes.
5304      ;;
5305    darwin* | rhapsody*)
5306      # PIC is the default on this platform
5307      # Common symbols not allowed in MH_DYLIB files
5308      lt_cv_prog_cc_pic='-fno-common'
5309      ;;
5310    cygwin* | mingw* | pw32* | os2*)
5311      # This hack is so that the source file can tell whether it is being
5312      # built for inclusion in a dll (and should export symbols for example).
5313      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5314      ;;
5315    sysv4*MP*)
5316      if test -d /usr/nec; then
5317	 lt_cv_prog_cc_pic=-Kconform_pic
5318      fi
5319      ;;
5320    *)
5321      lt_cv_prog_cc_pic='-fPIC'
5322      ;;
5323    esac
5324  else
5325    # PORTME Check for PIC flags for the system compiler.
5326    case $host_os in
5327    aix3* | aix4* | aix5*)
5328      lt_cv_prog_cc_wl='-Wl,'
5329      # All AIX code is PIC.
5330      if test "$host_cpu" = ia64; then
5331	# AIX 5 now supports IA64 processor
5332	lt_cv_prog_cc_static='-Bstatic'
5333      else
5334	lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5335      fi
5336      ;;
5337
5338    hpux9* | hpux10* | hpux11*)
5339      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5340      lt_cv_prog_cc_wl='-Wl,'
5341      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5342      lt_cv_prog_cc_pic='+Z'
5343      ;;
5344
5345    irix5* | irix6* | nonstopux*)
5346      lt_cv_prog_cc_wl='-Wl,'
5347      lt_cv_prog_cc_static='-non_shared'
5348      # PIC (with -KPIC) is the default.
5349      ;;
5350
5351    cygwin* | mingw* | pw32* | os2*)
5352      # This hack is so that the source file can tell whether it is being
5353      # built for inclusion in a dll (and should export symbols for example).
5354      lt_cv_prog_cc_pic='-DDLL_EXPORT'
5355      ;;
5356
5357    newsos6)
5358      lt_cv_prog_cc_pic='-KPIC'
5359      lt_cv_prog_cc_static='-Bstatic'
5360      ;;
5361
5362    osf3* | osf4* | osf5*)
5363      # All OSF/1 code is PIC.
5364      lt_cv_prog_cc_wl='-Wl,'
5365      lt_cv_prog_cc_static='-non_shared'
5366      ;;
5367
5368    sco3.2v5*)
5369      lt_cv_prog_cc_pic='-Kpic'
5370      lt_cv_prog_cc_static='-dn'
5371      lt_cv_prog_cc_shlib='-belf'
5372      ;;
5373
5374    solaris*)
5375      lt_cv_prog_cc_pic='-KPIC'
5376      lt_cv_prog_cc_static='-Bstatic'
5377      lt_cv_prog_cc_wl='-Wl,'
5378      ;;
5379
5380    sunos4*)
5381      lt_cv_prog_cc_pic='-PIC'
5382      lt_cv_prog_cc_static='-Bstatic'
5383      lt_cv_prog_cc_wl='-Qoption ld '
5384      ;;
5385
5386    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5387      lt_cv_prog_cc_pic='-KPIC'
5388      lt_cv_prog_cc_static='-Bstatic'
5389      lt_cv_prog_cc_wl='-Wl,'
5390      ;;
5391
5392    uts4*)
5393      lt_cv_prog_cc_pic='-pic'
5394      lt_cv_prog_cc_static='-Bstatic'
5395      ;;
5396
5397    sysv4*MP*)
5398      if test -d /usr/nec ;then
5399	lt_cv_prog_cc_pic='-Kconform_pic'
5400	lt_cv_prog_cc_static='-Bstatic'
5401      fi
5402      ;;
5403
5404    *)
5405      lt_cv_prog_cc_can_build_shared=no
5406      ;;
5407    esac
5408  fi
5409
5410fi
5411
5412if test -z "$lt_cv_prog_cc_pic"; then
5413  echo "$as_me:$LINENO: result: none" >&5
5414echo "${ECHO_T}none" >&6
5415else
5416  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5417echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5418
5419  # Check to make sure the pic_flag actually works.
5420  echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5421echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5422  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5423  echo $ECHO_N "(cached) $ECHO_C" >&6
5424else
5425      save_CFLAGS="$CFLAGS"
5426    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5427    cat >conftest.$ac_ext <<_ACEOF
5428#line $LINENO "configure"
5429/* confdefs.h.  */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h.  */
5434
5435int
5436main ()
5437{
5438
5439  ;
5440  return 0;
5441}
5442_ACEOF
5443rm -f conftest.$ac_objext
5444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5445  (eval $ac_compile) 2>&5
5446  ac_status=$?
5447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5448  (exit $ac_status); } &&
5449         { ac_try='test -s conftest.$ac_objext'
5450  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5451  (eval $ac_try) 2>&5
5452  ac_status=$?
5453  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454  (exit $ac_status); }; }; then
5455        case $host_os in
5456      hpux9* | hpux10* | hpux11*)
5457	# On HP-UX, both CC and GCC only warn that PIC is supported... then
5458	# they create non-PIC objects.  So, if there were any warnings, we
5459	# assume that PIC is not supported.
5460	if test -s conftest.err; then
5461	  lt_cv_prog_cc_pic_works=no
5462	else
5463	  lt_cv_prog_cc_pic_works=yes
5464	fi
5465	;;
5466      *)
5467	lt_cv_prog_cc_pic_works=yes
5468	;;
5469      esac
5470
5471else
5472  echo "$as_me: failed program was:" >&5
5473sed 's/^/| /' conftest.$ac_ext >&5
5474
5475      lt_cv_prog_cc_pic_works=no
5476
5477fi
5478rm -f conftest.$ac_objext conftest.$ac_ext
5479    CFLAGS="$save_CFLAGS"
5480
5481fi
5482
5483
5484  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5485    lt_cv_prog_cc_pic=
5486    lt_cv_prog_cc_can_build_shared=no
5487  else
5488    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5489  fi
5490
5491  echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5492echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5493fi
5494
5495# Check for any special shared library compilation flags.
5496if test -n "$lt_cv_prog_cc_shlib"; then
5497  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5498echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5499  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$lt_cv_prog_cc_shlib[ 	]" >/dev/null; then :
5500  else
5501   { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5502echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5503    lt_cv_prog_cc_can_build_shared=no
5504  fi
5505fi
5506
5507echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5508echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5509if test "${lt_cv_prog_cc_static_works+set}" = set; then
5510  echo $ECHO_N "(cached) $ECHO_C" >&6
5511else
5512    lt_cv_prog_cc_static_works=no
5513  save_LDFLAGS="$LDFLAGS"
5514  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5515  cat >conftest.$ac_ext <<_ACEOF
5516#line $LINENO "configure"
5517/* confdefs.h.  */
5518_ACEOF
5519cat confdefs.h >>conftest.$ac_ext
5520cat >>conftest.$ac_ext <<_ACEOF
5521/* end confdefs.h.  */
5522
5523int
5524main ()
5525{
5526
5527  ;
5528  return 0;
5529}
5530_ACEOF
5531rm -f conftest.$ac_objext conftest$ac_exeext
5532if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5533  (eval $ac_link) 2>&5
5534  ac_status=$?
5535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536  (exit $ac_status); } &&
5537         { ac_try='test -s conftest$ac_exeext'
5538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5539  (eval $ac_try) 2>&5
5540  ac_status=$?
5541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542  (exit $ac_status); }; }; then
5543  lt_cv_prog_cc_static_works=yes
5544else
5545  echo "$as_me: failed program was:" >&5
5546sed 's/^/| /' conftest.$ac_ext >&5
5547
5548fi
5549rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5550  LDFLAGS="$save_LDFLAGS"
5551
5552fi
5553
5554
5555# Belt *and* braces to stop my trousers falling down:
5556test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5557echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5558echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5559
5560pic_flag="$lt_cv_prog_cc_pic"
5561special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5562wl="$lt_cv_prog_cc_wl"
5563link_static_flag="$lt_cv_prog_cc_static"
5564no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5565can_build_shared="$lt_cv_prog_cc_can_build_shared"
5566
5567
5568# Check to see if options -o and -c are simultaneously supported by compiler
5569echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5570echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5571if test "${lt_cv_compiler_c_o+set}" = set; then
5572  echo $ECHO_N "(cached) $ECHO_C" >&6
5573else
5574
5575$rm -r conftest 2>/dev/null
5576mkdir conftest
5577cd conftest
5578echo "int some_variable = 0;" > conftest.$ac_ext
5579mkdir out
5580# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5581# that will create temporary files in the current directory regardless of
5582# the output directory.  Thus, making CWD read-only will cause this test
5583# to fail, enabling locking or at least warning the user not to do parallel
5584# builds.
5585chmod -w .
5586save_CFLAGS="$CFLAGS"
5587CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5588compiler_c_o=no
5589if { (eval echo configure:5589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5590  # The compiler can only warn and ignore the option if not recognized
5591  # So say no if there are warnings
5592  if test -s out/conftest.err; then
5593    lt_cv_compiler_c_o=no
5594  else
5595    lt_cv_compiler_c_o=yes
5596  fi
5597else
5598  # Append any errors to the config.log.
5599  cat out/conftest.err 1>&5
5600  lt_cv_compiler_c_o=no
5601fi
5602CFLAGS="$save_CFLAGS"
5603chmod u+w .
5604$rm conftest* out/*
5605rmdir out
5606cd ..
5607rmdir conftest
5608$rm -r conftest 2>/dev/null
5609
5610fi
5611
5612compiler_c_o=$lt_cv_compiler_c_o
5613echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5614echo "${ECHO_T}$compiler_c_o" >&6
5615
5616if test x"$compiler_c_o" = x"yes"; then
5617  # Check to see if we can write to a .lo
5618  echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5619echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5620  if test "${lt_cv_compiler_o_lo+set}" = set; then
5621  echo $ECHO_N "(cached) $ECHO_C" >&6
5622else
5623
5624  lt_cv_compiler_o_lo=no
5625  save_CFLAGS="$CFLAGS"
5626  CFLAGS="$CFLAGS -c -o conftest.lo"
5627  save_objext="$ac_objext"
5628  ac_objext=lo
5629  cat >conftest.$ac_ext <<_ACEOF
5630#line $LINENO "configure"
5631/* confdefs.h.  */
5632_ACEOF
5633cat confdefs.h >>conftest.$ac_ext
5634cat >>conftest.$ac_ext <<_ACEOF
5635/* end confdefs.h.  */
5636
5637int
5638main ()
5639{
5640int some_variable = 0;
5641  ;
5642  return 0;
5643}
5644_ACEOF
5645rm -f conftest.$ac_objext
5646if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5647  (eval $ac_compile) 2>&5
5648  ac_status=$?
5649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650  (exit $ac_status); } &&
5651         { ac_try='test -s conftest.$ac_objext'
5652  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5653  (eval $ac_try) 2>&5
5654  ac_status=$?
5655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5656  (exit $ac_status); }; }; then
5657      # The compiler can only warn and ignore the option if not recognized
5658    # So say no if there are warnings
5659    if test -s conftest.err; then
5660      lt_cv_compiler_o_lo=no
5661    else
5662      lt_cv_compiler_o_lo=yes
5663    fi
5664
5665else
5666  echo "$as_me: failed program was:" >&5
5667sed 's/^/| /' conftest.$ac_ext >&5
5668
5669fi
5670rm -f conftest.$ac_objext conftest.$ac_ext
5671  ac_objext="$save_objext"
5672  CFLAGS="$save_CFLAGS"
5673
5674fi
5675
5676  compiler_o_lo=$lt_cv_compiler_o_lo
5677  echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5678echo "${ECHO_T}$compiler_o_lo" >&6
5679else
5680  compiler_o_lo=no
5681fi
5682
5683# Check to see if we can do hard links to lock some files if needed
5684hard_links="nottested"
5685if test "$compiler_c_o" = no && test "$need_locks" != no; then
5686  # do not overwrite the value of need_locks provided by the user
5687  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5688echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5689  hard_links=yes
5690  $rm conftest*
5691  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5692  touch conftest.a
5693  ln conftest.a conftest.b 2>&5 || hard_links=no
5694  ln conftest.a conftest.b 2>/dev/null && hard_links=no
5695  echo "$as_me:$LINENO: result: $hard_links" >&5
5696echo "${ECHO_T}$hard_links" >&6
5697  if test "$hard_links" = no; then
5698    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5699echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5700    need_locks=warn
5701  fi
5702else
5703  need_locks=no
5704fi
5705
5706if test "$GCC" = yes; then
5707  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5708  echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5709echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5710  echo "int some_variable = 0;" > conftest.$ac_ext
5711  save_CFLAGS="$CFLAGS"
5712  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5713  compiler_rtti_exceptions=no
5714  cat >conftest.$ac_ext <<_ACEOF
5715#line $LINENO "configure"
5716/* confdefs.h.  */
5717_ACEOF
5718cat confdefs.h >>conftest.$ac_ext
5719cat >>conftest.$ac_ext <<_ACEOF
5720/* end confdefs.h.  */
5721
5722int
5723main ()
5724{
5725int some_variable = 0;
5726  ;
5727  return 0;
5728}
5729_ACEOF
5730rm -f conftest.$ac_objext
5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5732  (eval $ac_compile) 2>&5
5733  ac_status=$?
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); } &&
5736         { ac_try='test -s conftest.$ac_objext'
5737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5738  (eval $ac_try) 2>&5
5739  ac_status=$?
5740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5741  (exit $ac_status); }; }; then
5742      # The compiler can only warn and ignore the option if not recognized
5743    # So say no if there are warnings
5744    if test -s conftest.err; then
5745      compiler_rtti_exceptions=no
5746    else
5747      compiler_rtti_exceptions=yes
5748    fi
5749
5750else
5751  echo "$as_me: failed program was:" >&5
5752sed 's/^/| /' conftest.$ac_ext >&5
5753
5754fi
5755rm -f conftest.$ac_objext conftest.$ac_ext
5756  CFLAGS="$save_CFLAGS"
5757  echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5758echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5759
5760  if test "$compiler_rtti_exceptions" = "yes"; then
5761    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5762  else
5763    no_builtin_flag=' -fno-builtin'
5764  fi
5765fi
5766
5767# See if the linker supports building shared libraries.
5768echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5769echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5770
5771allow_undefined_flag=
5772no_undefined_flag=
5773need_lib_prefix=unknown
5774need_version=unknown
5775# when you set need_version to no, make sure it does not cause -set_version
5776# flags to be left without arguments
5777archive_cmds=
5778archive_expsym_cmds=
5779old_archive_from_new_cmds=
5780old_archive_from_expsyms_cmds=
5781export_dynamic_flag_spec=
5782whole_archive_flag_spec=
5783thread_safe_flag_spec=
5784hardcode_into_libs=no
5785hardcode_libdir_flag_spec=
5786hardcode_libdir_separator=
5787hardcode_direct=no
5788hardcode_minus_L=no
5789hardcode_shlibpath_var=unsupported
5790runpath_var=
5791link_all_deplibs=unknown
5792always_export_symbols=no
5793export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5794# include_expsyms should be a list of space-separated symbols to be *always*
5795# included in the symbol list
5796include_expsyms=
5797# exclude_expsyms can be an egrep regular expression of symbols to exclude
5798# it will be wrapped by ` (' and `)$', so one must not match beginning or
5799# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5800# as well as any symbol that contains `d'.
5801exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5802# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5803# platforms (ab)use it in PIC code, but their linkers get confused if
5804# the symbol is explicitly referenced.  Since portable code cannot
5805# rely on this symbol name, it's probably fine to never include it in
5806# preloaded symbol tables.
5807extract_expsyms_cmds=
5808
5809case $host_os in
5810cygwin* | mingw* | pw32*)
5811  # FIXME: the MSVC++ port hasn't been tested in a loooong time
5812  # When not using gcc, we currently assume that we are using
5813  # Microsoft Visual C++.
5814  if test "$GCC" != yes; then
5815    with_gnu_ld=no
5816  fi
5817  ;;
5818openbsd*)
5819  with_gnu_ld=no
5820  ;;
5821esac
5822
5823ld_shlibs=yes
5824if test "$with_gnu_ld" = yes; then
5825  # If archive_cmds runs LD, not CC, wlarc should be empty
5826  wlarc='${wl}'
5827
5828  # See if GNU ld supports shared libraries.
5829  case $host_os in
5830  aix3* | aix4* | aix5*)
5831    # On AIX, the GNU linker is very broken
5832    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5833    ld_shlibs=no
5834    cat <<EOF 1>&2
5835
5836*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5837*** to be unable to reliably create shared libraries on AIX.
5838*** Therefore, libtool is disabling shared libraries support.  If you
5839*** really care for shared libraries, you may want to modify your PATH
5840*** so that a non-GNU linker is found, and then restart.
5841
5842EOF
5843    ;;
5844
5845  amigaos*)
5846    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5847    hardcode_libdir_flag_spec='-L$libdir'
5848    hardcode_minus_L=yes
5849
5850    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5851    # that the semantics of dynamic libraries on AmigaOS, at least up
5852    # to version 4, is to share data among multiple programs linked
5853    # with the same dynamic library.  Since this doesn't match the
5854    # behavior of shared libraries on other platforms, we can use
5855    # them.
5856    ld_shlibs=no
5857    ;;
5858
5859  beos*)
5860    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5861      allow_undefined_flag=unsupported
5862      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5863      # support --undefined.  This deserves some investigation.  FIXME
5864      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5865    else
5866      ld_shlibs=no
5867    fi
5868    ;;
5869
5870  cygwin* | mingw* | pw32*)
5871    # hardcode_libdir_flag_spec is actually meaningless, as there is
5872    # no search path for DLLs.
5873    hardcode_libdir_flag_spec='-L$libdir'
5874    allow_undefined_flag=unsupported
5875    always_export_symbols=yes
5876
5877    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5878      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5879      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5880      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5881      else $CC -o impgen impgen.c ; fi)~
5882      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5883
5884    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5885
5886    # cygwin and mingw dlls have different entry points and sets of symbols
5887    # to exclude.
5888    # FIXME: what about values for MSVC?
5889    dll_entry=__cygwin_dll_entry@12
5890    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5891    case $host_os in
5892    mingw*)
5893      # mingw values
5894      dll_entry=_DllMainCRTStartup@12
5895      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5896      ;;
5897    esac
5898
5899    # mingw and cygwin differ, and it's simplest to just exclude the union
5900    # of the two symbol sets.
5901    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5902
5903    # recent cygwin and mingw systems supply a stub DllMain which the user
5904    # can override, but on older systems we have to supply one (in ltdll.c)
5905    if test "x$lt_cv_need_dllmain" = "xyes"; then
5906      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5907      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
5908	test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5909    else
5910      ltdll_obj=
5911      ltdll_cmds=
5912    fi
5913
5914    # Extract the symbol export list from an `--export-all' def file,
5915    # then regenerate the def file from the symbol export list, so that
5916    # the compiled dll only exports the symbol export list.
5917    # Be careful not to strip the DATA tag left be newer dlltools.
5918    export_symbols_cmds="$ltdll_cmds"'
5919      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5920      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5921
5922    # If the export-symbols file already is a .def file (1st line
5923    # is EXPORTS), use it as is.
5924    # If DATA tags from a recent dlltool are present, honour them!
5925    archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
5926	cp $export_symbols $output_objdir/$soname-def;
5927      else
5928	echo EXPORTS > $output_objdir/$soname-def;
5929	_lt_hint=1;
5930	cat $export_symbols | while read symbol; do
5931	 set dummy \$symbol;
5932	 case \$# in
5933	   2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5934	   4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
5935	   *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5936	 esac;
5937	 _lt_hint=`expr 1 + \$_lt_hint`;
5938	done;
5939      fi~
5940      '"$ltdll_cmds"'
5941      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5942      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
5943      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
5944      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
5945      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5946    ;;
5947
5948  netbsd*)
5949    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5950      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5951      wlarc=
5952    else
5953      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5954      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5955    fi
5956    ;;
5957
5958  solaris* | sysv5*)
5959    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5960      ld_shlibs=no
5961      cat <<EOF 1>&2
5962
5963*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5964*** create shared libraries on Solaris systems.  Therefore, libtool
5965*** is disabling shared libraries support.  We urge you to upgrade GNU
5966*** binutils to release 2.9.1 or newer.  Another option is to modify
5967*** your PATH or compiler configuration so that the native linker is
5968*** used, and then restart.
5969
5970EOF
5971    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5972      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5973      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5974    else
5975      ld_shlibs=no
5976    fi
5977    ;;
5978
5979  sunos4*)
5980    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5981    wlarc=
5982    hardcode_direct=yes
5983    hardcode_shlibpath_var=no
5984    ;;
5985
5986  *)
5987    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5988      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5989      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5990    else
5991      ld_shlibs=no
5992    fi
5993    ;;
5994  esac
5995
5996  if test "$ld_shlibs" = yes; then
5997    runpath_var=LD_RUN_PATH
5998    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5999    export_dynamic_flag_spec='${wl}--export-dynamic'
6000    case $host_os in
6001    cygwin* | mingw* | pw32*)
6002      # dlltool doesn't understand --whole-archive et. al.
6003      whole_archive_flag_spec=
6004      ;;
6005    *)
6006      # ancient GNU ld didn't support --whole-archive et. al.
6007      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6008	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6009      else
6010	whole_archive_flag_spec=
6011      fi
6012      ;;
6013    esac
6014  fi
6015else
6016  # PORTME fill in a description of your system's linker (not GNU ld)
6017  case $host_os in
6018  aix3*)
6019    allow_undefined_flag=unsupported
6020    always_export_symbols=yes
6021    archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6022    # Note: this linker hardcodes the directories in LIBPATH if there
6023    # are no directories specified by -L.
6024    hardcode_minus_L=yes
6025    if test "$GCC" = yes && test -z "$link_static_flag"; then
6026      # Neither direct hardcoding nor static linking is supported with a
6027      # broken collect2.
6028      hardcode_direct=unsupported
6029    fi
6030    ;;
6031
6032  aix4* | aix5*)
6033    if test "$host_cpu" = ia64; then
6034      # On IA64, the linker does run time linking by default, so we don't
6035      # have to do anything special.
6036      aix_use_runtimelinking=no
6037      exp_sym_flag='-Bexport'
6038      no_entry_flag=""
6039    else
6040      aix_use_runtimelinking=no
6041
6042      # Test if we are trying to use run time linking or normal
6043      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6044      # need to do runtime linking.
6045      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6046	for ld_flag in $LDFLAGS; do
6047	  case $ld_flag in
6048	  *-brtl*)
6049	    aix_use_runtimelinking=yes
6050	    break
6051	  ;;
6052	  esac
6053	done
6054      esac
6055
6056      exp_sym_flag='-bexport'
6057      no_entry_flag='-bnoentry'
6058    fi
6059
6060    # When large executables or shared objects are built, AIX ld can
6061    # have problems creating the table of contents.  If linking a library
6062    # or program results in "error TOC overflow" add -mminimal-toc to
6063    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6064    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6065
6066    hardcode_direct=yes
6067    archive_cmds=''
6068    hardcode_libdir_separator=':'
6069    if test "$GCC" = yes; then
6070      case $host_os in aix4.[012]|aix4.[012].*)
6071	collect2name=`${CC} -print-prog-name=collect2`
6072	if test -f "$collect2name" && \
6073	  strings "$collect2name" | grep resolve_lib_name >/dev/null
6074	then
6075	  # We have reworked collect2
6076	  hardcode_direct=yes
6077	else
6078	  # We have old collect2
6079	  hardcode_direct=unsupported
6080	  # It fails to find uninstalled libraries when the uninstalled
6081	  # path is not listed in the libpath.  Setting hardcode_minus_L
6082	  # to unsupported forces relinking
6083	  hardcode_minus_L=yes
6084	  hardcode_libdir_flag_spec='-L$libdir'
6085	  hardcode_libdir_separator=
6086	fi
6087      esac
6088
6089      shared_flag='-shared'
6090    else
6091      # not using gcc
6092      if test "$host_cpu" = ia64; then
6093	shared_flag='${wl}-G'
6094      else
6095	if test "$aix_use_runtimelinking" = yes; then
6096	  shared_flag='${wl}-G'
6097	else
6098	  shared_flag='${wl}-bM:SRE'
6099	fi
6100      fi
6101    fi
6102
6103    # It seems that -bexpall can do strange things, so it is better to
6104    # generate a list of symbols to export.
6105    always_export_symbols=yes
6106    if test "$aix_use_runtimelinking" = yes; then
6107      # Warning - without using the other runtime loading flags (-brtl),
6108      # -berok will link without error, but may produce a broken library.
6109      allow_undefined_flag='-berok'
6110      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6111      archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6112    else
6113      if test "$host_cpu" = ia64; then
6114	hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6115	allow_undefined_flag="-z nodefs"
6116	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6117      else
6118	hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6119	# Warning - without using the other run time loading flags,
6120	# -berok will link without error, but may produce a broken library.
6121	allow_undefined_flag='${wl}-berok'
6122	# This is a bit strange, but is similar to how AIX traditionally builds
6123	# it's shared libraries.
6124	archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6125      fi
6126    fi
6127    ;;
6128
6129  amigaos*)
6130    archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6131    hardcode_libdir_flag_spec='-L$libdir'
6132    hardcode_minus_L=yes
6133    # see comment about different semantics on the GNU ld section
6134    ld_shlibs=no
6135    ;;
6136
6137  cygwin* | mingw* | pw32*)
6138    # When not using gcc, we currently assume that we are using
6139    # Microsoft Visual C++.
6140    # hardcode_libdir_flag_spec is actually meaningless, as there is
6141    # no search path for DLLs.
6142    hardcode_libdir_flag_spec=' '
6143    allow_undefined_flag=unsupported
6144    # Tell ltmain to make .lib files, not .a files.
6145    libext=lib
6146    # FIXME: Setting linknames here is a bad hack.
6147    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6148    # The linker will automatically build a .lib file if we build a DLL.
6149    old_archive_from_new_cmds='true'
6150    # FIXME: Should let the user specify the lib program.
6151    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6152    fix_srcfile_path='`cygpath -w "$srcfile"`'
6153    ;;
6154
6155  darwin* | rhapsody*)
6156    case "$host_os" in
6157    rhapsody* | darwin1.[012])
6158      allow_undefined_flag='-undefined suppress'
6159      ;;
6160    *) # Darwin 1.3 on
6161      allow_undefined_flag='-flat_namespace -undefined suppress'
6162      ;;
6163    esac
6164    # FIXME: Relying on posixy $() will cause problems for
6165    #        cross-compilation, but unfortunately the echo tests do not
6166    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6167    #	     `"' quotes if we put them in here... so don't!
6168    archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6169    # We need to add '_' to the symbols in $export_symbols first
6170    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6171    hardcode_direct=yes
6172    hardcode_shlibpath_var=no
6173    whole_archive_flag_spec='-all_load $convenience'
6174    ;;
6175
6176  freebsd1*)
6177    ld_shlibs=no
6178    ;;
6179
6180  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6181  # support.  Future versions do this automatically, but an explicit c++rt0.o
6182  # does not break anything, and helps significantly (at the cost of a little
6183  # extra space).
6184  freebsd2.2*)
6185    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6186    hardcode_libdir_flag_spec='-R$libdir'
6187    hardcode_direct=yes
6188    hardcode_shlibpath_var=no
6189    ;;
6190
6191  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6192  freebsd2*)
6193    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6194    hardcode_direct=yes
6195    hardcode_minus_L=yes
6196    hardcode_shlibpath_var=no
6197    ;;
6198
6199  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6200  freebsd*)
6201    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6202    hardcode_libdir_flag_spec='-R$libdir'
6203    hardcode_direct=yes
6204    hardcode_shlibpath_var=no
6205    ;;
6206
6207  hpux9* | hpux10* | hpux11*)
6208    case $host_os in
6209    hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6210    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6211    esac
6212    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6213    hardcode_libdir_separator=:
6214    hardcode_direct=yes
6215    hardcode_minus_L=yes # Not in the search PATH, but as the default
6216			 # location of the library.
6217    export_dynamic_flag_spec='${wl}-E'
6218    ;;
6219
6220  irix5* | irix6* | nonstopux*)
6221    if test "$GCC" = yes; then
6222      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6223      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6224    else
6225      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6226      hardcode_libdir_flag_spec='-rpath $libdir'
6227    fi
6228    hardcode_libdir_separator=:
6229    link_all_deplibs=yes
6230    ;;
6231
6232  netbsd*)
6233    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6234      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6235    else
6236      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6237    fi
6238    hardcode_libdir_flag_spec='-R$libdir'
6239    hardcode_direct=yes
6240    hardcode_shlibpath_var=no
6241    ;;
6242
6243  newsos6)
6244    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6245    hardcode_direct=yes
6246    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6247    hardcode_libdir_separator=:
6248    hardcode_shlibpath_var=no
6249    ;;
6250
6251  openbsd*)
6252    hardcode_direct=yes
6253    hardcode_shlibpath_var=no
6254    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6255      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6256      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6257      export_dynamic_flag_spec='${wl}-E'
6258    else
6259      case "$host_os" in
6260      openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6261	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6262	hardcode_libdir_flag_spec='-R$libdir'
6263        ;;
6264      *)
6265        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6266        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6267        ;;
6268      esac
6269    fi
6270    ;;
6271
6272  os2*)
6273    hardcode_libdir_flag_spec='-L$libdir'
6274    hardcode_minus_L=yes
6275    allow_undefined_flag=unsupported
6276    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6277    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6278    ;;
6279
6280  osf3*)
6281    if test "$GCC" = yes; then
6282      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6283      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6284    else
6285      allow_undefined_flag=' -expect_unresolved \*'
6286      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6287    fi
6288    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6289    hardcode_libdir_separator=:
6290    ;;
6291
6292  osf4* | osf5*)	# as osf3* with the addition of -msym flag
6293    if test "$GCC" = yes; then
6294      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6295      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6296      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6297    else
6298      allow_undefined_flag=' -expect_unresolved \*'
6299      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6300      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6301      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6302
6303      #Both c and cxx compiler support -rpath directly
6304      hardcode_libdir_flag_spec='-rpath $libdir'
6305    fi
6306    hardcode_libdir_separator=:
6307    ;;
6308
6309  sco3.2v5*)
6310    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6311    hardcode_shlibpath_var=no
6312    runpath_var=LD_RUN_PATH
6313    hardcode_runpath_var=yes
6314    export_dynamic_flag_spec='${wl}-Bexport'
6315    ;;
6316
6317  solaris*)
6318    # gcc --version < 3.0 without binutils cannot create self contained
6319    # shared libraries reliably, requiring libgcc.a to resolve some of
6320    # the object symbols generated in some cases.  Libraries that use
6321    # assert need libgcc.a to resolve __eprintf, for example.  Linking
6322    # a copy of libgcc.a into every shared library to guarantee resolving
6323    # such symbols causes other problems:  According to Tim Van Holder
6324    # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6325    # (to the application) exception stack for one thing.
6326    no_undefined_flag=' -z defs'
6327    if test "$GCC" = yes; then
6328      case `$CC --version 2>/dev/null` in
6329      [12].*)
6330	cat <<EOF 1>&2
6331
6332*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6333*** create self contained shared libraries on Solaris systems, without
6334*** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6335*** -no-undefined support, which will at least allow you to build shared
6336*** libraries.  However, you may find that when you link such libraries
6337*** into an application without using GCC, you have to manually add
6338*** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6339*** upgrade to a newer version of GCC.  Another option is to rebuild your
6340*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6341
6342EOF
6343        no_undefined_flag=
6344	;;
6345      esac
6346    fi
6347    # $CC -shared without GNU ld will not create a library from C++
6348    # object files and a static libstdc++, better avoid it by now
6349    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6350    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6351		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6352    hardcode_libdir_flag_spec='-R$libdir'
6353    hardcode_shlibpath_var=no
6354    case $host_os in
6355    solaris2.[0-5] | solaris2.[0-5].*) ;;
6356    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6357      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6358    esac
6359    link_all_deplibs=yes
6360    ;;
6361
6362  sunos4*)
6363    if test "x$host_vendor" = xsequent; then
6364      # Use $CC to link under sequent, because it throws in some extra .o
6365      # files that make .init and .fini sections work.
6366      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6367    else
6368      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6369    fi
6370    hardcode_libdir_flag_spec='-L$libdir'
6371    hardcode_direct=yes
6372    hardcode_minus_L=yes
6373    hardcode_shlibpath_var=no
6374    ;;
6375
6376  sysv4)
6377    case $host_vendor in
6378      sni)
6379        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6380        hardcode_direct=yes # is this really true???
6381        ;;
6382      siemens)
6383        ## LD is ld it makes a PLAMLIB
6384        ## CC just makes a GrossModule.
6385        archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6386        reload_cmds='$CC -r -o $output$reload_objs'
6387        hardcode_direct=no
6388        ;;
6389      motorola)
6390        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6391        hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6392        ;;
6393    esac
6394    runpath_var='LD_RUN_PATH'
6395    hardcode_shlibpath_var=no
6396    ;;
6397
6398  sysv4.3*)
6399    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6400    hardcode_shlibpath_var=no
6401    export_dynamic_flag_spec='-Bexport'
6402    ;;
6403
6404  sysv5*)
6405    no_undefined_flag=' -z text'
6406    # $CC -shared without GNU ld will not create a library from C++
6407    # object files and a static libstdc++, better avoid it by now
6408    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6409    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6410		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6411    hardcode_libdir_flag_spec=
6412    hardcode_shlibpath_var=no
6413    runpath_var='LD_RUN_PATH'
6414    ;;
6415
6416  uts4*)
6417    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6418    hardcode_libdir_flag_spec='-L$libdir'
6419    hardcode_shlibpath_var=no
6420    ;;
6421
6422  dgux*)
6423    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6424    hardcode_libdir_flag_spec='-L$libdir'
6425    hardcode_shlibpath_var=no
6426    ;;
6427
6428  sysv4*MP*)
6429    if test -d /usr/nec; then
6430      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6431      hardcode_shlibpath_var=no
6432      runpath_var=LD_RUN_PATH
6433      hardcode_runpath_var=yes
6434      ld_shlibs=yes
6435    fi
6436    ;;
6437
6438  sysv4.2uw2*)
6439    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6440    hardcode_direct=yes
6441    hardcode_minus_L=no
6442    hardcode_shlibpath_var=no
6443    hardcode_runpath_var=yes
6444    runpath_var=LD_RUN_PATH
6445    ;;
6446
6447  sysv5uw7* | unixware7*)
6448    no_undefined_flag='${wl}-z ${wl}text'
6449    if test "$GCC" = yes; then
6450      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6451    else
6452      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6453    fi
6454    runpath_var='LD_RUN_PATH'
6455    hardcode_shlibpath_var=no
6456    ;;
6457
6458  *)
6459    ld_shlibs=no
6460    ;;
6461  esac
6462fi
6463echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6464echo "${ECHO_T}$ld_shlibs" >&6
6465test "$ld_shlibs" = no && can_build_shared=no
6466
6467# Check hardcoding attributes.
6468echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6469echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6470hardcode_action=
6471if test -n "$hardcode_libdir_flag_spec" || \
6472   test -n "$runpath_var"; then
6473
6474  # We can hardcode non-existant directories.
6475  if test "$hardcode_direct" != no &&
6476     # If the only mechanism to avoid hardcoding is shlibpath_var, we
6477     # have to relink, otherwise we might link with an installed library
6478     # when we should be linking with a yet-to-be-installed one
6479     ## test "$hardcode_shlibpath_var" != no &&
6480     test "$hardcode_minus_L" != no; then
6481    # Linking always hardcodes the temporary library directory.
6482    hardcode_action=relink
6483  else
6484    # We can link without hardcoding, and we can hardcode nonexisting dirs.
6485    hardcode_action=immediate
6486  fi
6487else
6488  # We cannot hardcode anything, or else we can only hardcode existing
6489  # directories.
6490  hardcode_action=unsupported
6491fi
6492echo "$as_me:$LINENO: result: $hardcode_action" >&5
6493echo "${ECHO_T}$hardcode_action" >&6
6494
6495striplib=
6496old_striplib=
6497echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6498echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6499if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6500  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6501  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6502  echo "$as_me:$LINENO: result: yes" >&5
6503echo "${ECHO_T}yes" >&6
6504else
6505  echo "$as_me:$LINENO: result: no" >&5
6506echo "${ECHO_T}no" >&6
6507fi
6508
6509reload_cmds='$LD$reload_flag -o $output$reload_objs'
6510test -z "$deplibs_check_method" && deplibs_check_method=unknown
6511
6512# PORTME Fill in your ld.so characteristics
6513echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6514echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6515library_names_spec=
6516libname_spec='lib$name'
6517soname_spec=
6518postinstall_cmds=
6519postuninstall_cmds=
6520finish_cmds=
6521finish_eval=
6522shlibpath_var=
6523shlibpath_overrides_runpath=unknown
6524version_type=none
6525dynamic_linker="$host_os ld.so"
6526sys_lib_dlsearch_path_spec="/lib /usr/lib"
6527sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6528
6529case $host_os in
6530aix3*)
6531  version_type=linux
6532  library_names_spec='${libname}${release}.so$versuffix $libname.a'
6533  shlibpath_var=LIBPATH
6534
6535  # AIX has no versioning support, so we append a major version to the name.
6536  soname_spec='${libname}${release}.so$major'
6537  ;;
6538
6539aix4* | aix5*)
6540  version_type=linux
6541  need_lib_prefix=no
6542  need_version=no
6543  hardcode_into_libs=yes
6544  if test "$host_cpu" = ia64; then
6545    # AIX 5 supports IA64
6546    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6547    shlibpath_var=LD_LIBRARY_PATH
6548  else
6549    # With GCC up to 2.95.x, collect2 would create an import file
6550    # for dependence libraries.  The import file would start with
6551    # the line `#! .'.  This would cause the generated library to
6552    # depend on `.', always an invalid library.  This was fixed in
6553    # development snapshots of GCC prior to 3.0.
6554    case $host_os in
6555      aix4 | aix4.[01] | aix4.[01].*)
6556	if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6557	     echo ' yes '
6558	     echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6559	  :
6560	else
6561	  can_build_shared=no
6562	fi
6563	;;
6564    esac
6565    # AIX (on Power*) has no versioning support, so currently we can
6566    # not hardcode correct soname into executable. Probably we can
6567    # add versioning support to collect2, so additional links can
6568    # be useful in future.
6569    if test "$aix_use_runtimelinking" = yes; then
6570      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6571      # instead of lib<name>.a to let people know that these are not
6572      # typical AIX shared libraries.
6573      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6574    else
6575      # We preserve .a as extension for shared libraries through AIX4.2
6576      # and later when we are not doing run time linking.
6577      library_names_spec='${libname}${release}.a $libname.a'
6578      soname_spec='${libname}${release}.so$major'
6579    fi
6580    shlibpath_var=LIBPATH
6581  fi
6582  hardcode_into_libs=yes
6583  ;;
6584
6585amigaos*)
6586  library_names_spec='$libname.ixlibrary $libname.a'
6587  # Create ${libname}_ixlibrary.a entries in /sys/libs.
6588  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6589  ;;
6590
6591beos*)
6592  library_names_spec='${libname}.so'
6593  dynamic_linker="$host_os ld.so"
6594  shlibpath_var=LIBRARY_PATH
6595  ;;
6596
6597bsdi4*)
6598  version_type=linux
6599  need_version=no
6600  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6601  soname_spec='${libname}${release}.so$major'
6602  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6603  shlibpath_var=LD_LIBRARY_PATH
6604  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6605  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6606  export_dynamic_flag_spec=-rdynamic
6607  # the default ld.so.conf also contains /usr/contrib/lib and
6608  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6609  # libtool to hard-code these into programs
6610  ;;
6611
6612cygwin* | mingw* | pw32*)
6613  version_type=windows
6614  need_version=no
6615  need_lib_prefix=no
6616  case $GCC,$host_os in
6617  yes,cygwin*)
6618    library_names_spec='$libname.dll.a'
6619    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6620    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6621      dldir=$destdir/`dirname \$dlpath`~
6622      test -d \$dldir || mkdir -p \$dldir~
6623      $install_prog .libs/$dlname \$dldir/$dlname'
6624    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6625      dlpath=$dir/\$dldll~
6626       $rm \$dlpath'
6627    ;;
6628  yes,mingw*)
6629    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6630    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6631    ;;
6632  yes,pw32*)
6633    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6634    ;;
6635  *)
6636    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6637    ;;
6638  esac
6639  dynamic_linker='Win32 ld.exe'
6640  # FIXME: first we should search . and the directory the executable is in
6641  shlibpath_var=PATH
6642  ;;
6643
6644darwin* | rhapsody*)
6645  dynamic_linker="$host_os dyld"
6646  version_type=darwin
6647  need_lib_prefix=no
6648  need_version=no
6649  # FIXME: Relying on posixy $() will cause problems for
6650  #        cross-compilation, but unfortunately the echo tests do not
6651  #        yet detect zsh echo's removal of \ escapes.
6652  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6653  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6654  shlibpath_overrides_runpath=yes
6655  shlibpath_var=DYLD_LIBRARY_PATH
6656  ;;
6657
6658freebsd1*)
6659  dynamic_linker=no
6660  ;;
6661
6662freebsd*)
6663  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6664  version_type=freebsd-$objformat
6665  case $version_type in
6666    freebsd-elf*)
6667      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6668      need_version=no
6669      need_lib_prefix=no
6670      ;;
6671    freebsd-*)
6672      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6673      need_version=yes
6674      ;;
6675  esac
6676  shlibpath_var=LD_LIBRARY_PATH
6677  case $host_os in
6678  freebsd2*)
6679    shlibpath_overrides_runpath=yes
6680    ;;
6681  *)
6682    shlibpath_overrides_runpath=no
6683    hardcode_into_libs=yes
6684    ;;
6685  esac
6686  ;;
6687
6688gnu*)
6689  version_type=linux
6690  need_lib_prefix=no
6691  need_version=no
6692  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6693  soname_spec='${libname}${release}.so$major'
6694  shlibpath_var=LD_LIBRARY_PATH
6695  hardcode_into_libs=yes
6696  ;;
6697
6698hpux9* | hpux10* | hpux11*)
6699  # Give a soname corresponding to the major version so that dld.sl refuses to
6700  # link against other versions.
6701  dynamic_linker="$host_os dld.sl"
6702  version_type=sunos
6703  need_lib_prefix=no
6704  need_version=no
6705  shlibpath_var=SHLIB_PATH
6706  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6707  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6708  soname_spec='${libname}${release}.sl$major'
6709  # HP-UX runs *really* slowly unless shared libraries are mode 555.
6710  postinstall_cmds='chmod 555 $lib'
6711  ;;
6712
6713irix5* | irix6* | nonstopux*)
6714  case $host_os in
6715    nonstopux*) version_type=nonstopux ;;
6716    *)          version_type=irix ;;
6717  esac
6718  need_lib_prefix=no
6719  need_version=no
6720  soname_spec='${libname}${release}.so$major'
6721  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6722  case $host_os in
6723  irix5* | nonstopux*)
6724    libsuff= shlibsuff=
6725    ;;
6726  *)
6727    case $LD in # libtool.m4 will add one of these switches to LD
6728    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6729    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6730    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6731    *) libsuff= shlibsuff= libmagic=never-match;;
6732    esac
6733    ;;
6734  esac
6735  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6736  shlibpath_overrides_runpath=no
6737  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6738  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6739  ;;
6740
6741# No shared lib support for Linux oldld, aout, or coff.
6742linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6743  dynamic_linker=no
6744  ;;
6745
6746# This must be Linux ELF.
6747linux-gnu*)
6748  version_type=linux
6749  need_lib_prefix=no
6750  need_version=no
6751  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6752  soname_spec='${libname}${release}.so$major'
6753  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6754  shlibpath_var=LD_LIBRARY_PATH
6755  shlibpath_overrides_runpath=no
6756  # This implies no fast_install, which is unacceptable.
6757  # Some rework will be needed to allow for fast_install
6758  # before this can be enabled.
6759  hardcode_into_libs=yes
6760
6761  # We used to test for /lib/ld.so.1 and disable shared libraries on
6762  # powerpc, because MkLinux only supported shared libraries with the
6763  # GNU dynamic linker.  Since this was broken with cross compilers,
6764  # most powerpc-linux boxes support dynamic linking these days and
6765  # people can always --disable-shared, the test was removed, and we
6766  # assume the GNU/Linux dynamic linker is in use.
6767  dynamic_linker='GNU/Linux ld.so'
6768
6769  # Find out which ABI we are using (multilib Linux x86_64 hack).
6770  libsuff=
6771  case "$host_cpu" in
6772  x86_64*|s390x*)
6773    echo '#line 6773 "configure"' > conftest.$ac_ext
6774    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6775  (eval $ac_compile) 2>&5
6776  ac_status=$?
6777  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778  (exit $ac_status); }; then
6779      case `/usr/bin/file conftest.$ac_objext` in
6780      *64-bit*)
6781        libsuff=64
6782        ;;
6783      esac
6784    fi
6785    rm -rf conftest*
6786    ;;
6787  *)
6788    ;;
6789  esac
6790  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
6791  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
6792  ;;
6793
6794netbsd*)
6795  version_type=sunos
6796  need_lib_prefix=no
6797  need_version=no
6798  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6799    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6800    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6801    dynamic_linker='NetBSD (a.out) ld.so'
6802  else
6803    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6804    soname_spec='${libname}${release}.so$major'
6805    dynamic_linker='NetBSD ld.elf_so'
6806  fi
6807  shlibpath_var=LD_LIBRARY_PATH
6808  shlibpath_overrides_runpath=yes
6809  hardcode_into_libs=yes
6810  ;;
6811
6812newsos6)
6813  version_type=linux
6814  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6815  shlibpath_var=LD_LIBRARY_PATH
6816  shlibpath_overrides_runpath=yes
6817  ;;
6818
6819openbsd*)
6820  version_type=sunos
6821  need_lib_prefix=no
6822  need_version=no
6823  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6824    case "$host_os" in
6825    openbsd2.[89] | openbsd2.[89].*)
6826      shlibpath_overrides_runpath=no
6827      ;;
6828    *)
6829      shlibpath_overrides_runpath=yes
6830      ;;
6831    esac
6832  else
6833    shlibpath_overrides_runpath=yes
6834  fi
6835  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6836  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6837  shlibpath_var=LD_LIBRARY_PATH
6838  ;;
6839
6840os2*)
6841  libname_spec='$name'
6842  need_lib_prefix=no
6843  library_names_spec='$libname.dll $libname.a'
6844  dynamic_linker='OS/2 ld.exe'
6845  shlibpath_var=LIBPATH
6846  ;;
6847
6848osf3* | osf4* | osf5*)
6849  version_type=osf
6850  need_version=no
6851  soname_spec='${libname}${release}.so$major'
6852  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6853  shlibpath_var=LD_LIBRARY_PATH
6854  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6855  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6856  hardcode_into_libs=yes
6857  ;;
6858
6859sco3.2v5*)
6860  version_type=osf
6861  soname_spec='${libname}${release}.so$major'
6862  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6863  shlibpath_var=LD_LIBRARY_PATH
6864  ;;
6865
6866solaris*)
6867  version_type=linux
6868  need_lib_prefix=no
6869  need_version=no
6870  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6871  soname_spec='${libname}${release}.so$major'
6872  shlibpath_var=LD_LIBRARY_PATH
6873  shlibpath_overrides_runpath=yes
6874  hardcode_into_libs=yes
6875  # ldd complains unless libraries are executable
6876  postinstall_cmds='chmod +x $lib'
6877  ;;
6878
6879sunos4*)
6880  version_type=sunos
6881  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6882  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6883  shlibpath_var=LD_LIBRARY_PATH
6884  shlibpath_overrides_runpath=yes
6885  if test "$with_gnu_ld" = yes; then
6886    need_lib_prefix=no
6887  fi
6888  need_version=yes
6889  ;;
6890
6891sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6892  version_type=linux
6893  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6894  soname_spec='${libname}${release}.so$major'
6895  shlibpath_var=LD_LIBRARY_PATH
6896  case $host_vendor in
6897    sni)
6898      shlibpath_overrides_runpath=no
6899      need_lib_prefix=no
6900      export_dynamic_flag_spec='${wl}-Blargedynsym'
6901      runpath_var=LD_RUN_PATH
6902      ;;
6903    siemens)
6904      need_lib_prefix=no
6905      ;;
6906    motorola)
6907      need_lib_prefix=no
6908      need_version=no
6909      shlibpath_overrides_runpath=no
6910      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6911      ;;
6912  esac
6913  ;;
6914
6915uts4*)
6916  version_type=linux
6917  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6918  soname_spec='${libname}${release}.so$major'
6919  shlibpath_var=LD_LIBRARY_PATH
6920  ;;
6921
6922dgux*)
6923  version_type=linux
6924  need_lib_prefix=no
6925  need_version=no
6926  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6927  soname_spec='${libname}${release}.so$major'
6928  shlibpath_var=LD_LIBRARY_PATH
6929  ;;
6930
6931sysv4*MP*)
6932  if test -d /usr/nec ;then
6933    version_type=linux
6934    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6935    soname_spec='$libname.so.$major'
6936    shlibpath_var=LD_LIBRARY_PATH
6937  fi
6938  ;;
6939
6940*)
6941  dynamic_linker=no
6942  ;;
6943esac
6944echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6945echo "${ECHO_T}$dynamic_linker" >&6
6946test "$dynamic_linker" = no && can_build_shared=no
6947
6948# Report the final consequences.
6949echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6950echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6951echo "$as_me:$LINENO: result: $can_build_shared" >&5
6952echo "${ECHO_T}$can_build_shared" >&6
6953
6954echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6955echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6956test "$can_build_shared" = "no" && enable_shared=no
6957
6958# On AIX, shared libraries and static libraries use the same namespace, and
6959# are all built from PIC.
6960case "$host_os" in
6961aix3*)
6962  test "$enable_shared" = yes && enable_static=no
6963  if test -n "$RANLIB"; then
6964    archive_cmds="$archive_cmds~\$RANLIB \$lib"
6965    postinstall_cmds='$RANLIB $lib'
6966  fi
6967  ;;
6968
6969aix4*)
6970  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6971    test "$enable_shared" = yes && enable_static=no
6972  fi
6973  ;;
6974esac
6975echo "$as_me:$LINENO: result: $enable_shared" >&5
6976echo "${ECHO_T}$enable_shared" >&6
6977
6978echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6979echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6980# Make sure either enable_shared or enable_static is yes.
6981test "$enable_shared" = yes || enable_static=yes
6982echo "$as_me:$LINENO: result: $enable_static" >&5
6983echo "${ECHO_T}$enable_static" >&6
6984
6985if test "$hardcode_action" = relink; then
6986  # Fast installation is not supported
6987  enable_fast_install=no
6988elif test "$shlibpath_overrides_runpath" = yes ||
6989     test "$enable_shared" = no; then
6990  # Fast installation is not necessary
6991  enable_fast_install=needless
6992fi
6993
6994variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6995if test "$GCC" = yes; then
6996  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6997fi
6998
6999if test "x$enable_dlopen" != xyes; then
7000  enable_dlopen=unknown
7001  enable_dlopen_self=unknown
7002  enable_dlopen_self_static=unknown
7003else
7004  lt_cv_dlopen=no
7005  lt_cv_dlopen_libs=
7006
7007  case $host_os in
7008  beos*)
7009    lt_cv_dlopen="load_add_on"
7010    lt_cv_dlopen_libs=
7011    lt_cv_dlopen_self=yes
7012    ;;
7013
7014  cygwin* | mingw* | pw32*)
7015    lt_cv_dlopen="LoadLibrary"
7016    lt_cv_dlopen_libs=
7017   ;;
7018
7019  *)
7020    echo "$as_me:$LINENO: checking for shl_load" >&5
7021echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7022if test "${ac_cv_func_shl_load+set}" = set; then
7023  echo $ECHO_N "(cached) $ECHO_C" >&6
7024else
7025  cat >conftest.$ac_ext <<_ACEOF
7026#line $LINENO "configure"
7027/* confdefs.h.  */
7028_ACEOF
7029cat confdefs.h >>conftest.$ac_ext
7030cat >>conftest.$ac_ext <<_ACEOF
7031/* end confdefs.h.  */
7032/* System header to define __stub macros and hopefully few prototypes,
7033    which can conflict with char shl_load (); below.
7034    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7035    <limits.h> exists even on freestanding compilers.  */
7036#ifdef __STDC__
7037# include <limits.h>
7038#else
7039# include <assert.h>
7040#endif
7041/* Override any gcc2 internal prototype to avoid an error.  */
7042#ifdef __cplusplus
7043extern "C"
7044{
7045#endif
7046/* We use char because int might match the return type of a gcc2
7047   builtin and then its argument prototype would still apply.  */
7048char shl_load ();
7049/* The GNU C library defines this for functions which it implements
7050    to always fail with ENOSYS.  Some functions are actually named
7051    something starting with __ and the normal name is an alias.  */
7052#if defined (__stub_shl_load) || defined (__stub___shl_load)
7053choke me
7054#else
7055char (*f) () = shl_load;
7056#endif
7057#ifdef __cplusplus
7058}
7059#endif
7060
7061int
7062main ()
7063{
7064return f != shl_load;
7065  ;
7066  return 0;
7067}
7068_ACEOF
7069rm -f conftest.$ac_objext conftest$ac_exeext
7070if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7071  (eval $ac_link) 2>&5
7072  ac_status=$?
7073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074  (exit $ac_status); } &&
7075         { ac_try='test -s conftest$ac_exeext'
7076  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7077  (eval $ac_try) 2>&5
7078  ac_status=$?
7079  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080  (exit $ac_status); }; }; then
7081  ac_cv_func_shl_load=yes
7082else
7083  echo "$as_me: failed program was:" >&5
7084sed 's/^/| /' conftest.$ac_ext >&5
7085
7086ac_cv_func_shl_load=no
7087fi
7088rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7089fi
7090echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7091echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7092if test $ac_cv_func_shl_load = yes; then
7093  lt_cv_dlopen="shl_load"
7094else
7095  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7096echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7097if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7098  echo $ECHO_N "(cached) $ECHO_C" >&6
7099else
7100  ac_check_lib_save_LIBS=$LIBS
7101LIBS="-ldld  $LIBS"
7102cat >conftest.$ac_ext <<_ACEOF
7103#line $LINENO "configure"
7104/* confdefs.h.  */
7105_ACEOF
7106cat confdefs.h >>conftest.$ac_ext
7107cat >>conftest.$ac_ext <<_ACEOF
7108/* end confdefs.h.  */
7109
7110/* Override any gcc2 internal prototype to avoid an error.  */
7111#ifdef __cplusplus
7112extern "C"
7113#endif
7114/* We use char because int might match the return type of a gcc2
7115   builtin and then its argument prototype would still apply.  */
7116char shl_load ();
7117int
7118main ()
7119{
7120shl_load ();
7121  ;
7122  return 0;
7123}
7124_ACEOF
7125rm -f conftest.$ac_objext conftest$ac_exeext
7126if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7127  (eval $ac_link) 2>&5
7128  ac_status=$?
7129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130  (exit $ac_status); } &&
7131         { ac_try='test -s conftest$ac_exeext'
7132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7133  (eval $ac_try) 2>&5
7134  ac_status=$?
7135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136  (exit $ac_status); }; }; then
7137  ac_cv_lib_dld_shl_load=yes
7138else
7139  echo "$as_me: failed program was:" >&5
7140sed 's/^/| /' conftest.$ac_ext >&5
7141
7142ac_cv_lib_dld_shl_load=no
7143fi
7144rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7145LIBS=$ac_check_lib_save_LIBS
7146fi
7147echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7148echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7149if test $ac_cv_lib_dld_shl_load = yes; then
7150  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7151else
7152  echo "$as_me:$LINENO: checking for dlopen" >&5
7153echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7154if test "${ac_cv_func_dlopen+set}" = set; then
7155  echo $ECHO_N "(cached) $ECHO_C" >&6
7156else
7157  cat >conftest.$ac_ext <<_ACEOF
7158#line $LINENO "configure"
7159/* confdefs.h.  */
7160_ACEOF
7161cat confdefs.h >>conftest.$ac_ext
7162cat >>conftest.$ac_ext <<_ACEOF
7163/* end confdefs.h.  */
7164/* System header to define __stub macros and hopefully few prototypes,
7165    which can conflict with char dlopen (); below.
7166    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7167    <limits.h> exists even on freestanding compilers.  */
7168#ifdef __STDC__
7169# include <limits.h>
7170#else
7171# include <assert.h>
7172#endif
7173/* Override any gcc2 internal prototype to avoid an error.  */
7174#ifdef __cplusplus
7175extern "C"
7176{
7177#endif
7178/* We use char because int might match the return type of a gcc2
7179   builtin and then its argument prototype would still apply.  */
7180char dlopen ();
7181/* The GNU C library defines this for functions which it implements
7182    to always fail with ENOSYS.  Some functions are actually named
7183    something starting with __ and the normal name is an alias.  */
7184#if defined (__stub_dlopen) || defined (__stub___dlopen)
7185choke me
7186#else
7187char (*f) () = dlopen;
7188#endif
7189#ifdef __cplusplus
7190}
7191#endif
7192
7193int
7194main ()
7195{
7196return f != dlopen;
7197  ;
7198  return 0;
7199}
7200_ACEOF
7201rm -f conftest.$ac_objext conftest$ac_exeext
7202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7203  (eval $ac_link) 2>&5
7204  ac_status=$?
7205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206  (exit $ac_status); } &&
7207         { ac_try='test -s conftest$ac_exeext'
7208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209  (eval $ac_try) 2>&5
7210  ac_status=$?
7211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212  (exit $ac_status); }; }; then
7213  ac_cv_func_dlopen=yes
7214else
7215  echo "$as_me: failed program was:" >&5
7216sed 's/^/| /' conftest.$ac_ext >&5
7217
7218ac_cv_func_dlopen=no
7219fi
7220rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7221fi
7222echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7223echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7224if test $ac_cv_func_dlopen = yes; then
7225  lt_cv_dlopen="dlopen"
7226else
7227  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7228echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7229if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7230  echo $ECHO_N "(cached) $ECHO_C" >&6
7231else
7232  ac_check_lib_save_LIBS=$LIBS
7233LIBS="-ldl  $LIBS"
7234cat >conftest.$ac_ext <<_ACEOF
7235#line $LINENO "configure"
7236/* confdefs.h.  */
7237_ACEOF
7238cat confdefs.h >>conftest.$ac_ext
7239cat >>conftest.$ac_ext <<_ACEOF
7240/* end confdefs.h.  */
7241
7242/* Override any gcc2 internal prototype to avoid an error.  */
7243#ifdef __cplusplus
7244extern "C"
7245#endif
7246/* We use char because int might match the return type of a gcc2
7247   builtin and then its argument prototype would still apply.  */
7248char dlopen ();
7249int
7250main ()
7251{
7252dlopen ();
7253  ;
7254  return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext conftest$ac_exeext
7258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7259  (eval $ac_link) 2>&5
7260  ac_status=$?
7261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262  (exit $ac_status); } &&
7263         { ac_try='test -s conftest$ac_exeext'
7264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7265  (eval $ac_try) 2>&5
7266  ac_status=$?
7267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7268  (exit $ac_status); }; }; then
7269  ac_cv_lib_dl_dlopen=yes
7270else
7271  echo "$as_me: failed program was:" >&5
7272sed 's/^/| /' conftest.$ac_ext >&5
7273
7274ac_cv_lib_dl_dlopen=no
7275fi
7276rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7277LIBS=$ac_check_lib_save_LIBS
7278fi
7279echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7280echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7281if test $ac_cv_lib_dl_dlopen = yes; then
7282  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7283else
7284  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7285echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7286if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7287  echo $ECHO_N "(cached) $ECHO_C" >&6
7288else
7289  ac_check_lib_save_LIBS=$LIBS
7290LIBS="-lsvld  $LIBS"
7291cat >conftest.$ac_ext <<_ACEOF
7292#line $LINENO "configure"
7293/* confdefs.h.  */
7294_ACEOF
7295cat confdefs.h >>conftest.$ac_ext
7296cat >>conftest.$ac_ext <<_ACEOF
7297/* end confdefs.h.  */
7298
7299/* Override any gcc2 internal prototype to avoid an error.  */
7300#ifdef __cplusplus
7301extern "C"
7302#endif
7303/* We use char because int might match the return type of a gcc2
7304   builtin and then its argument prototype would still apply.  */
7305char dlopen ();
7306int
7307main ()
7308{
7309dlopen ();
7310  ;
7311  return 0;
7312}
7313_ACEOF
7314rm -f conftest.$ac_objext conftest$ac_exeext
7315if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7316  (eval $ac_link) 2>&5
7317  ac_status=$?
7318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7319  (exit $ac_status); } &&
7320         { ac_try='test -s conftest$ac_exeext'
7321  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7322  (eval $ac_try) 2>&5
7323  ac_status=$?
7324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325  (exit $ac_status); }; }; then
7326  ac_cv_lib_svld_dlopen=yes
7327else
7328  echo "$as_me: failed program was:" >&5
7329sed 's/^/| /' conftest.$ac_ext >&5
7330
7331ac_cv_lib_svld_dlopen=no
7332fi
7333rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7334LIBS=$ac_check_lib_save_LIBS
7335fi
7336echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7337echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7338if test $ac_cv_lib_svld_dlopen = yes; then
7339  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7340else
7341  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7342echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7343if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7344  echo $ECHO_N "(cached) $ECHO_C" >&6
7345else
7346  ac_check_lib_save_LIBS=$LIBS
7347LIBS="-ldld  $LIBS"
7348cat >conftest.$ac_ext <<_ACEOF
7349#line $LINENO "configure"
7350/* confdefs.h.  */
7351_ACEOF
7352cat confdefs.h >>conftest.$ac_ext
7353cat >>conftest.$ac_ext <<_ACEOF
7354/* end confdefs.h.  */
7355
7356/* Override any gcc2 internal prototype to avoid an error.  */
7357#ifdef __cplusplus
7358extern "C"
7359#endif
7360/* We use char because int might match the return type of a gcc2
7361   builtin and then its argument prototype would still apply.  */
7362char dld_link ();
7363int
7364main ()
7365{
7366dld_link ();
7367  ;
7368  return 0;
7369}
7370_ACEOF
7371rm -f conftest.$ac_objext conftest$ac_exeext
7372if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7373  (eval $ac_link) 2>&5
7374  ac_status=$?
7375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7376  (exit $ac_status); } &&
7377         { ac_try='test -s conftest$ac_exeext'
7378  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7379  (eval $ac_try) 2>&5
7380  ac_status=$?
7381  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382  (exit $ac_status); }; }; then
7383  ac_cv_lib_dld_dld_link=yes
7384else
7385  echo "$as_me: failed program was:" >&5
7386sed 's/^/| /' conftest.$ac_ext >&5
7387
7388ac_cv_lib_dld_dld_link=no
7389fi
7390rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7391LIBS=$ac_check_lib_save_LIBS
7392fi
7393echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7394echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7395if test $ac_cv_lib_dld_dld_link = yes; then
7396  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7397fi
7398
7399
7400fi
7401
7402
7403fi
7404
7405
7406fi
7407
7408
7409fi
7410
7411
7412fi
7413
7414    ;;
7415  esac
7416
7417  if test "x$lt_cv_dlopen" != xno; then
7418    enable_dlopen=yes
7419  else
7420    enable_dlopen=no
7421  fi
7422
7423  case $lt_cv_dlopen in
7424  dlopen)
7425    save_CPPFLAGS="$CPPFLAGS"
7426        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7427
7428    save_LDFLAGS="$LDFLAGS"
7429    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7430
7431    save_LIBS="$LIBS"
7432    LIBS="$lt_cv_dlopen_libs $LIBS"
7433
7434    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7435echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7436if test "${lt_cv_dlopen_self+set}" = set; then
7437  echo $ECHO_N "(cached) $ECHO_C" >&6
7438else
7439  	  if test "$cross_compiling" = yes; then :
7440  lt_cv_dlopen_self=cross
7441else
7442    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7443  lt_status=$lt_dlunknown
7444  cat > conftest.$ac_ext <<EOF
7445#line 7445 "configure"
7446#include "confdefs.h"
7447
7448#if HAVE_DLFCN_H
7449#include <dlfcn.h>
7450#endif
7451
7452#include <stdio.h>
7453
7454#ifdef RTLD_GLOBAL
7455#  define LT_DLGLOBAL		RTLD_GLOBAL
7456#else
7457#  ifdef DL_GLOBAL
7458#    define LT_DLGLOBAL		DL_GLOBAL
7459#  else
7460#    define LT_DLGLOBAL		0
7461#  endif
7462#endif
7463
7464/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7465   find out it does not work in some platform. */
7466#ifndef LT_DLLAZY_OR_NOW
7467#  ifdef RTLD_LAZY
7468#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7469#  else
7470#    ifdef DL_LAZY
7471#      define LT_DLLAZY_OR_NOW		DL_LAZY
7472#    else
7473#      ifdef RTLD_NOW
7474#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7475#      else
7476#        ifdef DL_NOW
7477#          define LT_DLLAZY_OR_NOW	DL_NOW
7478#        else
7479#          define LT_DLLAZY_OR_NOW	0
7480#        endif
7481#      endif
7482#    endif
7483#  endif
7484#endif
7485
7486#ifdef __cplusplus
7487extern "C" void exit (int);
7488#endif
7489
7490void fnord() { int i=42;}
7491int main ()
7492{
7493  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7494  int status = $lt_dlunknown;
7495
7496  if (self)
7497    {
7498      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7499      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7500      /* dlclose (self); */
7501    }
7502
7503    exit (status);
7504}
7505EOF
7506  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7507  (eval $ac_link) 2>&5
7508  ac_status=$?
7509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7511    (./conftest; exit; ) 2>/dev/null
7512    lt_status=$?
7513    case x$lt_status in
7514      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7515      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7516      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7517    esac
7518  else :
7519    # compilation failed
7520    lt_cv_dlopen_self=no
7521  fi
7522fi
7523rm -fr conftest*
7524
7525
7526fi
7527echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7528echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7529
7530    if test "x$lt_cv_dlopen_self" = xyes; then
7531      LDFLAGS="$LDFLAGS $link_static_flag"
7532      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7533echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7534if test "${lt_cv_dlopen_self_static+set}" = set; then
7535  echo $ECHO_N "(cached) $ECHO_C" >&6
7536else
7537  	  if test "$cross_compiling" = yes; then :
7538  lt_cv_dlopen_self_static=cross
7539else
7540    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7541  lt_status=$lt_dlunknown
7542  cat > conftest.$ac_ext <<EOF
7543#line 7543 "configure"
7544#include "confdefs.h"
7545
7546#if HAVE_DLFCN_H
7547#include <dlfcn.h>
7548#endif
7549
7550#include <stdio.h>
7551
7552#ifdef RTLD_GLOBAL
7553#  define LT_DLGLOBAL		RTLD_GLOBAL
7554#else
7555#  ifdef DL_GLOBAL
7556#    define LT_DLGLOBAL		DL_GLOBAL
7557#  else
7558#    define LT_DLGLOBAL		0
7559#  endif
7560#endif
7561
7562/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7563   find out it does not work in some platform. */
7564#ifndef LT_DLLAZY_OR_NOW
7565#  ifdef RTLD_LAZY
7566#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
7567#  else
7568#    ifdef DL_LAZY
7569#      define LT_DLLAZY_OR_NOW		DL_LAZY
7570#    else
7571#      ifdef RTLD_NOW
7572#        define LT_DLLAZY_OR_NOW	RTLD_NOW
7573#      else
7574#        ifdef DL_NOW
7575#          define LT_DLLAZY_OR_NOW	DL_NOW
7576#        else
7577#          define LT_DLLAZY_OR_NOW	0
7578#        endif
7579#      endif
7580#    endif
7581#  endif
7582#endif
7583
7584#ifdef __cplusplus
7585extern "C" void exit (int);
7586#endif
7587
7588void fnord() { int i=42;}
7589int main ()
7590{
7591  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7592  int status = $lt_dlunknown;
7593
7594  if (self)
7595    {
7596      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7597      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7598      /* dlclose (self); */
7599    }
7600
7601    exit (status);
7602}
7603EOF
7604  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605  (eval $ac_link) 2>&5
7606  ac_status=$?
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7609    (./conftest; exit; ) 2>/dev/null
7610    lt_status=$?
7611    case x$lt_status in
7612      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7613      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7614      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7615    esac
7616  else :
7617    # compilation failed
7618    lt_cv_dlopen_self_static=no
7619  fi
7620fi
7621rm -fr conftest*
7622
7623
7624fi
7625echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7626echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7627    fi
7628
7629    CPPFLAGS="$save_CPPFLAGS"
7630    LDFLAGS="$save_LDFLAGS"
7631    LIBS="$save_LIBS"
7632    ;;
7633  esac
7634
7635  case $lt_cv_dlopen_self in
7636  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7637  *) enable_dlopen_self=unknown ;;
7638  esac
7639
7640  case $lt_cv_dlopen_self_static in
7641  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7642  *) enable_dlopen_self_static=unknown ;;
7643  esac
7644fi
7645
7646
7647if test "$enable_shared" = yes && test "$GCC" = yes; then
7648  case $archive_cmds in
7649  *'~'*)
7650    # FIXME: we may have to deal with multi-command sequences.
7651    ;;
7652  '$CC '*)
7653    # Test whether the compiler implicitly links with -lc since on some
7654    # systems, -lgcc has to come before -lc. If gcc already passes -lc
7655    # to ld, don't add -lc before -lgcc.
7656    echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7657echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7658    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7659  echo $ECHO_N "(cached) $ECHO_C" >&6
7660else
7661  $rm conftest*
7662    echo 'static int dummy;' > conftest.$ac_ext
7663
7664    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7665  (eval $ac_compile) 2>&5
7666  ac_status=$?
7667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668  (exit $ac_status); }; then
7669      soname=conftest
7670      lib=conftest
7671      libobjs=conftest.$ac_objext
7672      deplibs=
7673      wl=$lt_cv_prog_cc_wl
7674      compiler_flags=-v
7675      linker_flags=-v
7676      verstring=
7677      output_objdir=.
7678      libname=conftest
7679      save_allow_undefined_flag=$allow_undefined_flag
7680      allow_undefined_flag=
7681      if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7682  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7683  ac_status=$?
7684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7685  (exit $ac_status); }
7686      then
7687	lt_cv_archive_cmds_need_lc=no
7688      else
7689	lt_cv_archive_cmds_need_lc=yes
7690      fi
7691      allow_undefined_flag=$save_allow_undefined_flag
7692    else
7693      cat conftest.err 1>&5
7694    fi
7695fi
7696
7697    echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7698echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7699    ;;
7700  esac
7701fi
7702need_lc=${lt_cv_archive_cmds_need_lc-yes}
7703
7704# The second clause should only fire when bootstrapping the
7705# libtool distribution, otherwise you forgot to ship ltmain.sh
7706# with your package, and you will get complaints that there are
7707# no rules to generate ltmain.sh.
7708if test -f "$ltmain"; then
7709  :
7710else
7711  # If there is no Makefile yet, we rely on a make rule to execute
7712  # `config.status --recheck' to rerun these tests and create the
7713  # libtool script then.
7714  test -f Makefile && make "$ltmain"
7715fi
7716
7717if test -f "$ltmain"; then
7718  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7719  $rm -f "${ofile}T"
7720
7721  echo creating $ofile
7722
7723  # Now quote all the things that may contain metacharacters while being
7724  # careful not to overquote the AC_SUBSTed values.  We take copies of the
7725  # variables and quote the copies for generation of the libtool script.
7726  for var in echo old_CC old_CFLAGS SED \
7727    AR AR_FLAGS CC LD LN_S NM SHELL \
7728    reload_flag reload_cmds wl \
7729    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7730    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7731    library_names_spec soname_spec \
7732    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7733    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7734    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7735    old_striplib striplib file_magic_cmd export_symbols_cmds \
7736    deplibs_check_method allow_undefined_flag no_undefined_flag \
7737    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7738    global_symbol_to_c_name_address \
7739    hardcode_libdir_flag_spec hardcode_libdir_separator  \
7740    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7741    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7742
7743    case $var in
7744    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7745    old_postinstall_cmds | old_postuninstall_cmds | \
7746    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7747    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7748    postinstall_cmds | postuninstall_cmds | \
7749    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7750      # Double-quote double-evaled strings.
7751      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7752      ;;
7753    *)
7754      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7755      ;;
7756    esac
7757  done
7758
7759  cat <<__EOF__ > "${ofile}T"
7760#! $SHELL
7761
7762# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7763# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7764# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7765#
7766# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7767# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7768#
7769# This program is free software; you can redistribute it and/or modify
7770# it under the terms of the GNU General Public License as published by
7771# the Free Software Foundation; either version 2 of the License, or
7772# (at your option) any later version.
7773#
7774# This program is distributed in the hope that it will be useful, but
7775# WITHOUT ANY WARRANTY; without even the implied warranty of
7776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
7777# General Public License for more details.
7778#
7779# You should have received a copy of the GNU General Public License
7780# along with this program; if not, write to the Free Software
7781# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7782#
7783# As a special exception to the GNU General Public License, if you
7784# distribute this file as part of a program that contains a
7785# configuration script generated by Autoconf, you may include it under
7786# the same distribution terms that you use for the rest of that program.
7787
7788# A sed that does not truncate output.
7789SED=$lt_SED
7790
7791# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7792Xsed="${SED} -e s/^X//"
7793
7794# The HP-UX ksh and POSIX shell print the target directory to stdout
7795# if CDPATH is set.
7796if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7797
7798# ### BEGIN LIBTOOL CONFIG
7799
7800# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7801
7802# Shell to use when invoking shell scripts.
7803SHELL=$lt_SHELL
7804
7805# Whether or not to build shared libraries.
7806build_libtool_libs=$enable_shared
7807
7808# Whether or not to build static libraries.
7809build_old_libs=$enable_static
7810
7811# Whether or not to add -lc for building shared libraries.
7812build_libtool_need_lc=$need_lc
7813
7814# Whether or not to optimize for fast installation.
7815fast_install=$enable_fast_install
7816
7817# The host system.
7818host_alias=$host_alias
7819host=$host
7820
7821# An echo program that does not interpret backslashes.
7822echo=$lt_echo
7823
7824# The archiver.
7825AR=$lt_AR
7826AR_FLAGS=$lt_AR_FLAGS
7827
7828# The default C compiler.
7829CC=$lt_CC
7830
7831# Is the compiler the GNU C compiler?
7832with_gcc=$GCC
7833
7834# The linker used to build libraries.
7835LD=$lt_LD
7836
7837# Whether we need hard or soft links.
7838LN_S=$lt_LN_S
7839
7840# A BSD-compatible nm program.
7841NM=$lt_NM
7842
7843# A symbol stripping program
7844STRIP=$STRIP
7845
7846# Used to examine libraries when file_magic_cmd begins "file"
7847MAGIC_CMD=$MAGIC_CMD
7848
7849# Used on cygwin: DLL creation program.
7850DLLTOOL="$DLLTOOL"
7851
7852# Used on cygwin: object dumper.
7853OBJDUMP="$OBJDUMP"
7854
7855# Used on cygwin: assembler.
7856AS="$AS"
7857
7858# The name of the directory that contains temporary libtool files.
7859objdir=$objdir
7860
7861# How to create reloadable object files.
7862reload_flag=$lt_reload_flag
7863reload_cmds=$lt_reload_cmds
7864
7865# How to pass a linker flag through the compiler.
7866wl=$lt_wl
7867
7868# Object file suffix (normally "o").
7869objext="$ac_objext"
7870
7871# Old archive suffix (normally "a").
7872libext="$libext"
7873
7874# Executable file suffix (normally "").
7875exeext="$exeext"
7876
7877# Additional compiler flags for building library objects.
7878pic_flag=$lt_pic_flag
7879pic_mode=$pic_mode
7880
7881# Does compiler simultaneously support -c and -o options?
7882compiler_c_o=$lt_compiler_c_o
7883
7884# Can we write directly to a .lo ?
7885compiler_o_lo=$lt_compiler_o_lo
7886
7887# Must we lock files when doing compilation ?
7888need_locks=$lt_need_locks
7889
7890# Do we need the lib prefix for modules?
7891need_lib_prefix=$need_lib_prefix
7892
7893# Do we need a version for libraries?
7894need_version=$need_version
7895
7896# Whether dlopen is supported.
7897dlopen_support=$enable_dlopen
7898
7899# Whether dlopen of programs is supported.
7900dlopen_self=$enable_dlopen_self
7901
7902# Whether dlopen of statically linked programs is supported.
7903dlopen_self_static=$enable_dlopen_self_static
7904
7905# Compiler flag to prevent dynamic linking.
7906link_static_flag=$lt_link_static_flag
7907
7908# Compiler flag to turn off builtin functions.
7909no_builtin_flag=$lt_no_builtin_flag
7910
7911# Compiler flag to allow reflexive dlopens.
7912export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7913
7914# Compiler flag to generate shared objects directly from archives.
7915whole_archive_flag_spec=$lt_whole_archive_flag_spec
7916
7917# Compiler flag to generate thread-safe objects.
7918thread_safe_flag_spec=$lt_thread_safe_flag_spec
7919
7920# Library versioning type.
7921version_type=$version_type
7922
7923# Format of library name prefix.
7924libname_spec=$lt_libname_spec
7925
7926# List of archive names.  First name is the real one, the rest are links.
7927# The last name is the one that the linker finds with -lNAME.
7928library_names_spec=$lt_library_names_spec
7929
7930# The coded name of the library, if different from the real name.
7931soname_spec=$lt_soname_spec
7932
7933# Commands used to build and install an old-style archive.
7934RANLIB=$lt_RANLIB
7935old_archive_cmds=$lt_old_archive_cmds
7936old_postinstall_cmds=$lt_old_postinstall_cmds
7937old_postuninstall_cmds=$lt_old_postuninstall_cmds
7938
7939# Create an old-style archive from a shared archive.
7940old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7941
7942# Create a temporary old-style archive to link instead of a shared archive.
7943old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7944
7945# Commands used to build and install a shared archive.
7946archive_cmds=$lt_archive_cmds
7947archive_expsym_cmds=$lt_archive_expsym_cmds
7948postinstall_cmds=$lt_postinstall_cmds
7949postuninstall_cmds=$lt_postuninstall_cmds
7950
7951# Commands to strip libraries.
7952old_striplib=$lt_old_striplib
7953striplib=$lt_striplib
7954
7955# Method to check whether dependent libraries are shared objects.
7956deplibs_check_method=$lt_deplibs_check_method
7957
7958# Command to use when deplibs_check_method == file_magic.
7959file_magic_cmd=$lt_file_magic_cmd
7960
7961# Flag that allows shared libraries with undefined symbols to be built.
7962allow_undefined_flag=$lt_allow_undefined_flag
7963
7964# Flag that forces no undefined symbols.
7965no_undefined_flag=$lt_no_undefined_flag
7966
7967# Commands used to finish a libtool library installation in a directory.
7968finish_cmds=$lt_finish_cmds
7969
7970# Same as above, but a single script fragment to be evaled but not shown.
7971finish_eval=$lt_finish_eval
7972
7973# Take the output of nm and produce a listing of raw symbols and C names.
7974global_symbol_pipe=$lt_global_symbol_pipe
7975
7976# Transform the output of nm in a proper C declaration
7977global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7978
7979# Transform the output of nm in a C name address pair
7980global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7981
7982# This is the shared library runtime path variable.
7983runpath_var=$runpath_var
7984
7985# This is the shared library path variable.
7986shlibpath_var=$shlibpath_var
7987
7988# Is shlibpath searched before the hard-coded library search path?
7989shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7990
7991# How to hardcode a shared library path into an executable.
7992hardcode_action=$hardcode_action
7993
7994# Whether we should hardcode library paths into libraries.
7995hardcode_into_libs=$hardcode_into_libs
7996
7997# Flag to hardcode \$libdir into a binary during linking.
7998# This must work even if \$libdir does not exist.
7999hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8000
8001# Whether we need a single -rpath flag with a separated argument.
8002hardcode_libdir_separator=$lt_hardcode_libdir_separator
8003
8004# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8005# resulting binary.
8006hardcode_direct=$hardcode_direct
8007
8008# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8009# resulting binary.
8010hardcode_minus_L=$hardcode_minus_L
8011
8012# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8013# the resulting binary.
8014hardcode_shlibpath_var=$hardcode_shlibpath_var
8015
8016# Variables whose values should be saved in libtool wrapper scripts and
8017# restored at relink time.
8018variables_saved_for_relink="$variables_saved_for_relink"
8019
8020# Whether libtool must link a program against all its dependency libraries.
8021link_all_deplibs=$link_all_deplibs
8022
8023# Compile-time system search path for libraries
8024sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8025
8026# Run-time system search path for libraries
8027sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8028
8029# Fix the shell variable \$srcfile for the compiler.
8030fix_srcfile_path="$fix_srcfile_path"
8031
8032# Set to yes if exported symbols are required.
8033always_export_symbols=$always_export_symbols
8034
8035# The commands to list exported symbols.
8036export_symbols_cmds=$lt_export_symbols_cmds
8037
8038# The commands to extract the exported symbol list from a shared archive.
8039extract_expsyms_cmds=$lt_extract_expsyms_cmds
8040
8041# Symbols that should not be listed in the preloaded symbols.
8042exclude_expsyms=$lt_exclude_expsyms
8043
8044# Symbols that must always be exported.
8045include_expsyms=$lt_include_expsyms
8046
8047# ### END LIBTOOL CONFIG
8048
8049__EOF__
8050
8051  case $host_os in
8052  aix3*)
8053    cat <<\EOF >> "${ofile}T"
8054
8055# AIX sometimes has problems with the GCC collect2 program.  For some
8056# reason, if we set the COLLECT_NAMES environment variable, the problems
8057# vanish in a puff of smoke.
8058if test "X${COLLECT_NAMES+set}" != Xset; then
8059  COLLECT_NAMES=
8060  export COLLECT_NAMES
8061fi
8062EOF
8063    ;;
8064  esac
8065
8066  case $host_os in
8067  cygwin* | mingw* | pw32* | os2*)
8068    cat <<'EOF' >> "${ofile}T"
8069      # This is a source program that is used to create dlls on Windows
8070      # Don't remove nor modify the starting and closing comments
8071# /* ltdll.c starts here */
8072# #define WIN32_LEAN_AND_MEAN
8073# #include <windows.h>
8074# #undef WIN32_LEAN_AND_MEAN
8075# #include <stdio.h>
8076#
8077# #ifndef __CYGWIN__
8078# #  ifdef __CYGWIN32__
8079# #    define __CYGWIN__ __CYGWIN32__
8080# #  endif
8081# #endif
8082#
8083# #ifdef __cplusplus
8084# extern "C" {
8085# #endif
8086# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8087# #ifdef __cplusplus
8088# }
8089# #endif
8090#
8091# #ifdef __CYGWIN__
8092# #include <cygwin/cygwin_dll.h>
8093# DECLARE_CYGWIN_DLL( DllMain );
8094# #endif
8095# HINSTANCE __hDllInstance_base;
8096#
8097# BOOL APIENTRY
8098# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8099# {
8100#   __hDllInstance_base = hInst;
8101#   return TRUE;
8102# }
8103# /* ltdll.c ends here */
8104	# This is a source program that is used to create import libraries
8105	# on Windows for dlls which lack them. Don't remove nor modify the
8106	# starting and closing comments
8107# /* impgen.c starts here */
8108# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8109#
8110#  This file is part of GNU libtool.
8111#
8112#  This program is free software; you can redistribute it and/or modify
8113#  it under the terms of the GNU General Public License as published by
8114#  the Free Software Foundation; either version 2 of the License, or
8115#  (at your option) any later version.
8116#
8117#  This program is distributed in the hope that it will be useful,
8118#  but WITHOUT ANY WARRANTY; without even the implied warranty of
8119#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8120#  GNU General Public License for more details.
8121#
8122#  You should have received a copy of the GNU General Public License
8123#  along with this program; if not, write to the Free Software
8124#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8125#  */
8126#
8127# #include <stdio.h>		/* for printf() */
8128# #include <unistd.h>		/* for open(), lseek(), read() */
8129# #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
8130# #include <string.h>		/* for strdup() */
8131#
8132# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8133# #ifndef O_BINARY
8134# #define O_BINARY 0
8135# #endif
8136#
8137# static unsigned int
8138# pe_get16 (fd, offset)
8139#      int fd;
8140#      int offset;
8141# {
8142#   unsigned char b[2];
8143#   lseek (fd, offset, SEEK_SET);
8144#   read (fd, b, 2);
8145#   return b[0] + (b[1]<<8);
8146# }
8147#
8148# static unsigned int
8149# pe_get32 (fd, offset)
8150#     int fd;
8151#     int offset;
8152# {
8153#   unsigned char b[4];
8154#   lseek (fd, offset, SEEK_SET);
8155#   read (fd, b, 4);
8156#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8157# }
8158#
8159# static unsigned int
8160# pe_as32 (ptr)
8161#      void *ptr;
8162# {
8163#   unsigned char *b = ptr;
8164#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8165# }
8166#
8167# int
8168# main (argc, argv)
8169#     int argc;
8170#     char *argv[];
8171# {
8172#     int dll;
8173#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8174#     unsigned long export_rva, export_size, nsections, secptr, expptr;
8175#     unsigned long name_rvas, nexp;
8176#     unsigned char *expdata, *erva;
8177#     char *filename, *dll_name;
8178#
8179#     filename = argv[1];
8180#
8181#     dll = open(filename, O_RDONLY|O_BINARY);
8182#     if (dll < 1)
8183# 	return 1;
8184#
8185#     dll_name = filename;
8186#
8187#     for (i=0; filename[i]; i++)
8188# 	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8189# 	    dll_name = filename + i +1;
8190#
8191#     pe_header_offset = pe_get32 (dll, 0x3c);
8192#     opthdr_ofs = pe_header_offset + 4 + 20;
8193#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8194#
8195#     if (num_entries < 1) /* no exports */
8196# 	return 1;
8197#
8198#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8199#     export_size = pe_get32 (dll, opthdr_ofs + 100);
8200#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8201#     secptr = (pe_header_offset + 4 + 20 +
8202# 	      pe_get16 (dll, pe_header_offset + 4 + 16));
8203#
8204#     expptr = 0;
8205#     for (i = 0; i < nsections; i++)
8206#     {
8207# 	char sname[8];
8208# 	unsigned long secptr1 = secptr + 40 * i;
8209# 	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8210# 	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8211# 	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8212# 	lseek(dll, secptr1, SEEK_SET);
8213# 	read(dll, sname, 8);
8214# 	if (vaddr <= export_rva && vaddr+vsize > export_rva)
8215# 	{
8216# 	    expptr = fptr + (export_rva - vaddr);
8217# 	    if (export_rva + export_size > vaddr + vsize)
8218# 		export_size = vsize - (export_rva - vaddr);
8219# 	    break;
8220# 	}
8221#     }
8222#
8223#     expdata = (unsigned char*)malloc(export_size);
8224#     lseek (dll, expptr, SEEK_SET);
8225#     read (dll, expdata, export_size);
8226#     erva = expdata - export_rva;
8227#
8228#     nexp = pe_as32 (expdata+24);
8229#     name_rvas = pe_as32 (expdata+32);
8230#
8231#     printf ("EXPORTS\n");
8232#     for (i = 0; i<nexp; i++)
8233#     {
8234# 	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8235# 	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8236#     }
8237#
8238#     return 0;
8239# }
8240# /* impgen.c ends here */
8241
8242EOF
8243    ;;
8244  esac
8245
8246  # We use sed instead of cat because bash on DJGPP gets confused if
8247  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8248  # text mode, it properly converts lines to CR/LF.  This bash problem
8249  # is reportedly fixed, but why not run on old versions too?
8250  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8251
8252  mv -f "${ofile}T" "$ofile" || \
8253    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8254  chmod +x "$ofile"
8255fi
8256
8257
8258
8259
8260
8261# This can be used to rebuild libtool when needed
8262LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8263
8264# Always use our own libtool.
8265LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8266
8267# Prevent multiple expansion
8268
8269
8270
8271
8272# Check whether --with-dmalloc or --without-dmalloc was given.
8273if test "${with_dmalloc+set}" = set; then
8274  withval="$with_dmalloc"
8275  if test $withval = yes; then
8276		AM_CXXFLAGS="${AM_CXXFLAGS} -DWANT_DMALLOC"
8277		LIBS="$LIBS -ldmalloc -L/usr/local/lib"
8278	fi
8279
8280fi;
8281# Check whether --enable-charsets or --disable-charsets was given.
8282if test "${enable_charsets+set}" = set; then
8283  enableval="$enable_charsets"
8284  if test x$enableval = xno; then
8285		AM_CXXFLAGS="${AM_CXXFLAGS} -DFORGET_CHARSETS"
8286	fi
8287fi;
8288# Check whether --enable-portaudio or --disable-portaudio was given.
8289if test "${enable_portaudio+set}" = set; then
8290  enableval="$enable_portaudio"
8291  case "x$enableval" in
8292		xno)
8293			EXTRA_PORTAUDIO_DEFS="-DFORGET_PORTAUDIO"
8294			EXTRA_PORTAUDIO_LIBS=""
8295			;;
8296		xyes)
8297			EXTRA_PORTAUDIO_DEFS=""
8298			EXTRA_PORTAUDIO_LIBS="-lportaudio -lpablio -L../libs/portaudio/lib -lpthread"
8299			;;
8300		*)	{ { echo "$as_me:$LINENO: error: bad value $enableval for --enable-portaudio" >&5
8301echo "$as_me: error: bad value $enableval for --enable-portaudio" >&2;}
8302   { (exit 1); exit 1; }; } ;;
8303	esac
8304else
8305  EXTRA_PORTAUDIO_LIBS=""
8306	 EXTRA_PORTAUDIO_DEFS="-DFORGET_PORTAUDIO"
8307
8308fi;
8309
8310
8311if test "${EXTRA_PORTAUDIO_DEFS}" = ""; then
8312  PORTAUDIO_TRUE=
8313  PORTAUDIO_FALSE='#'
8314else
8315  PORTAUDIO_TRUE='#'
8316  PORTAUDIO_FALSE=
8317fi
8318
8319
8320ac_ext=cc
8321ac_cpp='$CXXCPP $CPPFLAGS'
8322ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8323ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8324ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8325
8326
8327for ac_prog in ld wlink
8328do
8329  # Extract the first word of "$ac_prog", so it can be a program name with args.
8330set dummy $ac_prog; ac_word=$2
8331echo "$as_me:$LINENO: checking for $ac_word" >&5
8332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8333if test "${ac_cv_prog_LNK+set}" = set; then
8334  echo $ECHO_N "(cached) $ECHO_C" >&6
8335else
8336  if test -n "$LNK"; then
8337  ac_cv_prog_LNK="$LNK" # Let the user override the test.
8338else
8339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8340for as_dir in $PATH
8341do
8342  IFS=$as_save_IFS
8343  test -z "$as_dir" && as_dir=.
8344  for ac_exec_ext in '' $ac_executable_extensions; do
8345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8346    ac_cv_prog_LNK="$ac_prog"
8347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348    break 2
8349  fi
8350done
8351done
8352
8353fi
8354fi
8355LNK=$ac_cv_prog_LNK
8356if test -n "$LNK"; then
8357  echo "$as_me:$LINENO: result: $LNK" >&5
8358echo "${ECHO_T}$LNK" >&6
8359else
8360  echo "$as_me:$LINENO: result: no" >&5
8361echo "${ECHO_T}no" >&6
8362fi
8363
8364  test -n "$LNK" && break
8365done
8366test -n "$LNK" || LNK="linker"
8367
8368
8369
8370echo "$as_me:$LINENO: checking for main in -lstdc++" >&5
8371echo $ECHO_N "checking for main in -lstdc++... $ECHO_C" >&6
8372if test "${ac_cv_lib_stdcpp_main+set}" = set; then
8373  echo $ECHO_N "(cached) $ECHO_C" >&6
8374else
8375  ac_check_lib_save_LIBS=$LIBS
8376LIBS="-lstdc++  $LIBS"
8377cat >conftest.$ac_ext <<_ACEOF
8378#line $LINENO "configure"
8379/* confdefs.h.  */
8380_ACEOF
8381cat confdefs.h >>conftest.$ac_ext
8382cat >>conftest.$ac_ext <<_ACEOF
8383/* end confdefs.h.  */
8384
8385
8386int
8387main ()
8388{
8389main ();
8390  ;
8391  return 0;
8392}
8393_ACEOF
8394rm -f conftest.$ac_objext conftest$ac_exeext
8395if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8396  (eval $ac_link) 2>&5
8397  ac_status=$?
8398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399  (exit $ac_status); } &&
8400         { ac_try='test -s conftest$ac_exeext'
8401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8402  (eval $ac_try) 2>&5
8403  ac_status=$?
8404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405  (exit $ac_status); }; }; then
8406  ac_cv_lib_stdcpp_main=yes
8407else
8408  echo "$as_me: failed program was:" >&5
8409sed 's/^/| /' conftest.$ac_ext >&5
8410
8411ac_cv_lib_stdcpp_main=no
8412fi
8413rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8414LIBS=$ac_check_lib_save_LIBS
8415fi
8416echo "$as_me:$LINENO: result: $ac_cv_lib_stdcpp_main" >&5
8417echo "${ECHO_T}$ac_cv_lib_stdcpp_main" >&6
8418if test $ac_cv_lib_stdcpp_main = yes; then
8419  cat >>confdefs.h <<_ACEOF
8420#define HAVE_LIBSTDC__ 1
8421_ACEOF
8422
8423  LIBS="-lstdc++ $LIBS"
8424
8425fi
8426
8427echo "$as_me:$LINENO: checking for library containing regcomp" >&5
8428echo $ECHO_N "checking for library containing regcomp... $ECHO_C" >&6
8429if test "${ac_cv_search_regcomp+set}" = set; then
8430  echo $ECHO_N "(cached) $ECHO_C" >&6
8431else
8432  ac_func_search_save_LIBS=$LIBS
8433ac_cv_search_regcomp=no
8434cat >conftest.$ac_ext <<_ACEOF
8435#line $LINENO "configure"
8436/* confdefs.h.  */
8437_ACEOF
8438cat confdefs.h >>conftest.$ac_ext
8439cat >>conftest.$ac_ext <<_ACEOF
8440/* end confdefs.h.  */
8441
8442/* Override any gcc2 internal prototype to avoid an error.  */
8443#ifdef __cplusplus
8444extern "C"
8445#endif
8446/* We use char because int might match the return type of a gcc2
8447   builtin and then its argument prototype would still apply.  */
8448char regcomp ();
8449int
8450main ()
8451{
8452regcomp ();
8453  ;
8454  return 0;
8455}
8456_ACEOF
8457rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8459  (eval $ac_link) 2>&5
8460  ac_status=$?
8461  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462  (exit $ac_status); } &&
8463         { ac_try='test -s conftest$ac_exeext'
8464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8465  (eval $ac_try) 2>&5
8466  ac_status=$?
8467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468  (exit $ac_status); }; }; then
8469  ac_cv_search_regcomp="none required"
8470else
8471  echo "$as_me: failed program was:" >&5
8472sed 's/^/| /' conftest.$ac_ext >&5
8473
8474fi
8475rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8476if test "$ac_cv_search_regcomp" = no; then
8477  for ac_lib in c rx regex System; do
8478    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8479    cat >conftest.$ac_ext <<_ACEOF
8480#line $LINENO "configure"
8481/* confdefs.h.  */
8482_ACEOF
8483cat confdefs.h >>conftest.$ac_ext
8484cat >>conftest.$ac_ext <<_ACEOF
8485/* end confdefs.h.  */
8486
8487/* Override any gcc2 internal prototype to avoid an error.  */
8488#ifdef __cplusplus
8489extern "C"
8490#endif
8491/* We use char because int might match the return type of a gcc2
8492   builtin and then its argument prototype would still apply.  */
8493char regcomp ();
8494int
8495main ()
8496{
8497regcomp ();
8498  ;
8499  return 0;
8500}
8501_ACEOF
8502rm -f conftest.$ac_objext conftest$ac_exeext
8503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8504  (eval $ac_link) 2>&5
8505  ac_status=$?
8506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507  (exit $ac_status); } &&
8508         { ac_try='test -s conftest$ac_exeext'
8509  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510  (eval $ac_try) 2>&5
8511  ac_status=$?
8512  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8513  (exit $ac_status); }; }; then
8514  ac_cv_search_regcomp="-l$ac_lib"
8515break
8516else
8517  echo "$as_me: failed program was:" >&5
8518sed 's/^/| /' conftest.$ac_ext >&5
8519
8520fi
8521rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8522  done
8523fi
8524LIBS=$ac_func_search_save_LIBS
8525fi
8526echo "$as_me:$LINENO: result: $ac_cv_search_regcomp" >&5
8527echo "${ECHO_T}$ac_cv_search_regcomp" >&6
8528if test "$ac_cv_search_regcomp" != no; then
8529  test "$ac_cv_search_regcomp" = "none required" || LIBS="$ac_cv_search_regcomp $LIBS"
8530  EXTRA_REGEX_OBJ=""
8531else
8532  EXTRA_REGEX_OBJ="../libs/regex/rx.$(OBJEXT)"
8533fi
8534
8535
8536
8537
8538
8539echo "$as_me:$LINENO: checking for main in -lsocket" >&5
8540echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6
8541if test "${ac_cv_lib_socket_main+set}" = set; then
8542  echo $ECHO_N "(cached) $ECHO_C" >&6
8543else
8544  ac_check_lib_save_LIBS=$LIBS
8545LIBS="-lsocket  $LIBS"
8546cat >conftest.$ac_ext <<_ACEOF
8547#line $LINENO "configure"
8548/* confdefs.h.  */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h.  */
8553
8554
8555int
8556main ()
8557{
8558main ();
8559  ;
8560  return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext conftest$ac_exeext
8564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8565  (eval $ac_link) 2>&5
8566  ac_status=$?
8567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568  (exit $ac_status); } &&
8569         { ac_try='test -s conftest$ac_exeext'
8570  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571  (eval $ac_try) 2>&5
8572  ac_status=$?
8573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574  (exit $ac_status); }; }; then
8575  ac_cv_lib_socket_main=yes
8576else
8577  echo "$as_me: failed program was:" >&5
8578sed 's/^/| /' conftest.$ac_ext >&5
8579
8580ac_cv_lib_socket_main=no
8581fi
8582rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8583LIBS=$ac_check_lib_save_LIBS
8584fi
8585echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
8586echo "${ECHO_T}$ac_cv_lib_socket_main" >&6
8587if test $ac_cv_lib_socket_main = yes; then
8588  cat >>confdefs.h <<_ACEOF
8589#define HAVE_LIBSOCKET 1
8590_ACEOF
8591
8592  LIBS="-lsocket $LIBS"
8593
8594fi
8595
8596
8597echo "$as_me:$LINENO: checking for main in -llnsl" >&5
8598echo $ECHO_N "checking for main in -llnsl... $ECHO_C" >&6
8599if test "${ac_cv_lib_lnsl_main+set}" = set; then
8600  echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602  ac_check_lib_save_LIBS=$LIBS
8603LIBS="-llnsl  $LIBS"
8604cat >conftest.$ac_ext <<_ACEOF
8605#line $LINENO "configure"
8606/* confdefs.h.  */
8607_ACEOF
8608cat confdefs.h >>conftest.$ac_ext
8609cat >>conftest.$ac_ext <<_ACEOF
8610/* end confdefs.h.  */
8611
8612
8613int
8614main ()
8615{
8616main ();
8617  ;
8618  return 0;
8619}
8620_ACEOF
8621rm -f conftest.$ac_objext conftest$ac_exeext
8622if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8623  (eval $ac_link) 2>&5
8624  ac_status=$?
8625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626  (exit $ac_status); } &&
8627         { ac_try='test -s conftest$ac_exeext'
8628  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8629  (eval $ac_try) 2>&5
8630  ac_status=$?
8631  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632  (exit $ac_status); }; }; then
8633  ac_cv_lib_lnsl_main=yes
8634else
8635  echo "$as_me: failed program was:" >&5
8636sed 's/^/| /' conftest.$ac_ext >&5
8637
8638ac_cv_lib_lnsl_main=no
8639fi
8640rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8641LIBS=$ac_check_lib_save_LIBS
8642fi
8643echo "$as_me:$LINENO: result: $ac_cv_lib_lnsl_main" >&5
8644echo "${ECHO_T}$ac_cv_lib_lnsl_main" >&6
8645if test $ac_cv_lib_lnsl_main = yes; then
8646  cat >>confdefs.h <<_ACEOF
8647#define HAVE_LIBLNSL 1
8648_ACEOF
8649
8650  LIBS="-llnsl $LIBS"
8651
8652fi
8653
8654ac_ext=cc
8655ac_cpp='$CXXCPP $CPPFLAGS'
8656ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8657ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8658ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8659
8660# Find a good install program.  We prefer a C program (faster),
8661# so one script is as good as another.  But avoid the broken or
8662# incompatible versions:
8663# SysV /etc/install, /usr/sbin/install
8664# SunOS /usr/etc/install
8665# IRIX /sbin/install
8666# AIX /bin/install
8667# AmigaOS /C/install, which installs bootblocks on floppy discs
8668# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8669# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8670# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8671# ./install, which can be erroneously created by make from ./install.sh.
8672echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8673echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8674if test -z "$INSTALL"; then
8675if test "${ac_cv_path_install+set}" = set; then
8676  echo $ECHO_N "(cached) $ECHO_C" >&6
8677else
8678  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679for as_dir in $PATH
8680do
8681  IFS=$as_save_IFS
8682  test -z "$as_dir" && as_dir=.
8683  # Account for people who put trailing slashes in PATH elements.
8684case $as_dir/ in
8685  ./ | .// | /cC/* | \
8686  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8687  /usr/ucb/* ) ;;
8688  *)
8689    # OSF1 and SCO ODT 3.0 have their own names for install.
8690    # Don't use installbsd from OSF since it installs stuff as root
8691    # by default.
8692    for ac_prog in ginstall scoinst install; do
8693      for ac_exec_ext in '' $ac_executable_extensions; do
8694        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8695          if test $ac_prog = install &&
8696            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8697            # AIX install.  It has an incompatible calling convention.
8698            :
8699          elif test $ac_prog = install &&
8700            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8701            # program-specific install script used by HP pwplus--don't use.
8702            :
8703          else
8704            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8705            break 3
8706          fi
8707        fi
8708      done
8709    done
8710    ;;
8711esac
8712done
8713
8714
8715fi
8716  if test "${ac_cv_path_install+set}" = set; then
8717    INSTALL=$ac_cv_path_install
8718  else
8719    # As a last resort, use the slow shell script.  We don't cache a
8720    # path for INSTALL within a source directory, because that will
8721    # break other packages using the cache if that directory is
8722    # removed, or if the path is relative.
8723    INSTALL=$ac_install_sh
8724  fi
8725fi
8726echo "$as_me:$LINENO: result: $INSTALL" >&5
8727echo "${ECHO_T}$INSTALL" >&6
8728
8729# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8730# It thinks the first close brace ends the variable substitution.
8731test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8732
8733test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8734
8735test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8736
8737for ac_prog in 'bison -y' byacc
8738do
8739  # Extract the first word of "$ac_prog", so it can be a program name with args.
8740set dummy $ac_prog; ac_word=$2
8741echo "$as_me:$LINENO: checking for $ac_word" >&5
8742echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8743if test "${ac_cv_prog_YACC+set}" = set; then
8744  echo $ECHO_N "(cached) $ECHO_C" >&6
8745else
8746  if test -n "$YACC"; then
8747  ac_cv_prog_YACC="$YACC" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752  IFS=$as_save_IFS
8753  test -z "$as_dir" && as_dir=.
8754  for ac_exec_ext in '' $ac_executable_extensions; do
8755  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8756    ac_cv_prog_YACC="$ac_prog"
8757    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8758    break 2
8759  fi
8760done
8761done
8762
8763fi
8764fi
8765YACC=$ac_cv_prog_YACC
8766if test -n "$YACC"; then
8767  echo "$as_me:$LINENO: result: $YACC" >&5
8768echo "${ECHO_T}$YACC" >&6
8769else
8770  echo "$as_me:$LINENO: result: no" >&5
8771echo "${ECHO_T}no" >&6
8772fi
8773
8774  test -n "$YACC" && break
8775done
8776test -n "$YACC" || YACC="yacc"
8777
8778for ac_prog in flex lex
8779do
8780  # Extract the first word of "$ac_prog", so it can be a program name with args.
8781set dummy $ac_prog; ac_word=$2
8782echo "$as_me:$LINENO: checking for $ac_word" >&5
8783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8784if test "${ac_cv_prog_LEX+set}" = set; then
8785  echo $ECHO_N "(cached) $ECHO_C" >&6
8786else
8787  if test -n "$LEX"; then
8788  ac_cv_prog_LEX="$LEX" # Let the user override the test.
8789else
8790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8791for as_dir in $PATH
8792do
8793  IFS=$as_save_IFS
8794  test -z "$as_dir" && as_dir=.
8795  for ac_exec_ext in '' $ac_executable_extensions; do
8796  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8797    ac_cv_prog_LEX="$ac_prog"
8798    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8799    break 2
8800  fi
8801done
8802done
8803
8804fi
8805fi
8806LEX=$ac_cv_prog_LEX
8807if test -n "$LEX"; then
8808  echo "$as_me:$LINENO: result: $LEX" >&5
8809echo "${ECHO_T}$LEX" >&6
8810else
8811  echo "$as_me:$LINENO: result: no" >&5
8812echo "${ECHO_T}no" >&6
8813fi
8814
8815  test -n "$LEX" && break
8816done
8817test -n "$LEX" || LEX=":"
8818
8819if test -z "$LEXLIB"
8820then
8821  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
8822echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
8823if test "${ac_cv_lib_fl_yywrap+set}" = set; then
8824  echo $ECHO_N "(cached) $ECHO_C" >&6
8825else
8826  ac_check_lib_save_LIBS=$LIBS
8827LIBS="-lfl  $LIBS"
8828cat >conftest.$ac_ext <<_ACEOF
8829#line $LINENO "configure"
8830/* confdefs.h.  */
8831_ACEOF
8832cat confdefs.h >>conftest.$ac_ext
8833cat >>conftest.$ac_ext <<_ACEOF
8834/* end confdefs.h.  */
8835
8836/* Override any gcc2 internal prototype to avoid an error.  */
8837#ifdef __cplusplus
8838extern "C"
8839#endif
8840/* We use char because int might match the return type of a gcc2
8841   builtin and then its argument prototype would still apply.  */
8842char yywrap ();
8843int
8844main ()
8845{
8846yywrap ();
8847  ;
8848  return 0;
8849}
8850_ACEOF
8851rm -f conftest.$ac_objext conftest$ac_exeext
8852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8853  (eval $ac_link) 2>&5
8854  ac_status=$?
8855  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856  (exit $ac_status); } &&
8857         { ac_try='test -s conftest$ac_exeext'
8858  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8859  (eval $ac_try) 2>&5
8860  ac_status=$?
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); }; }; then
8863  ac_cv_lib_fl_yywrap=yes
8864else
8865  echo "$as_me: failed program was:" >&5
8866sed 's/^/| /' conftest.$ac_ext >&5
8867
8868ac_cv_lib_fl_yywrap=no
8869fi
8870rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8871LIBS=$ac_check_lib_save_LIBS
8872fi
8873echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
8874echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
8875if test $ac_cv_lib_fl_yywrap = yes; then
8876  LEXLIB="-lfl"
8877else
8878  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
8879echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
8880if test "${ac_cv_lib_l_yywrap+set}" = set; then
8881  echo $ECHO_N "(cached) $ECHO_C" >&6
8882else
8883  ac_check_lib_save_LIBS=$LIBS
8884LIBS="-ll  $LIBS"
8885cat >conftest.$ac_ext <<_ACEOF
8886#line $LINENO "configure"
8887/* confdefs.h.  */
8888_ACEOF
8889cat confdefs.h >>conftest.$ac_ext
8890cat >>conftest.$ac_ext <<_ACEOF
8891/* end confdefs.h.  */
8892
8893/* Override any gcc2 internal prototype to avoid an error.  */
8894#ifdef __cplusplus
8895extern "C"
8896#endif
8897/* We use char because int might match the return type of a gcc2
8898   builtin and then its argument prototype would still apply.  */
8899char yywrap ();
8900int
8901main ()
8902{
8903yywrap ();
8904  ;
8905  return 0;
8906}
8907_ACEOF
8908rm -f conftest.$ac_objext conftest$ac_exeext
8909if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8910  (eval $ac_link) 2>&5
8911  ac_status=$?
8912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913  (exit $ac_status); } &&
8914         { ac_try='test -s conftest$ac_exeext'
8915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916  (eval $ac_try) 2>&5
8917  ac_status=$?
8918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919  (exit $ac_status); }; }; then
8920  ac_cv_lib_l_yywrap=yes
8921else
8922  echo "$as_me: failed program was:" >&5
8923sed 's/^/| /' conftest.$ac_ext >&5
8924
8925ac_cv_lib_l_yywrap=no
8926fi
8927rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8928LIBS=$ac_check_lib_save_LIBS
8929fi
8930echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
8931echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
8932if test $ac_cv_lib_l_yywrap = yes; then
8933  LEXLIB="-ll"
8934fi
8935
8936fi
8937
8938fi
8939
8940if test "x$LEX" != "x:"; then
8941  echo "$as_me:$LINENO: checking lex output file root" >&5
8942echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
8943if test "${ac_cv_prog_lex_root+set}" = set; then
8944  echo $ECHO_N "(cached) $ECHO_C" >&6
8945else
8946  # The minimal lex program is just a single line: %%.  But some broken lexes
8947# (Solaris, I think it was) want two %% lines, so accommodate them.
8948cat >conftest.l <<_ACEOF
8949%%
8950%%
8951_ACEOF
8952{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
8953  (eval $LEX conftest.l) 2>&5
8954  ac_status=$?
8955  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956  (exit $ac_status); }
8957if test -f lex.yy.c; then
8958  ac_cv_prog_lex_root=lex.yy
8959elif test -f lexyy.c; then
8960  ac_cv_prog_lex_root=lexyy
8961else
8962  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
8963echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
8964   { (exit 1); exit 1; }; }
8965fi
8966fi
8967echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
8968echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
8969rm -f conftest.l
8970LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
8971
8972echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
8973echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
8974if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
8975  echo $ECHO_N "(cached) $ECHO_C" >&6
8976else
8977  # POSIX says lex can declare yytext either as a pointer or an array; the
8978# default is implementation-dependent. Figure out which it is, since
8979# not all implementations provide the %pointer and %array declarations.
8980ac_cv_prog_lex_yytext_pointer=no
8981echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
8982ac_save_LIBS=$LIBS
8983LIBS="$LIBS $LEXLIB"
8984cat >conftest.$ac_ext <<_ACEOF
8985`cat $LEX_OUTPUT_ROOT.c`
8986_ACEOF
8987rm -f conftest.$ac_objext conftest$ac_exeext
8988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989  (eval $ac_link) 2>&5
8990  ac_status=$?
8991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992  (exit $ac_status); } &&
8993         { ac_try='test -s conftest$ac_exeext'
8994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8995  (eval $ac_try) 2>&5
8996  ac_status=$?
8997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998  (exit $ac_status); }; }; then
8999  ac_cv_prog_lex_yytext_pointer=yes
9000else
9001  echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004fi
9005rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9006LIBS=$ac_save_LIBS
9007rm -f "${LEX_OUTPUT_ROOT}.c"
9008
9009fi
9010echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
9011echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
9012if test $ac_cv_prog_lex_yytext_pointer = yes; then
9013
9014cat >>confdefs.h <<\_ACEOF
9015#define YYTEXT_POINTER 1
9016_ACEOF
9017
9018fi
9019
9020fi
9021if test "$LEX" = :; then
9022  LEX=${am_missing_run}flex
9023fi
9024ac_ext=cc
9025ac_cpp='$CXXCPP $CPPFLAGS'
9026ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9027ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9028ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9029echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9030echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
9031if test -z "$CXXCPP"; then
9032  if test "${ac_cv_prog_CXXCPP+set}" = set; then
9033  echo $ECHO_N "(cached) $ECHO_C" >&6
9034else
9035      # Double quotes because CXXCPP needs to be expanded
9036    for CXXCPP in "$CXX -E" "/lib/cpp"
9037    do
9038      ac_preproc_ok=false
9039for ac_cxx_preproc_warn_flag in '' yes
9040do
9041  # Use a header file that comes with gcc, so configuring glibc
9042  # with a fresh cross-compiler works.
9043  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9044  # <limits.h> exists even on freestanding compilers.
9045  # On the NeXT, cc -E runs the code through the compiler's parser,
9046  # not just through cpp. "Syntax error" is here to catch this case.
9047  cat >conftest.$ac_ext <<_ACEOF
9048#line $LINENO "configure"
9049/* confdefs.h.  */
9050_ACEOF
9051cat confdefs.h >>conftest.$ac_ext
9052cat >>conftest.$ac_ext <<_ACEOF
9053/* end confdefs.h.  */
9054#ifdef __STDC__
9055# include <limits.h>
9056#else
9057# include <assert.h>
9058#endif
9059                     Syntax error
9060_ACEOF
9061if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9062  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9063  ac_status=$?
9064  grep -v '^ *+' conftest.er1 >conftest.err
9065  rm -f conftest.er1
9066  cat conftest.err >&5
9067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9068  (exit $ac_status); } >/dev/null; then
9069  if test -s conftest.err; then
9070    ac_cpp_err=$ac_cxx_preproc_warn_flag
9071  else
9072    ac_cpp_err=
9073  fi
9074else
9075  ac_cpp_err=yes
9076fi
9077if test -z "$ac_cpp_err"; then
9078  :
9079else
9080  echo "$as_me: failed program was:" >&5
9081sed 's/^/| /' conftest.$ac_ext >&5
9082
9083  # Broken: fails on valid input.
9084continue
9085fi
9086rm -f conftest.err conftest.$ac_ext
9087
9088  # OK, works on sane cases.  Now check whether non-existent headers
9089  # can be detected and how.
9090  cat >conftest.$ac_ext <<_ACEOF
9091#line $LINENO "configure"
9092/* confdefs.h.  */
9093_ACEOF
9094cat confdefs.h >>conftest.$ac_ext
9095cat >>conftest.$ac_ext <<_ACEOF
9096/* end confdefs.h.  */
9097#include <ac_nonexistent.h>
9098_ACEOF
9099if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9100  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9101  ac_status=$?
9102  grep -v '^ *+' conftest.er1 >conftest.err
9103  rm -f conftest.er1
9104  cat conftest.err >&5
9105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106  (exit $ac_status); } >/dev/null; then
9107  if test -s conftest.err; then
9108    ac_cpp_err=$ac_cxx_preproc_warn_flag
9109  else
9110    ac_cpp_err=
9111  fi
9112else
9113  ac_cpp_err=yes
9114fi
9115if test -z "$ac_cpp_err"; then
9116  # Broken: success on invalid input.
9117continue
9118else
9119  echo "$as_me: failed program was:" >&5
9120sed 's/^/| /' conftest.$ac_ext >&5
9121
9122  # Passes both tests.
9123ac_preproc_ok=:
9124break
9125fi
9126rm -f conftest.err conftest.$ac_ext
9127
9128done
9129# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9130rm -f conftest.err conftest.$ac_ext
9131if $ac_preproc_ok; then
9132  break
9133fi
9134
9135    done
9136    ac_cv_prog_CXXCPP=$CXXCPP
9137
9138fi
9139  CXXCPP=$ac_cv_prog_CXXCPP
9140else
9141  ac_cv_prog_CXXCPP=$CXXCPP
9142fi
9143echo "$as_me:$LINENO: result: $CXXCPP" >&5
9144echo "${ECHO_T}$CXXCPP" >&6
9145ac_preproc_ok=false
9146for ac_cxx_preproc_warn_flag in '' yes
9147do
9148  # Use a header file that comes with gcc, so configuring glibc
9149  # with a fresh cross-compiler works.
9150  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9151  # <limits.h> exists even on freestanding compilers.
9152  # On the NeXT, cc -E runs the code through the compiler's parser,
9153  # not just through cpp. "Syntax error" is here to catch this case.
9154  cat >conftest.$ac_ext <<_ACEOF
9155#line $LINENO "configure"
9156/* confdefs.h.  */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h.  */
9161#ifdef __STDC__
9162# include <limits.h>
9163#else
9164# include <assert.h>
9165#endif
9166                     Syntax error
9167_ACEOF
9168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9169  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9170  ac_status=$?
9171  grep -v '^ *+' conftest.er1 >conftest.err
9172  rm -f conftest.er1
9173  cat conftest.err >&5
9174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175  (exit $ac_status); } >/dev/null; then
9176  if test -s conftest.err; then
9177    ac_cpp_err=$ac_cxx_preproc_warn_flag
9178  else
9179    ac_cpp_err=
9180  fi
9181else
9182  ac_cpp_err=yes
9183fi
9184if test -z "$ac_cpp_err"; then
9185  :
9186else
9187  echo "$as_me: failed program was:" >&5
9188sed 's/^/| /' conftest.$ac_ext >&5
9189
9190  # Broken: fails on valid input.
9191continue
9192fi
9193rm -f conftest.err conftest.$ac_ext
9194
9195  # OK, works on sane cases.  Now check whether non-existent headers
9196  # can be detected and how.
9197  cat >conftest.$ac_ext <<_ACEOF
9198#line $LINENO "configure"
9199/* confdefs.h.  */
9200_ACEOF
9201cat confdefs.h >>conftest.$ac_ext
9202cat >>conftest.$ac_ext <<_ACEOF
9203/* end confdefs.h.  */
9204#include <ac_nonexistent.h>
9205_ACEOF
9206if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9207  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9208  ac_status=$?
9209  grep -v '^ *+' conftest.er1 >conftest.err
9210  rm -f conftest.er1
9211  cat conftest.err >&5
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); } >/dev/null; then
9214  if test -s conftest.err; then
9215    ac_cpp_err=$ac_cxx_preproc_warn_flag
9216  else
9217    ac_cpp_err=
9218  fi
9219else
9220  ac_cpp_err=yes
9221fi
9222if test -z "$ac_cpp_err"; then
9223  # Broken: success on invalid input.
9224continue
9225else
9226  echo "$as_me: failed program was:" >&5
9227sed 's/^/| /' conftest.$ac_ext >&5
9228
9229  # Passes both tests.
9230ac_preproc_ok=:
9231break
9232fi
9233rm -f conftest.err conftest.$ac_ext
9234
9235done
9236# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9237rm -f conftest.err conftest.$ac_ext
9238if $ac_preproc_ok; then
9239  :
9240else
9241  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9242See \`config.log' for more details." >&5
9243echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9244See \`config.log' for more details." >&2;}
9245   { (exit 1); exit 1; }; }
9246fi
9247
9248ac_ext=cc
9249ac_cpp='$CXXCPP $CPPFLAGS'
9250ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9251ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9252ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9253
9254
9255echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9256echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9257if test "${ac_cv_header_stdc+set}" = set; then
9258  echo $ECHO_N "(cached) $ECHO_C" >&6
9259else
9260  cat >conftest.$ac_ext <<_ACEOF
9261#line $LINENO "configure"
9262/* confdefs.h.  */
9263_ACEOF
9264cat confdefs.h >>conftest.$ac_ext
9265cat >>conftest.$ac_ext <<_ACEOF
9266/* end confdefs.h.  */
9267#include <stdlib.h>
9268#include <stdarg.h>
9269#include <string.h>
9270#include <float.h>
9271
9272int
9273main ()
9274{
9275
9276  ;
9277  return 0;
9278}
9279_ACEOF
9280rm -f conftest.$ac_objext
9281if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9282  (eval $ac_compile) 2>&5
9283  ac_status=$?
9284  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285  (exit $ac_status); } &&
9286         { ac_try='test -s conftest.$ac_objext'
9287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9288  (eval $ac_try) 2>&5
9289  ac_status=$?
9290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291  (exit $ac_status); }; }; then
9292  ac_cv_header_stdc=yes
9293else
9294  echo "$as_me: failed program was:" >&5
9295sed 's/^/| /' conftest.$ac_ext >&5
9296
9297ac_cv_header_stdc=no
9298fi
9299rm -f conftest.$ac_objext conftest.$ac_ext
9300
9301if test $ac_cv_header_stdc = yes; then
9302  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9303  cat >conftest.$ac_ext <<_ACEOF
9304#line $LINENO "configure"
9305/* confdefs.h.  */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h.  */
9310#include <string.h>
9311
9312_ACEOF
9313if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9314  $EGREP "memchr" >/dev/null 2>&1; then
9315  :
9316else
9317  ac_cv_header_stdc=no
9318fi
9319rm -f conftest*
9320
9321fi
9322
9323if test $ac_cv_header_stdc = yes; then
9324  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9325  cat >conftest.$ac_ext <<_ACEOF
9326#line $LINENO "configure"
9327/* confdefs.h.  */
9328_ACEOF
9329cat confdefs.h >>conftest.$ac_ext
9330cat >>conftest.$ac_ext <<_ACEOF
9331/* end confdefs.h.  */
9332#include <stdlib.h>
9333
9334_ACEOF
9335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9336  $EGREP "free" >/dev/null 2>&1; then
9337  :
9338else
9339  ac_cv_header_stdc=no
9340fi
9341rm -f conftest*
9342
9343fi
9344
9345if test $ac_cv_header_stdc = yes; then
9346  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9347  if test "$cross_compiling" = yes; then
9348  :
9349else
9350  cat >conftest.$ac_ext <<_ACEOF
9351#line $LINENO "configure"
9352/* confdefs.h.  */
9353_ACEOF
9354cat confdefs.h >>conftest.$ac_ext
9355cat >>conftest.$ac_ext <<_ACEOF
9356/* end confdefs.h.  */
9357#include <ctype.h>
9358#if ((' ' & 0x0FF) == 0x020)
9359# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9360# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9361#else
9362# define ISLOWER(c) \
9363                   (('a' <= (c) && (c) <= 'i') \
9364                     || ('j' <= (c) && (c) <= 'r') \
9365                     || ('s' <= (c) && (c) <= 'z'))
9366# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9367#endif
9368
9369#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9370int
9371main ()
9372{
9373  int i;
9374  for (i = 0; i < 256; i++)
9375    if (XOR (islower (i), ISLOWER (i))
9376        || toupper (i) != TOUPPER (i))
9377      exit(2);
9378  exit (0);
9379}
9380_ACEOF
9381rm -f conftest$ac_exeext
9382if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383  (eval $ac_link) 2>&5
9384  ac_status=$?
9385  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9388  (eval $ac_try) 2>&5
9389  ac_status=$?
9390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391  (exit $ac_status); }; }; then
9392  :
9393else
9394  echo "$as_me: program exited with status $ac_status" >&5
9395echo "$as_me: failed program was:" >&5
9396sed 's/^/| /' conftest.$ac_ext >&5
9397
9398( exit $ac_status )
9399ac_cv_header_stdc=no
9400fi
9401rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9402fi
9403fi
9404fi
9405echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9406echo "${ECHO_T}$ac_cv_header_stdc" >&6
9407if test $ac_cv_header_stdc = yes; then
9408
9409cat >>confdefs.h <<\_ACEOF
9410#define STDC_HEADERS 1
9411_ACEOF
9412
9413fi
9414
9415
9416for ac_header in strings.h
9417do
9418as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419if eval "test \"\${$as_ac_Header+set}\" = set"; then
9420  echo "$as_me:$LINENO: checking for $ac_header" >&5
9421echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9422if eval "test \"\${$as_ac_Header+set}\" = set"; then
9423  echo $ECHO_N "(cached) $ECHO_C" >&6
9424fi
9425echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9426echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9427else
9428  # Is the header compilable?
9429echo "$as_me:$LINENO: checking $ac_header usability" >&5
9430echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9431cat >conftest.$ac_ext <<_ACEOF
9432#line $LINENO "configure"
9433/* confdefs.h.  */
9434_ACEOF
9435cat confdefs.h >>conftest.$ac_ext
9436cat >>conftest.$ac_ext <<_ACEOF
9437/* end confdefs.h.  */
9438$ac_includes_default
9439#include <$ac_header>
9440_ACEOF
9441rm -f conftest.$ac_objext
9442if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9443  (eval $ac_compile) 2>&5
9444  ac_status=$?
9445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446  (exit $ac_status); } &&
9447         { ac_try='test -s conftest.$ac_objext'
9448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9449  (eval $ac_try) 2>&5
9450  ac_status=$?
9451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452  (exit $ac_status); }; }; then
9453  ac_header_compiler=yes
9454else
9455  echo "$as_me: failed program was:" >&5
9456sed 's/^/| /' conftest.$ac_ext >&5
9457
9458ac_header_compiler=no
9459fi
9460rm -f conftest.$ac_objext conftest.$ac_ext
9461echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9462echo "${ECHO_T}$ac_header_compiler" >&6
9463
9464# Is the header present?
9465echo "$as_me:$LINENO: checking $ac_header presence" >&5
9466echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9467cat >conftest.$ac_ext <<_ACEOF
9468#line $LINENO "configure"
9469/* confdefs.h.  */
9470_ACEOF
9471cat confdefs.h >>conftest.$ac_ext
9472cat >>conftest.$ac_ext <<_ACEOF
9473/* end confdefs.h.  */
9474#include <$ac_header>
9475_ACEOF
9476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9478  ac_status=$?
9479  grep -v '^ *+' conftest.er1 >conftest.err
9480  rm -f conftest.er1
9481  cat conftest.err >&5
9482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483  (exit $ac_status); } >/dev/null; then
9484  if test -s conftest.err; then
9485    ac_cpp_err=$ac_cxx_preproc_warn_flag
9486  else
9487    ac_cpp_err=
9488  fi
9489else
9490  ac_cpp_err=yes
9491fi
9492if test -z "$ac_cpp_err"; then
9493  ac_header_preproc=yes
9494else
9495  echo "$as_me: failed program was:" >&5
9496sed 's/^/| /' conftest.$ac_ext >&5
9497
9498  ac_header_preproc=no
9499fi
9500rm -f conftest.err conftest.$ac_ext
9501echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9502echo "${ECHO_T}$ac_header_preproc" >&6
9503
9504# So?  What about this header?
9505case $ac_header_compiler:$ac_header_preproc in
9506  yes:no )
9507    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9508echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9509    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9510echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9511    (
9512      cat <<\_ASBOX
9513## ------------------------------------ ##
9514## Report this to bug-autoconf@gnu.org. ##
9515## ------------------------------------ ##
9516_ASBOX
9517    ) |
9518      sed "s/^/$as_me: WARNING:     /" >&2
9519    ;;
9520  no:yes )
9521    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9522echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9523    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9524echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9525    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9526echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9527    (
9528      cat <<\_ASBOX
9529## ------------------------------------ ##
9530## Report this to bug-autoconf@gnu.org. ##
9531## ------------------------------------ ##
9532_ASBOX
9533    ) |
9534      sed "s/^/$as_me: WARNING:     /" >&2
9535    ;;
9536esac
9537echo "$as_me:$LINENO: checking for $ac_header" >&5
9538echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9539if eval "test \"\${$as_ac_Header+set}\" = set"; then
9540  echo $ECHO_N "(cached) $ECHO_C" >&6
9541else
9542  eval "$as_ac_Header=$ac_header_preproc"
9543fi
9544echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9545echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9546
9547fi
9548if test `eval echo '${'$as_ac_Header'}'` = yes; then
9549  cat >>confdefs.h <<_ACEOF
9550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9551_ACEOF
9552
9553fi
9554
9555done
9556
9557
9558for ac_header in string.h
9559do
9560as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561if eval "test \"\${$as_ac_Header+set}\" = set"; then
9562  echo "$as_me:$LINENO: checking for $ac_header" >&5
9563echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9564if eval "test \"\${$as_ac_Header+set}\" = set"; then
9565  echo $ECHO_N "(cached) $ECHO_C" >&6
9566fi
9567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9569else
9570  # Is the header compilable?
9571echo "$as_me:$LINENO: checking $ac_header usability" >&5
9572echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9573cat >conftest.$ac_ext <<_ACEOF
9574#line $LINENO "configure"
9575/* confdefs.h.  */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h.  */
9580$ac_includes_default
9581#include <$ac_header>
9582_ACEOF
9583rm -f conftest.$ac_objext
9584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9585  (eval $ac_compile) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } &&
9589         { ac_try='test -s conftest.$ac_objext'
9590  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9591  (eval $ac_try) 2>&5
9592  ac_status=$?
9593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594  (exit $ac_status); }; }; then
9595  ac_header_compiler=yes
9596else
9597  echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600ac_header_compiler=no
9601fi
9602rm -f conftest.$ac_objext conftest.$ac_ext
9603echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9604echo "${ECHO_T}$ac_header_compiler" >&6
9605
9606# Is the header present?
9607echo "$as_me:$LINENO: checking $ac_header presence" >&5
9608echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9609cat >conftest.$ac_ext <<_ACEOF
9610#line $LINENO "configure"
9611/* confdefs.h.  */
9612_ACEOF
9613cat confdefs.h >>conftest.$ac_ext
9614cat >>conftest.$ac_ext <<_ACEOF
9615/* end confdefs.h.  */
9616#include <$ac_header>
9617_ACEOF
9618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9619  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9620  ac_status=$?
9621  grep -v '^ *+' conftest.er1 >conftest.err
9622  rm -f conftest.er1
9623  cat conftest.err >&5
9624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625  (exit $ac_status); } >/dev/null; then
9626  if test -s conftest.err; then
9627    ac_cpp_err=$ac_cxx_preproc_warn_flag
9628  else
9629    ac_cpp_err=
9630  fi
9631else
9632  ac_cpp_err=yes
9633fi
9634if test -z "$ac_cpp_err"; then
9635  ac_header_preproc=yes
9636else
9637  echo "$as_me: failed program was:" >&5
9638sed 's/^/| /' conftest.$ac_ext >&5
9639
9640  ac_header_preproc=no
9641fi
9642rm -f conftest.err conftest.$ac_ext
9643echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9644echo "${ECHO_T}$ac_header_preproc" >&6
9645
9646# So?  What about this header?
9647case $ac_header_compiler:$ac_header_preproc in
9648  yes:no )
9649    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9650echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9651    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9652echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9653    (
9654      cat <<\_ASBOX
9655## ------------------------------------ ##
9656## Report this to bug-autoconf@gnu.org. ##
9657## ------------------------------------ ##
9658_ASBOX
9659    ) |
9660      sed "s/^/$as_me: WARNING:     /" >&2
9661    ;;
9662  no:yes )
9663    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9664echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9665    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9666echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9669    (
9670      cat <<\_ASBOX
9671## ------------------------------------ ##
9672## Report this to bug-autoconf@gnu.org. ##
9673## ------------------------------------ ##
9674_ASBOX
9675    ) |
9676      sed "s/^/$as_me: WARNING:     /" >&2
9677    ;;
9678esac
9679echo "$as_me:$LINENO: checking for $ac_header" >&5
9680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9681if eval "test \"\${$as_ac_Header+set}\" = set"; then
9682  echo $ECHO_N "(cached) $ECHO_C" >&6
9683else
9684  eval "$as_ac_Header=$ac_header_preproc"
9685fi
9686echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9687echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9688
9689fi
9690if test `eval echo '${'$as_ac_Header'}'` = yes; then
9691  cat >>confdefs.h <<_ACEOF
9692#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9693_ACEOF
9694
9695fi
9696
9697done
9698
9699
9700for ac_header in stdint.h
9701do
9702as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9703if eval "test \"\${$as_ac_Header+set}\" = set"; then
9704  echo "$as_me:$LINENO: checking for $ac_header" >&5
9705echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9706if eval "test \"\${$as_ac_Header+set}\" = set"; then
9707  echo $ECHO_N "(cached) $ECHO_C" >&6
9708fi
9709echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9710echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9711else
9712  # Is the header compilable?
9713echo "$as_me:$LINENO: checking $ac_header usability" >&5
9714echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9715cat >conftest.$ac_ext <<_ACEOF
9716#line $LINENO "configure"
9717/* confdefs.h.  */
9718_ACEOF
9719cat confdefs.h >>conftest.$ac_ext
9720cat >>conftest.$ac_ext <<_ACEOF
9721/* end confdefs.h.  */
9722$ac_includes_default
9723#include <$ac_header>
9724_ACEOF
9725rm -f conftest.$ac_objext
9726if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9727  (eval $ac_compile) 2>&5
9728  ac_status=$?
9729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730  (exit $ac_status); } &&
9731         { ac_try='test -s conftest.$ac_objext'
9732  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9733  (eval $ac_try) 2>&5
9734  ac_status=$?
9735  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9736  (exit $ac_status); }; }; then
9737  ac_header_compiler=yes
9738else
9739  echo "$as_me: failed program was:" >&5
9740sed 's/^/| /' conftest.$ac_ext >&5
9741
9742ac_header_compiler=no
9743fi
9744rm -f conftest.$ac_objext conftest.$ac_ext
9745echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746echo "${ECHO_T}$ac_header_compiler" >&6
9747
9748# Is the header present?
9749echo "$as_me:$LINENO: checking $ac_header presence" >&5
9750echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9751cat >conftest.$ac_ext <<_ACEOF
9752#line $LINENO "configure"
9753/* confdefs.h.  */
9754_ACEOF
9755cat confdefs.h >>conftest.$ac_ext
9756cat >>conftest.$ac_ext <<_ACEOF
9757/* end confdefs.h.  */
9758#include <$ac_header>
9759_ACEOF
9760if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9761  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9762  ac_status=$?
9763  grep -v '^ *+' conftest.er1 >conftest.err
9764  rm -f conftest.er1
9765  cat conftest.err >&5
9766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9767  (exit $ac_status); } >/dev/null; then
9768  if test -s conftest.err; then
9769    ac_cpp_err=$ac_cxx_preproc_warn_flag
9770  else
9771    ac_cpp_err=
9772  fi
9773else
9774  ac_cpp_err=yes
9775fi
9776if test -z "$ac_cpp_err"; then
9777  ac_header_preproc=yes
9778else
9779  echo "$as_me: failed program was:" >&5
9780sed 's/^/| /' conftest.$ac_ext >&5
9781
9782  ac_header_preproc=no
9783fi
9784rm -f conftest.err conftest.$ac_ext
9785echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9786echo "${ECHO_T}$ac_header_preproc" >&6
9787
9788# So?  What about this header?
9789case $ac_header_compiler:$ac_header_preproc in
9790  yes:no )
9791    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9792echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9793    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9794echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9795    (
9796      cat <<\_ASBOX
9797## ------------------------------------ ##
9798## Report this to bug-autoconf@gnu.org. ##
9799## ------------------------------------ ##
9800_ASBOX
9801    ) |
9802      sed "s/^/$as_me: WARNING:     /" >&2
9803    ;;
9804  no:yes )
9805    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9806echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9807    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9808echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9809    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9810echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9811    (
9812      cat <<\_ASBOX
9813## ------------------------------------ ##
9814## Report this to bug-autoconf@gnu.org. ##
9815## ------------------------------------ ##
9816_ASBOX
9817    ) |
9818      sed "s/^/$as_me: WARNING:     /" >&2
9819    ;;
9820esac
9821echo "$as_me:$LINENO: checking for $ac_header" >&5
9822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9823if eval "test \"\${$as_ac_Header+set}\" = set"; then
9824  echo $ECHO_N "(cached) $ECHO_C" >&6
9825else
9826  eval "$as_ac_Header=$ac_header_preproc"
9827fi
9828echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9829echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9830
9831fi
9832if test `eval echo '${'$as_ac_Header'}'` = yes; then
9833  cat >>confdefs.h <<_ACEOF
9834#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9835_ACEOF
9836
9837fi
9838
9839done
9840
9841
9842for ac_header in io.h
9843do
9844as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9845if eval "test \"\${$as_ac_Header+set}\" = set"; then
9846  echo "$as_me:$LINENO: checking for $ac_header" >&5
9847echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9848if eval "test \"\${$as_ac_Header+set}\" = set"; then
9849  echo $ECHO_N "(cached) $ECHO_C" >&6
9850fi
9851echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9852echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9853else
9854  # Is the header compilable?
9855echo "$as_me:$LINENO: checking $ac_header usability" >&5
9856echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9857cat >conftest.$ac_ext <<_ACEOF
9858#line $LINENO "configure"
9859/* confdefs.h.  */
9860_ACEOF
9861cat confdefs.h >>conftest.$ac_ext
9862cat >>conftest.$ac_ext <<_ACEOF
9863/* end confdefs.h.  */
9864$ac_includes_default
9865#include <$ac_header>
9866_ACEOF
9867rm -f conftest.$ac_objext
9868if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9869  (eval $ac_compile) 2>&5
9870  ac_status=$?
9871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872  (exit $ac_status); } &&
9873         { ac_try='test -s conftest.$ac_objext'
9874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9875  (eval $ac_try) 2>&5
9876  ac_status=$?
9877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9878  (exit $ac_status); }; }; then
9879  ac_header_compiler=yes
9880else
9881  echo "$as_me: failed program was:" >&5
9882sed 's/^/| /' conftest.$ac_ext >&5
9883
9884ac_header_compiler=no
9885fi
9886rm -f conftest.$ac_objext conftest.$ac_ext
9887echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888echo "${ECHO_T}$ac_header_compiler" >&6
9889
9890# Is the header present?
9891echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9893cat >conftest.$ac_ext <<_ACEOF
9894#line $LINENO "configure"
9895/* confdefs.h.  */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h.  */
9900#include <$ac_header>
9901_ACEOF
9902if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9903  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9904  ac_status=$?
9905  grep -v '^ *+' conftest.er1 >conftest.err
9906  rm -f conftest.er1
9907  cat conftest.err >&5
9908  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9909  (exit $ac_status); } >/dev/null; then
9910  if test -s conftest.err; then
9911    ac_cpp_err=$ac_cxx_preproc_warn_flag
9912  else
9913    ac_cpp_err=
9914  fi
9915else
9916  ac_cpp_err=yes
9917fi
9918if test -z "$ac_cpp_err"; then
9919  ac_header_preproc=yes
9920else
9921  echo "$as_me: failed program was:" >&5
9922sed 's/^/| /' conftest.$ac_ext >&5
9923
9924  ac_header_preproc=no
9925fi
9926rm -f conftest.err conftest.$ac_ext
9927echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9928echo "${ECHO_T}$ac_header_preproc" >&6
9929
9930# So?  What about this header?
9931case $ac_header_compiler:$ac_header_preproc in
9932  yes:no )
9933    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9934echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9935    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9936echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9937    (
9938      cat <<\_ASBOX
9939## ------------------------------------ ##
9940## Report this to bug-autoconf@gnu.org. ##
9941## ------------------------------------ ##
9942_ASBOX
9943    ) |
9944      sed "s/^/$as_me: WARNING:     /" >&2
9945    ;;
9946  no:yes )
9947    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9948echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9949    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9950echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9951    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9952echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9953    (
9954      cat <<\_ASBOX
9955## ------------------------------------ ##
9956## Report this to bug-autoconf@gnu.org. ##
9957## ------------------------------------ ##
9958_ASBOX
9959    ) |
9960      sed "s/^/$as_me: WARNING:     /" >&2
9961    ;;
9962esac
9963echo "$as_me:$LINENO: checking for $ac_header" >&5
9964echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9965if eval "test \"\${$as_ac_Header+set}\" = set"; then
9966  echo $ECHO_N "(cached) $ECHO_C" >&6
9967else
9968  eval "$as_ac_Header=$ac_header_preproc"
9969fi
9970echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9971echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9972
9973fi
9974if test `eval echo '${'$as_ac_Header'}'` = yes; then
9975  cat >>confdefs.h <<_ACEOF
9976#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9977_ACEOF
9978
9979fi
9980
9981done
9982
9983
9984for ac_header in process.h
9985do
9986as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9987if eval "test \"\${$as_ac_Header+set}\" = set"; then
9988  echo "$as_me:$LINENO: checking for $ac_header" >&5
9989echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9990if eval "test \"\${$as_ac_Header+set}\" = set"; then
9991  echo $ECHO_N "(cached) $ECHO_C" >&6
9992fi
9993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9995else
9996  # Is the header compilable?
9997echo "$as_me:$LINENO: checking $ac_header usability" >&5
9998echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9999cat >conftest.$ac_ext <<_ACEOF
10000#line $LINENO "configure"
10001/* confdefs.h.  */
10002_ACEOF
10003cat confdefs.h >>conftest.$ac_ext
10004cat >>conftest.$ac_ext <<_ACEOF
10005/* end confdefs.h.  */
10006$ac_includes_default
10007#include <$ac_header>
10008_ACEOF
10009rm -f conftest.$ac_objext
10010if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10011  (eval $ac_compile) 2>&5
10012  ac_status=$?
10013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014  (exit $ac_status); } &&
10015         { ac_try='test -s conftest.$ac_objext'
10016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017  (eval $ac_try) 2>&5
10018  ac_status=$?
10019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020  (exit $ac_status); }; }; then
10021  ac_header_compiler=yes
10022else
10023  echo "$as_me: failed program was:" >&5
10024sed 's/^/| /' conftest.$ac_ext >&5
10025
10026ac_header_compiler=no
10027fi
10028rm -f conftest.$ac_objext conftest.$ac_ext
10029echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10030echo "${ECHO_T}$ac_header_compiler" >&6
10031
10032# Is the header present?
10033echo "$as_me:$LINENO: checking $ac_header presence" >&5
10034echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10035cat >conftest.$ac_ext <<_ACEOF
10036#line $LINENO "configure"
10037/* confdefs.h.  */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h.  */
10042#include <$ac_header>
10043_ACEOF
10044if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10045  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10046  ac_status=$?
10047  grep -v '^ *+' conftest.er1 >conftest.err
10048  rm -f conftest.er1
10049  cat conftest.err >&5
10050  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051  (exit $ac_status); } >/dev/null; then
10052  if test -s conftest.err; then
10053    ac_cpp_err=$ac_cxx_preproc_warn_flag
10054  else
10055    ac_cpp_err=
10056  fi
10057else
10058  ac_cpp_err=yes
10059fi
10060if test -z "$ac_cpp_err"; then
10061  ac_header_preproc=yes
10062else
10063  echo "$as_me: failed program was:" >&5
10064sed 's/^/| /' conftest.$ac_ext >&5
10065
10066  ac_header_preproc=no
10067fi
10068rm -f conftest.err conftest.$ac_ext
10069echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10070echo "${ECHO_T}$ac_header_preproc" >&6
10071
10072# So?  What about this header?
10073case $ac_header_compiler:$ac_header_preproc in
10074  yes:no )
10075    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10076echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10077    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10079    (
10080      cat <<\_ASBOX
10081## ------------------------------------ ##
10082## Report this to bug-autoconf@gnu.org. ##
10083## ------------------------------------ ##
10084_ASBOX
10085    ) |
10086      sed "s/^/$as_me: WARNING:     /" >&2
10087    ;;
10088  no:yes )
10089    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10090echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10091    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10092echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10093    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10094echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10095    (
10096      cat <<\_ASBOX
10097## ------------------------------------ ##
10098## Report this to bug-autoconf@gnu.org. ##
10099## ------------------------------------ ##
10100_ASBOX
10101    ) |
10102      sed "s/^/$as_me: WARNING:     /" >&2
10103    ;;
10104esac
10105echo "$as_me:$LINENO: checking for $ac_header" >&5
10106echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10107if eval "test \"\${$as_ac_Header+set}\" = set"; then
10108  echo $ECHO_N "(cached) $ECHO_C" >&6
10109else
10110  eval "$as_ac_Header=$ac_header_preproc"
10111fi
10112echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10113echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10114
10115fi
10116if test `eval echo '${'$as_ac_Header'}'` = yes; then
10117  cat >>confdefs.h <<_ACEOF
10118#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10119_ACEOF
10120
10121fi
10122
10123done
10124
10125
10126for ac_header in rx.h
10127do
10128as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10129if eval "test \"\${$as_ac_Header+set}\" = set"; then
10130  echo "$as_me:$LINENO: checking for $ac_header" >&5
10131echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10132if eval "test \"\${$as_ac_Header+set}\" = set"; then
10133  echo $ECHO_N "(cached) $ECHO_C" >&6
10134fi
10135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10137else
10138  # Is the header compilable?
10139echo "$as_me:$LINENO: checking $ac_header usability" >&5
10140echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10141cat >conftest.$ac_ext <<_ACEOF
10142#line $LINENO "configure"
10143/* confdefs.h.  */
10144_ACEOF
10145cat confdefs.h >>conftest.$ac_ext
10146cat >>conftest.$ac_ext <<_ACEOF
10147/* end confdefs.h.  */
10148$ac_includes_default
10149#include <$ac_header>
10150_ACEOF
10151rm -f conftest.$ac_objext
10152if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10153  (eval $ac_compile) 2>&5
10154  ac_status=$?
10155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10156  (exit $ac_status); } &&
10157         { ac_try='test -s conftest.$ac_objext'
10158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10159  (eval $ac_try) 2>&5
10160  ac_status=$?
10161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162  (exit $ac_status); }; }; then
10163  ac_header_compiler=yes
10164else
10165  echo "$as_me: failed program was:" >&5
10166sed 's/^/| /' conftest.$ac_ext >&5
10167
10168ac_header_compiler=no
10169fi
10170rm -f conftest.$ac_objext conftest.$ac_ext
10171echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10172echo "${ECHO_T}$ac_header_compiler" >&6
10173
10174# Is the header present?
10175echo "$as_me:$LINENO: checking $ac_header presence" >&5
10176echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10177cat >conftest.$ac_ext <<_ACEOF
10178#line $LINENO "configure"
10179/* confdefs.h.  */
10180_ACEOF
10181cat confdefs.h >>conftest.$ac_ext
10182cat >>conftest.$ac_ext <<_ACEOF
10183/* end confdefs.h.  */
10184#include <$ac_header>
10185_ACEOF
10186if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10187  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10188  ac_status=$?
10189  grep -v '^ *+' conftest.er1 >conftest.err
10190  rm -f conftest.er1
10191  cat conftest.err >&5
10192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193  (exit $ac_status); } >/dev/null; then
10194  if test -s conftest.err; then
10195    ac_cpp_err=$ac_cxx_preproc_warn_flag
10196  else
10197    ac_cpp_err=
10198  fi
10199else
10200  ac_cpp_err=yes
10201fi
10202if test -z "$ac_cpp_err"; then
10203  ac_header_preproc=yes
10204else
10205  echo "$as_me: failed program was:" >&5
10206sed 's/^/| /' conftest.$ac_ext >&5
10207
10208  ac_header_preproc=no
10209fi
10210rm -f conftest.err conftest.$ac_ext
10211echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10212echo "${ECHO_T}$ac_header_preproc" >&6
10213
10214# So?  What about this header?
10215case $ac_header_compiler:$ac_header_preproc in
10216  yes:no )
10217    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10218echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10219    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10220echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10221    (
10222      cat <<\_ASBOX
10223## ------------------------------------ ##
10224## Report this to bug-autoconf@gnu.org. ##
10225## ------------------------------------ ##
10226_ASBOX
10227    ) |
10228      sed "s/^/$as_me: WARNING:     /" >&2
10229    ;;
10230  no:yes )
10231    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10232echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10233    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10234echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10235    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10236echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10237    (
10238      cat <<\_ASBOX
10239## ------------------------------------ ##
10240## Report this to bug-autoconf@gnu.org. ##
10241## ------------------------------------ ##
10242_ASBOX
10243    ) |
10244      sed "s/^/$as_me: WARNING:     /" >&2
10245    ;;
10246esac
10247echo "$as_me:$LINENO: checking for $ac_header" >&5
10248echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10249if eval "test \"\${$as_ac_Header+set}\" = set"; then
10250  echo $ECHO_N "(cached) $ECHO_C" >&6
10251else
10252  eval "$as_ac_Header=$ac_header_preproc"
10253fi
10254echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10255echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10256
10257fi
10258if test `eval echo '${'$as_ac_Header'}'` = yes; then
10259  cat >>confdefs.h <<_ACEOF
10260#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10261_ACEOF
10262
10263fi
10264
10265done
10266
10267
10268for ac_header in regex.h
10269do
10270as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10271if eval "test \"\${$as_ac_Header+set}\" = set"; then
10272  echo "$as_me:$LINENO: checking for $ac_header" >&5
10273echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10274if eval "test \"\${$as_ac_Header+set}\" = set"; then
10275  echo $ECHO_N "(cached) $ECHO_C" >&6
10276fi
10277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10279else
10280  # Is the header compilable?
10281echo "$as_me:$LINENO: checking $ac_header usability" >&5
10282echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10283cat >conftest.$ac_ext <<_ACEOF
10284#line $LINENO "configure"
10285/* confdefs.h.  */
10286_ACEOF
10287cat confdefs.h >>conftest.$ac_ext
10288cat >>conftest.$ac_ext <<_ACEOF
10289/* end confdefs.h.  */
10290$ac_includes_default
10291#include <$ac_header>
10292_ACEOF
10293rm -f conftest.$ac_objext
10294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10295  (eval $ac_compile) 2>&5
10296  ac_status=$?
10297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298  (exit $ac_status); } &&
10299         { ac_try='test -s conftest.$ac_objext'
10300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301  (eval $ac_try) 2>&5
10302  ac_status=$?
10303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304  (exit $ac_status); }; }; then
10305  ac_header_compiler=yes
10306else
10307  echo "$as_me: failed program was:" >&5
10308sed 's/^/| /' conftest.$ac_ext >&5
10309
10310ac_header_compiler=no
10311fi
10312rm -f conftest.$ac_objext conftest.$ac_ext
10313echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10314echo "${ECHO_T}$ac_header_compiler" >&6
10315
10316# Is the header present?
10317echo "$as_me:$LINENO: checking $ac_header presence" >&5
10318echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10319cat >conftest.$ac_ext <<_ACEOF
10320#line $LINENO "configure"
10321/* confdefs.h.  */
10322_ACEOF
10323cat confdefs.h >>conftest.$ac_ext
10324cat >>conftest.$ac_ext <<_ACEOF
10325/* end confdefs.h.  */
10326#include <$ac_header>
10327_ACEOF
10328if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10329  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10330  ac_status=$?
10331  grep -v '^ *+' conftest.er1 >conftest.err
10332  rm -f conftest.er1
10333  cat conftest.err >&5
10334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335  (exit $ac_status); } >/dev/null; then
10336  if test -s conftest.err; then
10337    ac_cpp_err=$ac_cxx_preproc_warn_flag
10338  else
10339    ac_cpp_err=
10340  fi
10341else
10342  ac_cpp_err=yes
10343fi
10344if test -z "$ac_cpp_err"; then
10345  ac_header_preproc=yes
10346else
10347  echo "$as_me: failed program was:" >&5
10348sed 's/^/| /' conftest.$ac_ext >&5
10349
10350  ac_header_preproc=no
10351fi
10352rm -f conftest.err conftest.$ac_ext
10353echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10354echo "${ECHO_T}$ac_header_preproc" >&6
10355
10356# So?  What about this header?
10357case $ac_header_compiler:$ac_header_preproc in
10358  yes:no )
10359    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10360echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10361    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10362echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10363    (
10364      cat <<\_ASBOX
10365## ------------------------------------ ##
10366## Report this to bug-autoconf@gnu.org. ##
10367## ------------------------------------ ##
10368_ASBOX
10369    ) |
10370      sed "s/^/$as_me: WARNING:     /" >&2
10371    ;;
10372  no:yes )
10373    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10374echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10375    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10376echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10377    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10378echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10379    (
10380      cat <<\_ASBOX
10381## ------------------------------------ ##
10382## Report this to bug-autoconf@gnu.org. ##
10383## ------------------------------------ ##
10384_ASBOX
10385    ) |
10386      sed "s/^/$as_me: WARNING:     /" >&2
10387    ;;
10388esac
10389echo "$as_me:$LINENO: checking for $ac_header" >&5
10390echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10391if eval "test \"\${$as_ac_Header+set}\" = set"; then
10392  echo $ECHO_N "(cached) $ECHO_C" >&6
10393else
10394  eval "$as_ac_Header=$ac_header_preproc"
10395fi
10396echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10397echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10398
10399fi
10400if test `eval echo '${'$as_ac_Header'}'` = yes; then
10401  cat >>confdefs.h <<_ACEOF
10402#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10403_ACEOF
10404
10405fi
10406
10407done
10408
10409
10410for ac_header in errno.h
10411do
10412as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10413if eval "test \"\${$as_ac_Header+set}\" = set"; then
10414  echo "$as_me:$LINENO: checking for $ac_header" >&5
10415echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10416if eval "test \"\${$as_ac_Header+set}\" = set"; then
10417  echo $ECHO_N "(cached) $ECHO_C" >&6
10418fi
10419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10420echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10421else
10422  # Is the header compilable?
10423echo "$as_me:$LINENO: checking $ac_header usability" >&5
10424echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10425cat >conftest.$ac_ext <<_ACEOF
10426#line $LINENO "configure"
10427/* confdefs.h.  */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h.  */
10432$ac_includes_default
10433#include <$ac_header>
10434_ACEOF
10435rm -f conftest.$ac_objext
10436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10437  (eval $ac_compile) 2>&5
10438  ac_status=$?
10439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10440  (exit $ac_status); } &&
10441         { ac_try='test -s conftest.$ac_objext'
10442  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10443  (eval $ac_try) 2>&5
10444  ac_status=$?
10445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446  (exit $ac_status); }; }; then
10447  ac_header_compiler=yes
10448else
10449  echo "$as_me: failed program was:" >&5
10450sed 's/^/| /' conftest.$ac_ext >&5
10451
10452ac_header_compiler=no
10453fi
10454rm -f conftest.$ac_objext conftest.$ac_ext
10455echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10456echo "${ECHO_T}$ac_header_compiler" >&6
10457
10458# Is the header present?
10459echo "$as_me:$LINENO: checking $ac_header presence" >&5
10460echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10461cat >conftest.$ac_ext <<_ACEOF
10462#line $LINENO "configure"
10463/* confdefs.h.  */
10464_ACEOF
10465cat confdefs.h >>conftest.$ac_ext
10466cat >>conftest.$ac_ext <<_ACEOF
10467/* end confdefs.h.  */
10468#include <$ac_header>
10469_ACEOF
10470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10472  ac_status=$?
10473  grep -v '^ *+' conftest.er1 >conftest.err
10474  rm -f conftest.er1
10475  cat conftest.err >&5
10476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10477  (exit $ac_status); } >/dev/null; then
10478  if test -s conftest.err; then
10479    ac_cpp_err=$ac_cxx_preproc_warn_flag
10480  else
10481    ac_cpp_err=
10482  fi
10483else
10484  ac_cpp_err=yes
10485fi
10486if test -z "$ac_cpp_err"; then
10487  ac_header_preproc=yes
10488else
10489  echo "$as_me: failed program was:" >&5
10490sed 's/^/| /' conftest.$ac_ext >&5
10491
10492  ac_header_preproc=no
10493fi
10494rm -f conftest.err conftest.$ac_ext
10495echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10496echo "${ECHO_T}$ac_header_preproc" >&6
10497
10498# So?  What about this header?
10499case $ac_header_compiler:$ac_header_preproc in
10500  yes:no )
10501    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10502echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10503    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10504echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10505    (
10506      cat <<\_ASBOX
10507## ------------------------------------ ##
10508## Report this to bug-autoconf@gnu.org. ##
10509## ------------------------------------ ##
10510_ASBOX
10511    ) |
10512      sed "s/^/$as_me: WARNING:     /" >&2
10513    ;;
10514  no:yes )
10515    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10516echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10517    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10518echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10519    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10520echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10521    (
10522      cat <<\_ASBOX
10523## ------------------------------------ ##
10524## Report this to bug-autoconf@gnu.org. ##
10525## ------------------------------------ ##
10526_ASBOX
10527    ) |
10528      sed "s/^/$as_me: WARNING:     /" >&2
10529    ;;
10530esac
10531echo "$as_me:$LINENO: checking for $ac_header" >&5
10532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10533if eval "test \"\${$as_ac_Header+set}\" = set"; then
10534  echo $ECHO_N "(cached) $ECHO_C" >&6
10535else
10536  eval "$as_ac_Header=$ac_header_preproc"
10537fi
10538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10540
10541fi
10542if test `eval echo '${'$as_ac_Header'}'` = yes; then
10543  cat >>confdefs.h <<_ACEOF
10544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10545_ACEOF
10546
10547fi
10548
10549done
10550
10551
10552for ac_header in wait.h
10553do
10554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10555if eval "test \"\${$as_ac_Header+set}\" = set"; then
10556  echo "$as_me:$LINENO: checking for $ac_header" >&5
10557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10558if eval "test \"\${$as_ac_Header+set}\" = set"; then
10559  echo $ECHO_N "(cached) $ECHO_C" >&6
10560fi
10561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10563else
10564  # Is the header compilable?
10565echo "$as_me:$LINENO: checking $ac_header usability" >&5
10566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10567cat >conftest.$ac_ext <<_ACEOF
10568#line $LINENO "configure"
10569/* confdefs.h.  */
10570_ACEOF
10571cat confdefs.h >>conftest.$ac_ext
10572cat >>conftest.$ac_ext <<_ACEOF
10573/* end confdefs.h.  */
10574$ac_includes_default
10575#include <$ac_header>
10576_ACEOF
10577rm -f conftest.$ac_objext
10578if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10579  (eval $ac_compile) 2>&5
10580  ac_status=$?
10581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582  (exit $ac_status); } &&
10583         { ac_try='test -s conftest.$ac_objext'
10584  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10585  (eval $ac_try) 2>&5
10586  ac_status=$?
10587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10588  (exit $ac_status); }; }; then
10589  ac_header_compiler=yes
10590else
10591  echo "$as_me: failed program was:" >&5
10592sed 's/^/| /' conftest.$ac_ext >&5
10593
10594ac_header_compiler=no
10595fi
10596rm -f conftest.$ac_objext conftest.$ac_ext
10597echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10598echo "${ECHO_T}$ac_header_compiler" >&6
10599
10600# Is the header present?
10601echo "$as_me:$LINENO: checking $ac_header presence" >&5
10602echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10603cat >conftest.$ac_ext <<_ACEOF
10604#line $LINENO "configure"
10605/* confdefs.h.  */
10606_ACEOF
10607cat confdefs.h >>conftest.$ac_ext
10608cat >>conftest.$ac_ext <<_ACEOF
10609/* end confdefs.h.  */
10610#include <$ac_header>
10611_ACEOF
10612if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10613  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10614  ac_status=$?
10615  grep -v '^ *+' conftest.er1 >conftest.err
10616  rm -f conftest.er1
10617  cat conftest.err >&5
10618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10619  (exit $ac_status); } >/dev/null; then
10620  if test -s conftest.err; then
10621    ac_cpp_err=$ac_cxx_preproc_warn_flag
10622  else
10623    ac_cpp_err=
10624  fi
10625else
10626  ac_cpp_err=yes
10627fi
10628if test -z "$ac_cpp_err"; then
10629  ac_header_preproc=yes
10630else
10631  echo "$as_me: failed program was:" >&5
10632sed 's/^/| /' conftest.$ac_ext >&5
10633
10634  ac_header_preproc=no
10635fi
10636rm -f conftest.err conftest.$ac_ext
10637echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10638echo "${ECHO_T}$ac_header_preproc" >&6
10639
10640# So?  What about this header?
10641case $ac_header_compiler:$ac_header_preproc in
10642  yes:no )
10643    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10644echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10645    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10646echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10647    (
10648      cat <<\_ASBOX
10649## ------------------------------------ ##
10650## Report this to bug-autoconf@gnu.org. ##
10651## ------------------------------------ ##
10652_ASBOX
10653    ) |
10654      sed "s/^/$as_me: WARNING:     /" >&2
10655    ;;
10656  no:yes )
10657    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10658echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10659    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10660echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10661    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10662echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10663    (
10664      cat <<\_ASBOX
10665## ------------------------------------ ##
10666## Report this to bug-autoconf@gnu.org. ##
10667## ------------------------------------ ##
10668_ASBOX
10669    ) |
10670      sed "s/^/$as_me: WARNING:     /" >&2
10671    ;;
10672esac
10673echo "$as_me:$LINENO: checking for $ac_header" >&5
10674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10675if eval "test \"\${$as_ac_Header+set}\" = set"; then
10676  echo $ECHO_N "(cached) $ECHO_C" >&6
10677else
10678  eval "$as_ac_Header=$ac_header_preproc"
10679fi
10680echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10681echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10682
10683fi
10684if test `eval echo '${'$as_ac_Header'}'` = yes; then
10685  cat >>confdefs.h <<_ACEOF
10686#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687_ACEOF
10688
10689fi
10690
10691done
10692
10693
10694for ac_header in unistd.h
10695do
10696as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10697if eval "test \"\${$as_ac_Header+set}\" = set"; then
10698  echo "$as_me:$LINENO: checking for $ac_header" >&5
10699echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10700if eval "test \"\${$as_ac_Header+set}\" = set"; then
10701  echo $ECHO_N "(cached) $ECHO_C" >&6
10702fi
10703echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10704echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10705else
10706  # Is the header compilable?
10707echo "$as_me:$LINENO: checking $ac_header usability" >&5
10708echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10709cat >conftest.$ac_ext <<_ACEOF
10710#line $LINENO "configure"
10711/* confdefs.h.  */
10712_ACEOF
10713cat confdefs.h >>conftest.$ac_ext
10714cat >>conftest.$ac_ext <<_ACEOF
10715/* end confdefs.h.  */
10716$ac_includes_default
10717#include <$ac_header>
10718_ACEOF
10719rm -f conftest.$ac_objext
10720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10721  (eval $ac_compile) 2>&5
10722  ac_status=$?
10723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724  (exit $ac_status); } &&
10725         { ac_try='test -s conftest.$ac_objext'
10726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10727  (eval $ac_try) 2>&5
10728  ac_status=$?
10729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730  (exit $ac_status); }; }; then
10731  ac_header_compiler=yes
10732else
10733  echo "$as_me: failed program was:" >&5
10734sed 's/^/| /' conftest.$ac_ext >&5
10735
10736ac_header_compiler=no
10737fi
10738rm -f conftest.$ac_objext conftest.$ac_ext
10739echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10740echo "${ECHO_T}$ac_header_compiler" >&6
10741
10742# Is the header present?
10743echo "$as_me:$LINENO: checking $ac_header presence" >&5
10744echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10745cat >conftest.$ac_ext <<_ACEOF
10746#line $LINENO "configure"
10747/* confdefs.h.  */
10748_ACEOF
10749cat confdefs.h >>conftest.$ac_ext
10750cat >>conftest.$ac_ext <<_ACEOF
10751/* end confdefs.h.  */
10752#include <$ac_header>
10753_ACEOF
10754if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10755  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10756  ac_status=$?
10757  grep -v '^ *+' conftest.er1 >conftest.err
10758  rm -f conftest.er1
10759  cat conftest.err >&5
10760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10761  (exit $ac_status); } >/dev/null; then
10762  if test -s conftest.err; then
10763    ac_cpp_err=$ac_cxx_preproc_warn_flag
10764  else
10765    ac_cpp_err=
10766  fi
10767else
10768  ac_cpp_err=yes
10769fi
10770if test -z "$ac_cpp_err"; then
10771  ac_header_preproc=yes
10772else
10773  echo "$as_me: failed program was:" >&5
10774sed 's/^/| /' conftest.$ac_ext >&5
10775
10776  ac_header_preproc=no
10777fi
10778rm -f conftest.err conftest.$ac_ext
10779echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10780echo "${ECHO_T}$ac_header_preproc" >&6
10781
10782# So?  What about this header?
10783case $ac_header_compiler:$ac_header_preproc in
10784  yes:no )
10785    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10786echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10787    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10788echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10789    (
10790      cat <<\_ASBOX
10791## ------------------------------------ ##
10792## Report this to bug-autoconf@gnu.org. ##
10793## ------------------------------------ ##
10794_ASBOX
10795    ) |
10796      sed "s/^/$as_me: WARNING:     /" >&2
10797    ;;
10798  no:yes )
10799    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10800echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10801    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10802echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10803    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10804echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10805    (
10806      cat <<\_ASBOX
10807## ------------------------------------ ##
10808## Report this to bug-autoconf@gnu.org. ##
10809## ------------------------------------ ##
10810_ASBOX
10811    ) |
10812      sed "s/^/$as_me: WARNING:     /" >&2
10813    ;;
10814esac
10815echo "$as_me:$LINENO: checking for $ac_header" >&5
10816echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10817if eval "test \"\${$as_ac_Header+set}\" = set"; then
10818  echo $ECHO_N "(cached) $ECHO_C" >&6
10819else
10820  eval "$as_ac_Header=$ac_header_preproc"
10821fi
10822echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10823echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10824
10825fi
10826if test `eval echo '${'$as_ac_Header'}'` = yes; then
10827  cat >>confdefs.h <<_ACEOF
10828#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10829_ACEOF
10830
10831fi
10832
10833done
10834
10835
10836for ac_header in unix.h
10837do
10838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10839if eval "test \"\${$as_ac_Header+set}\" = set"; then
10840  echo "$as_me:$LINENO: checking for $ac_header" >&5
10841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10842if eval "test \"\${$as_ac_Header+set}\" = set"; then
10843  echo $ECHO_N "(cached) $ECHO_C" >&6
10844fi
10845echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10846echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10847else
10848  # Is the header compilable?
10849echo "$as_me:$LINENO: checking $ac_header usability" >&5
10850echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10851cat >conftest.$ac_ext <<_ACEOF
10852#line $LINENO "configure"
10853/* confdefs.h.  */
10854_ACEOF
10855cat confdefs.h >>conftest.$ac_ext
10856cat >>conftest.$ac_ext <<_ACEOF
10857/* end confdefs.h.  */
10858$ac_includes_default
10859#include <$ac_header>
10860_ACEOF
10861rm -f conftest.$ac_objext
10862if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10863  (eval $ac_compile) 2>&5
10864  ac_status=$?
10865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866  (exit $ac_status); } &&
10867         { ac_try='test -s conftest.$ac_objext'
10868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869  (eval $ac_try) 2>&5
10870  ac_status=$?
10871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872  (exit $ac_status); }; }; then
10873  ac_header_compiler=yes
10874else
10875  echo "$as_me: failed program was:" >&5
10876sed 's/^/| /' conftest.$ac_ext >&5
10877
10878ac_header_compiler=no
10879fi
10880rm -f conftest.$ac_objext conftest.$ac_ext
10881echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10882echo "${ECHO_T}$ac_header_compiler" >&6
10883
10884# Is the header present?
10885echo "$as_me:$LINENO: checking $ac_header presence" >&5
10886echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10887cat >conftest.$ac_ext <<_ACEOF
10888#line $LINENO "configure"
10889/* confdefs.h.  */
10890_ACEOF
10891cat confdefs.h >>conftest.$ac_ext
10892cat >>conftest.$ac_ext <<_ACEOF
10893/* end confdefs.h.  */
10894#include <$ac_header>
10895_ACEOF
10896if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10897  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10898  ac_status=$?
10899  grep -v '^ *+' conftest.er1 >conftest.err
10900  rm -f conftest.er1
10901  cat conftest.err >&5
10902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903  (exit $ac_status); } >/dev/null; then
10904  if test -s conftest.err; then
10905    ac_cpp_err=$ac_cxx_preproc_warn_flag
10906  else
10907    ac_cpp_err=
10908  fi
10909else
10910  ac_cpp_err=yes
10911fi
10912if test -z "$ac_cpp_err"; then
10913  ac_header_preproc=yes
10914else
10915  echo "$as_me: failed program was:" >&5
10916sed 's/^/| /' conftest.$ac_ext >&5
10917
10918  ac_header_preproc=no
10919fi
10920rm -f conftest.err conftest.$ac_ext
10921echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10922echo "${ECHO_T}$ac_header_preproc" >&6
10923
10924# So?  What about this header?
10925case $ac_header_compiler:$ac_header_preproc in
10926  yes:no )
10927    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10928echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10929    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10930echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10931    (
10932      cat <<\_ASBOX
10933## ------------------------------------ ##
10934## Report this to bug-autoconf@gnu.org. ##
10935## ------------------------------------ ##
10936_ASBOX
10937    ) |
10938      sed "s/^/$as_me: WARNING:     /" >&2
10939    ;;
10940  no:yes )
10941    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10942echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10943    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10944echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10945    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10946echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10947    (
10948      cat <<\_ASBOX
10949## ------------------------------------ ##
10950## Report this to bug-autoconf@gnu.org. ##
10951## ------------------------------------ ##
10952_ASBOX
10953    ) |
10954      sed "s/^/$as_me: WARNING:     /" >&2
10955    ;;
10956esac
10957echo "$as_me:$LINENO: checking for $ac_header" >&5
10958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10959if eval "test \"\${$as_ac_Header+set}\" = set"; then
10960  echo $ECHO_N "(cached) $ECHO_C" >&6
10961else
10962  eval "$as_ac_Header=$ac_header_preproc"
10963fi
10964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10966
10967fi
10968if test `eval echo '${'$as_ac_Header'}'` = yes; then
10969  cat >>confdefs.h <<_ACEOF
10970#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10971_ACEOF
10972
10973fi
10974
10975done
10976
10977
10978for ac_header in signal.h
10979do
10980as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10981if eval "test \"\${$as_ac_Header+set}\" = set"; then
10982  echo "$as_me:$LINENO: checking for $ac_header" >&5
10983echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10984if eval "test \"\${$as_ac_Header+set}\" = set"; then
10985  echo $ECHO_N "(cached) $ECHO_C" >&6
10986fi
10987echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10988echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10989else
10990  # Is the header compilable?
10991echo "$as_me:$LINENO: checking $ac_header usability" >&5
10992echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10993cat >conftest.$ac_ext <<_ACEOF
10994#line $LINENO "configure"
10995/* confdefs.h.  */
10996_ACEOF
10997cat confdefs.h >>conftest.$ac_ext
10998cat >>conftest.$ac_ext <<_ACEOF
10999/* end confdefs.h.  */
11000$ac_includes_default
11001#include <$ac_header>
11002_ACEOF
11003rm -f conftest.$ac_objext
11004if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11005  (eval $ac_compile) 2>&5
11006  ac_status=$?
11007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11008  (exit $ac_status); } &&
11009         { ac_try='test -s conftest.$ac_objext'
11010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11011  (eval $ac_try) 2>&5
11012  ac_status=$?
11013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11014  (exit $ac_status); }; }; then
11015  ac_header_compiler=yes
11016else
11017  echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020ac_header_compiler=no
11021fi
11022rm -f conftest.$ac_objext conftest.$ac_ext
11023echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11024echo "${ECHO_T}$ac_header_compiler" >&6
11025
11026# Is the header present?
11027echo "$as_me:$LINENO: checking $ac_header presence" >&5
11028echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11029cat >conftest.$ac_ext <<_ACEOF
11030#line $LINENO "configure"
11031/* confdefs.h.  */
11032_ACEOF
11033cat confdefs.h >>conftest.$ac_ext
11034cat >>conftest.$ac_ext <<_ACEOF
11035/* end confdefs.h.  */
11036#include <$ac_header>
11037_ACEOF
11038if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11039  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11040  ac_status=$?
11041  grep -v '^ *+' conftest.er1 >conftest.err
11042  rm -f conftest.er1
11043  cat conftest.err >&5
11044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045  (exit $ac_status); } >/dev/null; then
11046  if test -s conftest.err; then
11047    ac_cpp_err=$ac_cxx_preproc_warn_flag
11048  else
11049    ac_cpp_err=
11050  fi
11051else
11052  ac_cpp_err=yes
11053fi
11054if test -z "$ac_cpp_err"; then
11055  ac_header_preproc=yes
11056else
11057  echo "$as_me: failed program was:" >&5
11058sed 's/^/| /' conftest.$ac_ext >&5
11059
11060  ac_header_preproc=no
11061fi
11062rm -f conftest.err conftest.$ac_ext
11063echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11064echo "${ECHO_T}$ac_header_preproc" >&6
11065
11066# So?  What about this header?
11067case $ac_header_compiler:$ac_header_preproc in
11068  yes:no )
11069    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11070echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11071    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11072echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11073    (
11074      cat <<\_ASBOX
11075## ------------------------------------ ##
11076## Report this to bug-autoconf@gnu.org. ##
11077## ------------------------------------ ##
11078_ASBOX
11079    ) |
11080      sed "s/^/$as_me: WARNING:     /" >&2
11081    ;;
11082  no:yes )
11083    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11084echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11085    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11086echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11087    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11088echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11089    (
11090      cat <<\_ASBOX
11091## ------------------------------------ ##
11092## Report this to bug-autoconf@gnu.org. ##
11093## ------------------------------------ ##
11094_ASBOX
11095    ) |
11096      sed "s/^/$as_me: WARNING:     /" >&2
11097    ;;
11098esac
11099echo "$as_me:$LINENO: checking for $ac_header" >&5
11100echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11101if eval "test \"\${$as_ac_Header+set}\" = set"; then
11102  echo $ECHO_N "(cached) $ECHO_C" >&6
11103else
11104  eval "$as_ac_Header=$ac_header_preproc"
11105fi
11106echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11107echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11108
11109fi
11110if test `eval echo '${'$as_ac_Header'}'` = yes; then
11111  cat >>confdefs.h <<_ACEOF
11112#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11113_ACEOF
11114
11115fi
11116
11117done
11118
11119
11120for ac_header in syslog.h
11121do
11122as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11123if eval "test \"\${$as_ac_Header+set}\" = set"; then
11124  echo "$as_me:$LINENO: checking for $ac_header" >&5
11125echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11126if eval "test \"\${$as_ac_Header+set}\" = set"; then
11127  echo $ECHO_N "(cached) $ECHO_C" >&6
11128fi
11129echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11130echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11131else
11132  # Is the header compilable?
11133echo "$as_me:$LINENO: checking $ac_header usability" >&5
11134echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11135cat >conftest.$ac_ext <<_ACEOF
11136#line $LINENO "configure"
11137/* confdefs.h.  */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h.  */
11142$ac_includes_default
11143#include <$ac_header>
11144_ACEOF
11145rm -f conftest.$ac_objext
11146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11147  (eval $ac_compile) 2>&5
11148  ac_status=$?
11149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11150  (exit $ac_status); } &&
11151         { ac_try='test -s conftest.$ac_objext'
11152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11153  (eval $ac_try) 2>&5
11154  ac_status=$?
11155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11156  (exit $ac_status); }; }; then
11157  ac_header_compiler=yes
11158else
11159  echo "$as_me: failed program was:" >&5
11160sed 's/^/| /' conftest.$ac_ext >&5
11161
11162ac_header_compiler=no
11163fi
11164rm -f conftest.$ac_objext conftest.$ac_ext
11165echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11166echo "${ECHO_T}$ac_header_compiler" >&6
11167
11168# Is the header present?
11169echo "$as_me:$LINENO: checking $ac_header presence" >&5
11170echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11171cat >conftest.$ac_ext <<_ACEOF
11172#line $LINENO "configure"
11173/* confdefs.h.  */
11174_ACEOF
11175cat confdefs.h >>conftest.$ac_ext
11176cat >>conftest.$ac_ext <<_ACEOF
11177/* end confdefs.h.  */
11178#include <$ac_header>
11179_ACEOF
11180if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11181  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11182  ac_status=$?
11183  grep -v '^ *+' conftest.er1 >conftest.err
11184  rm -f conftest.er1
11185  cat conftest.err >&5
11186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11187  (exit $ac_status); } >/dev/null; then
11188  if test -s conftest.err; then
11189    ac_cpp_err=$ac_cxx_preproc_warn_flag
11190  else
11191    ac_cpp_err=
11192  fi
11193else
11194  ac_cpp_err=yes
11195fi
11196if test -z "$ac_cpp_err"; then
11197  ac_header_preproc=yes
11198else
11199  echo "$as_me: failed program was:" >&5
11200sed 's/^/| /' conftest.$ac_ext >&5
11201
11202  ac_header_preproc=no
11203fi
11204rm -f conftest.err conftest.$ac_ext
11205echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11206echo "${ECHO_T}$ac_header_preproc" >&6
11207
11208# So?  What about this header?
11209case $ac_header_compiler:$ac_header_preproc in
11210  yes:no )
11211    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11213    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11214echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11215    (
11216      cat <<\_ASBOX
11217## ------------------------------------ ##
11218## Report this to bug-autoconf@gnu.org. ##
11219## ------------------------------------ ##
11220_ASBOX
11221    ) |
11222      sed "s/^/$as_me: WARNING:     /" >&2
11223    ;;
11224  no:yes )
11225    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11226echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11227    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11228echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11229    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11230echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11231    (
11232      cat <<\_ASBOX
11233## ------------------------------------ ##
11234## Report this to bug-autoconf@gnu.org. ##
11235## ------------------------------------ ##
11236_ASBOX
11237    ) |
11238      sed "s/^/$as_me: WARNING:     /" >&2
11239    ;;
11240esac
11241echo "$as_me:$LINENO: checking for $ac_header" >&5
11242echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11243if eval "test \"\${$as_ac_Header+set}\" = set"; then
11244  echo $ECHO_N "(cached) $ECHO_C" >&6
11245else
11246  eval "$as_ac_Header=$ac_header_preproc"
11247fi
11248echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11249echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11250
11251fi
11252if test `eval echo '${'$as_ac_Header'}'` = yes; then
11253  cat >>confdefs.h <<_ACEOF
11254#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11255_ACEOF
11256
11257fi
11258
11259done
11260
11261
11262for ac_header in time.h
11263do
11264as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11265if eval "test \"\${$as_ac_Header+set}\" = set"; then
11266  echo "$as_me:$LINENO: checking for $ac_header" >&5
11267echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11268if eval "test \"\${$as_ac_Header+set}\" = set"; then
11269  echo $ECHO_N "(cached) $ECHO_C" >&6
11270fi
11271echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11272echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11273else
11274  # Is the header compilable?
11275echo "$as_me:$LINENO: checking $ac_header usability" >&5
11276echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11277cat >conftest.$ac_ext <<_ACEOF
11278#line $LINENO "configure"
11279/* confdefs.h.  */
11280_ACEOF
11281cat confdefs.h >>conftest.$ac_ext
11282cat >>conftest.$ac_ext <<_ACEOF
11283/* end confdefs.h.  */
11284$ac_includes_default
11285#include <$ac_header>
11286_ACEOF
11287rm -f conftest.$ac_objext
11288if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11289  (eval $ac_compile) 2>&5
11290  ac_status=$?
11291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11292  (exit $ac_status); } &&
11293         { ac_try='test -s conftest.$ac_objext'
11294  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11295  (eval $ac_try) 2>&5
11296  ac_status=$?
11297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298  (exit $ac_status); }; }; then
11299  ac_header_compiler=yes
11300else
11301  echo "$as_me: failed program was:" >&5
11302sed 's/^/| /' conftest.$ac_ext >&5
11303
11304ac_header_compiler=no
11305fi
11306rm -f conftest.$ac_objext conftest.$ac_ext
11307echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11308echo "${ECHO_T}$ac_header_compiler" >&6
11309
11310# Is the header present?
11311echo "$as_me:$LINENO: checking $ac_header presence" >&5
11312echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11313cat >conftest.$ac_ext <<_ACEOF
11314#line $LINENO "configure"
11315/* confdefs.h.  */
11316_ACEOF
11317cat confdefs.h >>conftest.$ac_ext
11318cat >>conftest.$ac_ext <<_ACEOF
11319/* end confdefs.h.  */
11320#include <$ac_header>
11321_ACEOF
11322if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11323  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11324  ac_status=$?
11325  grep -v '^ *+' conftest.er1 >conftest.err
11326  rm -f conftest.er1
11327  cat conftest.err >&5
11328  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329  (exit $ac_status); } >/dev/null; then
11330  if test -s conftest.err; then
11331    ac_cpp_err=$ac_cxx_preproc_warn_flag
11332  else
11333    ac_cpp_err=
11334  fi
11335else
11336  ac_cpp_err=yes
11337fi
11338if test -z "$ac_cpp_err"; then
11339  ac_header_preproc=yes
11340else
11341  echo "$as_me: failed program was:" >&5
11342sed 's/^/| /' conftest.$ac_ext >&5
11343
11344  ac_header_preproc=no
11345fi
11346rm -f conftest.err conftest.$ac_ext
11347echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11348echo "${ECHO_T}$ac_header_preproc" >&6
11349
11350# So?  What about this header?
11351case $ac_header_compiler:$ac_header_preproc in
11352  yes:no )
11353    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11354echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11355    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11356echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11357    (
11358      cat <<\_ASBOX
11359## ------------------------------------ ##
11360## Report this to bug-autoconf@gnu.org. ##
11361## ------------------------------------ ##
11362_ASBOX
11363    ) |
11364      sed "s/^/$as_me: WARNING:     /" >&2
11365    ;;
11366  no:yes )
11367    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11368echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11369    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11370echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11371    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11372echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11373    (
11374      cat <<\_ASBOX
11375## ------------------------------------ ##
11376## Report this to bug-autoconf@gnu.org. ##
11377## ------------------------------------ ##
11378_ASBOX
11379    ) |
11380      sed "s/^/$as_me: WARNING:     /" >&2
11381    ;;
11382esac
11383echo "$as_me:$LINENO: checking for $ac_header" >&5
11384echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11385if eval "test \"\${$as_ac_Header+set}\" = set"; then
11386  echo $ECHO_N "(cached) $ECHO_C" >&6
11387else
11388  eval "$as_ac_Header=$ac_header_preproc"
11389fi
11390echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11391echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11392
11393fi
11394if test `eval echo '${'$as_ac_Header'}'` = yes; then
11395  cat >>confdefs.h <<_ACEOF
11396#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11397_ACEOF
11398
11399fi
11400
11401done
11402
11403
11404for ac_header in sys/soundcard.h
11405do
11406as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11407if eval "test \"\${$as_ac_Header+set}\" = set"; then
11408  echo "$as_me:$LINENO: checking for $ac_header" >&5
11409echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11410if eval "test \"\${$as_ac_Header+set}\" = set"; then
11411  echo $ECHO_N "(cached) $ECHO_C" >&6
11412fi
11413echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11414echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11415else
11416  # Is the header compilable?
11417echo "$as_me:$LINENO: checking $ac_header usability" >&5
11418echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11419cat >conftest.$ac_ext <<_ACEOF
11420#line $LINENO "configure"
11421/* confdefs.h.  */
11422_ACEOF
11423cat confdefs.h >>conftest.$ac_ext
11424cat >>conftest.$ac_ext <<_ACEOF
11425/* end confdefs.h.  */
11426$ac_includes_default
11427#include <$ac_header>
11428_ACEOF
11429rm -f conftest.$ac_objext
11430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11431  (eval $ac_compile) 2>&5
11432  ac_status=$?
11433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434  (exit $ac_status); } &&
11435         { ac_try='test -s conftest.$ac_objext'
11436  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11437  (eval $ac_try) 2>&5
11438  ac_status=$?
11439  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11440  (exit $ac_status); }; }; then
11441  ac_header_compiler=yes
11442else
11443  echo "$as_me: failed program was:" >&5
11444sed 's/^/| /' conftest.$ac_ext >&5
11445
11446ac_header_compiler=no
11447fi
11448rm -f conftest.$ac_objext conftest.$ac_ext
11449echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11450echo "${ECHO_T}$ac_header_compiler" >&6
11451
11452# Is the header present?
11453echo "$as_me:$LINENO: checking $ac_header presence" >&5
11454echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11455cat >conftest.$ac_ext <<_ACEOF
11456#line $LINENO "configure"
11457/* confdefs.h.  */
11458_ACEOF
11459cat confdefs.h >>conftest.$ac_ext
11460cat >>conftest.$ac_ext <<_ACEOF
11461/* end confdefs.h.  */
11462#include <$ac_header>
11463_ACEOF
11464if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11465  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11466  ac_status=$?
11467  grep -v '^ *+' conftest.er1 >conftest.err
11468  rm -f conftest.er1
11469  cat conftest.err >&5
11470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11471  (exit $ac_status); } >/dev/null; then
11472  if test -s conftest.err; then
11473    ac_cpp_err=$ac_cxx_preproc_warn_flag
11474  else
11475    ac_cpp_err=
11476  fi
11477else
11478  ac_cpp_err=yes
11479fi
11480if test -z "$ac_cpp_err"; then
11481  ac_header_preproc=yes
11482else
11483  echo "$as_me: failed program was:" >&5
11484sed 's/^/| /' conftest.$ac_ext >&5
11485
11486  ac_header_preproc=no
11487fi
11488rm -f conftest.err conftest.$ac_ext
11489echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11490echo "${ECHO_T}$ac_header_preproc" >&6
11491
11492# So?  What about this header?
11493case $ac_header_compiler:$ac_header_preproc in
11494  yes:no )
11495    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11496echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11497    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11499    (
11500      cat <<\_ASBOX
11501## ------------------------------------ ##
11502## Report this to bug-autoconf@gnu.org. ##
11503## ------------------------------------ ##
11504_ASBOX
11505    ) |
11506      sed "s/^/$as_me: WARNING:     /" >&2
11507    ;;
11508  no:yes )
11509    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11511    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11512echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11513    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11514echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11515    (
11516      cat <<\_ASBOX
11517## ------------------------------------ ##
11518## Report this to bug-autoconf@gnu.org. ##
11519## ------------------------------------ ##
11520_ASBOX
11521    ) |
11522      sed "s/^/$as_me: WARNING:     /" >&2
11523    ;;
11524esac
11525echo "$as_me:$LINENO: checking for $ac_header" >&5
11526echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11527if eval "test \"\${$as_ac_Header+set}\" = set"; then
11528  echo $ECHO_N "(cached) $ECHO_C" >&6
11529else
11530  eval "$as_ac_Header=$ac_header_preproc"
11531fi
11532echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11533echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11534
11535fi
11536if test `eval echo '${'$as_ac_Header'}'` = yes; then
11537  cat >>confdefs.h <<_ACEOF
11538#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11539_ACEOF
11540
11541fi
11542
11543done
11544
11545
11546for ac_header in sys/audio.h
11547do
11548as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11549if eval "test \"\${$as_ac_Header+set}\" = set"; then
11550  echo "$as_me:$LINENO: checking for $ac_header" >&5
11551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11552if eval "test \"\${$as_ac_Header+set}\" = set"; then
11553  echo $ECHO_N "(cached) $ECHO_C" >&6
11554fi
11555echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11556echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11557else
11558  # Is the header compilable?
11559echo "$as_me:$LINENO: checking $ac_header usability" >&5
11560echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11561cat >conftest.$ac_ext <<_ACEOF
11562#line $LINENO "configure"
11563/* confdefs.h.  */
11564_ACEOF
11565cat confdefs.h >>conftest.$ac_ext
11566cat >>conftest.$ac_ext <<_ACEOF
11567/* end confdefs.h.  */
11568$ac_includes_default
11569#include <$ac_header>
11570_ACEOF
11571rm -f conftest.$ac_objext
11572if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11573  (eval $ac_compile) 2>&5
11574  ac_status=$?
11575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576  (exit $ac_status); } &&
11577         { ac_try='test -s conftest.$ac_objext'
11578  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11579  (eval $ac_try) 2>&5
11580  ac_status=$?
11581  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582  (exit $ac_status); }; }; then
11583  ac_header_compiler=yes
11584else
11585  echo "$as_me: failed program was:" >&5
11586sed 's/^/| /' conftest.$ac_ext >&5
11587
11588ac_header_compiler=no
11589fi
11590rm -f conftest.$ac_objext conftest.$ac_ext
11591echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11592echo "${ECHO_T}$ac_header_compiler" >&6
11593
11594# Is the header present?
11595echo "$as_me:$LINENO: checking $ac_header presence" >&5
11596echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11597cat >conftest.$ac_ext <<_ACEOF
11598#line $LINENO "configure"
11599/* confdefs.h.  */
11600_ACEOF
11601cat confdefs.h >>conftest.$ac_ext
11602cat >>conftest.$ac_ext <<_ACEOF
11603/* end confdefs.h.  */
11604#include <$ac_header>
11605_ACEOF
11606if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11607  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11608  ac_status=$?
11609  grep -v '^ *+' conftest.er1 >conftest.err
11610  rm -f conftest.er1
11611  cat conftest.err >&5
11612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613  (exit $ac_status); } >/dev/null; then
11614  if test -s conftest.err; then
11615    ac_cpp_err=$ac_cxx_preproc_warn_flag
11616  else
11617    ac_cpp_err=
11618  fi
11619else
11620  ac_cpp_err=yes
11621fi
11622if test -z "$ac_cpp_err"; then
11623  ac_header_preproc=yes
11624else
11625  echo "$as_me: failed program was:" >&5
11626sed 's/^/| /' conftest.$ac_ext >&5
11627
11628  ac_header_preproc=no
11629fi
11630rm -f conftest.err conftest.$ac_ext
11631echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632echo "${ECHO_T}$ac_header_preproc" >&6
11633
11634# So?  What about this header?
11635case $ac_header_compiler:$ac_header_preproc in
11636  yes:no )
11637    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11640echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11641    (
11642      cat <<\_ASBOX
11643## ------------------------------------ ##
11644## Report this to bug-autoconf@gnu.org. ##
11645## ------------------------------------ ##
11646_ASBOX
11647    ) |
11648      sed "s/^/$as_me: WARNING:     /" >&2
11649    ;;
11650  no:yes )
11651    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11652echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11653    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11654echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11655    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11656echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11657    (
11658      cat <<\_ASBOX
11659## ------------------------------------ ##
11660## Report this to bug-autoconf@gnu.org. ##
11661## ------------------------------------ ##
11662_ASBOX
11663    ) |
11664      sed "s/^/$as_me: WARNING:     /" >&2
11665    ;;
11666esac
11667echo "$as_me:$LINENO: checking for $ac_header" >&5
11668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11669if eval "test \"\${$as_ac_Header+set}\" = set"; then
11670  echo $ECHO_N "(cached) $ECHO_C" >&6
11671else
11672  eval "$as_ac_Header=$ac_header_preproc"
11673fi
11674echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11675echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11676
11677fi
11678if test `eval echo '${'$as_ac_Header'}'` = yes; then
11679  cat >>confdefs.h <<_ACEOF
11680#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11681_ACEOF
11682
11683fi
11684
11685done
11686
11687
11688for ac_header in sys/stat.h
11689do
11690as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11691if eval "test \"\${$as_ac_Header+set}\" = set"; then
11692  echo "$as_me:$LINENO: checking for $ac_header" >&5
11693echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11694if eval "test \"\${$as_ac_Header+set}\" = set"; then
11695  echo $ECHO_N "(cached) $ECHO_C" >&6
11696fi
11697echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11698echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11699else
11700  # Is the header compilable?
11701echo "$as_me:$LINENO: checking $ac_header usability" >&5
11702echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11703cat >conftest.$ac_ext <<_ACEOF
11704#line $LINENO "configure"
11705/* confdefs.h.  */
11706_ACEOF
11707cat confdefs.h >>conftest.$ac_ext
11708cat >>conftest.$ac_ext <<_ACEOF
11709/* end confdefs.h.  */
11710$ac_includes_default
11711#include <$ac_header>
11712_ACEOF
11713rm -f conftest.$ac_objext
11714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11715  (eval $ac_compile) 2>&5
11716  ac_status=$?
11717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11718  (exit $ac_status); } &&
11719         { ac_try='test -s conftest.$ac_objext'
11720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11721  (eval $ac_try) 2>&5
11722  ac_status=$?
11723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11724  (exit $ac_status); }; }; then
11725  ac_header_compiler=yes
11726else
11727  echo "$as_me: failed program was:" >&5
11728sed 's/^/| /' conftest.$ac_ext >&5
11729
11730ac_header_compiler=no
11731fi
11732rm -f conftest.$ac_objext conftest.$ac_ext
11733echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11734echo "${ECHO_T}$ac_header_compiler" >&6
11735
11736# Is the header present?
11737echo "$as_me:$LINENO: checking $ac_header presence" >&5
11738echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11739cat >conftest.$ac_ext <<_ACEOF
11740#line $LINENO "configure"
11741/* confdefs.h.  */
11742_ACEOF
11743cat confdefs.h >>conftest.$ac_ext
11744cat >>conftest.$ac_ext <<_ACEOF
11745/* end confdefs.h.  */
11746#include <$ac_header>
11747_ACEOF
11748if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11749  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11750  ac_status=$?
11751  grep -v '^ *+' conftest.er1 >conftest.err
11752  rm -f conftest.er1
11753  cat conftest.err >&5
11754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755  (exit $ac_status); } >/dev/null; then
11756  if test -s conftest.err; then
11757    ac_cpp_err=$ac_cxx_preproc_warn_flag
11758  else
11759    ac_cpp_err=
11760  fi
11761else
11762  ac_cpp_err=yes
11763fi
11764if test -z "$ac_cpp_err"; then
11765  ac_header_preproc=yes
11766else
11767  echo "$as_me: failed program was:" >&5
11768sed 's/^/| /' conftest.$ac_ext >&5
11769
11770  ac_header_preproc=no
11771fi
11772rm -f conftest.err conftest.$ac_ext
11773echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11774echo "${ECHO_T}$ac_header_preproc" >&6
11775
11776# So?  What about this header?
11777case $ac_header_compiler:$ac_header_preproc in
11778  yes:no )
11779    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11780echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11781    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11782echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11783    (
11784      cat <<\_ASBOX
11785## ------------------------------------ ##
11786## Report this to bug-autoconf@gnu.org. ##
11787## ------------------------------------ ##
11788_ASBOX
11789    ) |
11790      sed "s/^/$as_me: WARNING:     /" >&2
11791    ;;
11792  no:yes )
11793    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11794echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11795    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11796echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11797    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11798echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11799    (
11800      cat <<\_ASBOX
11801## ------------------------------------ ##
11802## Report this to bug-autoconf@gnu.org. ##
11803## ------------------------------------ ##
11804_ASBOX
11805    ) |
11806      sed "s/^/$as_me: WARNING:     /" >&2
11807    ;;
11808esac
11809echo "$as_me:$LINENO: checking for $ac_header" >&5
11810echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11811if eval "test \"\${$as_ac_Header+set}\" = set"; then
11812  echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814  eval "$as_ac_Header=$ac_header_preproc"
11815fi
11816echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11817echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11818
11819fi
11820if test `eval echo '${'$as_ac_Header'}'` = yes; then
11821  cat >>confdefs.h <<_ACEOF
11822#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823_ACEOF
11824
11825fi
11826
11827done
11828
11829
11830for ac_header in sys/ioctl.h
11831do
11832as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11833if eval "test \"\${$as_ac_Header+set}\" = set"; then
11834  echo "$as_me:$LINENO: checking for $ac_header" >&5
11835echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11836if eval "test \"\${$as_ac_Header+set}\" = set"; then
11837  echo $ECHO_N "(cached) $ECHO_C" >&6
11838fi
11839echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11840echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11841else
11842  # Is the header compilable?
11843echo "$as_me:$LINENO: checking $ac_header usability" >&5
11844echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11845cat >conftest.$ac_ext <<_ACEOF
11846#line $LINENO "configure"
11847/* confdefs.h.  */
11848_ACEOF
11849cat confdefs.h >>conftest.$ac_ext
11850cat >>conftest.$ac_ext <<_ACEOF
11851/* end confdefs.h.  */
11852$ac_includes_default
11853#include <$ac_header>
11854_ACEOF
11855rm -f conftest.$ac_objext
11856if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11857  (eval $ac_compile) 2>&5
11858  ac_status=$?
11859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11860  (exit $ac_status); } &&
11861         { ac_try='test -s conftest.$ac_objext'
11862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11863  (eval $ac_try) 2>&5
11864  ac_status=$?
11865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11866  (exit $ac_status); }; }; then
11867  ac_header_compiler=yes
11868else
11869  echo "$as_me: failed program was:" >&5
11870sed 's/^/| /' conftest.$ac_ext >&5
11871
11872ac_header_compiler=no
11873fi
11874rm -f conftest.$ac_objext conftest.$ac_ext
11875echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11876echo "${ECHO_T}$ac_header_compiler" >&6
11877
11878# Is the header present?
11879echo "$as_me:$LINENO: checking $ac_header presence" >&5
11880echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11881cat >conftest.$ac_ext <<_ACEOF
11882#line $LINENO "configure"
11883/* confdefs.h.  */
11884_ACEOF
11885cat confdefs.h >>conftest.$ac_ext
11886cat >>conftest.$ac_ext <<_ACEOF
11887/* end confdefs.h.  */
11888#include <$ac_header>
11889_ACEOF
11890if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11891  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11892  ac_status=$?
11893  grep -v '^ *+' conftest.er1 >conftest.err
11894  rm -f conftest.er1
11895  cat conftest.err >&5
11896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897  (exit $ac_status); } >/dev/null; then
11898  if test -s conftest.err; then
11899    ac_cpp_err=$ac_cxx_preproc_warn_flag
11900  else
11901    ac_cpp_err=
11902  fi
11903else
11904  ac_cpp_err=yes
11905fi
11906if test -z "$ac_cpp_err"; then
11907  ac_header_preproc=yes
11908else
11909  echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912  ac_header_preproc=no
11913fi
11914rm -f conftest.err conftest.$ac_ext
11915echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11916echo "${ECHO_T}$ac_header_preproc" >&6
11917
11918# So?  What about this header?
11919case $ac_header_compiler:$ac_header_preproc in
11920  yes:no )
11921    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11922echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11923    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11924echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11925    (
11926      cat <<\_ASBOX
11927## ------------------------------------ ##
11928## Report this to bug-autoconf@gnu.org. ##
11929## ------------------------------------ ##
11930_ASBOX
11931    ) |
11932      sed "s/^/$as_me: WARNING:     /" >&2
11933    ;;
11934  no:yes )
11935    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11936echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11937    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11938echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11939    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11940echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11941    (
11942      cat <<\_ASBOX
11943## ------------------------------------ ##
11944## Report this to bug-autoconf@gnu.org. ##
11945## ------------------------------------ ##
11946_ASBOX
11947    ) |
11948      sed "s/^/$as_me: WARNING:     /" >&2
11949    ;;
11950esac
11951echo "$as_me:$LINENO: checking for $ac_header" >&5
11952echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11953if eval "test \"\${$as_ac_Header+set}\" = set"; then
11954  echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
11956  eval "$as_ac_Header=$ac_header_preproc"
11957fi
11958echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11959echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11960
11961fi
11962if test `eval echo '${'$as_ac_Header'}'` = yes; then
11963  cat >>confdefs.h <<_ACEOF
11964#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11965_ACEOF
11966
11967fi
11968
11969done
11970
11971
11972for ac_header in sys/socket.h
11973do
11974as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975if eval "test \"\${$as_ac_Header+set}\" = set"; then
11976  echo "$as_me:$LINENO: checking for $ac_header" >&5
11977echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11978if eval "test \"\${$as_ac_Header+set}\" = set"; then
11979  echo $ECHO_N "(cached) $ECHO_C" >&6
11980fi
11981echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11982echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11983else
11984  # Is the header compilable?
11985echo "$as_me:$LINENO: checking $ac_header usability" >&5
11986echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11987cat >conftest.$ac_ext <<_ACEOF
11988#line $LINENO "configure"
11989/* confdefs.h.  */
11990_ACEOF
11991cat confdefs.h >>conftest.$ac_ext
11992cat >>conftest.$ac_ext <<_ACEOF
11993/* end confdefs.h.  */
11994$ac_includes_default
11995#include <$ac_header>
11996_ACEOF
11997rm -f conftest.$ac_objext
11998if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11999  (eval $ac_compile) 2>&5
12000  ac_status=$?
12001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12002  (exit $ac_status); } &&
12003         { ac_try='test -s conftest.$ac_objext'
12004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12005  (eval $ac_try) 2>&5
12006  ac_status=$?
12007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008  (exit $ac_status); }; }; then
12009  ac_header_compiler=yes
12010else
12011  echo "$as_me: failed program was:" >&5
12012sed 's/^/| /' conftest.$ac_ext >&5
12013
12014ac_header_compiler=no
12015fi
12016rm -f conftest.$ac_objext conftest.$ac_ext
12017echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12018echo "${ECHO_T}$ac_header_compiler" >&6
12019
12020# Is the header present?
12021echo "$as_me:$LINENO: checking $ac_header presence" >&5
12022echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12023cat >conftest.$ac_ext <<_ACEOF
12024#line $LINENO "configure"
12025/* confdefs.h.  */
12026_ACEOF
12027cat confdefs.h >>conftest.$ac_ext
12028cat >>conftest.$ac_ext <<_ACEOF
12029/* end confdefs.h.  */
12030#include <$ac_header>
12031_ACEOF
12032if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12033  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12034  ac_status=$?
12035  grep -v '^ *+' conftest.er1 >conftest.err
12036  rm -f conftest.er1
12037  cat conftest.err >&5
12038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12039  (exit $ac_status); } >/dev/null; then
12040  if test -s conftest.err; then
12041    ac_cpp_err=$ac_cxx_preproc_warn_flag
12042  else
12043    ac_cpp_err=
12044  fi
12045else
12046  ac_cpp_err=yes
12047fi
12048if test -z "$ac_cpp_err"; then
12049  ac_header_preproc=yes
12050else
12051  echo "$as_me: failed program was:" >&5
12052sed 's/^/| /' conftest.$ac_ext >&5
12053
12054  ac_header_preproc=no
12055fi
12056rm -f conftest.err conftest.$ac_ext
12057echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12058echo "${ECHO_T}$ac_header_preproc" >&6
12059
12060# So?  What about this header?
12061case $ac_header_compiler:$ac_header_preproc in
12062  yes:no )
12063    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12064echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12065    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12066echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12067    (
12068      cat <<\_ASBOX
12069## ------------------------------------ ##
12070## Report this to bug-autoconf@gnu.org. ##
12071## ------------------------------------ ##
12072_ASBOX
12073    ) |
12074      sed "s/^/$as_me: WARNING:     /" >&2
12075    ;;
12076  no:yes )
12077    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12078echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12079    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12080echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12081    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12082echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12083    (
12084      cat <<\_ASBOX
12085## ------------------------------------ ##
12086## Report this to bug-autoconf@gnu.org. ##
12087## ------------------------------------ ##
12088_ASBOX
12089    ) |
12090      sed "s/^/$as_me: WARNING:     /" >&2
12091    ;;
12092esac
12093echo "$as_me:$LINENO: checking for $ac_header" >&5
12094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12095if eval "test \"\${$as_ac_Header+set}\" = set"; then
12096  echo $ECHO_N "(cached) $ECHO_C" >&6
12097else
12098  eval "$as_ac_Header=$ac_header_preproc"
12099fi
12100echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12101echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12102
12103fi
12104if test `eval echo '${'$as_ac_Header'}'` = yes; then
12105  cat >>confdefs.h <<_ACEOF
12106#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12107_ACEOF
12108
12109fi
12110
12111done
12112
12113
12114for ac_header in sys/select.h
12115do
12116as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12117if eval "test \"\${$as_ac_Header+set}\" = set"; then
12118  echo "$as_me:$LINENO: checking for $ac_header" >&5
12119echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12120if eval "test \"\${$as_ac_Header+set}\" = set"; then
12121  echo $ECHO_N "(cached) $ECHO_C" >&6
12122fi
12123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12125else
12126  # Is the header compilable?
12127echo "$as_me:$LINENO: checking $ac_header usability" >&5
12128echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12129cat >conftest.$ac_ext <<_ACEOF
12130#line $LINENO "configure"
12131/* confdefs.h.  */
12132_ACEOF
12133cat confdefs.h >>conftest.$ac_ext
12134cat >>conftest.$ac_ext <<_ACEOF
12135/* end confdefs.h.  */
12136$ac_includes_default
12137#include <$ac_header>
12138_ACEOF
12139rm -f conftest.$ac_objext
12140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12141  (eval $ac_compile) 2>&5
12142  ac_status=$?
12143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144  (exit $ac_status); } &&
12145         { ac_try='test -s conftest.$ac_objext'
12146  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12147  (eval $ac_try) 2>&5
12148  ac_status=$?
12149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12150  (exit $ac_status); }; }; then
12151  ac_header_compiler=yes
12152else
12153  echo "$as_me: failed program was:" >&5
12154sed 's/^/| /' conftest.$ac_ext >&5
12155
12156ac_header_compiler=no
12157fi
12158rm -f conftest.$ac_objext conftest.$ac_ext
12159echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12160echo "${ECHO_T}$ac_header_compiler" >&6
12161
12162# Is the header present?
12163echo "$as_me:$LINENO: checking $ac_header presence" >&5
12164echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12165cat >conftest.$ac_ext <<_ACEOF
12166#line $LINENO "configure"
12167/* confdefs.h.  */
12168_ACEOF
12169cat confdefs.h >>conftest.$ac_ext
12170cat >>conftest.$ac_ext <<_ACEOF
12171/* end confdefs.h.  */
12172#include <$ac_header>
12173_ACEOF
12174if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12175  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12176  ac_status=$?
12177  grep -v '^ *+' conftest.er1 >conftest.err
12178  rm -f conftest.er1
12179  cat conftest.err >&5
12180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181  (exit $ac_status); } >/dev/null; then
12182  if test -s conftest.err; then
12183    ac_cpp_err=$ac_cxx_preproc_warn_flag
12184  else
12185    ac_cpp_err=
12186  fi
12187else
12188  ac_cpp_err=yes
12189fi
12190if test -z "$ac_cpp_err"; then
12191  ac_header_preproc=yes
12192else
12193  echo "$as_me: failed program was:" >&5
12194sed 's/^/| /' conftest.$ac_ext >&5
12195
12196  ac_header_preproc=no
12197fi
12198rm -f conftest.err conftest.$ac_ext
12199echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12200echo "${ECHO_T}$ac_header_preproc" >&6
12201
12202# So?  What about this header?
12203case $ac_header_compiler:$ac_header_preproc in
12204  yes:no )
12205    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12206echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12207    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12208echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12209    (
12210      cat <<\_ASBOX
12211## ------------------------------------ ##
12212## Report this to bug-autoconf@gnu.org. ##
12213## ------------------------------------ ##
12214_ASBOX
12215    ) |
12216      sed "s/^/$as_me: WARNING:     /" >&2
12217    ;;
12218  no:yes )
12219    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12220echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12221    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12222echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12223    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12224echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12225    (
12226      cat <<\_ASBOX
12227## ------------------------------------ ##
12228## Report this to bug-autoconf@gnu.org. ##
12229## ------------------------------------ ##
12230_ASBOX
12231    ) |
12232      sed "s/^/$as_me: WARNING:     /" >&2
12233    ;;
12234esac
12235echo "$as_me:$LINENO: checking for $ac_header" >&5
12236echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12237if eval "test \"\${$as_ac_Header+set}\" = set"; then
12238  echo $ECHO_N "(cached) $ECHO_C" >&6
12239else
12240  eval "$as_ac_Header=$ac_header_preproc"
12241fi
12242echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12243echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12244
12245fi
12246if test `eval echo '${'$as_ac_Header'}'` = yes; then
12247  cat >>confdefs.h <<_ACEOF
12248#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12249_ACEOF
12250
12251fi
12252
12253done
12254
12255
12256for ac_header in sys/time.h
12257do
12258as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12259if eval "test \"\${$as_ac_Header+set}\" = set"; then
12260  echo "$as_me:$LINENO: checking for $ac_header" >&5
12261echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12262if eval "test \"\${$as_ac_Header+set}\" = set"; then
12263  echo $ECHO_N "(cached) $ECHO_C" >&6
12264fi
12265echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12266echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12267else
12268  # Is the header compilable?
12269echo "$as_me:$LINENO: checking $ac_header usability" >&5
12270echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12271cat >conftest.$ac_ext <<_ACEOF
12272#line $LINENO "configure"
12273/* confdefs.h.  */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h.  */
12278$ac_includes_default
12279#include <$ac_header>
12280_ACEOF
12281rm -f conftest.$ac_objext
12282if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12283  (eval $ac_compile) 2>&5
12284  ac_status=$?
12285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12286  (exit $ac_status); } &&
12287         { ac_try='test -s conftest.$ac_objext'
12288  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12289  (eval $ac_try) 2>&5
12290  ac_status=$?
12291  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292  (exit $ac_status); }; }; then
12293  ac_header_compiler=yes
12294else
12295  echo "$as_me: failed program was:" >&5
12296sed 's/^/| /' conftest.$ac_ext >&5
12297
12298ac_header_compiler=no
12299fi
12300rm -f conftest.$ac_objext conftest.$ac_ext
12301echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302echo "${ECHO_T}$ac_header_compiler" >&6
12303
12304# Is the header present?
12305echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12307cat >conftest.$ac_ext <<_ACEOF
12308#line $LINENO "configure"
12309/* confdefs.h.  */
12310_ACEOF
12311cat confdefs.h >>conftest.$ac_ext
12312cat >>conftest.$ac_ext <<_ACEOF
12313/* end confdefs.h.  */
12314#include <$ac_header>
12315_ACEOF
12316if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12317  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12318  ac_status=$?
12319  grep -v '^ *+' conftest.er1 >conftest.err
12320  rm -f conftest.er1
12321  cat conftest.err >&5
12322  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323  (exit $ac_status); } >/dev/null; then
12324  if test -s conftest.err; then
12325    ac_cpp_err=$ac_cxx_preproc_warn_flag
12326  else
12327    ac_cpp_err=
12328  fi
12329else
12330  ac_cpp_err=yes
12331fi
12332if test -z "$ac_cpp_err"; then
12333  ac_header_preproc=yes
12334else
12335  echo "$as_me: failed program was:" >&5
12336sed 's/^/| /' conftest.$ac_ext >&5
12337
12338  ac_header_preproc=no
12339fi
12340rm -f conftest.err conftest.$ac_ext
12341echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12342echo "${ECHO_T}$ac_header_preproc" >&6
12343
12344# So?  What about this header?
12345case $ac_header_compiler:$ac_header_preproc in
12346  yes:no )
12347    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12349    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12350echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12351    (
12352      cat <<\_ASBOX
12353## ------------------------------------ ##
12354## Report this to bug-autoconf@gnu.org. ##
12355## ------------------------------------ ##
12356_ASBOX
12357    ) |
12358      sed "s/^/$as_me: WARNING:     /" >&2
12359    ;;
12360  no:yes )
12361    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12362echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12363    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12364echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12365    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12366echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12367    (
12368      cat <<\_ASBOX
12369## ------------------------------------ ##
12370## Report this to bug-autoconf@gnu.org. ##
12371## ------------------------------------ ##
12372_ASBOX
12373    ) |
12374      sed "s/^/$as_me: WARNING:     /" >&2
12375    ;;
12376esac
12377echo "$as_me:$LINENO: checking for $ac_header" >&5
12378echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12379if eval "test \"\${$as_ac_Header+set}\" = set"; then
12380  echo $ECHO_N "(cached) $ECHO_C" >&6
12381else
12382  eval "$as_ac_Header=$ac_header_preproc"
12383fi
12384echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12385echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12386
12387fi
12388if test `eval echo '${'$as_ac_Header'}'` = yes; then
12389  cat >>confdefs.h <<_ACEOF
12390#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12391_ACEOF
12392
12393fi
12394
12395done
12396
12397
12398for ac_header in sys/types.h
12399do
12400as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12401if eval "test \"\${$as_ac_Header+set}\" = set"; then
12402  echo "$as_me:$LINENO: checking for $ac_header" >&5
12403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12404if eval "test \"\${$as_ac_Header+set}\" = set"; then
12405  echo $ECHO_N "(cached) $ECHO_C" >&6
12406fi
12407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12408echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12409else
12410  # Is the header compilable?
12411echo "$as_me:$LINENO: checking $ac_header usability" >&5
12412echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12413cat >conftest.$ac_ext <<_ACEOF
12414#line $LINENO "configure"
12415/* confdefs.h.  */
12416_ACEOF
12417cat confdefs.h >>conftest.$ac_ext
12418cat >>conftest.$ac_ext <<_ACEOF
12419/* end confdefs.h.  */
12420$ac_includes_default
12421#include <$ac_header>
12422_ACEOF
12423rm -f conftest.$ac_objext
12424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12425  (eval $ac_compile) 2>&5
12426  ac_status=$?
12427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428  (exit $ac_status); } &&
12429         { ac_try='test -s conftest.$ac_objext'
12430  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12431  (eval $ac_try) 2>&5
12432  ac_status=$?
12433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434  (exit $ac_status); }; }; then
12435  ac_header_compiler=yes
12436else
12437  echo "$as_me: failed program was:" >&5
12438sed 's/^/| /' conftest.$ac_ext >&5
12439
12440ac_header_compiler=no
12441fi
12442rm -f conftest.$ac_objext conftest.$ac_ext
12443echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12444echo "${ECHO_T}$ac_header_compiler" >&6
12445
12446# Is the header present?
12447echo "$as_me:$LINENO: checking $ac_header presence" >&5
12448echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12449cat >conftest.$ac_ext <<_ACEOF
12450#line $LINENO "configure"
12451/* confdefs.h.  */
12452_ACEOF
12453cat confdefs.h >>conftest.$ac_ext
12454cat >>conftest.$ac_ext <<_ACEOF
12455/* end confdefs.h.  */
12456#include <$ac_header>
12457_ACEOF
12458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12459  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12460  ac_status=$?
12461  grep -v '^ *+' conftest.er1 >conftest.err
12462  rm -f conftest.er1
12463  cat conftest.err >&5
12464  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465  (exit $ac_status); } >/dev/null; then
12466  if test -s conftest.err; then
12467    ac_cpp_err=$ac_cxx_preproc_warn_flag
12468  else
12469    ac_cpp_err=
12470  fi
12471else
12472  ac_cpp_err=yes
12473fi
12474if test -z "$ac_cpp_err"; then
12475  ac_header_preproc=yes
12476else
12477  echo "$as_me: failed program was:" >&5
12478sed 's/^/| /' conftest.$ac_ext >&5
12479
12480  ac_header_preproc=no
12481fi
12482rm -f conftest.err conftest.$ac_ext
12483echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12484echo "${ECHO_T}$ac_header_preproc" >&6
12485
12486# So?  What about this header?
12487case $ac_header_compiler:$ac_header_preproc in
12488  yes:no )
12489    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12490echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12491    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12492echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12493    (
12494      cat <<\_ASBOX
12495## ------------------------------------ ##
12496## Report this to bug-autoconf@gnu.org. ##
12497## ------------------------------------ ##
12498_ASBOX
12499    ) |
12500      sed "s/^/$as_me: WARNING:     /" >&2
12501    ;;
12502  no:yes )
12503    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12504echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12505    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12506echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12507    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12508echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12509    (
12510      cat <<\_ASBOX
12511## ------------------------------------ ##
12512## Report this to bug-autoconf@gnu.org. ##
12513## ------------------------------------ ##
12514_ASBOX
12515    ) |
12516      sed "s/^/$as_me: WARNING:     /" >&2
12517    ;;
12518esac
12519echo "$as_me:$LINENO: checking for $ac_header" >&5
12520echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12521if eval "test \"\${$as_ac_Header+set}\" = set"; then
12522  echo $ECHO_N "(cached) $ECHO_C" >&6
12523else
12524  eval "$as_ac_Header=$ac_header_preproc"
12525fi
12526echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12527echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12528
12529fi
12530if test `eval echo '${'$as_ac_Header'}'` = yes; then
12531  cat >>confdefs.h <<_ACEOF
12532#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12533_ACEOF
12534
12535fi
12536
12537done
12538
12539
12540for ac_header in sys/termios.h
12541do
12542as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12543if eval "test \"\${$as_ac_Header+set}\" = set"; then
12544  echo "$as_me:$LINENO: checking for $ac_header" >&5
12545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12546if eval "test \"\${$as_ac_Header+set}\" = set"; then
12547  echo $ECHO_N "(cached) $ECHO_C" >&6
12548fi
12549echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12550echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12551else
12552  # Is the header compilable?
12553echo "$as_me:$LINENO: checking $ac_header usability" >&5
12554echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12555cat >conftest.$ac_ext <<_ACEOF
12556#line $LINENO "configure"
12557/* confdefs.h.  */
12558_ACEOF
12559cat confdefs.h >>conftest.$ac_ext
12560cat >>conftest.$ac_ext <<_ACEOF
12561/* end confdefs.h.  */
12562$ac_includes_default
12563#include <$ac_header>
12564_ACEOF
12565rm -f conftest.$ac_objext
12566if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12567  (eval $ac_compile) 2>&5
12568  ac_status=$?
12569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12570  (exit $ac_status); } &&
12571         { ac_try='test -s conftest.$ac_objext'
12572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12573  (eval $ac_try) 2>&5
12574  ac_status=$?
12575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12576  (exit $ac_status); }; }; then
12577  ac_header_compiler=yes
12578else
12579  echo "$as_me: failed program was:" >&5
12580sed 's/^/| /' conftest.$ac_ext >&5
12581
12582ac_header_compiler=no
12583fi
12584rm -f conftest.$ac_objext conftest.$ac_ext
12585echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12586echo "${ECHO_T}$ac_header_compiler" >&6
12587
12588# Is the header present?
12589echo "$as_me:$LINENO: checking $ac_header presence" >&5
12590echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12591cat >conftest.$ac_ext <<_ACEOF
12592#line $LINENO "configure"
12593/* confdefs.h.  */
12594_ACEOF
12595cat confdefs.h >>conftest.$ac_ext
12596cat >>conftest.$ac_ext <<_ACEOF
12597/* end confdefs.h.  */
12598#include <$ac_header>
12599_ACEOF
12600if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12601  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12602  ac_status=$?
12603  grep -v '^ *+' conftest.er1 >conftest.err
12604  rm -f conftest.er1
12605  cat conftest.err >&5
12606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607  (exit $ac_status); } >/dev/null; then
12608  if test -s conftest.err; then
12609    ac_cpp_err=$ac_cxx_preproc_warn_flag
12610  else
12611    ac_cpp_err=
12612  fi
12613else
12614  ac_cpp_err=yes
12615fi
12616if test -z "$ac_cpp_err"; then
12617  ac_header_preproc=yes
12618else
12619  echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622  ac_header_preproc=no
12623fi
12624rm -f conftest.err conftest.$ac_ext
12625echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12626echo "${ECHO_T}$ac_header_preproc" >&6
12627
12628# So?  What about this header?
12629case $ac_header_compiler:$ac_header_preproc in
12630  yes:no )
12631    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12632echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12633    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12634echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12635    (
12636      cat <<\_ASBOX
12637## ------------------------------------ ##
12638## Report this to bug-autoconf@gnu.org. ##
12639## ------------------------------------ ##
12640_ASBOX
12641    ) |
12642      sed "s/^/$as_me: WARNING:     /" >&2
12643    ;;
12644  no:yes )
12645    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12646echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12647    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12648echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12649    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12650echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12651    (
12652      cat <<\_ASBOX
12653## ------------------------------------ ##
12654## Report this to bug-autoconf@gnu.org. ##
12655## ------------------------------------ ##
12656_ASBOX
12657    ) |
12658      sed "s/^/$as_me: WARNING:     /" >&2
12659    ;;
12660esac
12661echo "$as_me:$LINENO: checking for $ac_header" >&5
12662echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12663if eval "test \"\${$as_ac_Header+set}\" = set"; then
12664  echo $ECHO_N "(cached) $ECHO_C" >&6
12665else
12666  eval "$as_ac_Header=$ac_header_preproc"
12667fi
12668echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12669echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12670
12671fi
12672if test `eval echo '${'$as_ac_Header'}'` = yes; then
12673  cat >>confdefs.h <<_ACEOF
12674#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675_ACEOF
12676
12677fi
12678
12679done
12680
12681
12682for ac_header in netdb.h
12683do
12684as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12685if eval "test \"\${$as_ac_Header+set}\" = set"; then
12686  echo "$as_me:$LINENO: checking for $ac_header" >&5
12687echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12688if eval "test \"\${$as_ac_Header+set}\" = set"; then
12689  echo $ECHO_N "(cached) $ECHO_C" >&6
12690fi
12691echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12692echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12693else
12694  # Is the header compilable?
12695echo "$as_me:$LINENO: checking $ac_header usability" >&5
12696echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12697cat >conftest.$ac_ext <<_ACEOF
12698#line $LINENO "configure"
12699/* confdefs.h.  */
12700_ACEOF
12701cat confdefs.h >>conftest.$ac_ext
12702cat >>conftest.$ac_ext <<_ACEOF
12703/* end confdefs.h.  */
12704$ac_includes_default
12705#include <$ac_header>
12706_ACEOF
12707rm -f conftest.$ac_objext
12708if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12709  (eval $ac_compile) 2>&5
12710  ac_status=$?
12711  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712  (exit $ac_status); } &&
12713         { ac_try='test -s conftest.$ac_objext'
12714  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12715  (eval $ac_try) 2>&5
12716  ac_status=$?
12717  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12718  (exit $ac_status); }; }; then
12719  ac_header_compiler=yes
12720else
12721  echo "$as_me: failed program was:" >&5
12722sed 's/^/| /' conftest.$ac_ext >&5
12723
12724ac_header_compiler=no
12725fi
12726rm -f conftest.$ac_objext conftest.$ac_ext
12727echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12728echo "${ECHO_T}$ac_header_compiler" >&6
12729
12730# Is the header present?
12731echo "$as_me:$LINENO: checking $ac_header presence" >&5
12732echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12733cat >conftest.$ac_ext <<_ACEOF
12734#line $LINENO "configure"
12735/* confdefs.h.  */
12736_ACEOF
12737cat confdefs.h >>conftest.$ac_ext
12738cat >>conftest.$ac_ext <<_ACEOF
12739/* end confdefs.h.  */
12740#include <$ac_header>
12741_ACEOF
12742if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12743  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12744  ac_status=$?
12745  grep -v '^ *+' conftest.er1 >conftest.err
12746  rm -f conftest.er1
12747  cat conftest.err >&5
12748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12749  (exit $ac_status); } >/dev/null; then
12750  if test -s conftest.err; then
12751    ac_cpp_err=$ac_cxx_preproc_warn_flag
12752  else
12753    ac_cpp_err=
12754  fi
12755else
12756  ac_cpp_err=yes
12757fi
12758if test -z "$ac_cpp_err"; then
12759  ac_header_preproc=yes
12760else
12761  echo "$as_me: failed program was:" >&5
12762sed 's/^/| /' conftest.$ac_ext >&5
12763
12764  ac_header_preproc=no
12765fi
12766rm -f conftest.err conftest.$ac_ext
12767echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12768echo "${ECHO_T}$ac_header_preproc" >&6
12769
12770# So?  What about this header?
12771case $ac_header_compiler:$ac_header_preproc in
12772  yes:no )
12773    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12774echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12775    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12776echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12777    (
12778      cat <<\_ASBOX
12779## ------------------------------------ ##
12780## Report this to bug-autoconf@gnu.org. ##
12781## ------------------------------------ ##
12782_ASBOX
12783    ) |
12784      sed "s/^/$as_me: WARNING:     /" >&2
12785    ;;
12786  no:yes )
12787    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12788echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12789    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12790echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12791    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12792echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12793    (
12794      cat <<\_ASBOX
12795## ------------------------------------ ##
12796## Report this to bug-autoconf@gnu.org. ##
12797## ------------------------------------ ##
12798_ASBOX
12799    ) |
12800      sed "s/^/$as_me: WARNING:     /" >&2
12801    ;;
12802esac
12803echo "$as_me:$LINENO: checking for $ac_header" >&5
12804echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12805if eval "test \"\${$as_ac_Header+set}\" = set"; then
12806  echo $ECHO_N "(cached) $ECHO_C" >&6
12807else
12808  eval "$as_ac_Header=$ac_header_preproc"
12809fi
12810echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12811echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12812
12813fi
12814if test `eval echo '${'$as_ac_Header'}'` = yes; then
12815  cat >>confdefs.h <<_ACEOF
12816#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817_ACEOF
12818
12819fi
12820
12821done
12822
12823
12824for ac_header in netinet/in.h
12825do
12826as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12827if eval "test \"\${$as_ac_Header+set}\" = set"; then
12828  echo "$as_me:$LINENO: checking for $ac_header" >&5
12829echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12830if eval "test \"\${$as_ac_Header+set}\" = set"; then
12831  echo $ECHO_N "(cached) $ECHO_C" >&6
12832fi
12833echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12834echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12835else
12836  # Is the header compilable?
12837echo "$as_me:$LINENO: checking $ac_header usability" >&5
12838echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12839cat >conftest.$ac_ext <<_ACEOF
12840#line $LINENO "configure"
12841/* confdefs.h.  */
12842_ACEOF
12843cat confdefs.h >>conftest.$ac_ext
12844cat >>conftest.$ac_ext <<_ACEOF
12845/* end confdefs.h.  */
12846$ac_includes_default
12847#include <$ac_header>
12848_ACEOF
12849rm -f conftest.$ac_objext
12850if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12851  (eval $ac_compile) 2>&5
12852  ac_status=$?
12853  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854  (exit $ac_status); } &&
12855         { ac_try='test -s conftest.$ac_objext'
12856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12857  (eval $ac_try) 2>&5
12858  ac_status=$?
12859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12860  (exit $ac_status); }; }; then
12861  ac_header_compiler=yes
12862else
12863  echo "$as_me: failed program was:" >&5
12864sed 's/^/| /' conftest.$ac_ext >&5
12865
12866ac_header_compiler=no
12867fi
12868rm -f conftest.$ac_objext conftest.$ac_ext
12869echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12870echo "${ECHO_T}$ac_header_compiler" >&6
12871
12872# Is the header present?
12873echo "$as_me:$LINENO: checking $ac_header presence" >&5
12874echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12875cat >conftest.$ac_ext <<_ACEOF
12876#line $LINENO "configure"
12877/* confdefs.h.  */
12878_ACEOF
12879cat confdefs.h >>conftest.$ac_ext
12880cat >>conftest.$ac_ext <<_ACEOF
12881/* end confdefs.h.  */
12882#include <$ac_header>
12883_ACEOF
12884if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12885  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12886  ac_status=$?
12887  grep -v '^ *+' conftest.er1 >conftest.err
12888  rm -f conftest.er1
12889  cat conftest.err >&5
12890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12891  (exit $ac_status); } >/dev/null; then
12892  if test -s conftest.err; then
12893    ac_cpp_err=$ac_cxx_preproc_warn_flag
12894  else
12895    ac_cpp_err=
12896  fi
12897else
12898  ac_cpp_err=yes
12899fi
12900if test -z "$ac_cpp_err"; then
12901  ac_header_preproc=yes
12902else
12903  echo "$as_me: failed program was:" >&5
12904sed 's/^/| /' conftest.$ac_ext >&5
12905
12906  ac_header_preproc=no
12907fi
12908rm -f conftest.err conftest.$ac_ext
12909echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12910echo "${ECHO_T}$ac_header_preproc" >&6
12911
12912# So?  What about this header?
12913case $ac_header_compiler:$ac_header_preproc in
12914  yes:no )
12915    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12916echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12917    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12919    (
12920      cat <<\_ASBOX
12921## ------------------------------------ ##
12922## Report this to bug-autoconf@gnu.org. ##
12923## ------------------------------------ ##
12924_ASBOX
12925    ) |
12926      sed "s/^/$as_me: WARNING:     /" >&2
12927    ;;
12928  no:yes )
12929    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12930echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12931    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12932echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12933    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12934echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12935    (
12936      cat <<\_ASBOX
12937## ------------------------------------ ##
12938## Report this to bug-autoconf@gnu.org. ##
12939## ------------------------------------ ##
12940_ASBOX
12941    ) |
12942      sed "s/^/$as_me: WARNING:     /" >&2
12943    ;;
12944esac
12945echo "$as_me:$LINENO: checking for $ac_header" >&5
12946echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12947if eval "test \"\${$as_ac_Header+set}\" = set"; then
12948  echo $ECHO_N "(cached) $ECHO_C" >&6
12949else
12950  eval "$as_ac_Header=$ac_header_preproc"
12951fi
12952echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12953echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12954
12955fi
12956if test `eval echo '${'$as_ac_Header'}'` = yes; then
12957  cat >>confdefs.h <<_ACEOF
12958#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12959_ACEOF
12960
12961fi
12962
12963done
12964
12965
12966for ac_header in linux/kd.h
12967do
12968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12969if eval "test \"\${$as_ac_Header+set}\" = set"; then
12970  echo "$as_me:$LINENO: checking for $ac_header" >&5
12971echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12972if eval "test \"\${$as_ac_Header+set}\" = set"; then
12973  echo $ECHO_N "(cached) $ECHO_C" >&6
12974fi
12975echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12976echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12977else
12978  # Is the header compilable?
12979echo "$as_me:$LINENO: checking $ac_header usability" >&5
12980echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12981cat >conftest.$ac_ext <<_ACEOF
12982#line $LINENO "configure"
12983/* confdefs.h.  */
12984_ACEOF
12985cat confdefs.h >>conftest.$ac_ext
12986cat >>conftest.$ac_ext <<_ACEOF
12987/* end confdefs.h.  */
12988$ac_includes_default
12989#include <$ac_header>
12990_ACEOF
12991rm -f conftest.$ac_objext
12992if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12993  (eval $ac_compile) 2>&5
12994  ac_status=$?
12995  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996  (exit $ac_status); } &&
12997         { ac_try='test -s conftest.$ac_objext'
12998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12999  (eval $ac_try) 2>&5
13000  ac_status=$?
13001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002  (exit $ac_status); }; }; then
13003  ac_header_compiler=yes
13004else
13005  echo "$as_me: failed program was:" >&5
13006sed 's/^/| /' conftest.$ac_ext >&5
13007
13008ac_header_compiler=no
13009fi
13010rm -f conftest.$ac_objext conftest.$ac_ext
13011echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13012echo "${ECHO_T}$ac_header_compiler" >&6
13013
13014# Is the header present?
13015echo "$as_me:$LINENO: checking $ac_header presence" >&5
13016echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13017cat >conftest.$ac_ext <<_ACEOF
13018#line $LINENO "configure"
13019/* confdefs.h.  */
13020_ACEOF
13021cat confdefs.h >>conftest.$ac_ext
13022cat >>conftest.$ac_ext <<_ACEOF
13023/* end confdefs.h.  */
13024#include <$ac_header>
13025_ACEOF
13026if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13027  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13028  ac_status=$?
13029  grep -v '^ *+' conftest.er1 >conftest.err
13030  rm -f conftest.er1
13031  cat conftest.err >&5
13032  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13033  (exit $ac_status); } >/dev/null; then
13034  if test -s conftest.err; then
13035    ac_cpp_err=$ac_cxx_preproc_warn_flag
13036  else
13037    ac_cpp_err=
13038  fi
13039else
13040  ac_cpp_err=yes
13041fi
13042if test -z "$ac_cpp_err"; then
13043  ac_header_preproc=yes
13044else
13045  echo "$as_me: failed program was:" >&5
13046sed 's/^/| /' conftest.$ac_ext >&5
13047
13048  ac_header_preproc=no
13049fi
13050rm -f conftest.err conftest.$ac_ext
13051echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13052echo "${ECHO_T}$ac_header_preproc" >&6
13053
13054# So?  What about this header?
13055case $ac_header_compiler:$ac_header_preproc in
13056  yes:no )
13057    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13058echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13059    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13060echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13061    (
13062      cat <<\_ASBOX
13063## ------------------------------------ ##
13064## Report this to bug-autoconf@gnu.org. ##
13065## ------------------------------------ ##
13066_ASBOX
13067    ) |
13068      sed "s/^/$as_me: WARNING:     /" >&2
13069    ;;
13070  no:yes )
13071    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13072echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13073    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13074echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13075    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13076echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13077    (
13078      cat <<\_ASBOX
13079## ------------------------------------ ##
13080## Report this to bug-autoconf@gnu.org. ##
13081## ------------------------------------ ##
13082_ASBOX
13083    ) |
13084      sed "s/^/$as_me: WARNING:     /" >&2
13085    ;;
13086esac
13087echo "$as_me:$LINENO: checking for $ac_header" >&5
13088echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13089if eval "test \"\${$as_ac_Header+set}\" = set"; then
13090  echo $ECHO_N "(cached) $ECHO_C" >&6
13091else
13092  eval "$as_ac_Header=$ac_header_preproc"
13093fi
13094echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13095echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13096
13097fi
13098if test `eval echo '${'$as_ac_Header'}'` = yes; then
13099  cat >>confdefs.h <<_ACEOF
13100#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13101_ACEOF
13102
13103fi
13104
13105done
13106
13107
13108for ac_header in sys/kernel.h
13109do
13110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13111if eval "test \"\${$as_ac_Header+set}\" = set"; then
13112  echo "$as_me:$LINENO: checking for $ac_header" >&5
13113echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13114if eval "test \"\${$as_ac_Header+set}\" = set"; then
13115  echo $ECHO_N "(cached) $ECHO_C" >&6
13116fi
13117echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13118echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13119else
13120  # Is the header compilable?
13121echo "$as_me:$LINENO: checking $ac_header usability" >&5
13122echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13123cat >conftest.$ac_ext <<_ACEOF
13124#line $LINENO "configure"
13125/* confdefs.h.  */
13126_ACEOF
13127cat confdefs.h >>conftest.$ac_ext
13128cat >>conftest.$ac_ext <<_ACEOF
13129/* end confdefs.h.  */
13130$ac_includes_default
13131#include <$ac_header>
13132_ACEOF
13133rm -f conftest.$ac_objext
13134if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13135  (eval $ac_compile) 2>&5
13136  ac_status=$?
13137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13138  (exit $ac_status); } &&
13139         { ac_try='test -s conftest.$ac_objext'
13140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13141  (eval $ac_try) 2>&5
13142  ac_status=$?
13143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13144  (exit $ac_status); }; }; then
13145  ac_header_compiler=yes
13146else
13147  echo "$as_me: failed program was:" >&5
13148sed 's/^/| /' conftest.$ac_ext >&5
13149
13150ac_header_compiler=no
13151fi
13152rm -f conftest.$ac_objext conftest.$ac_ext
13153echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13154echo "${ECHO_T}$ac_header_compiler" >&6
13155
13156# Is the header present?
13157echo "$as_me:$LINENO: checking $ac_header presence" >&5
13158echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13159cat >conftest.$ac_ext <<_ACEOF
13160#line $LINENO "configure"
13161/* confdefs.h.  */
13162_ACEOF
13163cat confdefs.h >>conftest.$ac_ext
13164cat >>conftest.$ac_ext <<_ACEOF
13165/* end confdefs.h.  */
13166#include <$ac_header>
13167_ACEOF
13168if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13169  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13170  ac_status=$?
13171  grep -v '^ *+' conftest.er1 >conftest.err
13172  rm -f conftest.er1
13173  cat conftest.err >&5
13174  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175  (exit $ac_status); } >/dev/null; then
13176  if test -s conftest.err; then
13177    ac_cpp_err=$ac_cxx_preproc_warn_flag
13178  else
13179    ac_cpp_err=
13180  fi
13181else
13182  ac_cpp_err=yes
13183fi
13184if test -z "$ac_cpp_err"; then
13185  ac_header_preproc=yes
13186else
13187  echo "$as_me: failed program was:" >&5
13188sed 's/^/| /' conftest.$ac_ext >&5
13189
13190  ac_header_preproc=no
13191fi
13192rm -f conftest.err conftest.$ac_ext
13193echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13194echo "${ECHO_T}$ac_header_preproc" >&6
13195
13196# So?  What about this header?
13197case $ac_header_compiler:$ac_header_preproc in
13198  yes:no )
13199    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13200echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13201    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13202echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13203    (
13204      cat <<\_ASBOX
13205## ------------------------------------ ##
13206## Report this to bug-autoconf@gnu.org. ##
13207## ------------------------------------ ##
13208_ASBOX
13209    ) |
13210      sed "s/^/$as_me: WARNING:     /" >&2
13211    ;;
13212  no:yes )
13213    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13214echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13215    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13216echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13219    (
13220      cat <<\_ASBOX
13221## ------------------------------------ ##
13222## Report this to bug-autoconf@gnu.org. ##
13223## ------------------------------------ ##
13224_ASBOX
13225    ) |
13226      sed "s/^/$as_me: WARNING:     /" >&2
13227    ;;
13228esac
13229echo "$as_me:$LINENO: checking for $ac_header" >&5
13230echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13231if eval "test \"\${$as_ac_Header+set}\" = set"; then
13232  echo $ECHO_N "(cached) $ECHO_C" >&6
13233else
13234  eval "$as_ac_Header=$ac_header_preproc"
13235fi
13236echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13237echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13238
13239fi
13240if test `eval echo '${'$as_ac_Header'}'` = yes; then
13241  cat >>confdefs.h <<_ACEOF
13242#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243_ACEOF
13244
13245fi
13246
13247done
13248
13249
13250for ac_header in sys/name.h
13251do
13252as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13253if eval "test \"\${$as_ac_Header+set}\" = set"; then
13254  echo "$as_me:$LINENO: checking for $ac_header" >&5
13255echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13256if eval "test \"\${$as_ac_Header+set}\" = set"; then
13257  echo $ECHO_N "(cached) $ECHO_C" >&6
13258fi
13259echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13260echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13261else
13262  # Is the header compilable?
13263echo "$as_me:$LINENO: checking $ac_header usability" >&5
13264echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13265cat >conftest.$ac_ext <<_ACEOF
13266#line $LINENO "configure"
13267/* confdefs.h.  */
13268_ACEOF
13269cat confdefs.h >>conftest.$ac_ext
13270cat >>conftest.$ac_ext <<_ACEOF
13271/* end confdefs.h.  */
13272$ac_includes_default
13273#include <$ac_header>
13274_ACEOF
13275rm -f conftest.$ac_objext
13276if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13277  (eval $ac_compile) 2>&5
13278  ac_status=$?
13279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13280  (exit $ac_status); } &&
13281         { ac_try='test -s conftest.$ac_objext'
13282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13283  (eval $ac_try) 2>&5
13284  ac_status=$?
13285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286  (exit $ac_status); }; }; then
13287  ac_header_compiler=yes
13288else
13289  echo "$as_me: failed program was:" >&5
13290sed 's/^/| /' conftest.$ac_ext >&5
13291
13292ac_header_compiler=no
13293fi
13294rm -f conftest.$ac_objext conftest.$ac_ext
13295echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296echo "${ECHO_T}$ac_header_compiler" >&6
13297
13298# Is the header present?
13299echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13301cat >conftest.$ac_ext <<_ACEOF
13302#line $LINENO "configure"
13303/* confdefs.h.  */
13304_ACEOF
13305cat confdefs.h >>conftest.$ac_ext
13306cat >>conftest.$ac_ext <<_ACEOF
13307/* end confdefs.h.  */
13308#include <$ac_header>
13309_ACEOF
13310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13311  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13312  ac_status=$?
13313  grep -v '^ *+' conftest.er1 >conftest.err
13314  rm -f conftest.er1
13315  cat conftest.err >&5
13316  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317  (exit $ac_status); } >/dev/null; then
13318  if test -s conftest.err; then
13319    ac_cpp_err=$ac_cxx_preproc_warn_flag
13320  else
13321    ac_cpp_err=
13322  fi
13323else
13324  ac_cpp_err=yes
13325fi
13326if test -z "$ac_cpp_err"; then
13327  ac_header_preproc=yes
13328else
13329  echo "$as_me: failed program was:" >&5
13330sed 's/^/| /' conftest.$ac_ext >&5
13331
13332  ac_header_preproc=no
13333fi
13334rm -f conftest.err conftest.$ac_ext
13335echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13336echo "${ECHO_T}$ac_header_preproc" >&6
13337
13338# So?  What about this header?
13339case $ac_header_compiler:$ac_header_preproc in
13340  yes:no )
13341    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13342echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13343    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13344echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13345    (
13346      cat <<\_ASBOX
13347## ------------------------------------ ##
13348## Report this to bug-autoconf@gnu.org. ##
13349## ------------------------------------ ##
13350_ASBOX
13351    ) |
13352      sed "s/^/$as_me: WARNING:     /" >&2
13353    ;;
13354  no:yes )
13355    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13356echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13357    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13358echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13359    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361    (
13362      cat <<\_ASBOX
13363## ------------------------------------ ##
13364## Report this to bug-autoconf@gnu.org. ##
13365## ------------------------------------ ##
13366_ASBOX
13367    ) |
13368      sed "s/^/$as_me: WARNING:     /" >&2
13369    ;;
13370esac
13371echo "$as_me:$LINENO: checking for $ac_header" >&5
13372echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13373if eval "test \"\${$as_ac_Header+set}\" = set"; then
13374  echo $ECHO_N "(cached) $ECHO_C" >&6
13375else
13376  eval "$as_ac_Header=$ac_header_preproc"
13377fi
13378echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13379echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13380
13381fi
13382if test `eval echo '${'$as_ac_Header'}'` = yes; then
13383  cat >>confdefs.h <<_ACEOF
13384#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13385_ACEOF
13386
13387fi
13388
13389done
13390
13391
13392for ac_header in fcntl.h
13393do
13394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13395if eval "test \"\${$as_ac_Header+set}\" = set"; then
13396  echo "$as_me:$LINENO: checking for $ac_header" >&5
13397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13398if eval "test \"\${$as_ac_Header+set}\" = set"; then
13399  echo $ECHO_N "(cached) $ECHO_C" >&6
13400fi
13401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13403else
13404  # Is the header compilable?
13405echo "$as_me:$LINENO: checking $ac_header usability" >&5
13406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13407cat >conftest.$ac_ext <<_ACEOF
13408#line $LINENO "configure"
13409/* confdefs.h.  */
13410_ACEOF
13411cat confdefs.h >>conftest.$ac_ext
13412cat >>conftest.$ac_ext <<_ACEOF
13413/* end confdefs.h.  */
13414$ac_includes_default
13415#include <$ac_header>
13416_ACEOF
13417rm -f conftest.$ac_objext
13418if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13419  (eval $ac_compile) 2>&5
13420  ac_status=$?
13421  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422  (exit $ac_status); } &&
13423         { ac_try='test -s conftest.$ac_objext'
13424  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425  (eval $ac_try) 2>&5
13426  ac_status=$?
13427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428  (exit $ac_status); }; }; then
13429  ac_header_compiler=yes
13430else
13431  echo "$as_me: failed program was:" >&5
13432sed 's/^/| /' conftest.$ac_ext >&5
13433
13434ac_header_compiler=no
13435fi
13436rm -f conftest.$ac_objext conftest.$ac_ext
13437echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13438echo "${ECHO_T}$ac_header_compiler" >&6
13439
13440# Is the header present?
13441echo "$as_me:$LINENO: checking $ac_header presence" >&5
13442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13443cat >conftest.$ac_ext <<_ACEOF
13444#line $LINENO "configure"
13445/* confdefs.h.  */
13446_ACEOF
13447cat confdefs.h >>conftest.$ac_ext
13448cat >>conftest.$ac_ext <<_ACEOF
13449/* end confdefs.h.  */
13450#include <$ac_header>
13451_ACEOF
13452if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13453  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13454  ac_status=$?
13455  grep -v '^ *+' conftest.er1 >conftest.err
13456  rm -f conftest.er1
13457  cat conftest.err >&5
13458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459  (exit $ac_status); } >/dev/null; then
13460  if test -s conftest.err; then
13461    ac_cpp_err=$ac_cxx_preproc_warn_flag
13462  else
13463    ac_cpp_err=
13464  fi
13465else
13466  ac_cpp_err=yes
13467fi
13468if test -z "$ac_cpp_err"; then
13469  ac_header_preproc=yes
13470else
13471  echo "$as_me: failed program was:" >&5
13472sed 's/^/| /' conftest.$ac_ext >&5
13473
13474  ac_header_preproc=no
13475fi
13476rm -f conftest.err conftest.$ac_ext
13477echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13478echo "${ECHO_T}$ac_header_preproc" >&6
13479
13480# So?  What about this header?
13481case $ac_header_compiler:$ac_header_preproc in
13482  yes:no )
13483    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13485    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13486echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13487    (
13488      cat <<\_ASBOX
13489## ------------------------------------ ##
13490## Report this to bug-autoconf@gnu.org. ##
13491## ------------------------------------ ##
13492_ASBOX
13493    ) |
13494      sed "s/^/$as_me: WARNING:     /" >&2
13495    ;;
13496  no:yes )
13497    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13498echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13499    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13500echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13501    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13502echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13503    (
13504      cat <<\_ASBOX
13505## ------------------------------------ ##
13506## Report this to bug-autoconf@gnu.org. ##
13507## ------------------------------------ ##
13508_ASBOX
13509    ) |
13510      sed "s/^/$as_me: WARNING:     /" >&2
13511    ;;
13512esac
13513echo "$as_me:$LINENO: checking for $ac_header" >&5
13514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13515if eval "test \"\${$as_ac_Header+set}\" = set"; then
13516  echo $ECHO_N "(cached) $ECHO_C" >&6
13517else
13518  eval "$as_ac_Header=$ac_header_preproc"
13519fi
13520echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13521echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13522
13523fi
13524if test `eval echo '${'$as_ac_Header'}'` = yes; then
13525  cat >>confdefs.h <<_ACEOF
13526#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13527_ACEOF
13528
13529fi
13530
13531done
13532
13533
13534for ac_header in direct.h
13535do
13536as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13537if eval "test \"\${$as_ac_Header+set}\" = set"; then
13538  echo "$as_me:$LINENO: checking for $ac_header" >&5
13539echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13540if eval "test \"\${$as_ac_Header+set}\" = set"; then
13541  echo $ECHO_N "(cached) $ECHO_C" >&6
13542fi
13543echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13544echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13545else
13546  # Is the header compilable?
13547echo "$as_me:$LINENO: checking $ac_header usability" >&5
13548echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13549cat >conftest.$ac_ext <<_ACEOF
13550#line $LINENO "configure"
13551/* confdefs.h.  */
13552_ACEOF
13553cat confdefs.h >>conftest.$ac_ext
13554cat >>conftest.$ac_ext <<_ACEOF
13555/* end confdefs.h.  */
13556$ac_includes_default
13557#include <$ac_header>
13558_ACEOF
13559rm -f conftest.$ac_objext
13560if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13561  (eval $ac_compile) 2>&5
13562  ac_status=$?
13563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13564  (exit $ac_status); } &&
13565         { ac_try='test -s conftest.$ac_objext'
13566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13567  (eval $ac_try) 2>&5
13568  ac_status=$?
13569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13570  (exit $ac_status); }; }; then
13571  ac_header_compiler=yes
13572else
13573  echo "$as_me: failed program was:" >&5
13574sed 's/^/| /' conftest.$ac_ext >&5
13575
13576ac_header_compiler=no
13577fi
13578rm -f conftest.$ac_objext conftest.$ac_ext
13579echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13580echo "${ECHO_T}$ac_header_compiler" >&6
13581
13582# Is the header present?
13583echo "$as_me:$LINENO: checking $ac_header presence" >&5
13584echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13585cat >conftest.$ac_ext <<_ACEOF
13586#line $LINENO "configure"
13587/* confdefs.h.  */
13588_ACEOF
13589cat confdefs.h >>conftest.$ac_ext
13590cat >>conftest.$ac_ext <<_ACEOF
13591/* end confdefs.h.  */
13592#include <$ac_header>
13593_ACEOF
13594if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13595  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13596  ac_status=$?
13597  grep -v '^ *+' conftest.er1 >conftest.err
13598  rm -f conftest.er1
13599  cat conftest.err >&5
13600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13601  (exit $ac_status); } >/dev/null; then
13602  if test -s conftest.err; then
13603    ac_cpp_err=$ac_cxx_preproc_warn_flag
13604  else
13605    ac_cpp_err=
13606  fi
13607else
13608  ac_cpp_err=yes
13609fi
13610if test -z "$ac_cpp_err"; then
13611  ac_header_preproc=yes
13612else
13613  echo "$as_me: failed program was:" >&5
13614sed 's/^/| /' conftest.$ac_ext >&5
13615
13616  ac_header_preproc=no
13617fi
13618rm -f conftest.err conftest.$ac_ext
13619echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13620echo "${ECHO_T}$ac_header_preproc" >&6
13621
13622# So?  What about this header?
13623case $ac_header_compiler:$ac_header_preproc in
13624  yes:no )
13625    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13626echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13627    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13628echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13629    (
13630      cat <<\_ASBOX
13631## ------------------------------------ ##
13632## Report this to bug-autoconf@gnu.org. ##
13633## ------------------------------------ ##
13634_ASBOX
13635    ) |
13636      sed "s/^/$as_me: WARNING:     /" >&2
13637    ;;
13638  no:yes )
13639    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13640echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13641    { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13642echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13643    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13644echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13645    (
13646      cat <<\_ASBOX
13647## ------------------------------------ ##
13648## Report this to bug-autoconf@gnu.org. ##
13649## ------------------------------------ ##
13650_ASBOX
13651    ) |
13652      sed "s/^/$as_me: WARNING:     /" >&2
13653    ;;
13654esac
13655echo "$as_me:$LINENO: checking for $ac_header" >&5
13656echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13657if eval "test \"\${$as_ac_Header+set}\" = set"; then
13658  echo $ECHO_N "(cached) $ECHO_C" >&6
13659else
13660  eval "$as_ac_Header=$ac_header_preproc"
13661fi
13662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13664
13665fi
13666if test `eval echo '${'$as_ac_Header'}'` = yes; then
13667  cat >>confdefs.h <<_ACEOF
13668#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13669_ACEOF
13670
13671fi
13672
13673done
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690for ac_func in strerror vsnprintf strdup fork getegid strcasecmp stricmp getcwd gethostname gettimeofday qnx_name_attach abort kill pipe _pipe
13691do
13692as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13693echo "$as_me:$LINENO: checking for $ac_func" >&5
13694echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13695if eval "test \"\${$as_ac_var+set}\" = set"; then
13696  echo $ECHO_N "(cached) $ECHO_C" >&6
13697else
13698  cat >conftest.$ac_ext <<_ACEOF
13699#line $LINENO "configure"
13700/* confdefs.h.  */
13701_ACEOF
13702cat confdefs.h >>conftest.$ac_ext
13703cat >>conftest.$ac_ext <<_ACEOF
13704/* end confdefs.h.  */
13705/* System header to define __stub macros and hopefully few prototypes,
13706    which can conflict with char $ac_func (); below.
13707    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13708    <limits.h> exists even on freestanding compilers.  */
13709#ifdef __STDC__
13710# include <limits.h>
13711#else
13712# include <assert.h>
13713#endif
13714/* Override any gcc2 internal prototype to avoid an error.  */
13715#ifdef __cplusplus
13716extern "C"
13717{
13718#endif
13719/* We use char because int might match the return type of a gcc2
13720   builtin and then its argument prototype would still apply.  */
13721char $ac_func ();
13722/* The GNU C library defines this for functions which it implements
13723    to always fail with ENOSYS.  Some functions are actually named
13724    something starting with __ and the normal name is an alias.  */
13725#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13726choke me
13727#else
13728char (*f) () = $ac_func;
13729#endif
13730#ifdef __cplusplus
13731}
13732#endif
13733
13734int
13735main ()
13736{
13737return f != $ac_func;
13738  ;
13739  return 0;
13740}
13741_ACEOF
13742rm -f conftest.$ac_objext conftest$ac_exeext
13743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744  (eval $ac_link) 2>&5
13745  ac_status=$?
13746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13747  (exit $ac_status); } &&
13748         { ac_try='test -s conftest$ac_exeext'
13749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13750  (eval $ac_try) 2>&5
13751  ac_status=$?
13752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753  (exit $ac_status); }; }; then
13754  eval "$as_ac_var=yes"
13755else
13756  echo "$as_me: failed program was:" >&5
13757sed 's/^/| /' conftest.$ac_ext >&5
13758
13759eval "$as_ac_var=no"
13760fi
13761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13762fi
13763echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13764echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13765if test `eval echo '${'$as_ac_var'}'` = yes; then
13766  cat >>confdefs.h <<_ACEOF
13767#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13768_ACEOF
13769
13770fi
13771done
13772
13773
13774echo "$as_me:$LINENO: checking for glibc regex error codes" >&5
13775echo $ECHO_N "checking for glibc regex error codes... $ECHO_C" >&6
13776if test "${epos_cv_symb_regeend+set}" = set; then
13777  echo $ECHO_N "(cached) $ECHO_C" >&6
13778else
13779  cat >conftest.$ac_ext <<_ACEOF
13780#line $LINENO "configure"
13781/* confdefs.h.  */
13782_ACEOF
13783cat confdefs.h >>conftest.$ac_ext
13784cat >>conftest.$ac_ext <<_ACEOF
13785/* end confdefs.h.  */
13786#include <sys/types.h>
13787	#ifdef HAVE_RX_H
13788	#include <rx.h>
13789	#else
13790	#ifdef HAVE_REGEX_H
13791	#include <regex.h>
13792	#else
13793	#include "rx.h"
13794	#endif
13795	#endif
13796
13797int
13798main ()
13799{
13800int result = REG_EEND;
13801	int result2 = REG_ESIZE;
13802	return 0;
13803  ;
13804  return 0;
13805}
13806_ACEOF
13807rm -f conftest.$ac_objext
13808if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13809  (eval $ac_compile) 2>&5
13810  ac_status=$?
13811  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812  (exit $ac_status); } &&
13813         { ac_try='test -s conftest.$ac_objext'
13814  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13815  (eval $ac_try) 2>&5
13816  ac_status=$?
13817  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818  (exit $ac_status); }; }; then
13819  epos_cv_symb_regeend=yes
13820else
13821  echo "$as_me: failed program was:" >&5
13822sed 's/^/| /' conftest.$ac_ext >&5
13823
13824epos_cv_symb_regeend=no
13825fi
13826rm -f conftest.$ac_objext conftest.$ac_ext
13827
13828fi
13829echo "$as_me:$LINENO: result: $epos_cv_symb_regeend" >&5
13830echo "${ECHO_T}$epos_cv_symb_regeend" >&6
13831if test "$epos_cv_symb_regeend" = yes; then
13832
13833cat >>confdefs.h <<\_ACEOF
13834#define HAVE_REG_EEND
13835_ACEOF
13836
13837fi
13838
13839echo "$as_me:$LINENO: checking for regmatch_t.rm_so" >&5
13840echo $ECHO_N "checking for regmatch_t.rm_so... $ECHO_C" >&6
13841if test "${epos_cv_struct_rm_so+set}" = set; then
13842  echo $ECHO_N "(cached) $ECHO_C" >&6
13843else
13844  cat >conftest.$ac_ext <<_ACEOF
13845#line $LINENO "configure"
13846/* confdefs.h.  */
13847_ACEOF
13848cat confdefs.h >>conftest.$ac_ext
13849cat >>conftest.$ac_ext <<_ACEOF
13850/* end confdefs.h.  */
13851#include <sys/types.h>
13852	#ifdef HAVE_RX_H
13853	#include <rx.h>
13854	#else
13855	#ifdef HAVE_REGEX_H
13856	#include <regex.h>
13857	#else
13858	#include "rx.h"
13859	#endif
13860	#endif
13861
13862int
13863main ()
13864{
13865regmatch_t rt;
13866	rt.rm_so;
13867	return 0;
13868  ;
13869  return 0;
13870}
13871_ACEOF
13872rm -f conftest.$ac_objext
13873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13874  (eval $ac_compile) 2>&5
13875  ac_status=$?
13876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13877  (exit $ac_status); } &&
13878         { ac_try='test -s conftest.$ac_objext'
13879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13880  (eval $ac_try) 2>&5
13881  ac_status=$?
13882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883  (exit $ac_status); }; }; then
13884  epos_cv_struct_rm_so=yes
13885else
13886  echo "$as_me: failed program was:" >&5
13887sed 's/^/| /' conftest.$ac_ext >&5
13888
13889epos_cv_struct_rm_so=no
13890fi
13891rm -f conftest.$ac_objext conftest.$ac_ext
13892
13893fi
13894echo "$as_me:$LINENO: result: $epos_cv_struct_rm_so" >&5
13895echo "${ECHO_T}$epos_cv_struct_rm_so" >&6
13896if test "$epos_cv_struct_rm_so" = yes; then
13897
13898cat >>confdefs.h <<\_ACEOF
13899#define HAVE_RM_SO
13900_ACEOF
13901
13902fi
13903
13904
13905echo "$as_me:$LINENO: checking for terminate" >&5
13906echo $ECHO_N "checking for terminate... $ECHO_C" >&6
13907if test "${epos_cv_fn_terminate+set}" = set; then
13908  echo $ECHO_N "(cached) $ECHO_C" >&6
13909else
13910  cat >conftest.$ac_ext <<_ACEOF
13911#line $LINENO "configure"
13912/* confdefs.h.  */
13913_ACEOF
13914cat confdefs.h >>conftest.$ac_ext
13915cat >>conftest.$ac_ext <<_ACEOF
13916/* end confdefs.h.  */
13917 #include <stdlib.h>
13918int
13919main ()
13920{
13921 throw new int; exit(1); terminate()
13922  ;
13923  return 0;
13924}
13925_ACEOF
13926rm -f conftest.$ac_objext
13927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13928  (eval $ac_compile) 2>&5
13929  ac_status=$?
13930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931  (exit $ac_status); } &&
13932         { ac_try='test -s conftest.$ac_objext'
13933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13934  (eval $ac_try) 2>&5
13935  ac_status=$?
13936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937  (exit $ac_status); }; }; then
13938   epos_cv_fn_terminate=yes
13939else
13940  echo "$as_me: failed program was:" >&5
13941sed 's/^/| /' conftest.$ac_ext >&5
13942
13943 epos_cv_fn_terminate=no
13944fi
13945rm -f conftest.$ac_objext conftest.$ac_ext
13946
13947fi
13948echo "$as_me:$LINENO: result: $epos_cv_fn_terminate" >&5
13949echo "${ECHO_T}$epos_cv_fn_terminate" >&6
13950if test "$epos_cv_fn_terminate" = yes; then
13951
13952cat >>confdefs.h <<\_ACEOF
13953#define HAVE_TERMINATE
13954_ACEOF
13955
13956fi
13957
13958echo "$as_me:$LINENO: checking for explicit template instatiations" >&5
13959echo $ECHO_N "checking for explicit template instatiations... $ECHO_C" >&6
13960if test "${epos_cv_c_templ_inst+set}" = set; then
13961  echo $ECHO_N "(cached) $ECHO_C" >&6
13962else
13963  cat >conftest.$ac_ext <<_ACEOF
13964#line $LINENO "configure"
13965/* confdefs.h.  */
13966_ACEOF
13967cat confdefs.h >>conftest.$ac_ext
13968cat >>conftest.$ac_ext <<_ACEOF
13969/* end confdefs.h.  */
13970 template <class any_type> class some_type{}; template class some_type<int>;
13971int
13972main ()
13973{
13974
13975  ;
13976  return 0;
13977}
13978_ACEOF
13979rm -f conftest.$ac_objext
13980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13981  (eval $ac_compile) 2>&5
13982  ac_status=$?
13983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984  (exit $ac_status); } &&
13985         { ac_try='test -s conftest.$ac_objext'
13986  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13987  (eval $ac_try) 2>&5
13988  ac_status=$?
13989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990  (exit $ac_status); }; }; then
13991   epos_cv_c_templ_inst=yes
13992else
13993  echo "$as_me: failed program was:" >&5
13994sed 's/^/| /' conftest.$ac_ext >&5
13995
13996 epos_cv_c_templ_inst=no
13997fi
13998rm -f conftest.$ac_objext conftest.$ac_ext
13999
14000fi
14001echo "$as_me:$LINENO: result: $epos_cv_c_templ_inst" >&5
14002echo "${ECHO_T}$epos_cv_c_templ_inst" >&6
14003if test "$epos_cv_c_templ_inst" = yes; then
14004
14005cat >>confdefs.h <<\_ACEOF
14006#define HAVE_TEMPL_INST
14007_ACEOF
14008
14009fi
14010
14011echo "$as_me:$LINENO: checking for socklen_t" >&5
14012echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
14013if test "${epos_cv_type_socklen+set}" = set; then
14014  echo $ECHO_N "(cached) $ECHO_C" >&6
14015else
14016  cat >conftest.$ac_ext <<_ACEOF
14017#line $LINENO "configure"
14018/* confdefs.h.  */
14019_ACEOF
14020cat confdefs.h >>conftest.$ac_ext
14021cat >>conftest.$ac_ext <<_ACEOF
14022/* end confdefs.h.  */
14023#ifdef HAVE_SYS_SOCKET_H
14024	#include <sys/types.h>
14025	#include <sys/socket.h>
14026	#endif
14027	socklen_t x;
14028int
14029main ()
14030{
14031
14032  ;
14033  return 0;
14034}
14035_ACEOF
14036rm -f conftest.$ac_objext
14037if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14038  (eval $ac_compile) 2>&5
14039  ac_status=$?
14040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14041  (exit $ac_status); } &&
14042         { ac_try='test -s conftest.$ac_objext'
14043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14044  (eval $ac_try) 2>&5
14045  ac_status=$?
14046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047  (exit $ac_status); }; }; then
14048  epos_cv_type_socklen=yes
14049else
14050  echo "$as_me: failed program was:" >&5
14051sed 's/^/| /' conftest.$ac_ext >&5
14052
14053epos_cv_type_socklen=no
14054fi
14055rm -f conftest.$ac_objext conftest.$ac_ext
14056
14057fi
14058echo "$as_me:$LINENO: result: $epos_cv_type_socklen" >&5
14059echo "${ECHO_T}$epos_cv_type_socklen" >&6
14060if test "$epos_cv_type_socklen" = yes; then
14061
14062cat >>confdefs.h <<\_ACEOF
14063#define HAVE_SOCKLEN_T
14064_ACEOF
14065
14066fi
14067
14068broken_enum_bitfields_test='\
14069	#include <stdlib.h>	\
14070	enum t { a, b, c };	\
14071	struct s		\
14072	{			\
14073		t m : 2;	\
14074		t n : 2;	\
14075		t o : 2;	\
14076	};			\
14077	s arr[2] = {{a, b, c},{c, c, c}};\
14078	int main()		\
14079	{			\
14080		exit (arr[1].n != 2);	\
14081		return 0;       \
14082	}\
14083	'
14084
14085echo "$as_me:$LINENO: checking for broken enum bitfields" >&5
14086echo $ECHO_N "checking for broken enum bitfields... $ECHO_C" >&6
14087if test "${epos_cv_c_broken_enum_bitfields+set}" = set; then
14088  echo $ECHO_N "(cached) $ECHO_C" >&6
14089else
14090  if test "$cross_compiling" = yes; then
14091  epos_cv_c_broken_enum_bitfields=yes
14092else
14093  cat >conftest.$ac_ext <<_ACEOF
14094#line $LINENO "configure"
14095/* confdefs.h.  */
14096_ACEOF
14097cat confdefs.h >>conftest.$ac_ext
14098cat >>conftest.$ac_ext <<_ACEOF
14099/* end confdefs.h.  */
14100$broken_enum_bitfields_test
14101_ACEOF
14102rm -f conftest$ac_exeext
14103if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14104  (eval $ac_link) 2>&5
14105  ac_status=$?
14106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14109  (eval $ac_try) 2>&5
14110  ac_status=$?
14111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112  (exit $ac_status); }; }; then
14113  epos_cv_c_broken_enum_bitfields=no
14114else
14115  echo "$as_me: program exited with status $ac_status" >&5
14116echo "$as_me: failed program was:" >&5
14117sed 's/^/| /' conftest.$ac_ext >&5
14118
14119( exit $ac_status )
14120epos_cv_c_broken_enum_bitfields=yes
14121fi
14122rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14123fi
14124
14125fi
14126echo "$as_me:$LINENO: result: $epos_cv_c_broken_enum_bitfields" >&5
14127echo "${ECHO_T}$epos_cv_c_broken_enum_bitfields" >&6
14128if test "$epos_cv_c_broken_enum_bitfields" = yes; then
14129
14130cat >>confdefs.h <<\_ACEOF
14131#define BROKEN_ENUM_BITFIELDS
14132_ACEOF
14133
14134fi
14135
14136echo "$as_me:$LINENO: checking for mac audio frameworks" >&5
14137echo $ECHO_N "checking for mac audio frameworks... $ECHO_C" >&6
14138if test "${epos_cv_cxx_opt_mafwks+set}" = set; then
14139  echo $ECHO_N "(cached) $ECHO_C" >&6
14140else
14141   cat > conftest.cc <<EOF
14142#include <stdio.h>
14143int main(int argc, char **argv)
14144{
14145	if (argc < 0 || ((int)argv) == 0) printf("");
14146	return 0;
14147}
14148EOF
14149epos_cv_cxx_opt_mafwks="unknown"
14150for opt in "-framework CoreAudio -framework AudioToolbox"; do
14151	${CXX} ${CPPFLAGS} ${CXXFLAGS} ${opt} -o conftest conftest.cc 2>conftest2 1>&5 || continue
14152		msg=`cat conftest2`
14153		if test -z "$msg"; then
14154			epos_cv_cxx_opt_mafwks=$opt
14155			break
14156		fi
14157done
14158rm -f conftest conftest2 conftest.cc
14159fi
14160
14161echo "$as_me:$LINENO: result: ${epos_cv_cxx_opt_mafwks}" >&5
14162echo "${ECHO_T}${epos_cv_cxx_opt_mafwks}" >&6
14163if test "x${epos_cv_cxx_opt_mafwks}" = "xunknown"; then
14164	mafwks=
14165else
14166	mafwks=${epos_cv_cxx_opt_mafwks}
14167fi
14168CONFIGURED_CXXFLAGS="$CONFIGURED_CXXFLAGS $mafwks"
14169
14170
14171          ac_config_headers="$ac_config_headers config.h"
14172
14173#AC_CONFIG_SUBDIRS(libs/portaudio)
14174                                                                                                    ac_config_files="$ac_config_files Makefile src/Makefile src/nnet/Makefile src/tests/Makefile libs/Makefile libs/regex/Makefile libs/portaudio/Makefile cfg/Makefile arch/Makefile doc/Makefile"
14175cat >confcache <<\_ACEOF
14176# This file is a shell script that caches the results of configure
14177# tests run on this system so they can be shared between configure
14178# scripts and configure runs, see configure's option --config-cache.
14179# It is not useful on other systems.  If it contains results you don't
14180# want to keep, you may remove or edit it.
14181#
14182# config.status only pays attention to the cache file if you give it
14183# the --recheck option to rerun configure.
14184#
14185# `ac_cv_env_foo' variables (set or unset) will be overridden when
14186# loading this file, other *unset* `ac_cv_foo' will be assigned the
14187# following values.
14188
14189_ACEOF
14190
14191# The following way of writing the cache mishandles newlines in values,
14192# but we know of no workaround that is simple, portable, and efficient.
14193# So, don't put newlines in cache variables' values.
14194# Ultrix sh set writes to stderr and can't be redirected directly,
14195# and sets the high bit in the cache file unless we assign to the vars.
14196{
14197  (set) 2>&1 |
14198    case `(ac_space=' '; set | grep ac_space) 2>&1` in
14199    *ac_space=\ *)
14200      # `set' does not quote correctly, so add quotes (double-quote
14201      # substitution turns \\\\ into \\, and sed turns \\ into \).
14202      sed -n \
14203        "s/'/'\\\\''/g;
14204    	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14205      ;;
14206    *)
14207      # `set' quotes correctly as required by POSIX, so do not add quotes.
14208      sed -n \
14209        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
14210      ;;
14211    esac;
14212} |
14213  sed '
14214     t clear
14215     : clear
14216     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14217     t end
14218     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14219     : end' >>confcache
14220if diff $cache_file confcache >/dev/null 2>&1; then :; else
14221  if test -w $cache_file; then
14222    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
14223    cat confcache >$cache_file
14224  else
14225    echo "not updating unwritable cache $cache_file"
14226  fi
14227fi
14228rm -f confcache
14229
14230test "x$prefix" = xNONE && prefix=$ac_default_prefix
14231# Let make expand exec_prefix.
14232test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14233
14234# VPATH may cause trouble with some makes, so we remove $(srcdir),
14235# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14236# trailing colons and then remove the whole line if VPATH becomes empty
14237# (actually we leave an empty line to preserve line numbers).
14238if test "x$srcdir" = x.; then
14239  ac_vpsub='/^[ 	]*VPATH[ 	]*=/{
14240s/:*\$(srcdir):*/:/;
14241s/:*\${srcdir}:*/:/;
14242s/:*@srcdir@:*/:/;
14243s/^\([^=]*=[ 	]*\):*/\1/;
14244s/:*$//;
14245s/^[^=]*=[ 	]*$//;
14246}'
14247fi
14248
14249DEFS=-DHAVE_CONFIG_H
14250
14251ac_libobjs=
14252ac_ltlibobjs=
14253for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14254  # 1. Remove the extension, and $U if already installed.
14255  ac_i=`echo "$ac_i" |
14256         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
14257  # 2. Add them.
14258  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
14259  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
14260done
14261LIBOBJS=$ac_libobjs
14262
14263LTLIBOBJS=$ac_ltlibobjs
14264
14265
14266if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14267  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
14268Usually this means the macro was only invoked conditionally." >&5
14269echo "$as_me: error: conditional \"AMDEP\" was never defined.
14270Usually this means the macro was only invoked conditionally." >&2;}
14271   { (exit 1); exit 1; }; }
14272fi
14273if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14274  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
14275Usually this means the macro was only invoked conditionally." >&5
14276echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
14277Usually this means the macro was only invoked conditionally." >&2;}
14278   { (exit 1); exit 1; }; }
14279fi
14280if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14281  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
14282Usually this means the macro was only invoked conditionally." >&5
14283echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
14284Usually this means the macro was only invoked conditionally." >&2;}
14285   { (exit 1); exit 1; }; }
14286fi
14287if test -z "${PORTAUDIO_TRUE}" && test -z "${PORTAUDIO_FALSE}"; then
14288  { { echo "$as_me:$LINENO: error: conditional \"PORTAUDIO\" was never defined.
14289Usually this means the macro was only invoked conditionally." >&5
14290echo "$as_me: error: conditional \"PORTAUDIO\" was never defined.
14291Usually this means the macro was only invoked conditionally." >&2;}
14292   { (exit 1); exit 1; }; }
14293fi
14294
14295: ${CONFIG_STATUS=./config.status}
14296ac_clean_files_save=$ac_clean_files
14297ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14298{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14299echo "$as_me: creating $CONFIG_STATUS" >&6;}
14300cat >$CONFIG_STATUS <<_ACEOF
14301#! $SHELL
14302# Generated by $as_me.
14303# Run this file to recreate the current configuration.
14304# Compiler output produced by configure, useful for debugging
14305# configure, is in config.log if it exists.
14306
14307debug=false
14308ac_cs_recheck=false
14309ac_cs_silent=false
14310SHELL=\${CONFIG_SHELL-$SHELL}
14311_ACEOF
14312
14313cat >>$CONFIG_STATUS <<\_ACEOF
14314## --------------------- ##
14315## M4sh Initialization.  ##
14316## --------------------- ##
14317
14318# Be Bourne compatible
14319if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14320  emulate sh
14321  NULLCMD=:
14322  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
14323  # is contrary to our usage.  Disable this feature.
14324  alias -g '${1+"$@"}'='"$@"'
14325elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
14326  set -o posix
14327fi
14328
14329# Support unset when possible.
14330if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
14331  as_unset=unset
14332else
14333  as_unset=false
14334fi
14335
14336
14337# Work around bugs in pre-3.0 UWIN ksh.
14338$as_unset ENV MAIL MAILPATH
14339PS1='$ '
14340PS2='> '
14341PS4='+ '
14342
14343# NLS nuisances.
14344for as_var in \
14345  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
14346  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
14347  LC_TELEPHONE LC_TIME
14348do
14349  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
14350    eval $as_var=C; export $as_var
14351  else
14352    $as_unset $as_var
14353  fi
14354done
14355
14356# Required to use basename.
14357if expr a : '\(a\)' >/dev/null 2>&1; then
14358  as_expr=expr
14359else
14360  as_expr=false
14361fi
14362
14363if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
14364  as_basename=basename
14365else
14366  as_basename=false
14367fi
14368
14369
14370# Name of the executable.
14371as_me=`$as_basename "$0" ||
14372$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14373	 X"$0" : 'X\(//\)$' \| \
14374	 X"$0" : 'X\(/\)$' \| \
14375	 .     : '\(.\)' 2>/dev/null ||
14376echo X/"$0" |
14377    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
14378  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
14379  	  /^X\/\(\/\).*/{ s//\1/; q; }
14380  	  s/.*/./; q'`
14381
14382
14383# PATH needs CR, and LINENO needs CR and PATH.
14384# Avoid depending upon Character Ranges.
14385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14388as_cr_digits='0123456789'
14389as_cr_alnum=$as_cr_Letters$as_cr_digits
14390
14391# The user is always right.
14392if test "${PATH_SEPARATOR+set}" != set; then
14393  echo "#! /bin/sh" >conf$$.sh
14394  echo  "exit 0"   >>conf$$.sh
14395  chmod +x conf$$.sh
14396  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
14397    PATH_SEPARATOR=';'
14398  else
14399    PATH_SEPARATOR=:
14400  fi
14401  rm -f conf$$.sh
14402fi
14403
14404
14405  as_lineno_1=$LINENO
14406  as_lineno_2=$LINENO
14407  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14408  test "x$as_lineno_1" != "x$as_lineno_2" &&
14409  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
14410  # Find who we are.  Look in the path if we contain no path at all
14411  # relative or not.
14412  case $0 in
14413    *[\\/]* ) as_myself=$0 ;;
14414    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14415for as_dir in $PATH
14416do
14417  IFS=$as_save_IFS
14418  test -z "$as_dir" && as_dir=.
14419  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14420done
14421
14422       ;;
14423  esac
14424  # We did not find ourselves, most probably we were run as `sh COMMAND'
14425  # in which case we are not to be found in the path.
14426  if test "x$as_myself" = x; then
14427    as_myself=$0
14428  fi
14429  if test ! -f "$as_myself"; then
14430    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
14431echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
14432   { (exit 1); exit 1; }; }
14433  fi
14434  case $CONFIG_SHELL in
14435  '')
14436    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14437for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
14438do
14439  IFS=$as_save_IFS
14440  test -z "$as_dir" && as_dir=.
14441  for as_base in sh bash ksh sh5; do
14442	 case $as_dir in
14443	 /*)
14444	   if ("$as_dir/$as_base" -c '
14445  as_lineno_1=$LINENO
14446  as_lineno_2=$LINENO
14447  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
14448  test "x$as_lineno_1" != "x$as_lineno_2" &&
14449  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
14450	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
14451	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
14452	     CONFIG_SHELL=$as_dir/$as_base
14453	     export CONFIG_SHELL
14454	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
14455	   fi;;
14456	 esac
14457       done
14458done
14459;;
14460  esac
14461
14462  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14463  # uniformly replaced by the line number.  The first 'sed' inserts a
14464  # line-number line before each line; the second 'sed' does the real
14465  # work.  The second script uses 'N' to pair each line-number line
14466  # with the numbered line, and appends trailing '-' during
14467  # substitution so that $LINENO is not a special case at line end.
14468  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14469  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
14470  sed '=' <$as_myself |
14471    sed '
14472      N
14473      s,$,-,
14474      : loop
14475      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
14476      t loop
14477      s,-$,,
14478      s,^['$as_cr_digits']*\n,,
14479    ' >$as_me.lineno &&
14480  chmod +x $as_me.lineno ||
14481    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
14482echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
14483   { (exit 1); exit 1; }; }
14484
14485  # Don't try to exec as it changes $[0], causing all sort of problems
14486  # (the dirname of $[0] is not the place where we might find the
14487  # original and so on.  Autoconf is especially sensible to this).
14488  . ./$as_me.lineno
14489  # Exit status is that of the last command.
14490  exit
14491}
14492
14493
14494case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
14495  *c*,-n*) ECHO_N= ECHO_C='
14496' ECHO_T='	' ;;
14497  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
14498  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
14499esac
14500
14501if expr a : '\(a\)' >/dev/null 2>&1; then
14502  as_expr=expr
14503else
14504  as_expr=false
14505fi
14506
14507rm -f conf$$ conf$$.exe conf$$.file
14508echo >conf$$.file
14509if ln -s conf$$.file conf$$ 2>/dev/null; then
14510  # We could just check for DJGPP; but this test a) works b) is more generic
14511  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
14512  if test -f conf$$.exe; then
14513    # Don't use ln at all; we don't have any links
14514    as_ln_s='cp -p'
14515  else
14516    as_ln_s='ln -s'
14517  fi
14518elif ln conf$$.file conf$$ 2>/dev/null; then
14519  as_ln_s=ln
14520else
14521  as_ln_s='cp -p'
14522fi
14523rm -f conf$$ conf$$.exe conf$$.file
14524
14525if mkdir -p . 2>/dev/null; then
14526  as_mkdir_p=:
14527else
14528  as_mkdir_p=false
14529fi
14530
14531as_executable_p="test -f"
14532
14533# Sed expression to map a string onto a valid CPP name.
14534as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
14535
14536# Sed expression to map a string onto a valid variable name.
14537as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
14538
14539
14540# IFS
14541# We need space, tab and new line, in precisely that order.
14542as_nl='
14543'
14544IFS=" 	$as_nl"
14545
14546# CDPATH.
14547$as_unset CDPATH
14548
14549exec 6>&1
14550
14551# Open the log real soon, to keep \$[0] and so on meaningful, and to
14552# report actual input values of CONFIG_FILES etc. instead of their
14553# values after options handling.  Logging --version etc. is OK.
14554exec 5>>config.log
14555{
14556  echo
14557  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14558## Running $as_me. ##
14559_ASBOX
14560} >&5
14561cat >&5 <<_CSEOF
14562
14563This file was extended by $as_me, which was
14564generated by GNU Autoconf 2.57.  Invocation command line was
14565
14566  CONFIG_FILES    = $CONFIG_FILES
14567  CONFIG_HEADERS  = $CONFIG_HEADERS
14568  CONFIG_LINKS    = $CONFIG_LINKS
14569  CONFIG_COMMANDS = $CONFIG_COMMANDS
14570  $ $0 $@
14571
14572_CSEOF
14573echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
14574echo >&5
14575_ACEOF
14576
14577# Files that config.status was made for.
14578if test -n "$ac_config_files"; then
14579  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
14580fi
14581
14582if test -n "$ac_config_headers"; then
14583  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
14584fi
14585
14586if test -n "$ac_config_links"; then
14587  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
14588fi
14589
14590if test -n "$ac_config_commands"; then
14591  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
14592fi
14593
14594cat >>$CONFIG_STATUS <<\_ACEOF
14595
14596ac_cs_usage="\
14597\`$as_me' instantiates files from templates according to the
14598current configuration.
14599
14600Usage: $0 [OPTIONS] [FILE]...
14601
14602  -h, --help       print this help, then exit
14603  -V, --version    print version number, then exit
14604  -q, --quiet      do not print progress messages
14605  -d, --debug      don't remove temporary files
14606      --recheck    update $as_me by reconfiguring in the same conditions
14607  --file=FILE[:TEMPLATE]
14608                   instantiate the configuration file FILE
14609  --header=FILE[:TEMPLATE]
14610                   instantiate the configuration header FILE
14611
14612Configuration files:
14613$config_files
14614
14615Configuration headers:
14616$config_headers
14617
14618Configuration commands:
14619$config_commands
14620
14621Report bugs to <bug-autoconf@gnu.org>."
14622_ACEOF
14623
14624cat >>$CONFIG_STATUS <<_ACEOF
14625ac_cs_version="\\
14626config.status
14627configured by $0, generated by GNU Autoconf 2.57,
14628  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
14629
14630Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
14631Free Software Foundation, Inc.
14632This config.status script is free software; the Free Software Foundation
14633gives unlimited permission to copy, distribute and modify it."
14634srcdir=$srcdir
14635INSTALL="$INSTALL"
14636_ACEOF
14637
14638cat >>$CONFIG_STATUS <<\_ACEOF
14639# If no file are specified by the user, then we need to provide default
14640# value.  By we need to know if files were specified by the user.
14641ac_need_defaults=:
14642while test $# != 0
14643do
14644  case $1 in
14645  --*=*)
14646    ac_option=`expr "x$1" : 'x\([^=]*\)='`
14647    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
14648    ac_shift=:
14649    ;;
14650  -*)
14651    ac_option=$1
14652    ac_optarg=$2
14653    ac_shift=shift
14654    ;;
14655  *) # This is not an option, so the user has probably given explicit
14656     # arguments.
14657     ac_option=$1
14658     ac_need_defaults=false;;
14659  esac
14660
14661  case $ac_option in
14662  # Handling of the options.
14663_ACEOF
14664cat >>$CONFIG_STATUS <<\_ACEOF
14665  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14666    ac_cs_recheck=: ;;
14667  --version | --vers* | -V )
14668    echo "$ac_cs_version"; exit 0 ;;
14669  --he | --h)
14670    # Conflict between --help and --header
14671    { { echo "$as_me:$LINENO: error: ambiguous option: $1
14672Try \`$0 --help' for more information." >&5
14673echo "$as_me: error: ambiguous option: $1
14674Try \`$0 --help' for more information." >&2;}
14675   { (exit 1); exit 1; }; };;
14676  --help | --hel | -h )
14677    echo "$ac_cs_usage"; exit 0 ;;
14678  --debug | --d* | -d )
14679    debug=: ;;
14680  --file | --fil | --fi | --f )
14681    $ac_shift
14682    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14683    ac_need_defaults=false;;
14684  --header | --heade | --head | --hea )
14685    $ac_shift
14686    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14687    ac_need_defaults=false;;
14688  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14689  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14690    ac_cs_silent=: ;;
14691
14692  # This is an error.
14693  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
14694Try \`$0 --help' for more information." >&5
14695echo "$as_me: error: unrecognized option: $1
14696Try \`$0 --help' for more information." >&2;}
14697   { (exit 1); exit 1; }; } ;;
14698
14699  *) ac_config_targets="$ac_config_targets $1" ;;
14700
14701  esac
14702  shift
14703done
14704
14705ac_configure_extra_args=
14706
14707if $ac_cs_silent; then
14708  exec 6>/dev/null
14709  ac_configure_extra_args="$ac_configure_extra_args --silent"
14710fi
14711
14712_ACEOF
14713cat >>$CONFIG_STATUS <<_ACEOF
14714if \$ac_cs_recheck; then
14715  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14716  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14717fi
14718
14719_ACEOF
14720
14721cat >>$CONFIG_STATUS <<_ACEOF
14722#
14723# INIT-COMMANDS section.
14724#
14725
14726AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14727
14728_ACEOF
14729
14730
14731
14732cat >>$CONFIG_STATUS <<\_ACEOF
14733for ac_config_target in $ac_config_targets
14734do
14735  case "$ac_config_target" in
14736  # Handling of arguments.
14737  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14738  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14739  "src/nnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/nnet/Makefile" ;;
14740  "src/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/tests/Makefile" ;;
14741  "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
14742  "libs/regex/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/regex/Makefile" ;;
14743  "libs/portaudio/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/portaudio/Makefile" ;;
14744  "cfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES cfg/Makefile" ;;
14745  "arch/Makefile" ) CONFIG_FILES="$CONFIG_FILES arch/Makefile" ;;
14746  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14747  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14748  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14749  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14750echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14751   { (exit 1); exit 1; }; };;
14752  esac
14753done
14754
14755# If the user did not use the arguments to specify the items to instantiate,
14756# then the envvar interface is used.  Set only those that are not.
14757# We use the long form for the default assignment because of an extremely
14758# bizarre bug on SunOS 4.1.3.
14759if $ac_need_defaults; then
14760  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14761  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14762  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14763fi
14764
14765# Have a temporary directory for convenience.  Make it in the build tree
14766# simply because there is no reason to put it here, and in addition,
14767# creating and moving files from /tmp can sometimes cause problems.
14768# Create a temporary directory, and hook for its removal unless debugging.
14769$debug ||
14770{
14771  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
14772  trap '{ (exit 1); exit 1; }' 1 2 13 15
14773}
14774
14775# Create a (secure) tmp directory for tmp files.
14776
14777{
14778  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
14779  test -n "$tmp" && test -d "$tmp"
14780}  ||
14781{
14782  tmp=./confstat$$-$RANDOM
14783  (umask 077 && mkdir $tmp)
14784} ||
14785{
14786   echo "$me: cannot create a temporary directory in ." >&2
14787   { (exit 1); exit 1; }
14788}
14789
14790_ACEOF
14791
14792cat >>$CONFIG_STATUS <<_ACEOF
14793
14794#
14795# CONFIG_FILES section.
14796#
14797
14798# No need to generate the scripts if there are no CONFIG_FILES.
14799# This happens for instance when ./config.status config.h
14800if test -n "\$CONFIG_FILES"; then
14801  # Protect against being on the right side of a sed subst in config.status.
14802  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
14803   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
14804s,@SHELL@,$SHELL,;t t
14805s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
14806s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
14807s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
14808s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
14809s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
14810s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
14811s,@exec_prefix@,$exec_prefix,;t t
14812s,@prefix@,$prefix,;t t
14813s,@program_transform_name@,$program_transform_name,;t t
14814s,@bindir@,$bindir,;t t
14815s,@sbindir@,$sbindir,;t t
14816s,@libexecdir@,$libexecdir,;t t
14817s,@datadir@,$datadir,;t t
14818s,@sysconfdir@,$sysconfdir,;t t
14819s,@sharedstatedir@,$sharedstatedir,;t t
14820s,@localstatedir@,$localstatedir,;t t
14821s,@libdir@,$libdir,;t t
14822s,@includedir@,$includedir,;t t
14823s,@oldincludedir@,$oldincludedir,;t t
14824s,@infodir@,$infodir,;t t
14825s,@mandir@,$mandir,;t t
14826s,@build_alias@,$build_alias,;t t
14827s,@host_alias@,$host_alias,;t t
14828s,@target_alias@,$target_alias,;t t
14829s,@DEFS@,$DEFS,;t t
14830s,@ECHO_C@,$ECHO_C,;t t
14831s,@ECHO_N@,$ECHO_N,;t t
14832s,@ECHO_T@,$ECHO_T,;t t
14833s,@LIBS@,$LIBS,;t t
14834s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
14835s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
14836s,@INSTALL_DATA@,$INSTALL_DATA,;t t
14837s,@CYGPATH_W@,$CYGPATH_W,;t t
14838s,@PACKAGE@,$PACKAGE,;t t
14839s,@VERSION@,$VERSION,;t t
14840s,@ACLOCAL@,$ACLOCAL,;t t
14841s,@AUTOCONF@,$AUTOCONF,;t t
14842s,@AUTOMAKE@,$AUTOMAKE,;t t
14843s,@AUTOHEADER@,$AUTOHEADER,;t t
14844s,@MAKEINFO@,$MAKEINFO,;t t
14845s,@AMTAR@,$AMTAR,;t t
14846s,@install_sh@,$install_sh,;t t
14847s,@STRIP@,$STRIP,;t t
14848s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
14849s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
14850s,@AWK@,$AWK,;t t
14851s,@SET_MAKE@,$SET_MAKE,;t t
14852s,@am__leading_dot@,$am__leading_dot,;t t
14853s,@CC@,$CC,;t t
14854s,@CFLAGS@,$CFLAGS,;t t
14855s,@LDFLAGS@,$LDFLAGS,;t t
14856s,@CPPFLAGS@,$CPPFLAGS,;t t
14857s,@ac_ct_CC@,$ac_ct_CC,;t t
14858s,@EXEEXT@,$EXEEXT,;t t
14859s,@OBJEXT@,$OBJEXT,;t t
14860s,@DEPDIR@,$DEPDIR,;t t
14861s,@am__include@,$am__include,;t t
14862s,@am__quote@,$am__quote,;t t
14863s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
14864s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
14865s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
14866s,@CCDEPMODE@,$CCDEPMODE,;t t
14867s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
14868s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
14869s,@CXX@,$CXX,;t t
14870s,@CXXFLAGS@,$CXXFLAGS,;t t
14871s,@ac_ct_CXX@,$ac_ct_CXX,;t t
14872s,@CXXDEPMODE@,$CXXDEPMODE,;t t
14873s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
14874s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
14875s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t
14876s,@CONFIGURED_CXXFLAGS@,$CONFIGURED_CXXFLAGS,;t t
14877s,@AM_CXXFLAGS@,$AM_CXXFLAGS,;t t
14878s,@build@,$build,;t t
14879s,@build_cpu@,$build_cpu,;t t
14880s,@build_vendor@,$build_vendor,;t t
14881s,@build_os@,$build_os,;t t
14882s,@host@,$host,;t t
14883s,@host_cpu@,$host_cpu,;t t
14884s,@host_vendor@,$host_vendor,;t t
14885s,@host_os@,$host_os,;t t
14886s,@LN_S@,$LN_S,;t t
14887s,@ECHO@,$ECHO,;t t
14888s,@RANLIB@,$RANLIB,;t t
14889s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
14890s,@CPP@,$CPP,;t t
14891s,@EGREP@,$EGREP,;t t
14892s,@LIBTOOL@,$LIBTOOL,;t t
14893s,@PORTAUDIO_TRUE@,$PORTAUDIO_TRUE,;t t
14894s,@PORTAUDIO_FALSE@,$PORTAUDIO_FALSE,;t t
14895s,@LNK@,$LNK,;t t
14896s,@EXTRA_REGEX_OBJ@,$EXTRA_REGEX_OBJ,;t t
14897s,@EXTRA_PORTAUDIO_LIBS@,$EXTRA_PORTAUDIO_LIBS,;t t
14898s,@EXTRA_PORTAUDIO_DEFS@,$EXTRA_PORTAUDIO_DEFS,;t t
14899s,@YACC@,$YACC,;t t
14900s,@LEX@,$LEX,;t t
14901s,@LEXLIB@,$LEXLIB,;t t
14902s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
14903s,@CXXCPP@,$CXXCPP,;t t
14904s,@LIBOBJS@,$LIBOBJS,;t t
14905s,@LTLIBOBJS@,$LTLIBOBJS,;t t
14906CEOF
14907
14908_ACEOF
14909
14910  cat >>$CONFIG_STATUS <<\_ACEOF
14911  # Split the substitutions into bite-sized pieces for seds with
14912  # small command number limits, like on Digital OSF/1 and HP-UX.
14913  ac_max_sed_lines=48
14914  ac_sed_frag=1 # Number of current file.
14915  ac_beg=1 # First line for current file.
14916  ac_end=$ac_max_sed_lines # Line after last line for current file.
14917  ac_more_lines=:
14918  ac_sed_cmds=
14919  while $ac_more_lines; do
14920    if test $ac_beg -gt 1; then
14921      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14922    else
14923      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
14924    fi
14925    if test ! -s $tmp/subs.frag; then
14926      ac_more_lines=false
14927    else
14928      # The purpose of the label and of the branching condition is to
14929      # speed up the sed processing (if there are no `@' at all, there
14930      # is no need to browse any of the substitutions).
14931      # These are the two extra sed commands mentioned above.
14932      (echo ':t
14933  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
14934      if test -z "$ac_sed_cmds"; then
14935  	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
14936      else
14937  	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
14938      fi
14939      ac_sed_frag=`expr $ac_sed_frag + 1`
14940      ac_beg=$ac_end
14941      ac_end=`expr $ac_end + $ac_max_sed_lines`
14942    fi
14943  done
14944  if test -z "$ac_sed_cmds"; then
14945    ac_sed_cmds=cat
14946  fi
14947fi # test -n "$CONFIG_FILES"
14948
14949_ACEOF
14950cat >>$CONFIG_STATUS <<\_ACEOF
14951for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
14952  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
14953  case $ac_file in
14954  - | *:- | *:-:* ) # input from stdin
14955        cat >$tmp/stdin
14956        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14957        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14958  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
14959        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
14960  * )   ac_file_in=$ac_file.in ;;
14961  esac
14962
14963  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
14964  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14965$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14966         X"$ac_file" : 'X\(//\)[^/]' \| \
14967         X"$ac_file" : 'X\(//\)$' \| \
14968         X"$ac_file" : 'X\(/\)' \| \
14969         .     : '\(.\)' 2>/dev/null ||
14970echo X"$ac_file" |
14971    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14972  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14973  	  /^X\(\/\/\)$/{ s//\1/; q; }
14974  	  /^X\(\/\).*/{ s//\1/; q; }
14975  	  s/.*/./; q'`
14976  { if $as_mkdir_p; then
14977    mkdir -p "$ac_dir"
14978  else
14979    as_dir="$ac_dir"
14980    as_dirs=
14981    while test ! -d "$as_dir"; do
14982      as_dirs="$as_dir $as_dirs"
14983      as_dir=`(dirname "$as_dir") 2>/dev/null ||
14984$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14985         X"$as_dir" : 'X\(//\)[^/]' \| \
14986         X"$as_dir" : 'X\(//\)$' \| \
14987         X"$as_dir" : 'X\(/\)' \| \
14988         .     : '\(.\)' 2>/dev/null ||
14989echo X"$as_dir" |
14990    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14991  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14992  	  /^X\(\/\/\)$/{ s//\1/; q; }
14993  	  /^X\(\/\).*/{ s//\1/; q; }
14994  	  s/.*/./; q'`
14995    done
14996    test ! -n "$as_dirs" || mkdir $as_dirs
14997  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14998echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14999   { (exit 1); exit 1; }; }; }
15000
15001  ac_builddir=.
15002
15003if test "$ac_dir" != .; then
15004  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15005  # A "../" for each directory in $ac_dir_suffix.
15006  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15007else
15008  ac_dir_suffix= ac_top_builddir=
15009fi
15010
15011case $srcdir in
15012  .)  # No --srcdir option.  We are building in place.
15013    ac_srcdir=.
15014    if test -z "$ac_top_builddir"; then
15015       ac_top_srcdir=.
15016    else
15017       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15018    fi ;;
15019  [\\/]* | ?:[\\/]* )  # Absolute path.
15020    ac_srcdir=$srcdir$ac_dir_suffix;
15021    ac_top_srcdir=$srcdir ;;
15022  *) # Relative path.
15023    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15024    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15025esac
15026# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15027# absolute.
15028ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15029ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15030ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15031ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15032
15033
15034  case $INSTALL in
15035  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15036  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
15037  esac
15038
15039  if test x"$ac_file" != x-; then
15040    { echo "$as_me:$LINENO: creating $ac_file" >&5
15041echo "$as_me: creating $ac_file" >&6;}
15042    rm -f "$ac_file"
15043  fi
15044  # Let's still pretend it is `configure' which instantiates (i.e., don't
15045  # use $as_me), people would be surprised to read:
15046  #    /* config.h.  Generated by config.status.  */
15047  if test x"$ac_file" = x-; then
15048    configure_input=
15049  else
15050    configure_input="$ac_file.  "
15051  fi
15052  configure_input=$configure_input"Generated from `echo $ac_file_in |
15053                                     sed 's,.*/,,'` by configure."
15054
15055  # First look for the input files in the build tree, otherwise in the
15056  # src tree.
15057  ac_file_inputs=`IFS=:
15058    for f in $ac_file_in; do
15059      case $f in
15060      -) echo $tmp/stdin ;;
15061      [\\/$]*)
15062         # Absolute (can't be DOS-style, as IFS=:)
15063         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15064echo "$as_me: error: cannot find input file: $f" >&2;}
15065   { (exit 1); exit 1; }; }
15066         echo $f;;
15067      *) # Relative
15068         if test -f "$f"; then
15069           # Build tree
15070           echo $f
15071         elif test -f "$srcdir/$f"; then
15072           # Source tree
15073           echo $srcdir/$f
15074         else
15075           # /dev/null tree
15076           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15077echo "$as_me: error: cannot find input file: $f" >&2;}
15078   { (exit 1); exit 1; }; }
15079         fi;;
15080      esac
15081    done` || { (exit 1); exit 1; }
15082_ACEOF
15083cat >>$CONFIG_STATUS <<_ACEOF
15084  sed "$ac_vpsub
15085$extrasub
15086_ACEOF
15087cat >>$CONFIG_STATUS <<\_ACEOF
15088:t
15089/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15090s,@configure_input@,$configure_input,;t t
15091s,@srcdir@,$ac_srcdir,;t t
15092s,@abs_srcdir@,$ac_abs_srcdir,;t t
15093s,@top_srcdir@,$ac_top_srcdir,;t t
15094s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
15095s,@builddir@,$ac_builddir,;t t
15096s,@abs_builddir@,$ac_abs_builddir,;t t
15097s,@top_builddir@,$ac_top_builddir,;t t
15098s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
15099s,@INSTALL@,$ac_INSTALL,;t t
15100" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
15101  rm -f $tmp/stdin
15102  if test x"$ac_file" != x-; then
15103    mv $tmp/out $ac_file
15104  else
15105    cat $tmp/out
15106    rm -f $tmp/out
15107  fi
15108
15109done
15110_ACEOF
15111cat >>$CONFIG_STATUS <<\_ACEOF
15112
15113#
15114# CONFIG_HEADER section.
15115#
15116
15117# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
15118# NAME is the cpp macro being defined and VALUE is the value it is being given.
15119#
15120# ac_d sets the value in "#define NAME VALUE" lines.
15121ac_dA='s,^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
15122ac_dB='[ 	].*$,\1#\2'
15123ac_dC=' '
15124ac_dD=',;t'
15125# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
15126ac_uA='s,^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
15127ac_uB='$,\1#\2define\3'
15128ac_uC=' '
15129ac_uD=',;t'
15130
15131for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
15132  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
15133  case $ac_file in
15134  - | *:- | *:-:* ) # input from stdin
15135        cat >$tmp/stdin
15136        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15137        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15138  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
15139        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
15140  * )   ac_file_in=$ac_file.in ;;
15141  esac
15142
15143  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
15144echo "$as_me: creating $ac_file" >&6;}
15145
15146  # First look for the input files in the build tree, otherwise in the
15147  # src tree.
15148  ac_file_inputs=`IFS=:
15149    for f in $ac_file_in; do
15150      case $f in
15151      -) echo $tmp/stdin ;;
15152      [\\/$]*)
15153         # Absolute (can't be DOS-style, as IFS=:)
15154         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15155echo "$as_me: error: cannot find input file: $f" >&2;}
15156   { (exit 1); exit 1; }; }
15157         echo $f;;
15158      *) # Relative
15159         if test -f "$f"; then
15160           # Build tree
15161           echo $f
15162         elif test -f "$srcdir/$f"; then
15163           # Source tree
15164           echo $srcdir/$f
15165         else
15166           # /dev/null tree
15167           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
15168echo "$as_me: error: cannot find input file: $f" >&2;}
15169   { (exit 1); exit 1; }; }
15170         fi;;
15171      esac
15172    done` || { (exit 1); exit 1; }
15173  # Remove the trailing spaces.
15174  sed 's/[ 	]*$//' $ac_file_inputs >$tmp/in
15175
15176_ACEOF
15177
15178# Transform confdefs.h into two sed scripts, `conftest.defines' and
15179# `conftest.undefs', that substitutes the proper values into
15180# config.h.in to produce config.h.  The first handles `#define'
15181# templates, and the second `#undef' templates.
15182# And first: Protect against being on the right side of a sed subst in
15183# config.status.  Protect against being in an unquoted here document
15184# in config.status.
15185rm -f conftest.defines conftest.undefs
15186# Using a here document instead of a string reduces the quoting nightmare.
15187# Putting comments in sed scripts is not portable.
15188#
15189# `end' is used to avoid that the second main sed command (meant for
15190# 0-ary CPP macros) applies to n-ary macro definitions.
15191# See the Autoconf documentation for `clear'.
15192cat >confdef2sed.sed <<\_ACEOF
15193s/[\\&,]/\\&/g
15194s,[\\$`],\\&,g
15195t clear
15196: clear
15197s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	(][^ 	(]*\)\(([^)]*)\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
15198t end
15199s,^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
15200: end
15201_ACEOF
15202# If some macros were called several times there might be several times
15203# the same #defines, which is useless.  Nevertheless, we may not want to
15204# sort them, since we want the *last* AC-DEFINE to be honored.
15205uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
15206sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
15207rm -f confdef2sed.sed
15208
15209# This sed command replaces #undef with comments.  This is necessary, for
15210# example, in the case of _POSIX_SOURCE, which is predefined and required
15211# on some systems where configure will not decide to define it.
15212cat >>conftest.undefs <<\_ACEOF
15213s,^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
15214_ACEOF
15215
15216# Break up conftest.defines because some shells have a limit on the size
15217# of here documents, and old seds have small limits too (100 cmds).
15218echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
15219echo '  if grep "^[ 	]*#[ 	]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
15220echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
15221echo '  :' >>$CONFIG_STATUS
15222rm -f conftest.tail
15223while grep . conftest.defines >/dev/null
15224do
15225  # Write a limited-size here document to $tmp/defines.sed.
15226  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
15227  # Speed up: don't consider the non `#define' lines.
15228  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
15229  # Work around the forget-to-reset-the-flag bug.
15230  echo 't clr' >>$CONFIG_STATUS
15231  echo ': clr' >>$CONFIG_STATUS
15232  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
15233  echo 'CEOF
15234  sed -f $tmp/defines.sed $tmp/in >$tmp/out
15235  rm -f $tmp/in
15236  mv $tmp/out $tmp/in
15237' >>$CONFIG_STATUS
15238  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
15239  rm -f conftest.defines
15240  mv conftest.tail conftest.defines
15241done
15242rm -f conftest.defines
15243echo '  fi # grep' >>$CONFIG_STATUS
15244echo >>$CONFIG_STATUS
15245
15246# Break up conftest.undefs because some shells have a limit on the size
15247# of here documents, and old seds have small limits too (100 cmds).
15248echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
15249rm -f conftest.tail
15250while grep . conftest.undefs >/dev/null
15251do
15252  # Write a limited-size here document to $tmp/undefs.sed.
15253  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
15254  # Speed up: don't consider the non `#undef'
15255  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
15256  # Work around the forget-to-reset-the-flag bug.
15257  echo 't clr' >>$CONFIG_STATUS
15258  echo ': clr' >>$CONFIG_STATUS
15259  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
15260  echo 'CEOF
15261  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
15262  rm -f $tmp/in
15263  mv $tmp/out $tmp/in
15264' >>$CONFIG_STATUS
15265  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
15266  rm -f conftest.undefs
15267  mv conftest.tail conftest.undefs
15268done
15269rm -f conftest.undefs
15270
15271cat >>$CONFIG_STATUS <<\_ACEOF
15272  # Let's still pretend it is `configure' which instantiates (i.e., don't
15273  # use $as_me), people would be surprised to read:
15274  #    /* config.h.  Generated by config.status.  */
15275  if test x"$ac_file" = x-; then
15276    echo "/* Generated by configure.  */" >$tmp/config.h
15277  else
15278    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
15279  fi
15280  cat $tmp/in >>$tmp/config.h
15281  rm -f $tmp/in
15282  if test x"$ac_file" != x-; then
15283    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
15284      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15285echo "$as_me: $ac_file is unchanged" >&6;}
15286    else
15287      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
15288$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15289         X"$ac_file" : 'X\(//\)[^/]' \| \
15290         X"$ac_file" : 'X\(//\)$' \| \
15291         X"$ac_file" : 'X\(/\)' \| \
15292         .     : '\(.\)' 2>/dev/null ||
15293echo X"$ac_file" |
15294    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15295  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15296  	  /^X\(\/\/\)$/{ s//\1/; q; }
15297  	  /^X\(\/\).*/{ s//\1/; q; }
15298  	  s/.*/./; q'`
15299      { if $as_mkdir_p; then
15300    mkdir -p "$ac_dir"
15301  else
15302    as_dir="$ac_dir"
15303    as_dirs=
15304    while test ! -d "$as_dir"; do
15305      as_dirs="$as_dir $as_dirs"
15306      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15307$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15308         X"$as_dir" : 'X\(//\)[^/]' \| \
15309         X"$as_dir" : 'X\(//\)$' \| \
15310         X"$as_dir" : 'X\(/\)' \| \
15311         .     : '\(.\)' 2>/dev/null ||
15312echo X"$as_dir" |
15313    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15314  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15315  	  /^X\(\/\/\)$/{ s//\1/; q; }
15316  	  /^X\(\/\).*/{ s//\1/; q; }
15317  	  s/.*/./; q'`
15318    done
15319    test ! -n "$as_dirs" || mkdir $as_dirs
15320  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
15321echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
15322   { (exit 1); exit 1; }; }; }
15323
15324      rm -f $ac_file
15325      mv $tmp/config.h $ac_file
15326    fi
15327  else
15328    cat $tmp/config.h
15329    rm -f $tmp/config.h
15330  fi
15331# Compute $ac_file's index in $config_headers.
15332_am_stamp_count=1
15333for _am_header in $config_headers :; do
15334  case $_am_header in
15335    $ac_file | $ac_file:* )
15336      break ;;
15337    * )
15338      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15339  esac
15340done
15341echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
15342$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15343         X$ac_file : 'X\(//\)[^/]' \| \
15344         X$ac_file : 'X\(//\)$' \| \
15345         X$ac_file : 'X\(/\)' \| \
15346         .     : '\(.\)' 2>/dev/null ||
15347echo X$ac_file |
15348    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15349  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15350  	  /^X\(\/\/\)$/{ s//\1/; q; }
15351  	  /^X\(\/\).*/{ s//\1/; q; }
15352  	  s/.*/./; q'`/stamp-h$_am_stamp_count
15353done
15354_ACEOF
15355cat >>$CONFIG_STATUS <<\_ACEOF
15356
15357#
15358# CONFIG_COMMANDS section.
15359#
15360for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
15361  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
15362  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
15363  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
15364$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15365         X"$ac_dest" : 'X\(//\)[^/]' \| \
15366         X"$ac_dest" : 'X\(//\)$' \| \
15367         X"$ac_dest" : 'X\(/\)' \| \
15368         .     : '\(.\)' 2>/dev/null ||
15369echo X"$ac_dest" |
15370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15371  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15372  	  /^X\(\/\/\)$/{ s//\1/; q; }
15373  	  /^X\(\/\).*/{ s//\1/; q; }
15374  	  s/.*/./; q'`
15375  ac_builddir=.
15376
15377if test "$ac_dir" != .; then
15378  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
15379  # A "../" for each directory in $ac_dir_suffix.
15380  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
15381else
15382  ac_dir_suffix= ac_top_builddir=
15383fi
15384
15385case $srcdir in
15386  .)  # No --srcdir option.  We are building in place.
15387    ac_srcdir=.
15388    if test -z "$ac_top_builddir"; then
15389       ac_top_srcdir=.
15390    else
15391       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
15392    fi ;;
15393  [\\/]* | ?:[\\/]* )  # Absolute path.
15394    ac_srcdir=$srcdir$ac_dir_suffix;
15395    ac_top_srcdir=$srcdir ;;
15396  *) # Relative path.
15397    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
15398    ac_top_srcdir=$ac_top_builddir$srcdir ;;
15399esac
15400# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
15401# absolute.
15402ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
15403ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
15404ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
15405ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
15406
15407
15408  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
15409echo "$as_me: executing $ac_dest commands" >&6;}
15410  case $ac_dest in
15411    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
15412  # Strip MF so we end up with the name of the file.
15413  mf=`echo "$mf" | sed -e 's/:.*$//'`
15414  # Check whether this is an Automake generated Makefile or not.
15415  # We used to match only the files named `Makefile.in', but
15416  # some people rename them; so instead we look at the file content.
15417  # Grep'ing the first line is not enough: some people post-process
15418  # each Makefile.in and add a new line on top of each file to say so.
15419  # So let's grep whole file.
15420  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
15421    dirpart=`(dirname "$mf") 2>/dev/null ||
15422$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15423         X"$mf" : 'X\(//\)[^/]' \| \
15424         X"$mf" : 'X\(//\)$' \| \
15425         X"$mf" : 'X\(/\)' \| \
15426         .     : '\(.\)' 2>/dev/null ||
15427echo X"$mf" |
15428    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15429  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15430  	  /^X\(\/\/\)$/{ s//\1/; q; }
15431  	  /^X\(\/\).*/{ s//\1/; q; }
15432  	  s/.*/./; q'`
15433  else
15434    continue
15435  fi
15436  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
15437  # Extract the definition of DEP_FILES from the Makefile without
15438  # running `make'.
15439  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
15440  test -z "$DEPDIR" && continue
15441  # When using ansi2knr, U may be empty or an underscore; expand it
15442  U=`sed -n -e '/^U = / s///p' < "$mf"`
15443  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
15444  # We invoke sed twice because it is the simplest approach to
15445  # changing $(DEPDIR) to its actual value in the expansion.
15446  for file in `sed -n -e '
15447    /^DEP_FILES = .*\\\\$/ {
15448      s/^DEP_FILES = //
15449      :loop
15450	s/\\\\$//
15451	p
15452	n
15453	/\\\\$/ b loop
15454      p
15455    }
15456    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
15457       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15458    # Make sure the directory exists.
15459    test -f "$dirpart/$file" && continue
15460    fdir=`(dirname "$file") 2>/dev/null ||
15461$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15462         X"$file" : 'X\(//\)[^/]' \| \
15463         X"$file" : 'X\(//\)$' \| \
15464         X"$file" : 'X\(/\)' \| \
15465         .     : '\(.\)' 2>/dev/null ||
15466echo X"$file" |
15467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15468  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15469  	  /^X\(\/\/\)$/{ s//\1/; q; }
15470  	  /^X\(\/\).*/{ s//\1/; q; }
15471  	  s/.*/./; q'`
15472    { if $as_mkdir_p; then
15473    mkdir -p $dirpart/$fdir
15474  else
15475    as_dir=$dirpart/$fdir
15476    as_dirs=
15477    while test ! -d "$as_dir"; do
15478      as_dirs="$as_dir $as_dirs"
15479      as_dir=`(dirname "$as_dir") 2>/dev/null ||
15480$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15481         X"$as_dir" : 'X\(//\)[^/]' \| \
15482         X"$as_dir" : 'X\(//\)$' \| \
15483         X"$as_dir" : 'X\(/\)' \| \
15484         .     : '\(.\)' 2>/dev/null ||
15485echo X"$as_dir" |
15486    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
15487  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
15488  	  /^X\(\/\/\)$/{ s//\1/; q; }
15489  	  /^X\(\/\).*/{ s//\1/; q; }
15490  	  s/.*/./; q'`
15491    done
15492    test ! -n "$as_dirs" || mkdir $as_dirs
15493  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
15494echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
15495   { (exit 1); exit 1; }; }; }
15496
15497    # echo "creating $dirpart/$file"
15498    echo '# dummy' > "$dirpart/$file"
15499  done
15500done
15501 ;;
15502  esac
15503done
15504_ACEOF
15505
15506cat >>$CONFIG_STATUS <<\_ACEOF
15507
15508{ (exit 0); exit 0; }
15509_ACEOF
15510chmod +x $CONFIG_STATUS
15511ac_clean_files=$ac_clean_files_save
15512
15513
15514# configure is writing to config.log, and then calls config.status.
15515# config.status does its own redirection, appending to config.log.
15516# Unfortunately, on DOS this fails, as config.log is still kept open
15517# by configure, so config.status won't be able to write to it; its
15518# output is simply discarded.  So we exec the FD to /dev/null,
15519# effectively closing config.log, so it can be properly (re)opened and
15520# appended to by config.status.  When coming back to configure, we
15521# need to make the FD available again.
15522if test "$no_create" != yes; then
15523  ac_cs_success=:
15524  ac_config_status_args=
15525  test "$silent" = yes &&
15526    ac_config_status_args="$ac_config_status_args --quiet"
15527  exec 5>/dev/null
15528  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15529  exec 5>>config.log
15530  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15531  # would make configure fail if this is the last instruction.
15532  $ac_cs_success || { (exit 1); exit 1; }
15533fi
15534
15535
15536