1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59.
4#
5# Copyright (C) 2003 Free Software Foundation, Inc.
6# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ##
9## M4sh Initialization.  ##
10## --------------------- ##
11
12# Be Bourne compatible
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14  emulate sh
15  NULLCMD=:
16  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17  # is contrary to our usage.  Disable this feature.
18  alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20  set -o posix
21fi
22DUALCASE=1; export DUALCASE # for MKS sh
23
24# Support unset when possible.
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26  as_unset=unset
27else
28  as_unset=false
29fi
30
31
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
39for as_var in \
40  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42  LC_TELEPHONE LC_TIME
43do
44  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45    eval $as_var=C; export $as_var
46  else
47    $as_unset $as_var
48  fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53  as_expr=expr
54else
55  as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59  as_basename=basename
60else
61  as_basename=false
62fi
63
64
65# Name of the executable.
66as_me=`$as_basename "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68	 X"$0" : 'X\(//\)$' \| \
69	 X"$0" : 'X\(/\)$' \| \
70	 .     : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
74  	  /^X\/\(\/\).*/{ s//\1/; q; }
75  	  s/.*/./; q'`
76
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88  echo "#! /bin/sh" >conf$$.sh
89  echo  "exit 0"   >>conf$$.sh
90  chmod +x conf$$.sh
91  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92    PATH_SEPARATOR=';'
93  else
94    PATH_SEPARATOR=:
95  fi
96  rm -f conf$$.sh
97fi
98
99
100  as_lineno_1=$LINENO
101  as_lineno_2=$LINENO
102  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103  test "x$as_lineno_1" != "x$as_lineno_2" &&
104  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105  # Find who we are.  Look in the path if we contain no path at all
106  # relative or not.
107  case $0 in
108    *[\\/]* ) as_myself=$0 ;;
109    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112  IFS=$as_save_IFS
113  test -z "$as_dir" && as_dir=.
114  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117       ;;
118  esac
119  # We did not find ourselves, most probably we were run as `sh COMMAND'
120  # in which case we are not to be found in the path.
121  if test "x$as_myself" = x; then
122    as_myself=$0
123  fi
124  if test ! -f "$as_myself"; then
125    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126   { (exit 1); exit 1; }; }
127  fi
128  case $CONFIG_SHELL in
129  '')
130    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133  IFS=$as_save_IFS
134  test -z "$as_dir" && as_dir=.
135  for as_base in sh bash ksh sh5; do
136	 case $as_dir in
137	 /*)
138	   if ("$as_dir/$as_base" -c '
139  as_lineno_1=$LINENO
140  as_lineno_2=$LINENO
141  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142  test "x$as_lineno_1" != "x$as_lineno_2" &&
143  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146	     CONFIG_SHELL=$as_dir/$as_base
147	     export CONFIG_SHELL
148	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149	   fi;;
150	 esac
151       done
152done
153;;
154  esac
155
156  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157  # uniformly replaced by the line number.  The first 'sed' inserts a
158  # line-number line before each line; the second 'sed' does the real
159  # work.  The second script uses 'N' to pair each line-number line
160  # with the numbered line, and appends trailing '-' during
161  # substitution so that $LINENO is not a special case at line end.
162  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164  sed '=' <$as_myself |
165    sed '
166      N
167      s,$,-,
168      : loop
169      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170      t loop
171      s,-$,,
172      s,^['$as_cr_digits']*\n,,
173    ' >$as_me.lineno &&
174  chmod +x $as_me.lineno ||
175    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176   { (exit 1); exit 1; }; }
177
178  # Don't try to exec as it changes $[0], causing all sort of problems
179  # (the dirname of $[0] is not the place where we might find the
180  # original and so on.  Autoconf is especially sensible to this).
181  . ./$as_me.lineno
182  # Exit status is that of the last command.
183  exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188  *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T='	' ;;
190  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195  as_expr=expr
196else
197  as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203  # We could just check for DJGPP; but this test a) works b) is more generic
204  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205  if test -f conf$$.exe; then
206    # Don't use ln at all; we don't have any links
207    as_ln_s='cp -p'
208  else
209    as_ln_s='ln -s'
210  fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212  as_ln_s=ln
213else
214  as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
218if mkdir -p . 2>/dev/null; then
219  as_mkdir_p=:
220else
221  test -d ./-p && rmdir ./-p
222  as_mkdir_p=false
223fi
224
225as_executable_p="test -f"
226
227# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234# IFS
235# We need space, tab and new line, in precisely that order.
236as_nl='
237'
238IFS=" 	$as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243
244
245# Check that we are running under the correct shell.
246SHELL=${CONFIG_SHELL-/bin/sh}
247
248case X$ECHO in
249X*--fallback-echo)
250  # Remove one level of quotation (which was required for Make).
251  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252  ;;
253esac
254
255echo=${ECHO-echo}
256if test "X$1" = X--no-reexec; then
257  # Discard the --no-reexec flag, and continue.
258  shift
259elif test "X$1" = X--fallback-echo; then
260  # Avoid inline document here, it may be left over
261  :
262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263  # Yippee, $echo works!
264  :
265else
266  # Restart under the correct shell.
267  exec $SHELL "$0" --no-reexec ${1+"$@"}
268fi
269
270if test "X$1" = X--fallback-echo; then
271  # used as fallback echo
272  shift
273  cat <<EOF
274$*
275EOF
276  exit 0
277fi
278
279# The HP-UX ksh and POSIX shell print the target directory to stdout
280# if CDPATH is set.
281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283if test -z "$ECHO"; then
284if test "X${echo_test_string+set}" != Xset; then
285# find a string as large as possible, as long as the shell can cope with it
286  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289       echo_test_string=`eval $cmd` &&
290       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291    then
292      break
293    fi
294  done
295fi
296
297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299   test "X$echo_testing_string" = "X$echo_test_string"; then
300  :
301else
302  # The Solaris, AIX, and Digital Unix default echo programs unquote
303  # backslashes.  This makes it impossible to quote backslashes using
304  #   echo "$something" | sed 's/\\/\\\\/g'
305  #
306  # So, first we look for a working echo in the user's PATH.
307
308  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309  for dir in $PATH /usr/ucb; do
310    IFS="$lt_save_ifs"
311    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314       test "X$echo_testing_string" = "X$echo_test_string"; then
315      echo="$dir/echo"
316      break
317    fi
318  done
319  IFS="$lt_save_ifs"
320
321  if test "X$echo" = Xecho; then
322    # We didn't find a better echo, so look for alternatives.
323    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325       test "X$echo_testing_string" = "X$echo_test_string"; then
326      # This shell has a builtin print -r that does the trick.
327      echo='print -r'
328    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329	 test "X$CONFIG_SHELL" != X/bin/ksh; then
330      # If we have ksh, try running configure again with it.
331      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332      export ORIGINAL_CONFIG_SHELL
333      CONFIG_SHELL=/bin/ksh
334      export CONFIG_SHELL
335      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336    else
337      # Try using printf.
338      echo='printf %s\n'
339      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341	 test "X$echo_testing_string" = "X$echo_test_string"; then
342	# Cool, printf works
343	:
344      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345	   test "X$echo_testing_string" = 'X\t' &&
346	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347	   test "X$echo_testing_string" = "X$echo_test_string"; then
348	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349	export CONFIG_SHELL
350	SHELL="$CONFIG_SHELL"
351	export SHELL
352	echo="$CONFIG_SHELL $0 --fallback-echo"
353      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354	   test "X$echo_testing_string" = 'X\t' &&
355	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356	   test "X$echo_testing_string" = "X$echo_test_string"; then
357	echo="$CONFIG_SHELL $0 --fallback-echo"
358      else
359	# maybe with a smaller string...
360	prev=:
361
362	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364	  then
365	    break
366	  fi
367	  prev="$cmd"
368	done
369
370	if test "$prev" != 'sed 50q "$0"'; then
371	  echo_test_string=`eval $prev`
372	  export echo_test_string
373	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374	else
375	  # Oops.  We lost completely, so just stick with echo.
376	  echo=echo
377	fi
378      fi
379    fi
380  fi
381fi
382fi
383
384# Copy echo and quote the copy suitably for passing to libtool from
385# the Makefile, instead of quoting the original, which is used later.
386ECHO=$echo
387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389fi
390
391
392
393
394tagnames=${tagnames+${tagnames},}CXX
395
396tagnames=${tagnames+${tagnames},}F77
397
398# Name of the host.
399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400# so uname gets run too.
401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403exec 6>&1
404
405#
406# Initializations.
407#
408ac_default_prefix=/usr/local
409ac_config_libobj_dir=.
410cross_compiling=no
411subdirs=
412MFLAGS=
413MAKEFLAGS=
414SHELL=${CONFIG_SHELL-/bin/sh}
415
416# Maximum number of lines to put in a shell here document.
417# This variable seems obsolete.  It should probably be removed, and
418# only ac_max_sed_lines should be used.
419: ${ac_max_here_lines=38}
420
421# Identity of this package.
422PACKAGE_NAME=
423PACKAGE_TARNAME=
424PACKAGE_VERSION=
425PACKAGE_STRING=
426PACKAGE_BUGREPORT=
427
428ac_unique_file="src/tone_generate.c"
429# Factoring default headers for most tests.
430ac_includes_default="\
431#include <stdio.h>
432#if HAVE_SYS_TYPES_H
433# include <sys/types.h>
434#endif
435#if HAVE_SYS_STAT_H
436# include <sys/stat.h>
437#endif
438#if STDC_HEADERS
439# include <stdlib.h>
440# include <stddef.h>
441#else
442# if HAVE_STDLIB_H
443#  include <stdlib.h>
444# endif
445#endif
446#if HAVE_STRING_H
447# if !STDC_HEADERS && HAVE_MEMORY_H
448#  include <memory.h>
449# endif
450# include <string.h>
451#endif
452#if HAVE_STRINGS_H
453# include <strings.h>
454#endif
455#if HAVE_INTTYPES_H
456# include <inttypes.h>
457#else
458# if HAVE_STDINT_H
459#  include <stdint.h>
460# endif
461#endif
462#if HAVE_UNISTD_H
463# include <unistd.h>
464#endif"
465
466ac_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 SPANDSP_LT_CURRENT SPANDSP_LT_REVISION SPANDSP_LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 CPP EGREP SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS COND_DOC_TRUE COND_DOC_FALSE COND_TESTS_TRUE COND_TESTS_FALSE COND_TESTDATA_TRUE COND_TESTDATA_FALSE COND_MMX_TRUE COND_MMX_FALSE COND_SSE_TRUE COND_SSE_FALSE CC_FOR_BUILD CPPFLAGS_FOR_BUILD COMP_VENDOR_CFLAGS COMP_VENDOR_LDFLAGS TESTLIBS SPANDSP_USE_FIXED_POINT SPANDSP_MISALIGNED_ACCESS_FAILS INSERT_INTTYPES_HEADER INSERT_STDINT_HEADER INSERT_TGMATH_HEADER INSERT_MATH_HEADER LTLIBOBJS'
467ac_subst_files=''
468
469# Initialize some variables set by options.
470ac_init_help=
471ac_init_version=false
472# The variables have the same names as the options, with
473# dashes changed to underlines.
474cache_file=/dev/null
475exec_prefix=NONE
476no_create=
477no_recursion=
478prefix=NONE
479program_prefix=NONE
480program_suffix=NONE
481program_transform_name=s,x,x,
482silent=
483site=
484srcdir=
485verbose=
486x_includes=NONE
487x_libraries=NONE
488
489# Installation directory options.
490# These are left unexpanded so users can "make install exec_prefix=/foo"
491# and all the variables that are supposed to be based on exec_prefix
492# by default will actually change.
493# Use braces instead of parens because sh, perl, etc. also accept them.
494bindir='${exec_prefix}/bin'
495sbindir='${exec_prefix}/sbin'
496libexecdir='${exec_prefix}/libexec'
497datadir='${prefix}/share'
498sysconfdir='${prefix}/etc'
499sharedstatedir='${prefix}/com'
500localstatedir='${prefix}/var'
501libdir='${exec_prefix}/lib'
502includedir='${prefix}/include'
503oldincludedir='/usr/include'
504infodir='${prefix}/info'
505mandir='${prefix}/man'
506
507ac_prev=
508for ac_option
509do
510  # If the previous option needs an argument, assign it.
511  if test -n "$ac_prev"; then
512    eval "$ac_prev=\$ac_option"
513    ac_prev=
514    continue
515  fi
516
517  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519  # Accept the important Cygnus configure options, so we can diagnose typos.
520
521  case $ac_option in
522
523  -bindir | --bindir | --bindi | --bind | --bin | --bi)
524    ac_prev=bindir ;;
525  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526    bindir=$ac_optarg ;;
527
528  -build | --build | --buil | --bui | --bu)
529    ac_prev=build_alias ;;
530  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531    build_alias=$ac_optarg ;;
532
533  -cache-file | --cache-file | --cache-fil | --cache-fi \
534  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535    ac_prev=cache_file ;;
536  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538    cache_file=$ac_optarg ;;
539
540  --config-cache | -C)
541    cache_file=config.cache ;;
542
543  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544    ac_prev=datadir ;;
545  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546  | --da=*)
547    datadir=$ac_optarg ;;
548
549  -disable-* | --disable-*)
550    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551    # Reject names that are not valid shell variable names.
552    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554   { (exit 1); exit 1; }; }
555    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556    eval "enable_$ac_feature=no" ;;
557
558  -enable-* | --enable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    case $ac_option in
566      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567      *) ac_optarg=yes ;;
568    esac
569    eval "enable_$ac_feature='$ac_optarg'" ;;
570
571  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573  | --exec | --exe | --ex)
574    ac_prev=exec_prefix ;;
575  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577  | --exec=* | --exe=* | --ex=*)
578    exec_prefix=$ac_optarg ;;
579
580  -gas | --gas | --ga | --g)
581    # Obsolete; use --with-gas.
582    with_gas=yes ;;
583
584  -help | --help | --hel | --he | -h)
585    ac_init_help=long ;;
586  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587    ac_init_help=recursive ;;
588  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589    ac_init_help=short ;;
590
591  -host | --host | --hos | --ho)
592    ac_prev=host_alias ;;
593  -host=* | --host=* | --hos=* | --ho=*)
594    host_alias=$ac_optarg ;;
595
596  -includedir | --includedir | --includedi | --included | --include \
597  | --includ | --inclu | --incl | --inc)
598    ac_prev=includedir ;;
599  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600  | --includ=* | --inclu=* | --incl=* | --inc=*)
601    includedir=$ac_optarg ;;
602
603  -infodir | --infodir | --infodi | --infod | --info | --inf)
604    ac_prev=infodir ;;
605  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606    infodir=$ac_optarg ;;
607
608  -libdir | --libdir | --libdi | --libd)
609    ac_prev=libdir ;;
610  -libdir=* | --libdir=* | --libdi=* | --libd=*)
611    libdir=$ac_optarg ;;
612
613  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614  | --libexe | --libex | --libe)
615    ac_prev=libexecdir ;;
616  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617  | --libexe=* | --libex=* | --libe=*)
618    libexecdir=$ac_optarg ;;
619
620  -localstatedir | --localstatedir | --localstatedi | --localstated \
621  | --localstate | --localstat | --localsta | --localst \
622  | --locals | --local | --loca | --loc | --lo)
623    ac_prev=localstatedir ;;
624  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627    localstatedir=$ac_optarg ;;
628
629  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630    ac_prev=mandir ;;
631  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632    mandir=$ac_optarg ;;
633
634  -nfp | --nfp | --nf)
635    # Obsolete; use --without-fp.
636    with_fp=no ;;
637
638  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639  | --no-cr | --no-c | -n)
640    no_create=yes ;;
641
642  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644    no_recursion=yes ;;
645
646  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648  | --oldin | --oldi | --old | --ol | --o)
649    ac_prev=oldincludedir ;;
650  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653    oldincludedir=$ac_optarg ;;
654
655  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656    ac_prev=prefix ;;
657  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658    prefix=$ac_optarg ;;
659
660  -program-prefix | --program-prefix | --program-prefi | --program-pref \
661  | --program-pre | --program-pr | --program-p)
662    ac_prev=program_prefix ;;
663  -program-prefix=* | --program-prefix=* | --program-prefi=* \
664  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665    program_prefix=$ac_optarg ;;
666
667  -program-suffix | --program-suffix | --program-suffi | --program-suff \
668  | --program-suf | --program-su | --program-s)
669    ac_prev=program_suffix ;;
670  -program-suffix=* | --program-suffix=* | --program-suffi=* \
671  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672    program_suffix=$ac_optarg ;;
673
674  -program-transform-name | --program-transform-name \
675  | --program-transform-nam | --program-transform-na \
676  | --program-transform-n | --program-transform- \
677  | --program-transform | --program-transfor \
678  | --program-transfo | --program-transf \
679  | --program-trans | --program-tran \
680  | --progr-tra | --program-tr | --program-t)
681    ac_prev=program_transform_name ;;
682  -program-transform-name=* | --program-transform-name=* \
683  | --program-transform-nam=* | --program-transform-na=* \
684  | --program-transform-n=* | --program-transform-=* \
685  | --program-transform=* | --program-transfor=* \
686  | --program-transfo=* | --program-transf=* \
687  | --program-trans=* | --program-tran=* \
688  | --progr-tra=* | --program-tr=* | --program-t=*)
689    program_transform_name=$ac_optarg ;;
690
691  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692  | -silent | --silent | --silen | --sile | --sil)
693    silent=yes ;;
694
695  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696    ac_prev=sbindir ;;
697  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698  | --sbi=* | --sb=*)
699    sbindir=$ac_optarg ;;
700
701  -sharedstatedir | --sharedstatedir | --sharedstatedi \
702  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703  | --sharedst | --shareds | --shared | --share | --shar \
704  | --sha | --sh)
705    ac_prev=sharedstatedir ;;
706  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709  | --sha=* | --sh=*)
710    sharedstatedir=$ac_optarg ;;
711
712  -site | --site | --sit)
713    ac_prev=site ;;
714  -site=* | --site=* | --sit=*)
715    site=$ac_optarg ;;
716
717  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718    ac_prev=srcdir ;;
719  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720    srcdir=$ac_optarg ;;
721
722  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723  | --syscon | --sysco | --sysc | --sys | --sy)
724    ac_prev=sysconfdir ;;
725  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727    sysconfdir=$ac_optarg ;;
728
729  -target | --target | --targe | --targ | --tar | --ta | --t)
730    ac_prev=target_alias ;;
731  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732    target_alias=$ac_optarg ;;
733
734  -v | -verbose | --verbose | --verbos | --verbo | --verb)
735    verbose=yes ;;
736
737  -version | --version | --versio | --versi | --vers | -V)
738    ac_init_version=: ;;
739
740  -with-* | --with-*)
741    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742    # Reject names that are not valid shell variable names.
743    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744      { echo "$as_me: error: invalid package name: $ac_package" >&2
745   { (exit 1); exit 1; }; }
746    ac_package=`echo $ac_package| sed 's/-/_/g'`
747    case $ac_option in
748      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749      *) ac_optarg=yes ;;
750    esac
751    eval "with_$ac_package='$ac_optarg'" ;;
752
753  -without-* | --without-*)
754    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755    # Reject names that are not valid shell variable names.
756    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757      { echo "$as_me: error: invalid package name: $ac_package" >&2
758   { (exit 1); exit 1; }; }
759    ac_package=`echo $ac_package | sed 's/-/_/g'`
760    eval "with_$ac_package=no" ;;
761
762  --x)
763    # Obsolete; use --with-x.
764    with_x=yes ;;
765
766  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767  | --x-incl | --x-inc | --x-in | --x-i)
768    ac_prev=x_includes ;;
769  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771    x_includes=$ac_optarg ;;
772
773  -x-libraries | --x-libraries | --x-librarie | --x-librari \
774  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775    ac_prev=x_libraries ;;
776  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778    x_libraries=$ac_optarg ;;
779
780  -*) { echo "$as_me: error: unrecognized option: $ac_option
781Try \`$0 --help' for more information." >&2
782   { (exit 1); exit 1; }; }
783    ;;
784
785  *=*)
786    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787    # Reject names that are not valid shell variable names.
788    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790   { (exit 1); exit 1; }; }
791    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792    eval "$ac_envvar='$ac_optarg'"
793    export $ac_envvar ;;
794
795  *)
796    # FIXME: should be removed in autoconf 3.0.
797    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801    ;;
802
803  esac
804done
805
806if test -n "$ac_prev"; then
807  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808  { echo "$as_me: error: missing argument to $ac_option" >&2
809   { (exit 1); exit 1; }; }
810fi
811
812# Be sure to have absolute paths.
813for ac_var in exec_prefix prefix
814do
815  eval ac_val=$`echo $ac_var`
816  case $ac_val in
817    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819   { (exit 1); exit 1; }; };;
820  esac
821done
822
823# Be sure to have absolute paths.
824for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825	      localstatedir libdir includedir oldincludedir infodir mandir
826do
827  eval ac_val=$`echo $ac_var`
828  case $ac_val in
829    [\\/$]* | ?:[\\/]* ) ;;
830    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831   { (exit 1); exit 1; }; };;
832  esac
833done
834
835# There might be people who depend on the old broken behavior: `$host'
836# used to hold the argument of --host etc.
837# FIXME: To remove some day.
838build=$build_alias
839host=$host_alias
840target=$target_alias
841
842# FIXME: To remove some day.
843if test "x$host_alias" != x; then
844  if test "x$build_alias" = x; then
845    cross_compiling=maybe
846    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847    If a cross compiler is detected then cross compile mode will be used." >&2
848  elif test "x$build_alias" != "x$host_alias"; then
849    cross_compiling=yes
850  fi
851fi
852
853ac_tool_prefix=
854test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856test "$silent" = yes && exec 6>/dev/null
857
858
859# Find the source files, if location was not specified.
860if test -z "$srcdir"; then
861  ac_srcdir_defaulted=yes
862  # Try the directory containing this script, then its parent.
863  ac_confdir=`(dirname "$0") 2>/dev/null ||
864$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865	 X"$0" : 'X\(//\)[^/]' \| \
866	 X"$0" : 'X\(//\)$' \| \
867	 X"$0" : 'X\(/\)' \| \
868	 .     : '\(.\)' 2>/dev/null ||
869echo X"$0" |
870    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872  	  /^X\(\/\/\)$/{ s//\1/; q; }
873  	  /^X\(\/\).*/{ s//\1/; q; }
874  	  s/.*/./; q'`
875  srcdir=$ac_confdir
876  if test ! -r $srcdir/$ac_unique_file; then
877    srcdir=..
878  fi
879else
880  ac_srcdir_defaulted=no
881fi
882if test ! -r $srcdir/$ac_unique_file; then
883  if test "$ac_srcdir_defaulted" = yes; then
884    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885   { (exit 1); exit 1; }; }
886  else
887    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888   { (exit 1); exit 1; }; }
889  fi
890fi
891(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893   { (exit 1); exit 1; }; }
894srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895ac_env_build_alias_set=${build_alias+set}
896ac_env_build_alias_value=$build_alias
897ac_cv_env_build_alias_set=${build_alias+set}
898ac_cv_env_build_alias_value=$build_alias
899ac_env_host_alias_set=${host_alias+set}
900ac_env_host_alias_value=$host_alias
901ac_cv_env_host_alias_set=${host_alias+set}
902ac_cv_env_host_alias_value=$host_alias
903ac_env_target_alias_set=${target_alias+set}
904ac_env_target_alias_value=$target_alias
905ac_cv_env_target_alias_set=${target_alias+set}
906ac_cv_env_target_alias_value=$target_alias
907ac_env_CC_set=${CC+set}
908ac_env_CC_value=$CC
909ac_cv_env_CC_set=${CC+set}
910ac_cv_env_CC_value=$CC
911ac_env_CFLAGS_set=${CFLAGS+set}
912ac_env_CFLAGS_value=$CFLAGS
913ac_cv_env_CFLAGS_set=${CFLAGS+set}
914ac_cv_env_CFLAGS_value=$CFLAGS
915ac_env_LDFLAGS_set=${LDFLAGS+set}
916ac_env_LDFLAGS_value=$LDFLAGS
917ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918ac_cv_env_LDFLAGS_value=$LDFLAGS
919ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920ac_env_CPPFLAGS_value=$CPPFLAGS
921ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923ac_env_CXX_set=${CXX+set}
924ac_env_CXX_value=$CXX
925ac_cv_env_CXX_set=${CXX+set}
926ac_cv_env_CXX_value=$CXX
927ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_env_CXXFLAGS_value=$CXXFLAGS
929ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931ac_env_CPP_set=${CPP+set}
932ac_env_CPP_value=$CPP
933ac_cv_env_CPP_set=${CPP+set}
934ac_cv_env_CPP_value=$CPP
935ac_env_CXXCPP_set=${CXXCPP+set}
936ac_env_CXXCPP_value=$CXXCPP
937ac_cv_env_CXXCPP_set=${CXXCPP+set}
938ac_cv_env_CXXCPP_value=$CXXCPP
939ac_env_F77_set=${F77+set}
940ac_env_F77_value=$F77
941ac_cv_env_F77_set=${F77+set}
942ac_cv_env_F77_value=$F77
943ac_env_FFLAGS_set=${FFLAGS+set}
944ac_env_FFLAGS_value=$FFLAGS
945ac_cv_env_FFLAGS_set=${FFLAGS+set}
946ac_cv_env_FFLAGS_value=$FFLAGS
947
948#
949# Report the --help message.
950#
951if test "$ac_init_help" = "long"; then
952  # Omit some internal or obsolete options to make the list less imposing.
953  # This message is too long to be a string in the A/UX 3.1 sh.
954  cat <<_ACEOF
955\`configure' configures this package to adapt to many kinds of systems.
956
957Usage: $0 [OPTION]... [VAR=VALUE]...
958
959To assign environment variables (e.g., CC, CFLAGS...), specify them as
960VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962Defaults for the options are specified in brackets.
963
964Configuration:
965  -h, --help              display this help and exit
966      --help=short        display options specific to this package
967      --help=recursive    display the short help of all the included packages
968  -V, --version           display version information and exit
969  -q, --quiet, --silent   do not print \`checking...' messages
970      --cache-file=FILE   cache test results in FILE [disabled]
971  -C, --config-cache      alias for \`--cache-file=config.cache'
972  -n, --no-create         do not create output files
973      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975_ACEOF
976
977  cat <<_ACEOF
978Installation directories:
979  --prefix=PREFIX         install architecture-independent files in PREFIX
980			  [$ac_default_prefix]
981  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982			  [PREFIX]
983
984By default, \`make install' will install all the files in
985\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987for instance \`--prefix=\$HOME'.
988
989For better control, use the options below.
990
991Fine tuning of the installation directories:
992  --bindir=DIR           user executables [EPREFIX/bin]
993  --sbindir=DIR          system admin executables [EPREFIX/sbin]
994  --libexecdir=DIR       program executables [EPREFIX/libexec]
995  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999  --libdir=DIR           object code libraries [EPREFIX/lib]
1000  --includedir=DIR       C header files [PREFIX/include]
1001  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002  --infodir=DIR          info documentation [PREFIX/info]
1003  --mandir=DIR           man documentation [PREFIX/man]
1004_ACEOF
1005
1006  cat <<\_ACEOF
1007
1008Program names:
1009  --program-prefix=PREFIX            prepend PREFIX to installed program names
1010  --program-suffix=SUFFIX            append SUFFIX to installed program names
1011  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013System types:
1014  --build=BUILD     configure for building on BUILD [guessed]
1015  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016_ACEOF
1017fi
1018
1019if test -n "$ac_init_help"; then
1020
1021  cat <<\_ACEOF
1022
1023Optional Features:
1024  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026  --disable-dependency-tracking  speeds up one-time build
1027  --enable-dependency-tracking   do not reject slow dependency extractors
1028  --enable-shared[=PKGS]
1029                          build shared libraries [default=yes]
1030  --enable-static[=PKGS]
1031                          build static libraries [default=yes]
1032  --enable-fast-install[=PKGS]
1033                          optimize for fast installation [default=yes]
1034  --disable-libtool-lock  avoid locking (might break parallel builds)
1035  --enable-doc         Build the documentation
1036  --enable-tests       Build the test programs
1037  --enable-test-data   Build TIFF test files for some ITU test images
1038  --enable-mmx         Enable MMX support
1039  --enable-sse         Enable SSE support
1040  --enable-fixed-point Enable fixed point support
1041
1042Optional Packages:
1043  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1044  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1045  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1046  --with-pic              try to use only PIC/non-PIC objects [default=use
1047                          both]
1048  --with-tags[=TAGS]
1049                          include additional configurations [automatic]
1050
1051Some influential environment variables:
1052  CC          C compiler command
1053  CFLAGS      C compiler flags
1054  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1055              nonstandard directory <lib dir>
1056  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1057              headers in a nonstandard directory <include dir>
1058  CXX         C++ compiler command
1059  CXXFLAGS    C++ compiler flags
1060  CPP         C preprocessor
1061  CXXCPP      C++ preprocessor
1062  F77         Fortran 77 compiler command
1063  FFLAGS      Fortran 77 compiler flags
1064
1065Use these variables to override the choices made by `configure' or to help
1066it to find libraries and programs with nonstandard names/locations.
1067
1068_ACEOF
1069fi
1070
1071if test "$ac_init_help" = "recursive"; then
1072  # If there are subdirs, report their specific --help.
1073  ac_popdir=`pwd`
1074  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1075    test -d $ac_dir || continue
1076    ac_builddir=.
1077
1078if test "$ac_dir" != .; then
1079  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1080  # A "../" for each directory in $ac_dir_suffix.
1081  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1082else
1083  ac_dir_suffix= ac_top_builddir=
1084fi
1085
1086case $srcdir in
1087  .)  # No --srcdir option.  We are building in place.
1088    ac_srcdir=.
1089    if test -z "$ac_top_builddir"; then
1090       ac_top_srcdir=.
1091    else
1092       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1093    fi ;;
1094  [\\/]* | ?:[\\/]* )  # Absolute path.
1095    ac_srcdir=$srcdir$ac_dir_suffix;
1096    ac_top_srcdir=$srcdir ;;
1097  *) # Relative path.
1098    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1099    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1100esac
1101
1102# Do not use `cd foo && pwd` to compute absolute paths, because
1103# the directories may not exist.
1104case `pwd` in
1105.) ac_abs_builddir="$ac_dir";;
1106*)
1107  case "$ac_dir" in
1108  .) ac_abs_builddir=`pwd`;;
1109  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1110  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1111  esac;;
1112esac
1113case $ac_abs_builddir in
1114.) ac_abs_top_builddir=${ac_top_builddir}.;;
1115*)
1116  case ${ac_top_builddir}. in
1117  .) ac_abs_top_builddir=$ac_abs_builddir;;
1118  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1119  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1120  esac;;
1121esac
1122case $ac_abs_builddir in
1123.) ac_abs_srcdir=$ac_srcdir;;
1124*)
1125  case $ac_srcdir in
1126  .) ac_abs_srcdir=$ac_abs_builddir;;
1127  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1128  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1129  esac;;
1130esac
1131case $ac_abs_builddir in
1132.) ac_abs_top_srcdir=$ac_top_srcdir;;
1133*)
1134  case $ac_top_srcdir in
1135  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1136  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1137  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1138  esac;;
1139esac
1140
1141    cd $ac_dir
1142    # Check for guested configure; otherwise get Cygnus style configure.
1143    if test -f $ac_srcdir/configure.gnu; then
1144      echo
1145      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1146    elif test -f $ac_srcdir/configure; then
1147      echo
1148      $SHELL $ac_srcdir/configure  --help=recursive
1149    elif test -f $ac_srcdir/configure.ac ||
1150	   test -f $ac_srcdir/configure.in; then
1151      echo
1152      $ac_configure --help
1153    else
1154      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1155    fi
1156    cd $ac_popdir
1157  done
1158fi
1159
1160test -n "$ac_init_help" && exit 0
1161if $ac_init_version; then
1162  cat <<\_ACEOF
1163
1164Copyright (C) 2003 Free Software Foundation, Inc.
1165This configure script is free software; the Free Software Foundation
1166gives unlimited permission to copy, distribute and modify it.
1167_ACEOF
1168  exit 0
1169fi
1170exec 5>config.log
1171cat >&5 <<_ACEOF
1172This file contains any messages produced by compilers while
1173running configure, to aid debugging if configure makes a mistake.
1174
1175It was created by $as_me, which was
1176generated by GNU Autoconf 2.59.  Invocation command line was
1177
1178  $ $0 $@
1179
1180_ACEOF
1181{
1182cat <<_ASUNAME
1183## --------- ##
1184## Platform. ##
1185## --------- ##
1186
1187hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1188uname -m = `(uname -m) 2>/dev/null || echo unknown`
1189uname -r = `(uname -r) 2>/dev/null || echo unknown`
1190uname -s = `(uname -s) 2>/dev/null || echo unknown`
1191uname -v = `(uname -v) 2>/dev/null || echo unknown`
1192
1193/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1194/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1195
1196/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1197/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1198/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1199hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1200/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1201/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1202/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1203
1204_ASUNAME
1205
1206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1207for as_dir in $PATH
1208do
1209  IFS=$as_save_IFS
1210  test -z "$as_dir" && as_dir=.
1211  echo "PATH: $as_dir"
1212done
1213
1214} >&5
1215
1216cat >&5 <<_ACEOF
1217
1218
1219## ----------- ##
1220## Core tests. ##
1221## ----------- ##
1222
1223_ACEOF
1224
1225
1226# Keep a trace of the command line.
1227# Strip out --no-create and --no-recursion so they do not pile up.
1228# Strip out --silent because we don't want to record it for future runs.
1229# Also quote any args containing shell meta-characters.
1230# Make two passes to allow for proper duplicate-argument suppression.
1231ac_configure_args=
1232ac_configure_args0=
1233ac_configure_args1=
1234ac_sep=
1235ac_must_keep_next=false
1236for ac_pass in 1 2
1237do
1238  for ac_arg
1239  do
1240    case $ac_arg in
1241    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1242    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1243    | -silent | --silent | --silen | --sile | --sil)
1244      continue ;;
1245    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1246      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1247    esac
1248    case $ac_pass in
1249    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1250    2)
1251      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1252      if test $ac_must_keep_next = true; then
1253	ac_must_keep_next=false # Got value, back to normal.
1254      else
1255	case $ac_arg in
1256	  *=* | --config-cache | -C | -disable-* | --disable-* \
1257	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1258	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1259	  | -with-* | --with-* | -without-* | --without-* | --x)
1260	    case "$ac_configure_args0 " in
1261	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1262	    esac
1263	    ;;
1264	  -* ) ac_must_keep_next=true ;;
1265	esac
1266      fi
1267      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1268      # Get rid of the leading space.
1269      ac_sep=" "
1270      ;;
1271    esac
1272  done
1273done
1274$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1275$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1276
1277# When interrupted or exit'd, cleanup temporary files, and complete
1278# config.log.  We remove comments because anyway the quotes in there
1279# would cause problems or look ugly.
1280# WARNING: Be sure not to use single quotes in there, as some shells,
1281# such as our DU 5.0 friend, will then `close' the trap.
1282trap 'exit_status=$?
1283  # Save into config.log some information that might help in debugging.
1284  {
1285    echo
1286
1287    cat <<\_ASBOX
1288## ---------------- ##
1289## Cache variables. ##
1290## ---------------- ##
1291_ASBOX
1292    echo
1293    # The following way of writing the cache mishandles newlines in values,
1294{
1295  (set) 2>&1 |
1296    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1297    *ac_space=\ *)
1298      sed -n \
1299	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1300	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1301      ;;
1302    *)
1303      sed -n \
1304	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1305      ;;
1306    esac;
1307}
1308    echo
1309
1310    cat <<\_ASBOX
1311## ----------------- ##
1312## Output variables. ##
1313## ----------------- ##
1314_ASBOX
1315    echo
1316    for ac_var in $ac_subst_vars
1317    do
1318      eval ac_val=$`echo $ac_var`
1319      echo "$ac_var='"'"'$ac_val'"'"'"
1320    done | sort
1321    echo
1322
1323    if test -n "$ac_subst_files"; then
1324      cat <<\_ASBOX
1325## ------------- ##
1326## Output files. ##
1327## ------------- ##
1328_ASBOX
1329      echo
1330      for ac_var in $ac_subst_files
1331      do
1332	eval ac_val=$`echo $ac_var`
1333	echo "$ac_var='"'"'$ac_val'"'"'"
1334      done | sort
1335      echo
1336    fi
1337
1338    if test -s confdefs.h; then
1339      cat <<\_ASBOX
1340## ----------- ##
1341## confdefs.h. ##
1342## ----------- ##
1343_ASBOX
1344      echo
1345      sed "/^$/d" confdefs.h | sort
1346      echo
1347    fi
1348    test "$ac_signal" != 0 &&
1349      echo "$as_me: caught signal $ac_signal"
1350    echo "$as_me: exit $exit_status"
1351  } >&5
1352  rm -f core *.core &&
1353  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1354    exit $exit_status
1355     ' 0
1356for ac_signal in 1 2 13 15; do
1357  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1358done
1359ac_signal=0
1360
1361# confdefs.h avoids OS command line length limits that DEFS can exceed.
1362rm -rf conftest* confdefs.h
1363# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1364echo >confdefs.h
1365
1366# Predefined preprocessor variables.
1367
1368cat >>confdefs.h <<_ACEOF
1369#define PACKAGE_NAME "$PACKAGE_NAME"
1370_ACEOF
1371
1372
1373cat >>confdefs.h <<_ACEOF
1374#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1375_ACEOF
1376
1377
1378cat >>confdefs.h <<_ACEOF
1379#define PACKAGE_VERSION "$PACKAGE_VERSION"
1380_ACEOF
1381
1382
1383cat >>confdefs.h <<_ACEOF
1384#define PACKAGE_STRING "$PACKAGE_STRING"
1385_ACEOF
1386
1387
1388cat >>confdefs.h <<_ACEOF
1389#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1390_ACEOF
1391
1392
1393# Let the site file select an alternate cache file if it wants to.
1394# Prefer explicitly selected file to automatically selected ones.
1395if test -z "$CONFIG_SITE"; then
1396  if test "x$prefix" != xNONE; then
1397    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1398  else
1399    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1400  fi
1401fi
1402for ac_site_file in $CONFIG_SITE; do
1403  if test -r "$ac_site_file"; then
1404    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1405echo "$as_me: loading site script $ac_site_file" >&6;}
1406    sed 's/^/| /' "$ac_site_file" >&5
1407    . "$ac_site_file"
1408  fi
1409done
1410
1411if test -r "$cache_file"; then
1412  # Some versions of bash will fail to source /dev/null (special
1413  # files actually), so we avoid doing that.
1414  if test -f "$cache_file"; then
1415    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1416echo "$as_me: loading cache $cache_file" >&6;}
1417    case $cache_file in
1418      [\\/]* | ?:[\\/]* ) . $cache_file;;
1419      *)                      . ./$cache_file;;
1420    esac
1421  fi
1422else
1423  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1424echo "$as_me: creating cache $cache_file" >&6;}
1425  >$cache_file
1426fi
1427
1428# Check that the precious variables saved in the cache have kept the same
1429# value.
1430ac_cache_corrupted=false
1431for ac_var in `(set) 2>&1 |
1432	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1433  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1434  eval ac_new_set=\$ac_env_${ac_var}_set
1435  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1436  eval ac_new_val="\$ac_env_${ac_var}_value"
1437  case $ac_old_set,$ac_new_set in
1438    set,)
1439      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1440echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1441      ac_cache_corrupted=: ;;
1442    ,set)
1443      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1444echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1445      ac_cache_corrupted=: ;;
1446    ,);;
1447    *)
1448      if test "x$ac_old_val" != "x$ac_new_val"; then
1449	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1450echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1451	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1452echo "$as_me:   former value:  $ac_old_val" >&2;}
1453	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1454echo "$as_me:   current value: $ac_new_val" >&2;}
1455	ac_cache_corrupted=:
1456      fi;;
1457  esac
1458  # Pass precious variables to config.status.
1459  if test "$ac_new_set" = set; then
1460    case $ac_new_val in
1461    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1462      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1463    *) ac_arg=$ac_var=$ac_new_val ;;
1464    esac
1465    case " $ac_configure_args " in
1466      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1467      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1468    esac
1469  fi
1470done
1471if $ac_cache_corrupted; then
1472  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1473echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1474  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1475echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1476   { (exit 1); exit 1; }; }
1477fi
1478
1479ac_ext=c
1480ac_cpp='$CPP $CPPFLAGS'
1481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1483ac_compiler_gnu=$ac_cv_c_compiler_gnu
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504# ===========================================================================
1505#           http://autoconf-archive.cryp.to/ax_compiler_vendor.html
1506# ===========================================================================
1507#
1508# SYNOPSIS
1509#
1510#   AX_COMPILER_VENDOR
1511#
1512# DESCRIPTION
1513#
1514#   Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, sun,
1515#   hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, microsoft,
1516#   watcom, etc. The vendor is returned in the cache variable
1517#   $ax_cv_c_compiler_vendor for C and $ax_cv_cxx_compiler_vendor for C++.
1518#
1519# LAST MODIFICATION
1520#
1521#   2008-04-12
1522#
1523# COPYLEFT
1524#
1525#   Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1526#   Copyright (c) 2008 Matteo Frigo
1527#
1528#   This program is free software: you can redistribute it and/or modify it
1529#   under the terms of the GNU General Public License as published by the
1530#   Free Software Foundation, either version 3 of the License, or (at your
1531#   option) any later version.
1532#
1533#   This program is distributed in the hope that it will be useful, but
1534#   WITHOUT ANY WARRANTY; without even the implied warranty of
1535#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1536#   Public License for more details.
1537#
1538#   You should have received a copy of the GNU General Public License along
1539#   with this program. If not, see <http://www.gnu.org/licenses/>.
1540#
1541#   As a special exception, the respective Autoconf Macro's copyright owner
1542#   gives unlimited permission to copy, distribute and modify the configure
1543#   scripts that are the output of Autoconf when processing the Macro. You
1544#   need not follow the terms of the GNU General Public License when using
1545#   or distributing such scripts, even though portions of the text of the
1546#   Macro appear in them. The GNU General Public License (GPL) does govern
1547#   all other use of the material that constitutes the Autoconf Macro.
1548#
1549#   This special exception to the GPL applies to versions of the Autoconf
1550#   Macro released by the Autoconf Macro Archive. When you make and
1551#   distribute a modified version of the Autoconf Macro, you may extend this
1552#   special exception to the GPL to apply to your modified version as well.
1553
1554
1555
1556# AX_CHECK_REAL_FILE(FILE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1557# ------------------------------------------------------------------
1558#
1559# Check for the existence of FILE, and make sure it is a real file or
1560# directory, and not a symbolic link.
1561#
1562# AX_CHECK_REAL_FILE
1563
1564# AX_FIXED_POINT_MACHINE(MACHINE, [ACTION-IF-FIXED-POINT], [ACTION-IF-NOT-FIXED-POINT])
1565# -------------------------------------------------------------------------------------
1566#
1567# Check if a specified machine type is a fixed point only machine. That is, if it lacks
1568# fast floating point support.
1569#
1570# This is a simple lookup amongst machines known to the current autotools. So far we deal
1571# with the embedded ARM, Blackfin, MIPS, TI DSP and XScale processors as things which lack
1572# fast hardware floating point.
1573#
1574# Other candidates would be the small embedded Power PCs.
1575#
1576# AX_FIXED_POINT_MACHINE
1577
1578# AX_MISALIGNED_ACCESS_FAILS(MACHINE, [ACTION-IF-MISALIGNED-FAILS], [ACTION-IF-MISALIGNED-OK])
1579# -------------------------------------------------------------------------------------
1580#
1581# Check if a specified machine type cannot handle misaligned data. That is, multi-byte data
1582# types which are not properly aligned in memory fail. Many machines are happy to work with
1583# misaligned data, but slowing down a bit. Other machines just won't tolerate such data.
1584#
1585# This is a simple lookup amongst machines known to the current autotools. So far we only deal
1586# with the ARM and sparc.
1587# A lookup is used, as many of the devices which cannot handled misaligned access are embedded
1588# processors, for which the code normally be cross-compiled.
1589#
1590# MISALIGNED_ACCESS_FAILS
1591
1592# @synopsis AX_C99_FLEXIBLE_ARRAY
1593#
1594# Does the compiler support the 1999 ISO C Standard "struct hack".
1595# @version 1.1    Mar 15 2004
1596# @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1597#
1598# Permission to use, copy, modify, distribute, and sell this file for any
1599# purpose is hereby granted without fee, provided that the above copyright
1600# and this permission notice appear in all copies.  No representations are
1601# made about the suitability of this software for any purpose.  It is
1602# provided "as is" without express or implied warranty.
1603
1604 # AX_C99_FLEXIBLE_ARRAY
1605
1606# @synopsis AX_C99_FUNC_LRINT
1607#
1608# Check whether C99's lrint function is available.
1609# @version 1.3    Feb 12 2002
1610# @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1611#
1612# Permission to use, copy, modify, distribute, and sell this file for any
1613# purpose is hereby granted without fee, provided that the above copyright
1614# and this permission notice appear in all copies.  No representations are
1615# made about the suitability of this software for any purpose.  It is
1616# provided "as is" without express or implied warranty.
1617#
1618# AX_C99_FUNC_LRINT
1619
1620# @synopsis AX_C99_FUNC_LRINTF
1621#
1622# Check whether C99's lrintf function is available.
1623# @version 1.3    Feb 12 2002
1624# @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1625#
1626# Permission to use, copy, modify, distribute, and sell this file for any
1627# purpose is hereby granted without fee, provided that the above copyright
1628# and this permission notice appear in all copies.  No representations are
1629# made about the suitability of this software for any purpose.  It is
1630# provided "as is" without express or implied warranty.
1631#
1632# AX_C99_FUNC_LRINTF
1633
1634# @synopsis AX_C99_FUNC_LLRINT
1635#
1636# Check whether C99's llrint function is available.
1637# @version 1.1    Sep 30 2002
1638# @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1639#
1640# Permission to use, copy, modify, distribute, and sell this file for any
1641# purpose is hereby granted without fee, provided that the above copyright
1642# and this permission notice appear in all copies.  No representations are
1643# made about the suitability of this software for any purpose.  It is
1644# provided "as is" without express or implied warranty.
1645#
1646# AX_C99_FUNC_LLRINT
1647
1648
1649# @synopsis AX_C99_FUNC_LLRINTF
1650#
1651# Check whether C99's llrintf function is available.
1652# @version 1.1    Sep 30 2002
1653# @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1654#
1655# Permission to use, copy, modify, distribute, and sell this file for any
1656# purpose is hereby granted without fee, provided that the above copyright
1657# and this permission notice appear in all copies.  No representations are
1658# made about the suitability of this software for any purpose.  It is
1659# provided "as is" without express or implied warranty.
1660#
1661# AX_C99_FUNC_LLRINTF
1662
1663
1664SPANDSP_MAJOR_VERSION=0
1665SPANDSP_MINOR_VERSION=0
1666SPANDSP_MICRO_VERSION=5
1667
1668SPANDSP_LT_CURRENT=1
1669SPANDSP_LT_REVISION=0
1670SPANDSP_LT_AGE=0
1671
1672VERSION=$SPANDSP_MAJOR_VERSION.$SPANDSP_MINOR_VERSION.$SPANDSP_MICRO_VERSION
1673PACKAGE=spandsp
1674
1675
1676
1677
1678
1679
1680ac_aux_dir=
1681for ac_dir in config $srcdir/config; do
1682  if test -f $ac_dir/install-sh; then
1683    ac_aux_dir=$ac_dir
1684    ac_install_sh="$ac_aux_dir/install-sh -c"
1685    break
1686  elif test -f $ac_dir/install.sh; then
1687    ac_aux_dir=$ac_dir
1688    ac_install_sh="$ac_aux_dir/install.sh -c"
1689    break
1690  elif test -f $ac_dir/shtool; then
1691    ac_aux_dir=$ac_dir
1692    ac_install_sh="$ac_aux_dir/shtool install -c"
1693    break
1694  fi
1695done
1696if test -z "$ac_aux_dir"; then
1697  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1698echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1699   { (exit 1); exit 1; }; }
1700fi
1701ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1702ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1703ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1704
1705          ac_config_headers="$ac_config_headers src/config.h:config-h.in"
1706
1707am__api_version="1.9"
1708# Find a good install program.  We prefer a C program (faster),
1709# so one script is as good as another.  But avoid the broken or
1710# incompatible versions:
1711# SysV /etc/install, /usr/sbin/install
1712# SunOS /usr/etc/install
1713# IRIX /sbin/install
1714# AIX /bin/install
1715# AmigaOS /C/install, which installs bootblocks on floppy discs
1716# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1717# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1718# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1719# OS/2's system install, which has a completely different semantic
1720# ./install, which can be erroneously created by make from ./install.sh.
1721echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1722echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1723if test -z "$INSTALL"; then
1724if test "${ac_cv_path_install+set}" = set; then
1725  echo $ECHO_N "(cached) $ECHO_C" >&6
1726else
1727  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728for as_dir in $PATH
1729do
1730  IFS=$as_save_IFS
1731  test -z "$as_dir" && as_dir=.
1732  # Account for people who put trailing slashes in PATH elements.
1733case $as_dir/ in
1734  ./ | .// | /cC/* | \
1735  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1736  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1737  /usr/ucb/* ) ;;
1738  *)
1739    # OSF1 and SCO ODT 3.0 have their own names for install.
1740    # Don't use installbsd from OSF since it installs stuff as root
1741    # by default.
1742    for ac_prog in ginstall scoinst install; do
1743      for ac_exec_ext in '' $ac_executable_extensions; do
1744	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1745	  if test $ac_prog = install &&
1746	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1747	    # AIX install.  It has an incompatible calling convention.
1748	    :
1749	  elif test $ac_prog = install &&
1750	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751	    # program-specific install script used by HP pwplus--don't use.
1752	    :
1753	  else
1754	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1755	    break 3
1756	  fi
1757	fi
1758      done
1759    done
1760    ;;
1761esac
1762done
1763
1764
1765fi
1766  if test "${ac_cv_path_install+set}" = set; then
1767    INSTALL=$ac_cv_path_install
1768  else
1769    # As a last resort, use the slow shell script.  We don't cache a
1770    # path for INSTALL within a source directory, because that will
1771    # break other packages using the cache if that directory is
1772    # removed, or if the path is relative.
1773    INSTALL=$ac_install_sh
1774  fi
1775fi
1776echo "$as_me:$LINENO: result: $INSTALL" >&5
1777echo "${ECHO_T}$INSTALL" >&6
1778
1779# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1780# It thinks the first close brace ends the variable substitution.
1781test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782
1783test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1784
1785test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1786
1787echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1788echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1789# Just in case
1790sleep 1
1791echo timestamp > conftest.file
1792# Do `set' in a subshell so we don't clobber the current shell's
1793# arguments.  Must try -L first in case configure is actually a
1794# symlink; some systems play weird games with the mod time of symlinks
1795# (eg FreeBSD returns the mod time of the symlink's containing
1796# directory).
1797if (
1798   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1799   if test "$*" = "X"; then
1800      # -L didn't work.
1801      set X `ls -t $srcdir/configure conftest.file`
1802   fi
1803   rm -f conftest.file
1804   if test "$*" != "X $srcdir/configure conftest.file" \
1805      && test "$*" != "X conftest.file $srcdir/configure"; then
1806
1807      # If neither matched, then we have a broken ls.  This can happen
1808      # if, for instance, CONFIG_SHELL is bash and it inherits a
1809      # broken ls alias from the environment.  This has actually
1810      # happened.  Such a system could not be considered "sane".
1811      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1812alias in your environment" >&5
1813echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1814alias in your environment" >&2;}
1815   { (exit 1); exit 1; }; }
1816   fi
1817
1818   test "$2" = conftest.file
1819   )
1820then
1821   # Ok.
1822   :
1823else
1824   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1825Check your system clock" >&5
1826echo "$as_me: error: newly created file is older than distributed files!
1827Check your system clock" >&2;}
1828   { (exit 1); exit 1; }; }
1829fi
1830echo "$as_me:$LINENO: result: yes" >&5
1831echo "${ECHO_T}yes" >&6
1832test "$program_prefix" != NONE &&
1833  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1834# Use a double $ so make ignores it.
1835test "$program_suffix" != NONE &&
1836  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1837# Double any \ or $.  echo might interpret backslashes.
1838# By default was `s,x,x', remove it if useless.
1839cat <<\_ACEOF >conftest.sed
1840s/[\\$]/&&/g;s/;s,x,x,$//
1841_ACEOF
1842program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1843rm conftest.sed
1844
1845# expand $ac_aux_dir to an absolute path
1846am_aux_dir=`cd $ac_aux_dir && pwd`
1847
1848test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1849# Use eval to expand $SHELL
1850if eval "$MISSING --run true"; then
1851  am_missing_run="$MISSING --run "
1852else
1853  am_missing_run=
1854  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1855echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1856fi
1857
1858if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1859  # We used to keeping the `.' as first argument, in order to
1860  # allow $(mkdir_p) to be used without argument.  As in
1861  #   $(mkdir_p) $(somedir)
1862  # where $(somedir) is conditionally defined.  However this is wrong
1863  # for two reasons:
1864  #  1. if the package is installed by a user who cannot write `.'
1865  #     make install will fail,
1866  #  2. the above comment should most certainly read
1867  #     $(mkdir_p) $(DESTDIR)$(somedir)
1868  #     so it does not work when $(somedir) is undefined and
1869  #     $(DESTDIR) is not.
1870  #  To support the latter case, we have to write
1871  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1872  #  so the `.' trick is pointless.
1873  mkdir_p='mkdir -p --'
1874else
1875  # On NextStep and OpenStep, the `mkdir' command does not
1876  # recognize any option.  It will interpret all options as
1877  # directories to create, and then abort because `.' already
1878  # exists.
1879  for d in ./-p ./--version;
1880  do
1881    test -d $d && rmdir $d
1882  done
1883  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1884  if test -f "$ac_aux_dir/mkinstalldirs"; then
1885    mkdir_p='$(mkinstalldirs)'
1886  else
1887    mkdir_p='$(install_sh) -d'
1888  fi
1889fi
1890
1891for ac_prog in gawk mawk nawk awk
1892do
1893  # Extract the first word of "$ac_prog", so it can be a program name with args.
1894set dummy $ac_prog; ac_word=$2
1895echo "$as_me:$LINENO: checking for $ac_word" >&5
1896echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1897if test "${ac_cv_prog_AWK+set}" = set; then
1898  echo $ECHO_N "(cached) $ECHO_C" >&6
1899else
1900  if test -n "$AWK"; then
1901  ac_cv_prog_AWK="$AWK" # Let the user override the test.
1902else
1903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904for as_dir in $PATH
1905do
1906  IFS=$as_save_IFS
1907  test -z "$as_dir" && as_dir=.
1908  for ac_exec_ext in '' $ac_executable_extensions; do
1909  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1910    ac_cv_prog_AWK="$ac_prog"
1911    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912    break 2
1913  fi
1914done
1915done
1916
1917fi
1918fi
1919AWK=$ac_cv_prog_AWK
1920if test -n "$AWK"; then
1921  echo "$as_me:$LINENO: result: $AWK" >&5
1922echo "${ECHO_T}$AWK" >&6
1923else
1924  echo "$as_me:$LINENO: result: no" >&5
1925echo "${ECHO_T}no" >&6
1926fi
1927
1928  test -n "$AWK" && break
1929done
1930
1931echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1932echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1933set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1934if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1935  echo $ECHO_N "(cached) $ECHO_C" >&6
1936else
1937  cat >conftest.make <<\_ACEOF
1938all:
1939	@echo 'ac_maketemp="$(MAKE)"'
1940_ACEOF
1941# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1942eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1943if test -n "$ac_maketemp"; then
1944  eval ac_cv_prog_make_${ac_make}_set=yes
1945else
1946  eval ac_cv_prog_make_${ac_make}_set=no
1947fi
1948rm -f conftest.make
1949fi
1950if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1951  echo "$as_me:$LINENO: result: yes" >&5
1952echo "${ECHO_T}yes" >&6
1953  SET_MAKE=
1954else
1955  echo "$as_me:$LINENO: result: no" >&5
1956echo "${ECHO_T}no" >&6
1957  SET_MAKE="MAKE=${MAKE-make}"
1958fi
1959
1960rm -rf .tst 2>/dev/null
1961mkdir .tst 2>/dev/null
1962if test -d .tst; then
1963  am__leading_dot=.
1964else
1965  am__leading_dot=_
1966fi
1967rmdir .tst 2>/dev/null
1968
1969# test to see if srcdir already configured
1970if test "`cd $srcdir && pwd`" != "`pwd`" &&
1971   test -f $srcdir/config.status; then
1972  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1973echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1974   { (exit 1); exit 1; }; }
1975fi
1976
1977# test whether we have cygpath
1978if test -z "$CYGPATH_W"; then
1979  if (cygpath --version) >/dev/null 2>/dev/null; then
1980    CYGPATH_W='cygpath -w'
1981  else
1982    CYGPATH_W=echo
1983  fi
1984fi
1985
1986
1987# Define the identity of the package.
1988 PACKAGE=$PACKAGE
1989 VERSION=$VERSION
1990
1991
1992cat >>confdefs.h <<_ACEOF
1993#define PACKAGE "$PACKAGE"
1994_ACEOF
1995
1996
1997cat >>confdefs.h <<_ACEOF
1998#define VERSION "$VERSION"
1999_ACEOF
2000
2001# Some tools Automake needs.
2002
2003ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2004
2005
2006AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2007
2008
2009AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2010
2011
2012AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2013
2014
2015MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2016
2017install_sh=${install_sh-"$am_aux_dir/install-sh"}
2018
2019# Installed binaries are usually stripped using `strip' when the user
2020# run `make install-strip'.  However `strip' might not be the right
2021# tool to use in cross-compilation environments, therefore Automake
2022# will honor the `STRIP' environment variable to overrule this program.
2023if test "$cross_compiling" != no; then
2024  if test -n "$ac_tool_prefix"; then
2025  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2026set dummy ${ac_tool_prefix}strip; 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_STRIP+set}" = set; then
2030  echo $ECHO_N "(cached) $ECHO_C" >&6
2031else
2032  if test -n "$STRIP"; then
2033  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2034else
2035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036for as_dir in $PATH
2037do
2038  IFS=$as_save_IFS
2039  test -z "$as_dir" && as_dir=.
2040  for ac_exec_ext in '' $ac_executable_extensions; do
2041  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2042    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2043    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044    break 2
2045  fi
2046done
2047done
2048
2049fi
2050fi
2051STRIP=$ac_cv_prog_STRIP
2052if test -n "$STRIP"; then
2053  echo "$as_me:$LINENO: result: $STRIP" >&5
2054echo "${ECHO_T}$STRIP" >&6
2055else
2056  echo "$as_me:$LINENO: result: no" >&5
2057echo "${ECHO_T}no" >&6
2058fi
2059
2060fi
2061if test -z "$ac_cv_prog_STRIP"; then
2062  ac_ct_STRIP=$STRIP
2063  # Extract the first word of "strip", so it can be a program name with args.
2064set dummy strip; ac_word=$2
2065echo "$as_me:$LINENO: checking for $ac_word" >&5
2066echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2067if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2068  echo $ECHO_N "(cached) $ECHO_C" >&6
2069else
2070  if test -n "$ac_ct_STRIP"; then
2071  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2072else
2073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2074for as_dir in $PATH
2075do
2076  IFS=$as_save_IFS
2077  test -z "$as_dir" && as_dir=.
2078  for ac_exec_ext in '' $ac_executable_extensions; do
2079  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2080    ac_cv_prog_ac_ct_STRIP="strip"
2081    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082    break 2
2083  fi
2084done
2085done
2086
2087  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2088fi
2089fi
2090ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2091if test -n "$ac_ct_STRIP"; then
2092  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2093echo "${ECHO_T}$ac_ct_STRIP" >&6
2094else
2095  echo "$as_me:$LINENO: result: no" >&5
2096echo "${ECHO_T}no" >&6
2097fi
2098
2099  STRIP=$ac_ct_STRIP
2100else
2101  STRIP="$ac_cv_prog_STRIP"
2102fi
2103
2104fi
2105INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2106
2107# We need awk for the "check" target.  The system "awk" is bad on
2108# some platforms.
2109# Always define AMTAR for backward compatibility.
2110
2111AMTAR=${AMTAR-"${am_missing_run}tar"}
2112
2113am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2114
2115
2116
2117
2118
2119
2120# Make sure we can run config.sub.
2121$ac_config_sub sun4 >/dev/null 2>&1 ||
2122  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2123echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2124   { (exit 1); exit 1; }; }
2125
2126echo "$as_me:$LINENO: checking build system type" >&5
2127echo $ECHO_N "checking build system type... $ECHO_C" >&6
2128if test "${ac_cv_build+set}" = set; then
2129  echo $ECHO_N "(cached) $ECHO_C" >&6
2130else
2131  ac_cv_build_alias=$build_alias
2132test -z "$ac_cv_build_alias" &&
2133  ac_cv_build_alias=`$ac_config_guess`
2134test -z "$ac_cv_build_alias" &&
2135  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2136echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2137   { (exit 1); exit 1; }; }
2138ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2139  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2140echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2141   { (exit 1); exit 1; }; }
2142
2143fi
2144echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2145echo "${ECHO_T}$ac_cv_build" >&6
2146build=$ac_cv_build
2147build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2148build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2149build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2150
2151
2152echo "$as_me:$LINENO: checking host system type" >&5
2153echo $ECHO_N "checking host system type... $ECHO_C" >&6
2154if test "${ac_cv_host+set}" = set; then
2155  echo $ECHO_N "(cached) $ECHO_C" >&6
2156else
2157  ac_cv_host_alias=$host_alias
2158test -z "$ac_cv_host_alias" &&
2159  ac_cv_host_alias=$ac_cv_build_alias
2160ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2161  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2162echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2163   { (exit 1); exit 1; }; }
2164
2165fi
2166echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167echo "${ECHO_T}$ac_cv_host" >&6
2168host=$ac_cv_host
2169host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2170host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2171host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2172
2173
2174
2175ac_ext=c
2176ac_cpp='$CPP $CPPFLAGS'
2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2179ac_compiler_gnu=$ac_cv_c_compiler_gnu
2180if test -n "$ac_tool_prefix"; then
2181  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2182set dummy ${ac_tool_prefix}gcc; ac_word=$2
2183echo "$as_me:$LINENO: checking for $ac_word" >&5
2184echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2185if test "${ac_cv_prog_CC+set}" = set; then
2186  echo $ECHO_N "(cached) $ECHO_C" >&6
2187else
2188  if test -n "$CC"; then
2189  ac_cv_prog_CC="$CC" # Let the user override the test.
2190else
2191as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192for as_dir in $PATH
2193do
2194  IFS=$as_save_IFS
2195  test -z "$as_dir" && as_dir=.
2196  for ac_exec_ext in '' $ac_executable_extensions; do
2197  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2198    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2199    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2200    break 2
2201  fi
2202done
2203done
2204
2205fi
2206fi
2207CC=$ac_cv_prog_CC
2208if test -n "$CC"; then
2209  echo "$as_me:$LINENO: result: $CC" >&5
2210echo "${ECHO_T}$CC" >&6
2211else
2212  echo "$as_me:$LINENO: result: no" >&5
2213echo "${ECHO_T}no" >&6
2214fi
2215
2216fi
2217if test -z "$ac_cv_prog_CC"; then
2218  ac_ct_CC=$CC
2219  # Extract the first word of "gcc", so it can be a program name with args.
2220set dummy gcc; ac_word=$2
2221echo "$as_me:$LINENO: checking for $ac_word" >&5
2222echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2223if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2224  echo $ECHO_N "(cached) $ECHO_C" >&6
2225else
2226  if test -n "$ac_ct_CC"; then
2227  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2228else
2229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2230for as_dir in $PATH
2231do
2232  IFS=$as_save_IFS
2233  test -z "$as_dir" && as_dir=.
2234  for ac_exec_ext in '' $ac_executable_extensions; do
2235  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2236    ac_cv_prog_ac_ct_CC="gcc"
2237    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2238    break 2
2239  fi
2240done
2241done
2242
2243fi
2244fi
2245ac_ct_CC=$ac_cv_prog_ac_ct_CC
2246if test -n "$ac_ct_CC"; then
2247  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2248echo "${ECHO_T}$ac_ct_CC" >&6
2249else
2250  echo "$as_me:$LINENO: result: no" >&5
2251echo "${ECHO_T}no" >&6
2252fi
2253
2254  CC=$ac_ct_CC
2255else
2256  CC="$ac_cv_prog_CC"
2257fi
2258
2259if test -z "$CC"; then
2260  if test -n "$ac_tool_prefix"; then
2261  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2262set dummy ${ac_tool_prefix}cc; ac_word=$2
2263echo "$as_me:$LINENO: checking for $ac_word" >&5
2264echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265if test "${ac_cv_prog_CC+set}" = set; then
2266  echo $ECHO_N "(cached) $ECHO_C" >&6
2267else
2268  if test -n "$CC"; then
2269  ac_cv_prog_CC="$CC" # Let the user override the test.
2270else
2271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272for as_dir in $PATH
2273do
2274  IFS=$as_save_IFS
2275  test -z "$as_dir" && as_dir=.
2276  for ac_exec_ext in '' $ac_executable_extensions; do
2277  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278    ac_cv_prog_CC="${ac_tool_prefix}cc"
2279    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280    break 2
2281  fi
2282done
2283done
2284
2285fi
2286fi
2287CC=$ac_cv_prog_CC
2288if test -n "$CC"; then
2289  echo "$as_me:$LINENO: result: $CC" >&5
2290echo "${ECHO_T}$CC" >&6
2291else
2292  echo "$as_me:$LINENO: result: no" >&5
2293echo "${ECHO_T}no" >&6
2294fi
2295
2296fi
2297if test -z "$ac_cv_prog_CC"; then
2298  ac_ct_CC=$CC
2299  # Extract the first word of "cc", so it can be a program name with args.
2300set dummy cc; ac_word=$2
2301echo "$as_me:$LINENO: checking for $ac_word" >&5
2302echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2304  echo $ECHO_N "(cached) $ECHO_C" >&6
2305else
2306  if test -n "$ac_ct_CC"; then
2307  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2308else
2309as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310for as_dir in $PATH
2311do
2312  IFS=$as_save_IFS
2313  test -z "$as_dir" && as_dir=.
2314  for ac_exec_ext in '' $ac_executable_extensions; do
2315  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316    ac_cv_prog_ac_ct_CC="cc"
2317    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318    break 2
2319  fi
2320done
2321done
2322
2323fi
2324fi
2325ac_ct_CC=$ac_cv_prog_ac_ct_CC
2326if test -n "$ac_ct_CC"; then
2327  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2328echo "${ECHO_T}$ac_ct_CC" >&6
2329else
2330  echo "$as_me:$LINENO: result: no" >&5
2331echo "${ECHO_T}no" >&6
2332fi
2333
2334  CC=$ac_ct_CC
2335else
2336  CC="$ac_cv_prog_CC"
2337fi
2338
2339fi
2340if test -z "$CC"; then
2341  # Extract the first word of "cc", so it can be a program name with args.
2342set dummy cc; ac_word=$2
2343echo "$as_me:$LINENO: checking for $ac_word" >&5
2344echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2345if test "${ac_cv_prog_CC+set}" = set; then
2346  echo $ECHO_N "(cached) $ECHO_C" >&6
2347else
2348  if test -n "$CC"; then
2349  ac_cv_prog_CC="$CC" # Let the user override the test.
2350else
2351  ac_prog_rejected=no
2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2353for as_dir in $PATH
2354do
2355  IFS=$as_save_IFS
2356  test -z "$as_dir" && as_dir=.
2357  for ac_exec_ext in '' $ac_executable_extensions; do
2358  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2359    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2360       ac_prog_rejected=yes
2361       continue
2362     fi
2363    ac_cv_prog_CC="cc"
2364    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2365    break 2
2366  fi
2367done
2368done
2369
2370if test $ac_prog_rejected = yes; then
2371  # We found a bogon in the path, so make sure we never use it.
2372  set dummy $ac_cv_prog_CC
2373  shift
2374  if test $# != 0; then
2375    # We chose a different compiler from the bogus one.
2376    # However, it has the same basename, so the bogon will be chosen
2377    # first if we set CC to just the basename; use the full file name.
2378    shift
2379    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2380  fi
2381fi
2382fi
2383fi
2384CC=$ac_cv_prog_CC
2385if test -n "$CC"; then
2386  echo "$as_me:$LINENO: result: $CC" >&5
2387echo "${ECHO_T}$CC" >&6
2388else
2389  echo "$as_me:$LINENO: result: no" >&5
2390echo "${ECHO_T}no" >&6
2391fi
2392
2393fi
2394if test -z "$CC"; then
2395  if test -n "$ac_tool_prefix"; then
2396  for ac_prog in cl
2397  do
2398    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2399set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2400echo "$as_me:$LINENO: checking for $ac_word" >&5
2401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2402if test "${ac_cv_prog_CC+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  if test -n "$CC"; then
2406  ac_cv_prog_CC="$CC" # Let the user override the test.
2407else
2408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2409for as_dir in $PATH
2410do
2411  IFS=$as_save_IFS
2412  test -z "$as_dir" && as_dir=.
2413  for ac_exec_ext in '' $ac_executable_extensions; do
2414  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2415    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2416    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2417    break 2
2418  fi
2419done
2420done
2421
2422fi
2423fi
2424CC=$ac_cv_prog_CC
2425if test -n "$CC"; then
2426  echo "$as_me:$LINENO: result: $CC" >&5
2427echo "${ECHO_T}$CC" >&6
2428else
2429  echo "$as_me:$LINENO: result: no" >&5
2430echo "${ECHO_T}no" >&6
2431fi
2432
2433    test -n "$CC" && break
2434  done
2435fi
2436if test -z "$CC"; then
2437  ac_ct_CC=$CC
2438  for ac_prog in cl
2439do
2440  # Extract the first word of "$ac_prog", so it can be a program name with args.
2441set dummy $ac_prog; ac_word=$2
2442echo "$as_me:$LINENO: checking for $ac_word" >&5
2443echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2445  echo $ECHO_N "(cached) $ECHO_C" >&6
2446else
2447  if test -n "$ac_ct_CC"; then
2448  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2449else
2450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2451for as_dir in $PATH
2452do
2453  IFS=$as_save_IFS
2454  test -z "$as_dir" && as_dir=.
2455  for ac_exec_ext in '' $ac_executable_extensions; do
2456  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2457    ac_cv_prog_ac_ct_CC="$ac_prog"
2458    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459    break 2
2460  fi
2461done
2462done
2463
2464fi
2465fi
2466ac_ct_CC=$ac_cv_prog_ac_ct_CC
2467if test -n "$ac_ct_CC"; then
2468  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2469echo "${ECHO_T}$ac_ct_CC" >&6
2470else
2471  echo "$as_me:$LINENO: result: no" >&5
2472echo "${ECHO_T}no" >&6
2473fi
2474
2475  test -n "$ac_ct_CC" && break
2476done
2477
2478  CC=$ac_ct_CC
2479fi
2480
2481fi
2482
2483
2484test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2485See \`config.log' for more details." >&5
2486echo "$as_me: error: no acceptable C compiler found in \$PATH
2487See \`config.log' for more details." >&2;}
2488   { (exit 1); exit 1; }; }
2489
2490# Provide some information about the compiler.
2491echo "$as_me:$LINENO:" \
2492     "checking for C compiler version" >&5
2493ac_compiler=`set X $ac_compile; echo $2`
2494{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2495  (eval $ac_compiler --version </dev/null >&5) 2>&5
2496  ac_status=$?
2497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498  (exit $ac_status); }
2499{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2500  (eval $ac_compiler -v </dev/null >&5) 2>&5
2501  ac_status=$?
2502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503  (exit $ac_status); }
2504{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2505  (eval $ac_compiler -V </dev/null >&5) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }
2509
2510cat >conftest.$ac_ext <<_ACEOF
2511/* confdefs.h.  */
2512_ACEOF
2513cat confdefs.h >>conftest.$ac_ext
2514cat >>conftest.$ac_ext <<_ACEOF
2515/* end confdefs.h.  */
2516
2517int
2518main ()
2519{
2520
2521  ;
2522  return 0;
2523}
2524_ACEOF
2525ac_clean_files_save=$ac_clean_files
2526ac_clean_files="$ac_clean_files a.out a.exe b.out"
2527# Try to create an executable without -o first, disregard a.out.
2528# It will help us diagnose broken compilers, and finding out an intuition
2529# of exeext.
2530echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2531echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2532ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2533if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2534  (eval $ac_link_default) 2>&5
2535  ac_status=$?
2536  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537  (exit $ac_status); }; then
2538  # Find the output, starting from the most likely.  This scheme is
2539# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2540# resort.
2541
2542# Be careful to initialize this variable, since it used to be cached.
2543# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2544ac_cv_exeext=
2545# b.out is created by i960 compilers.
2546for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2547do
2548  test -f "$ac_file" || continue
2549  case $ac_file in
2550    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2551	;;
2552    conftest.$ac_ext )
2553	# This is the source file.
2554	;;
2555    [ab].out )
2556	# We found the default executable, but exeext='' is most
2557	# certainly right.
2558	break;;
2559    *.* )
2560	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2561	# FIXME: I believe we export ac_cv_exeext for Libtool,
2562	# but it would be cool to find out if it's true.  Does anybody
2563	# maintain Libtool? --akim.
2564	export ac_cv_exeext
2565	break;;
2566    * )
2567	break;;
2568  esac
2569done
2570else
2571  echo "$as_me: failed program was:" >&5
2572sed 's/^/| /' conftest.$ac_ext >&5
2573
2574{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2575See \`config.log' for more details." >&5
2576echo "$as_me: error: C compiler cannot create executables
2577See \`config.log' for more details." >&2;}
2578   { (exit 77); exit 77; }; }
2579fi
2580
2581ac_exeext=$ac_cv_exeext
2582echo "$as_me:$LINENO: result: $ac_file" >&5
2583echo "${ECHO_T}$ac_file" >&6
2584
2585# Check the compiler produces executables we can run.  If not, either
2586# the compiler is broken, or we cross compile.
2587echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2588echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2589# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2590# If not cross compiling, check that we can run a simple program.
2591if test "$cross_compiling" != yes; then
2592  if { ac_try='./$ac_file'
2593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594  (eval $ac_try) 2>&5
2595  ac_status=$?
2596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597  (exit $ac_status); }; }; then
2598    cross_compiling=no
2599  else
2600    if test "$cross_compiling" = maybe; then
2601	cross_compiling=yes
2602    else
2603	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2604If you meant to cross compile, use \`--host'.
2605See \`config.log' for more details." >&5
2606echo "$as_me: error: cannot run C compiled programs.
2607If you meant to cross compile, use \`--host'.
2608See \`config.log' for more details." >&2;}
2609   { (exit 1); exit 1; }; }
2610    fi
2611  fi
2612fi
2613echo "$as_me:$LINENO: result: yes" >&5
2614echo "${ECHO_T}yes" >&6
2615
2616rm -f a.out a.exe conftest$ac_cv_exeext b.out
2617ac_clean_files=$ac_clean_files_save
2618# Check the compiler produces executables we can run.  If not, either
2619# the compiler is broken, or we cross compile.
2620echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2621echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2622echo "$as_me:$LINENO: result: $cross_compiling" >&5
2623echo "${ECHO_T}$cross_compiling" >&6
2624
2625echo "$as_me:$LINENO: checking for suffix of executables" >&5
2626echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2628  (eval $ac_link) 2>&5
2629  ac_status=$?
2630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2631  (exit $ac_status); }; then
2632  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2633# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2634# work properly (i.e., refer to `conftest.exe'), while it won't with
2635# `rm'.
2636for ac_file in conftest.exe conftest conftest.*; do
2637  test -f "$ac_file" || continue
2638  case $ac_file in
2639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2640    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2641	  export ac_cv_exeext
2642	  break;;
2643    * ) break;;
2644  esac
2645done
2646else
2647  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2648See \`config.log' for more details." >&5
2649echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2650See \`config.log' for more details." >&2;}
2651   { (exit 1); exit 1; }; }
2652fi
2653
2654rm -f conftest$ac_cv_exeext
2655echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2656echo "${ECHO_T}$ac_cv_exeext" >&6
2657
2658rm -f conftest.$ac_ext
2659EXEEXT=$ac_cv_exeext
2660ac_exeext=$EXEEXT
2661echo "$as_me:$LINENO: checking for suffix of object files" >&5
2662echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2663if test "${ac_cv_objext+set}" = set; then
2664  echo $ECHO_N "(cached) $ECHO_C" >&6
2665else
2666  cat >conftest.$ac_ext <<_ACEOF
2667/* confdefs.h.  */
2668_ACEOF
2669cat confdefs.h >>conftest.$ac_ext
2670cat >>conftest.$ac_ext <<_ACEOF
2671/* end confdefs.h.  */
2672
2673int
2674main ()
2675{
2676
2677  ;
2678  return 0;
2679}
2680_ACEOF
2681rm -f conftest.o conftest.obj
2682if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2683  (eval $ac_compile) 2>&5
2684  ac_status=$?
2685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686  (exit $ac_status); }; then
2687  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2688  case $ac_file in
2689    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2690    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2691       break;;
2692  esac
2693done
2694else
2695  echo "$as_me: failed program was:" >&5
2696sed 's/^/| /' conftest.$ac_ext >&5
2697
2698{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2699See \`config.log' for more details." >&5
2700echo "$as_me: error: cannot compute suffix of object files: cannot compile
2701See \`config.log' for more details." >&2;}
2702   { (exit 1); exit 1; }; }
2703fi
2704
2705rm -f conftest.$ac_cv_objext conftest.$ac_ext
2706fi
2707echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2708echo "${ECHO_T}$ac_cv_objext" >&6
2709OBJEXT=$ac_cv_objext
2710ac_objext=$OBJEXT
2711echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2712echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2713if test "${ac_cv_c_compiler_gnu+set}" = set; then
2714  echo $ECHO_N "(cached) $ECHO_C" >&6
2715else
2716  cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h.  */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h.  */
2722
2723int
2724main ()
2725{
2726#ifndef __GNUC__
2727       choke me
2728#endif
2729
2730  ;
2731  return 0;
2732}
2733_ACEOF
2734rm -f conftest.$ac_objext
2735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2736  (eval $ac_compile) 2>conftest.er1
2737  ac_status=$?
2738  grep -v '^ *+' conftest.er1 >conftest.err
2739  rm -f conftest.er1
2740  cat conftest.err >&5
2741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742  (exit $ac_status); } &&
2743	 { ac_try='test -z "$ac_c_werror_flag"
2744			 || test ! -s conftest.err'
2745  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2746  (eval $ac_try) 2>&5
2747  ac_status=$?
2748  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2749  (exit $ac_status); }; } &&
2750	 { ac_try='test -s conftest.$ac_objext'
2751  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752  (eval $ac_try) 2>&5
2753  ac_status=$?
2754  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755  (exit $ac_status); }; }; then
2756  ac_compiler_gnu=yes
2757else
2758  echo "$as_me: failed program was:" >&5
2759sed 's/^/| /' conftest.$ac_ext >&5
2760
2761ac_compiler_gnu=no
2762fi
2763rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2764ac_cv_c_compiler_gnu=$ac_compiler_gnu
2765
2766fi
2767echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2768echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2769GCC=`test $ac_compiler_gnu = yes && echo yes`
2770ac_test_CFLAGS=${CFLAGS+set}
2771ac_save_CFLAGS=$CFLAGS
2772CFLAGS="-g"
2773echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2774echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2775if test "${ac_cv_prog_cc_g+set}" = set; then
2776  echo $ECHO_N "(cached) $ECHO_C" >&6
2777else
2778  cat >conftest.$ac_ext <<_ACEOF
2779/* confdefs.h.  */
2780_ACEOF
2781cat confdefs.h >>conftest.$ac_ext
2782cat >>conftest.$ac_ext <<_ACEOF
2783/* end confdefs.h.  */
2784
2785int
2786main ()
2787{
2788
2789  ;
2790  return 0;
2791}
2792_ACEOF
2793rm -f conftest.$ac_objext
2794if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795  (eval $ac_compile) 2>conftest.er1
2796  ac_status=$?
2797  grep -v '^ *+' conftest.er1 >conftest.err
2798  rm -f conftest.er1
2799  cat conftest.err >&5
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); } &&
2802	 { ac_try='test -z "$ac_c_werror_flag"
2803			 || test ! -s conftest.err'
2804  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805  (eval $ac_try) 2>&5
2806  ac_status=$?
2807  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808  (exit $ac_status); }; } &&
2809	 { ac_try='test -s conftest.$ac_objext'
2810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811  (eval $ac_try) 2>&5
2812  ac_status=$?
2813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814  (exit $ac_status); }; }; then
2815  ac_cv_prog_cc_g=yes
2816else
2817  echo "$as_me: failed program was:" >&5
2818sed 's/^/| /' conftest.$ac_ext >&5
2819
2820ac_cv_prog_cc_g=no
2821fi
2822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823fi
2824echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2825echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2826if test "$ac_test_CFLAGS" = set; then
2827  CFLAGS=$ac_save_CFLAGS
2828elif test $ac_cv_prog_cc_g = yes; then
2829  if test "$GCC" = yes; then
2830    CFLAGS="-g -O2"
2831  else
2832    CFLAGS="-g"
2833  fi
2834else
2835  if test "$GCC" = yes; then
2836    CFLAGS="-O2"
2837  else
2838    CFLAGS=
2839  fi
2840fi
2841echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2842echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2843if test "${ac_cv_prog_cc_stdc+set}" = set; then
2844  echo $ECHO_N "(cached) $ECHO_C" >&6
2845else
2846  ac_cv_prog_cc_stdc=no
2847ac_save_CC=$CC
2848cat >conftest.$ac_ext <<_ACEOF
2849/* confdefs.h.  */
2850_ACEOF
2851cat confdefs.h >>conftest.$ac_ext
2852cat >>conftest.$ac_ext <<_ACEOF
2853/* end confdefs.h.  */
2854#include <stdarg.h>
2855#include <stdio.h>
2856#include <sys/types.h>
2857#include <sys/stat.h>
2858/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2859struct buf { int x; };
2860FILE * (*rcsopen) (struct buf *, struct stat *, int);
2861static char *e (p, i)
2862     char **p;
2863     int i;
2864{
2865  return p[i];
2866}
2867static char *f (char * (*g) (char **, int), char **p, ...)
2868{
2869  char *s;
2870  va_list v;
2871  va_start (v,p);
2872  s = g (p, va_arg (v,int));
2873  va_end (v);
2874  return s;
2875}
2876
2877/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2878   function prototypes and stuff, but not '\xHH' hex character constants.
2879   These don't provoke an error unfortunately, instead are silently treated
2880   as 'x'.  The following induces an error, until -std1 is added to get
2881   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2882   array size at least.  It's necessary to write '\x00'==0 to get something
2883   that's true only with -std1.  */
2884int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2885
2886int test (int i, double x);
2887struct s1 {int (*f) (int a);};
2888struct s2 {int (*f) (double a);};
2889int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2890int argc;
2891char **argv;
2892int
2893main ()
2894{
2895return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2896  ;
2897  return 0;
2898}
2899_ACEOF
2900# Don't try gcc -ansi; that turns off useful extensions and
2901# breaks some systems' header files.
2902# AIX			-qlanglvl=ansi
2903# Ultrix and OSF/1	-std1
2904# HP-UX 10.20 and later	-Ae
2905# HP-UX older versions	-Aa -D_HPUX_SOURCE
2906# SVR4			-Xc -D__EXTENSIONS__
2907for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2908do
2909  CC="$ac_save_CC $ac_arg"
2910  rm -f conftest.$ac_objext
2911if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2912  (eval $ac_compile) 2>conftest.er1
2913  ac_status=$?
2914  grep -v '^ *+' conftest.er1 >conftest.err
2915  rm -f conftest.er1
2916  cat conftest.err >&5
2917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918  (exit $ac_status); } &&
2919	 { ac_try='test -z "$ac_c_werror_flag"
2920			 || test ! -s conftest.err'
2921  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2922  (eval $ac_try) 2>&5
2923  ac_status=$?
2924  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925  (exit $ac_status); }; } &&
2926	 { ac_try='test -s conftest.$ac_objext'
2927  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928  (eval $ac_try) 2>&5
2929  ac_status=$?
2930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931  (exit $ac_status); }; }; then
2932  ac_cv_prog_cc_stdc=$ac_arg
2933break
2934else
2935  echo "$as_me: failed program was:" >&5
2936sed 's/^/| /' conftest.$ac_ext >&5
2937
2938fi
2939rm -f conftest.err conftest.$ac_objext
2940done
2941rm -f conftest.$ac_ext conftest.$ac_objext
2942CC=$ac_save_CC
2943
2944fi
2945
2946case "x$ac_cv_prog_cc_stdc" in
2947  x|xno)
2948    echo "$as_me:$LINENO: result: none needed" >&5
2949echo "${ECHO_T}none needed" >&6 ;;
2950  *)
2951    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2952echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2953    CC="$CC $ac_cv_prog_cc_stdc" ;;
2954esac
2955
2956# Some people use a C++ compiler to compile C.  Since we use `exit',
2957# in C++ we need to declare it.  In case someone uses the same compiler
2958# for both compiling C and C++ we need to have the C++ compiler decide
2959# the declaration of exit, since it's the most demanding environment.
2960cat >conftest.$ac_ext <<_ACEOF
2961#ifndef __cplusplus
2962  choke me
2963#endif
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967  (eval $ac_compile) 2>conftest.er1
2968  ac_status=$?
2969  grep -v '^ *+' conftest.er1 >conftest.err
2970  rm -f conftest.er1
2971  cat conftest.err >&5
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); } &&
2974	 { ac_try='test -z "$ac_c_werror_flag"
2975			 || test ! -s conftest.err'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; } &&
2981	 { ac_try='test -s conftest.$ac_objext'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; }; then
2987  for ac_declaration in \
2988   '' \
2989   'extern "C" void std::exit (int) throw (); using std::exit;' \
2990   'extern "C" void std::exit (int); using std::exit;' \
2991   'extern "C" void exit (int) throw ();' \
2992   'extern "C" void exit (int);' \
2993   'void exit (int);'
2994do
2995  cat >conftest.$ac_ext <<_ACEOF
2996/* confdefs.h.  */
2997_ACEOF
2998cat confdefs.h >>conftest.$ac_ext
2999cat >>conftest.$ac_ext <<_ACEOF
3000/* end confdefs.h.  */
3001$ac_declaration
3002#include <stdlib.h>
3003int
3004main ()
3005{
3006exit (42);
3007  ;
3008  return 0;
3009}
3010_ACEOF
3011rm -f conftest.$ac_objext
3012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3013  (eval $ac_compile) 2>conftest.er1
3014  ac_status=$?
3015  grep -v '^ *+' conftest.er1 >conftest.err
3016  rm -f conftest.er1
3017  cat conftest.err >&5
3018  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3019  (exit $ac_status); } &&
3020	 { ac_try='test -z "$ac_c_werror_flag"
3021			 || test ! -s conftest.err'
3022  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3023  (eval $ac_try) 2>&5
3024  ac_status=$?
3025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026  (exit $ac_status); }; } &&
3027	 { ac_try='test -s conftest.$ac_objext'
3028  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029  (eval $ac_try) 2>&5
3030  ac_status=$?
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); }; }; then
3033  :
3034else
3035  echo "$as_me: failed program was:" >&5
3036sed 's/^/| /' conftest.$ac_ext >&5
3037
3038continue
3039fi
3040rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3041  cat >conftest.$ac_ext <<_ACEOF
3042/* confdefs.h.  */
3043_ACEOF
3044cat confdefs.h >>conftest.$ac_ext
3045cat >>conftest.$ac_ext <<_ACEOF
3046/* end confdefs.h.  */
3047$ac_declaration
3048int
3049main ()
3050{
3051exit (42);
3052  ;
3053  return 0;
3054}
3055_ACEOF
3056rm -f conftest.$ac_objext
3057if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3058  (eval $ac_compile) 2>conftest.er1
3059  ac_status=$?
3060  grep -v '^ *+' conftest.er1 >conftest.err
3061  rm -f conftest.er1
3062  cat conftest.err >&5
3063  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3064  (exit $ac_status); } &&
3065	 { ac_try='test -z "$ac_c_werror_flag"
3066			 || test ! -s conftest.err'
3067  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068  (eval $ac_try) 2>&5
3069  ac_status=$?
3070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071  (exit $ac_status); }; } &&
3072	 { ac_try='test -s conftest.$ac_objext'
3073  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074  (eval $ac_try) 2>&5
3075  ac_status=$?
3076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077  (exit $ac_status); }; }; then
3078  break
3079else
3080  echo "$as_me: failed program was:" >&5
3081sed 's/^/| /' conftest.$ac_ext >&5
3082
3083fi
3084rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085done
3086rm -f conftest*
3087if test -n "$ac_declaration"; then
3088  echo '#ifdef __cplusplus' >>confdefs.h
3089  echo $ac_declaration      >>confdefs.h
3090  echo '#endif'             >>confdefs.h
3091fi
3092
3093else
3094  echo "$as_me: failed program was:" >&5
3095sed 's/^/| /' conftest.$ac_ext >&5
3096
3097fi
3098rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3099ac_ext=c
3100ac_cpp='$CPP $CPPFLAGS'
3101ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3102ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3103ac_compiler_gnu=$ac_cv_c_compiler_gnu
3104DEPDIR="${am__leading_dot}deps"
3105
3106          ac_config_commands="$ac_config_commands depfiles"
3107
3108
3109am_make=${MAKE-make}
3110cat > confinc << 'END'
3111am__doit:
3112	@echo done
3113.PHONY: am__doit
3114END
3115# If we don't find an include directive, just comment out the code.
3116echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3117echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3118am__include="#"
3119am__quote=
3120_am_result=none
3121# First try GNU make style include.
3122echo "include confinc" > confmf
3123# We grep out `Entering directory' and `Leaving directory'
3124# messages which can occur if `w' ends up in MAKEFLAGS.
3125# In particular we don't look at `^make:' because GNU make might
3126# be invoked under some other name (usually "gmake"), in which
3127# case it prints its new name instead of `make'.
3128if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3129   am__include=include
3130   am__quote=
3131   _am_result=GNU
3132fi
3133# Now try BSD make style include.
3134if test "$am__include" = "#"; then
3135   echo '.include "confinc"' > confmf
3136   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3137      am__include=.include
3138      am__quote="\""
3139      _am_result=BSD
3140   fi
3141fi
3142
3143
3144echo "$as_me:$LINENO: result: $_am_result" >&5
3145echo "${ECHO_T}$_am_result" >&6
3146rm -f confinc confmf
3147
3148# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3149if test "${enable_dependency_tracking+set}" = set; then
3150  enableval="$enable_dependency_tracking"
3151
3152fi;
3153if test "x$enable_dependency_tracking" != xno; then
3154  am_depcomp="$ac_aux_dir/depcomp"
3155  AMDEPBACKSLASH='\'
3156fi
3157
3158
3159if test "x$enable_dependency_tracking" != xno; then
3160  AMDEP_TRUE=
3161  AMDEP_FALSE='#'
3162else
3163  AMDEP_TRUE='#'
3164  AMDEP_FALSE=
3165fi
3166
3167
3168
3169
3170depcc="$CC"   am_compiler_list=
3171
3172echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3173echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3174if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3175  echo $ECHO_N "(cached) $ECHO_C" >&6
3176else
3177  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3178  # We make a subdir and do the tests there.  Otherwise we can end up
3179  # making bogus files that we don't know about and never remove.  For
3180  # instance it was reported that on HP-UX the gcc test will end up
3181  # making a dummy file named `D' -- because `-MD' means `put the output
3182  # in D'.
3183  mkdir conftest.dir
3184  # Copy depcomp to subdir because otherwise we won't find it if we're
3185  # using a relative directory.
3186  cp "$am_depcomp" conftest.dir
3187  cd conftest.dir
3188  # We will build objects and dependencies in a subdirectory because
3189  # it helps to detect inapplicable dependency modes.  For instance
3190  # both Tru64's cc and ICC support -MD to output dependencies as a
3191  # side effect of compilation, but ICC will put the dependencies in
3192  # the current directory while Tru64 will put them in the object
3193  # directory.
3194  mkdir sub
3195
3196  am_cv_CC_dependencies_compiler_type=none
3197  if test "$am_compiler_list" = ""; then
3198     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3199  fi
3200  for depmode in $am_compiler_list; do
3201    # Setup a source with many dependencies, because some compilers
3202    # like to wrap large dependency lists on column 80 (with \), and
3203    # we should not choose a depcomp mode which is confused by this.
3204    #
3205    # We need to recreate these files for each test, as the compiler may
3206    # overwrite some of them when testing with obscure command lines.
3207    # This happens at least with the AIX C compiler.
3208    : > sub/conftest.c
3209    for i in 1 2 3 4 5 6; do
3210      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3211      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3212      # Solaris 8's {/usr,}/bin/sh.
3213      touch sub/conftst$i.h
3214    done
3215    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3216
3217    case $depmode in
3218    nosideeffect)
3219      # after this tag, mechanisms are not by side-effect, so they'll
3220      # only be used when explicitly requested
3221      if test "x$enable_dependency_tracking" = xyes; then
3222	continue
3223      else
3224	break
3225      fi
3226      ;;
3227    none) break ;;
3228    esac
3229    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3230    # mode.  It turns out that the SunPro C++ compiler does not properly
3231    # handle `-M -o', and we need to detect this.
3232    if depmode=$depmode \
3233       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3234       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3235       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3236         >/dev/null 2>conftest.err &&
3237       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3238       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3239       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3240      # icc doesn't choke on unknown options, it will just issue warnings
3241      # or remarks (even with -Werror).  So we grep stderr for any message
3242      # that says an option was ignored or not supported.
3243      # When given -MP, icc 7.0 and 7.1 complain thusly:
3244      #   icc: Command line warning: ignoring option '-M'; no argument required
3245      # The diagnosis changed in icc 8.0:
3246      #   icc: Command line remark: option '-MP' not supported
3247      if (grep 'ignoring option' conftest.err ||
3248          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3249        am_cv_CC_dependencies_compiler_type=$depmode
3250        break
3251      fi
3252    fi
3253  done
3254
3255  cd ..
3256  rm -rf conftest.dir
3257else
3258  am_cv_CC_dependencies_compiler_type=none
3259fi
3260
3261fi
3262echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3263echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3264CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3265
3266
3267
3268if
3269  test "x$enable_dependency_tracking" != xno \
3270  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3271  am__fastdepCC_TRUE=
3272  am__fastdepCC_FALSE='#'
3273else
3274  am__fastdepCC_TRUE='#'
3275  am__fastdepCC_FALSE=
3276fi
3277
3278
3279ac_ext=cc
3280ac_cpp='$CXXCPP $CPPFLAGS'
3281ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3282ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3283ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3284if test -n "$ac_tool_prefix"; then
3285  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3286  do
3287    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3288set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3289echo "$as_me:$LINENO: checking for $ac_word" >&5
3290echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3291if test "${ac_cv_prog_CXX+set}" = set; then
3292  echo $ECHO_N "(cached) $ECHO_C" >&6
3293else
3294  if test -n "$CXX"; then
3295  ac_cv_prog_CXX="$CXX" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300  IFS=$as_save_IFS
3301  test -z "$as_dir" && as_dir=.
3302  for ac_exec_ext in '' $ac_executable_extensions; do
3303  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3304    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3305    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3306    break 2
3307  fi
3308done
3309done
3310
3311fi
3312fi
3313CXX=$ac_cv_prog_CXX
3314if test -n "$CXX"; then
3315  echo "$as_me:$LINENO: result: $CXX" >&5
3316echo "${ECHO_T}$CXX" >&6
3317else
3318  echo "$as_me:$LINENO: result: no" >&5
3319echo "${ECHO_T}no" >&6
3320fi
3321
3322    test -n "$CXX" && break
3323  done
3324fi
3325if test -z "$CXX"; then
3326  ac_ct_CXX=$CXX
3327  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3328do
3329  # Extract the first word of "$ac_prog", so it can be a program name with args.
3330set dummy $ac_prog; ac_word=$2
3331echo "$as_me:$LINENO: checking for $ac_word" >&5
3332echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3333if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3334  echo $ECHO_N "(cached) $ECHO_C" >&6
3335else
3336  if test -n "$ac_ct_CXX"; then
3337  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3338else
3339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340for as_dir in $PATH
3341do
3342  IFS=$as_save_IFS
3343  test -z "$as_dir" && as_dir=.
3344  for ac_exec_ext in '' $ac_executable_extensions; do
3345  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3346    ac_cv_prog_ac_ct_CXX="$ac_prog"
3347    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3348    break 2
3349  fi
3350done
3351done
3352
3353fi
3354fi
3355ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3356if test -n "$ac_ct_CXX"; then
3357  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3358echo "${ECHO_T}$ac_ct_CXX" >&6
3359else
3360  echo "$as_me:$LINENO: result: no" >&5
3361echo "${ECHO_T}no" >&6
3362fi
3363
3364  test -n "$ac_ct_CXX" && break
3365done
3366test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3367
3368  CXX=$ac_ct_CXX
3369fi
3370
3371
3372# Provide some information about the compiler.
3373echo "$as_me:$LINENO:" \
3374     "checking for C++ compiler version" >&5
3375ac_compiler=`set X $ac_compile; echo $2`
3376{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3377  (eval $ac_compiler --version </dev/null >&5) 2>&5
3378  ac_status=$?
3379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380  (exit $ac_status); }
3381{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3382  (eval $ac_compiler -v </dev/null >&5) 2>&5
3383  ac_status=$?
3384  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3385  (exit $ac_status); }
3386{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3387  (eval $ac_compiler -V </dev/null >&5) 2>&5
3388  ac_status=$?
3389  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390  (exit $ac_status); }
3391
3392echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3393echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3394if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3395  echo $ECHO_N "(cached) $ECHO_C" >&6
3396else
3397  cat >conftest.$ac_ext <<_ACEOF
3398/* confdefs.h.  */
3399_ACEOF
3400cat confdefs.h >>conftest.$ac_ext
3401cat >>conftest.$ac_ext <<_ACEOF
3402/* end confdefs.h.  */
3403
3404int
3405main ()
3406{
3407#ifndef __GNUC__
3408       choke me
3409#endif
3410
3411  ;
3412  return 0;
3413}
3414_ACEOF
3415rm -f conftest.$ac_objext
3416if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3417  (eval $ac_compile) 2>conftest.er1
3418  ac_status=$?
3419  grep -v '^ *+' conftest.er1 >conftest.err
3420  rm -f conftest.er1
3421  cat conftest.err >&5
3422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423  (exit $ac_status); } &&
3424	 { ac_try='test -z "$ac_cxx_werror_flag"
3425			 || test ! -s conftest.err'
3426  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3427  (eval $ac_try) 2>&5
3428  ac_status=$?
3429  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3430  (exit $ac_status); }; } &&
3431	 { ac_try='test -s conftest.$ac_objext'
3432  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3433  (eval $ac_try) 2>&5
3434  ac_status=$?
3435  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436  (exit $ac_status); }; }; then
3437  ac_compiler_gnu=yes
3438else
3439  echo "$as_me: failed program was:" >&5
3440sed 's/^/| /' conftest.$ac_ext >&5
3441
3442ac_compiler_gnu=no
3443fi
3444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3445ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3446
3447fi
3448echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3449echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3450GXX=`test $ac_compiler_gnu = yes && echo yes`
3451ac_test_CXXFLAGS=${CXXFLAGS+set}
3452ac_save_CXXFLAGS=$CXXFLAGS
3453CXXFLAGS="-g"
3454echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3455echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3456if test "${ac_cv_prog_cxx_g+set}" = set; then
3457  echo $ECHO_N "(cached) $ECHO_C" >&6
3458else
3459  cat >conftest.$ac_ext <<_ACEOF
3460/* confdefs.h.  */
3461_ACEOF
3462cat confdefs.h >>conftest.$ac_ext
3463cat >>conftest.$ac_ext <<_ACEOF
3464/* end confdefs.h.  */
3465
3466int
3467main ()
3468{
3469
3470  ;
3471  return 0;
3472}
3473_ACEOF
3474rm -f conftest.$ac_objext
3475if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3476  (eval $ac_compile) 2>conftest.er1
3477  ac_status=$?
3478  grep -v '^ *+' conftest.er1 >conftest.err
3479  rm -f conftest.er1
3480  cat conftest.err >&5
3481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482  (exit $ac_status); } &&
3483	 { ac_try='test -z "$ac_cxx_werror_flag"
3484			 || test ! -s conftest.err'
3485  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486  (eval $ac_try) 2>&5
3487  ac_status=$?
3488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489  (exit $ac_status); }; } &&
3490	 { ac_try='test -s conftest.$ac_objext'
3491  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492  (eval $ac_try) 2>&5
3493  ac_status=$?
3494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495  (exit $ac_status); }; }; then
3496  ac_cv_prog_cxx_g=yes
3497else
3498  echo "$as_me: failed program was:" >&5
3499sed 's/^/| /' conftest.$ac_ext >&5
3500
3501ac_cv_prog_cxx_g=no
3502fi
3503rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504fi
3505echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3506echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3507if test "$ac_test_CXXFLAGS" = set; then
3508  CXXFLAGS=$ac_save_CXXFLAGS
3509elif test $ac_cv_prog_cxx_g = yes; then
3510  if test "$GXX" = yes; then
3511    CXXFLAGS="-g -O2"
3512  else
3513    CXXFLAGS="-g"
3514  fi
3515else
3516  if test "$GXX" = yes; then
3517    CXXFLAGS="-O2"
3518  else
3519    CXXFLAGS=
3520  fi
3521fi
3522for ac_declaration in \
3523   '' \
3524   'extern "C" void std::exit (int) throw (); using std::exit;' \
3525   'extern "C" void std::exit (int); using std::exit;' \
3526   'extern "C" void exit (int) throw ();' \
3527   'extern "C" void exit (int);' \
3528   'void exit (int);'
3529do
3530  cat >conftest.$ac_ext <<_ACEOF
3531/* confdefs.h.  */
3532_ACEOF
3533cat confdefs.h >>conftest.$ac_ext
3534cat >>conftest.$ac_ext <<_ACEOF
3535/* end confdefs.h.  */
3536$ac_declaration
3537#include <stdlib.h>
3538int
3539main ()
3540{
3541exit (42);
3542  ;
3543  return 0;
3544}
3545_ACEOF
3546rm -f conftest.$ac_objext
3547if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3548  (eval $ac_compile) 2>conftest.er1
3549  ac_status=$?
3550  grep -v '^ *+' conftest.er1 >conftest.err
3551  rm -f conftest.er1
3552  cat conftest.err >&5
3553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3554  (exit $ac_status); } &&
3555	 { ac_try='test -z "$ac_cxx_werror_flag"
3556			 || test ! -s conftest.err'
3557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3558  (eval $ac_try) 2>&5
3559  ac_status=$?
3560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561  (exit $ac_status); }; } &&
3562	 { ac_try='test -s conftest.$ac_objext'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; }; then
3568  :
3569else
3570  echo "$as_me: failed program was:" >&5
3571sed 's/^/| /' conftest.$ac_ext >&5
3572
3573continue
3574fi
3575rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3576  cat >conftest.$ac_ext <<_ACEOF
3577/* confdefs.h.  */
3578_ACEOF
3579cat confdefs.h >>conftest.$ac_ext
3580cat >>conftest.$ac_ext <<_ACEOF
3581/* end confdefs.h.  */
3582$ac_declaration
3583int
3584main ()
3585{
3586exit (42);
3587  ;
3588  return 0;
3589}
3590_ACEOF
3591rm -f conftest.$ac_objext
3592if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3593  (eval $ac_compile) 2>conftest.er1
3594  ac_status=$?
3595  grep -v '^ *+' conftest.er1 >conftest.err
3596  rm -f conftest.er1
3597  cat conftest.err >&5
3598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599  (exit $ac_status); } &&
3600	 { ac_try='test -z "$ac_cxx_werror_flag"
3601			 || test ! -s conftest.err'
3602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3603  (eval $ac_try) 2>&5
3604  ac_status=$?
3605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3606  (exit $ac_status); }; } &&
3607	 { ac_try='test -s conftest.$ac_objext'
3608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3609  (eval $ac_try) 2>&5
3610  ac_status=$?
3611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3612  (exit $ac_status); }; }; then
3613  break
3614else
3615  echo "$as_me: failed program was:" >&5
3616sed 's/^/| /' conftest.$ac_ext >&5
3617
3618fi
3619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3620done
3621rm -f conftest*
3622if test -n "$ac_declaration"; then
3623  echo '#ifdef __cplusplus' >>confdefs.h
3624  echo $ac_declaration      >>confdefs.h
3625  echo '#endif'             >>confdefs.h
3626fi
3627
3628ac_ext=c
3629ac_cpp='$CPP $CPPFLAGS'
3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634depcc="$CXX"  am_compiler_list=
3635
3636echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3637echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3638if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3639  echo $ECHO_N "(cached) $ECHO_C" >&6
3640else
3641  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3642  # We make a subdir and do the tests there.  Otherwise we can end up
3643  # making bogus files that we don't know about and never remove.  For
3644  # instance it was reported that on HP-UX the gcc test will end up
3645  # making a dummy file named `D' -- because `-MD' means `put the output
3646  # in D'.
3647  mkdir conftest.dir
3648  # Copy depcomp to subdir because otherwise we won't find it if we're
3649  # using a relative directory.
3650  cp "$am_depcomp" conftest.dir
3651  cd conftest.dir
3652  # We will build objects and dependencies in a subdirectory because
3653  # it helps to detect inapplicable dependency modes.  For instance
3654  # both Tru64's cc and ICC support -MD to output dependencies as a
3655  # side effect of compilation, but ICC will put the dependencies in
3656  # the current directory while Tru64 will put them in the object
3657  # directory.
3658  mkdir sub
3659
3660  am_cv_CXX_dependencies_compiler_type=none
3661  if test "$am_compiler_list" = ""; then
3662     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3663  fi
3664  for depmode in $am_compiler_list; do
3665    # Setup a source with many dependencies, because some compilers
3666    # like to wrap large dependency lists on column 80 (with \), and
3667    # we should not choose a depcomp mode which is confused by this.
3668    #
3669    # We need to recreate these files for each test, as the compiler may
3670    # overwrite some of them when testing with obscure command lines.
3671    # This happens at least with the AIX C compiler.
3672    : > sub/conftest.c
3673    for i in 1 2 3 4 5 6; do
3674      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3675      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3676      # Solaris 8's {/usr,}/bin/sh.
3677      touch sub/conftst$i.h
3678    done
3679    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3680
3681    case $depmode in
3682    nosideeffect)
3683      # after this tag, mechanisms are not by side-effect, so they'll
3684      # only be used when explicitly requested
3685      if test "x$enable_dependency_tracking" = xyes; then
3686	continue
3687      else
3688	break
3689      fi
3690      ;;
3691    none) break ;;
3692    esac
3693    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3694    # mode.  It turns out that the SunPro C++ compiler does not properly
3695    # handle `-M -o', and we need to detect this.
3696    if depmode=$depmode \
3697       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3698       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3699       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3700         >/dev/null 2>conftest.err &&
3701       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3702       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3703       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3704      # icc doesn't choke on unknown options, it will just issue warnings
3705      # or remarks (even with -Werror).  So we grep stderr for any message
3706      # that says an option was ignored or not supported.
3707      # When given -MP, icc 7.0 and 7.1 complain thusly:
3708      #   icc: Command line warning: ignoring option '-M'; no argument required
3709      # The diagnosis changed in icc 8.0:
3710      #   icc: Command line remark: option '-MP' not supported
3711      if (grep 'ignoring option' conftest.err ||
3712          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3713        am_cv_CXX_dependencies_compiler_type=$depmode
3714        break
3715      fi
3716    fi
3717  done
3718
3719  cd ..
3720  rm -rf conftest.dir
3721else
3722  am_cv_CXX_dependencies_compiler_type=none
3723fi
3724
3725fi
3726echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3727echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3728CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3729
3730
3731
3732if
3733  test "x$enable_dependency_tracking" != xno \
3734  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3735  am__fastdepCXX_TRUE=
3736  am__fastdepCXX_FALSE='#'
3737else
3738  am__fastdepCXX_TRUE='#'
3739  am__fastdepCXX_FALSE=
3740fi
3741
3742
3743
3744ac_ext=c
3745ac_cpp='$CPP $CPPFLAGS'
3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3748ac_compiler_gnu=$ac_cv_c_compiler_gnu
3749echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3750echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3751# On Suns, sometimes $CPP names a directory.
3752if test -n "$CPP" && test -d "$CPP"; then
3753  CPP=
3754fi
3755if test -z "$CPP"; then
3756  if test "${ac_cv_prog_CPP+set}" = set; then
3757  echo $ECHO_N "(cached) $ECHO_C" >&6
3758else
3759      # Double quotes because CPP needs to be expanded
3760    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3761    do
3762      ac_preproc_ok=false
3763for ac_c_preproc_warn_flag in '' yes
3764do
3765  # Use a header file that comes with gcc, so configuring glibc
3766  # with a fresh cross-compiler works.
3767  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3768  # <limits.h> exists even on freestanding compilers.
3769  # On the NeXT, cc -E runs the code through the compiler's parser,
3770  # not just through cpp. "Syntax error" is here to catch this case.
3771  cat >conftest.$ac_ext <<_ACEOF
3772/* confdefs.h.  */
3773_ACEOF
3774cat confdefs.h >>conftest.$ac_ext
3775cat >>conftest.$ac_ext <<_ACEOF
3776/* end confdefs.h.  */
3777#ifdef __STDC__
3778# include <limits.h>
3779#else
3780# include <assert.h>
3781#endif
3782		     Syntax error
3783_ACEOF
3784if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3785  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3786  ac_status=$?
3787  grep -v '^ *+' conftest.er1 >conftest.err
3788  rm -f conftest.er1
3789  cat conftest.err >&5
3790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791  (exit $ac_status); } >/dev/null; then
3792  if test -s conftest.err; then
3793    ac_cpp_err=$ac_c_preproc_warn_flag
3794    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3795  else
3796    ac_cpp_err=
3797  fi
3798else
3799  ac_cpp_err=yes
3800fi
3801if test -z "$ac_cpp_err"; then
3802  :
3803else
3804  echo "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807  # Broken: fails on valid input.
3808continue
3809fi
3810rm -f conftest.err conftest.$ac_ext
3811
3812  # OK, works on sane cases.  Now check whether non-existent headers
3813  # can be detected and how.
3814  cat >conftest.$ac_ext <<_ACEOF
3815/* confdefs.h.  */
3816_ACEOF
3817cat confdefs.h >>conftest.$ac_ext
3818cat >>conftest.$ac_ext <<_ACEOF
3819/* end confdefs.h.  */
3820#include <ac_nonexistent.h>
3821_ACEOF
3822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3824  ac_status=$?
3825  grep -v '^ *+' conftest.er1 >conftest.err
3826  rm -f conftest.er1
3827  cat conftest.err >&5
3828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829  (exit $ac_status); } >/dev/null; then
3830  if test -s conftest.err; then
3831    ac_cpp_err=$ac_c_preproc_warn_flag
3832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3833  else
3834    ac_cpp_err=
3835  fi
3836else
3837  ac_cpp_err=yes
3838fi
3839if test -z "$ac_cpp_err"; then
3840  # Broken: success on invalid input.
3841continue
3842else
3843  echo "$as_me: failed program was:" >&5
3844sed 's/^/| /' conftest.$ac_ext >&5
3845
3846  # Passes both tests.
3847ac_preproc_ok=:
3848break
3849fi
3850rm -f conftest.err conftest.$ac_ext
3851
3852done
3853# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3854rm -f conftest.err conftest.$ac_ext
3855if $ac_preproc_ok; then
3856  break
3857fi
3858
3859    done
3860    ac_cv_prog_CPP=$CPP
3861
3862fi
3863  CPP=$ac_cv_prog_CPP
3864else
3865  ac_cv_prog_CPP=$CPP
3866fi
3867echo "$as_me:$LINENO: result: $CPP" >&5
3868echo "${ECHO_T}$CPP" >&6
3869ac_preproc_ok=false
3870for ac_c_preproc_warn_flag in '' yes
3871do
3872  # Use a header file that comes with gcc, so configuring glibc
3873  # with a fresh cross-compiler works.
3874  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3875  # <limits.h> exists even on freestanding compilers.
3876  # On the NeXT, cc -E runs the code through the compiler's parser,
3877  # not just through cpp. "Syntax error" is here to catch this case.
3878  cat >conftest.$ac_ext <<_ACEOF
3879/* confdefs.h.  */
3880_ACEOF
3881cat confdefs.h >>conftest.$ac_ext
3882cat >>conftest.$ac_ext <<_ACEOF
3883/* end confdefs.h.  */
3884#ifdef __STDC__
3885# include <limits.h>
3886#else
3887# include <assert.h>
3888#endif
3889		     Syntax error
3890_ACEOF
3891if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3892  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3893  ac_status=$?
3894  grep -v '^ *+' conftest.er1 >conftest.err
3895  rm -f conftest.er1
3896  cat conftest.err >&5
3897  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898  (exit $ac_status); } >/dev/null; then
3899  if test -s conftest.err; then
3900    ac_cpp_err=$ac_c_preproc_warn_flag
3901    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3902  else
3903    ac_cpp_err=
3904  fi
3905else
3906  ac_cpp_err=yes
3907fi
3908if test -z "$ac_cpp_err"; then
3909  :
3910else
3911  echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914  # Broken: fails on valid input.
3915continue
3916fi
3917rm -f conftest.err conftest.$ac_ext
3918
3919  # OK, works on sane cases.  Now check whether non-existent headers
3920  # can be detected and how.
3921  cat >conftest.$ac_ext <<_ACEOF
3922/* confdefs.h.  */
3923_ACEOF
3924cat confdefs.h >>conftest.$ac_ext
3925cat >>conftest.$ac_ext <<_ACEOF
3926/* end confdefs.h.  */
3927#include <ac_nonexistent.h>
3928_ACEOF
3929if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3930  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3931  ac_status=$?
3932  grep -v '^ *+' conftest.er1 >conftest.err
3933  rm -f conftest.er1
3934  cat conftest.err >&5
3935  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936  (exit $ac_status); } >/dev/null; then
3937  if test -s conftest.err; then
3938    ac_cpp_err=$ac_c_preproc_warn_flag
3939    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3940  else
3941    ac_cpp_err=
3942  fi
3943else
3944  ac_cpp_err=yes
3945fi
3946if test -z "$ac_cpp_err"; then
3947  # Broken: success on invalid input.
3948continue
3949else
3950  echo "$as_me: failed program was:" >&5
3951sed 's/^/| /' conftest.$ac_ext >&5
3952
3953  # Passes both tests.
3954ac_preproc_ok=:
3955break
3956fi
3957rm -f conftest.err conftest.$ac_ext
3958
3959done
3960# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3961rm -f conftest.err conftest.$ac_ext
3962if $ac_preproc_ok; then
3963  :
3964else
3965  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3966See \`config.log' for more details." >&5
3967echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3968See \`config.log' for more details." >&2;}
3969   { (exit 1); exit 1; }; }
3970fi
3971
3972ac_ext=c
3973ac_cpp='$CPP $CPPFLAGS'
3974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3976ac_compiler_gnu=$ac_cv_c_compiler_gnu
3977
3978
3979echo "$as_me:$LINENO: checking for egrep" >&5
3980echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3981if test "${ac_cv_prog_egrep+set}" = set; then
3982  echo $ECHO_N "(cached) $ECHO_C" >&6
3983else
3984  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3985    then ac_cv_prog_egrep='grep -E'
3986    else ac_cv_prog_egrep='egrep'
3987    fi
3988fi
3989echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3990echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3991 EGREP=$ac_cv_prog_egrep
3992
3993
3994if test $ac_cv_c_compiler_gnu = yes; then
3995    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
3996echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
3997if test "${ac_cv_prog_gcc_traditional+set}" = set; then
3998  echo $ECHO_N "(cached) $ECHO_C" >&6
3999else
4000    ac_pattern="Autoconf.*'x'"
4001  cat >conftest.$ac_ext <<_ACEOF
4002/* confdefs.h.  */
4003_ACEOF
4004cat confdefs.h >>conftest.$ac_ext
4005cat >>conftest.$ac_ext <<_ACEOF
4006/* end confdefs.h.  */
4007#include <sgtty.h>
4008Autoconf TIOCGETP
4009_ACEOF
4010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4012  ac_cv_prog_gcc_traditional=yes
4013else
4014  ac_cv_prog_gcc_traditional=no
4015fi
4016rm -f conftest*
4017
4018
4019  if test $ac_cv_prog_gcc_traditional = no; then
4020    cat >conftest.$ac_ext <<_ACEOF
4021/* confdefs.h.  */
4022_ACEOF
4023cat confdefs.h >>conftest.$ac_ext
4024cat >>conftest.$ac_ext <<_ACEOF
4025/* end confdefs.h.  */
4026#include <termio.h>
4027Autoconf TCGETA
4028_ACEOF
4029if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4030  $EGREP "$ac_pattern" >/dev/null 2>&1; then
4031  ac_cv_prog_gcc_traditional=yes
4032fi
4033rm -f conftest*
4034
4035  fi
4036fi
4037echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4038echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4039  if test $ac_cv_prog_gcc_traditional = yes; then
4040    CC="$CC -traditional"
4041  fi
4042fi
4043
4044# Check whether --enable-shared or --disable-shared was given.
4045if test "${enable_shared+set}" = set; then
4046  enableval="$enable_shared"
4047  p=${PACKAGE-default}
4048    case $enableval in
4049    yes) enable_shared=yes ;;
4050    no) enable_shared=no ;;
4051    *)
4052      enable_shared=no
4053      # Look at the argument we got.  We use all the common list separators.
4054      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4055      for pkg in $enableval; do
4056	IFS="$lt_save_ifs"
4057	if test "X$pkg" = "X$p"; then
4058	  enable_shared=yes
4059	fi
4060      done
4061      IFS="$lt_save_ifs"
4062      ;;
4063    esac
4064else
4065  enable_shared=yes
4066fi;
4067
4068# Check whether --enable-static or --disable-static was given.
4069if test "${enable_static+set}" = set; then
4070  enableval="$enable_static"
4071  p=${PACKAGE-default}
4072    case $enableval in
4073    yes) enable_static=yes ;;
4074    no) enable_static=no ;;
4075    *)
4076     enable_static=no
4077      # Look at the argument we got.  We use all the common list separators.
4078      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4079      for pkg in $enableval; do
4080	IFS="$lt_save_ifs"
4081	if test "X$pkg" = "X$p"; then
4082	  enable_static=yes
4083	fi
4084      done
4085      IFS="$lt_save_ifs"
4086      ;;
4087    esac
4088else
4089  enable_static=yes
4090fi;
4091
4092# Check whether --enable-fast-install or --disable-fast-install was given.
4093if test "${enable_fast_install+set}" = set; then
4094  enableval="$enable_fast_install"
4095  p=${PACKAGE-default}
4096    case $enableval in
4097    yes) enable_fast_install=yes ;;
4098    no) enable_fast_install=no ;;
4099    *)
4100      enable_fast_install=no
4101      # Look at the argument we got.  We use all the common list separators.
4102      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4103      for pkg in $enableval; do
4104	IFS="$lt_save_ifs"
4105	if test "X$pkg" = "X$p"; then
4106	  enable_fast_install=yes
4107	fi
4108      done
4109      IFS="$lt_save_ifs"
4110      ;;
4111    esac
4112else
4113  enable_fast_install=yes
4114fi;
4115
4116echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4117echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4118if test "${lt_cv_path_SED+set}" = set; then
4119  echo $ECHO_N "(cached) $ECHO_C" >&6
4120else
4121  # Loop through the user's path and test for sed and gsed.
4122# Then use that list of sed's as ones to test for truncation.
4123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124for as_dir in $PATH
4125do
4126  IFS=$as_save_IFS
4127  test -z "$as_dir" && as_dir=.
4128  for lt_ac_prog in sed gsed; do
4129    for ac_exec_ext in '' $ac_executable_extensions; do
4130      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4131        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4132      fi
4133    done
4134  done
4135done
4136IFS=$as_save_IFS
4137lt_ac_max=0
4138lt_ac_count=0
4139# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4140# along with /bin/sed that truncates output.
4141for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4142  test ! -f $lt_ac_sed && continue
4143  cat /dev/null > conftest.in
4144  lt_ac_count=0
4145  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4146  # Check for GNU sed and select it if it is found.
4147  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4148    lt_cv_path_SED=$lt_ac_sed
4149    break
4150  fi
4151  while true; do
4152    cat conftest.in conftest.in >conftest.tmp
4153    mv conftest.tmp conftest.in
4154    cp conftest.in conftest.nl
4155    echo >>conftest.nl
4156    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4157    cmp -s conftest.out conftest.nl || break
4158    # 10000 chars as input seems more than enough
4159    test $lt_ac_count -gt 10 && break
4160    lt_ac_count=`expr $lt_ac_count + 1`
4161    if test $lt_ac_count -gt $lt_ac_max; then
4162      lt_ac_max=$lt_ac_count
4163      lt_cv_path_SED=$lt_ac_sed
4164    fi
4165  done
4166done
4167
4168fi
4169
4170SED=$lt_cv_path_SED
4171
4172echo "$as_me:$LINENO: result: $SED" >&5
4173echo "${ECHO_T}$SED" >&6
4174
4175
4176# Check whether --with-gnu-ld or --without-gnu-ld was given.
4177if test "${with_gnu_ld+set}" = set; then
4178  withval="$with_gnu_ld"
4179  test "$withval" = no || with_gnu_ld=yes
4180else
4181  with_gnu_ld=no
4182fi;
4183ac_prog=ld
4184if test "$GCC" = yes; then
4185  # Check if gcc -print-prog-name=ld gives a path.
4186  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4187echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4188  case $host in
4189  *-*-mingw*)
4190    # gcc leaves a trailing carriage return which upsets mingw
4191    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4192  *)
4193    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4194  esac
4195  case $ac_prog in
4196    # Accept absolute paths.
4197    [\\/]* | ?:[\\/]*)
4198      re_direlt='/[^/][^/]*/\.\./'
4199      # Canonicalize the pathname of ld
4200      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4201      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4202	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4203      done
4204      test -z "$LD" && LD="$ac_prog"
4205      ;;
4206  "")
4207    # If it fails, then pretend we aren't using GCC.
4208    ac_prog=ld
4209    ;;
4210  *)
4211    # If it is relative, then search for the first ld in PATH.
4212    with_gnu_ld=unknown
4213    ;;
4214  esac
4215elif test "$with_gnu_ld" = yes; then
4216  echo "$as_me:$LINENO: checking for GNU ld" >&5
4217echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4218else
4219  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4220echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4221fi
4222if test "${lt_cv_path_LD+set}" = set; then
4223  echo $ECHO_N "(cached) $ECHO_C" >&6
4224else
4225  if test -z "$LD"; then
4226  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4227  for ac_dir in $PATH; do
4228    IFS="$lt_save_ifs"
4229    test -z "$ac_dir" && ac_dir=.
4230    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4231      lt_cv_path_LD="$ac_dir/$ac_prog"
4232      # Check to see if the program is GNU ld.  I'd rather use --version,
4233      # but apparently some variants of GNU ld only accept -v.
4234      # Break only if it was the GNU/non-GNU ld that we prefer.
4235      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4236      *GNU* | *'with BFD'*)
4237	test "$with_gnu_ld" != no && break
4238	;;
4239      *)
4240	test "$with_gnu_ld" != yes && break
4241	;;
4242      esac
4243    fi
4244  done
4245  IFS="$lt_save_ifs"
4246else
4247  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4248fi
4249fi
4250
4251LD="$lt_cv_path_LD"
4252if test -n "$LD"; then
4253  echo "$as_me:$LINENO: result: $LD" >&5
4254echo "${ECHO_T}$LD" >&6
4255else
4256  echo "$as_me:$LINENO: result: no" >&5
4257echo "${ECHO_T}no" >&6
4258fi
4259test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4260echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4261   { (exit 1); exit 1; }; }
4262echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4263echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4264if test "${lt_cv_prog_gnu_ld+set}" = set; then
4265  echo $ECHO_N "(cached) $ECHO_C" >&6
4266else
4267  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4268case `$LD -v 2>&1 </dev/null` in
4269*GNU* | *'with BFD'*)
4270  lt_cv_prog_gnu_ld=yes
4271  ;;
4272*)
4273  lt_cv_prog_gnu_ld=no
4274  ;;
4275esac
4276fi
4277echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4278echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4279with_gnu_ld=$lt_cv_prog_gnu_ld
4280
4281
4282echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4283echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4284if test "${lt_cv_ld_reload_flag+set}" = set; then
4285  echo $ECHO_N "(cached) $ECHO_C" >&6
4286else
4287  lt_cv_ld_reload_flag='-r'
4288fi
4289echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4290echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4291reload_flag=$lt_cv_ld_reload_flag
4292case $reload_flag in
4293"" | " "*) ;;
4294*) reload_flag=" $reload_flag" ;;
4295esac
4296reload_cmds='$LD$reload_flag -o $output$reload_objs'
4297case $host_os in
4298  darwin*)
4299    if test "$GCC" = yes; then
4300      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4301    else
4302      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4303    fi
4304    ;;
4305esac
4306
4307echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4308echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4309if test "${lt_cv_path_NM+set}" = set; then
4310  echo $ECHO_N "(cached) $ECHO_C" >&6
4311else
4312  if test -n "$NM"; then
4313  # Let the user override the test.
4314  lt_cv_path_NM="$NM"
4315else
4316  lt_nm_to_check="${ac_tool_prefix}nm"
4317  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4318    lt_nm_to_check="$lt_nm_to_check nm"
4319  fi
4320  for lt_tmp_nm in $lt_nm_to_check; do
4321    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4322    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4323      IFS="$lt_save_ifs"
4324      test -z "$ac_dir" && ac_dir=.
4325      tmp_nm="$ac_dir/$lt_tmp_nm"
4326      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4327	# Check to see if the nm accepts a BSD-compat flag.
4328	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4329	#   nm: unknown option "B" ignored
4330	# Tru64's nm complains that /dev/null is an invalid object file
4331	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4332	*/dev/null* | *'Invalid file or object type'*)
4333	  lt_cv_path_NM="$tmp_nm -B"
4334	  break
4335	  ;;
4336	*)
4337	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4338	  */dev/null*)
4339	    lt_cv_path_NM="$tmp_nm -p"
4340	    break
4341	    ;;
4342	  *)
4343	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4344	    continue # so that we can try to find one that supports BSD flags
4345	    ;;
4346	  esac
4347	  ;;
4348	esac
4349      fi
4350    done
4351    IFS="$lt_save_ifs"
4352  done
4353  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4354fi
4355fi
4356echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4357echo "${ECHO_T}$lt_cv_path_NM" >&6
4358NM="$lt_cv_path_NM"
4359
4360echo "$as_me:$LINENO: checking whether ln -s works" >&5
4361echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4362LN_S=$as_ln_s
4363if test "$LN_S" = "ln -s"; then
4364  echo "$as_me:$LINENO: result: yes" >&5
4365echo "${ECHO_T}yes" >&6
4366else
4367  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4368echo "${ECHO_T}no, using $LN_S" >&6
4369fi
4370
4371echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4372echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4373if test "${lt_cv_deplibs_check_method+set}" = set; then
4374  echo $ECHO_N "(cached) $ECHO_C" >&6
4375else
4376  lt_cv_file_magic_cmd='$MAGIC_CMD'
4377lt_cv_file_magic_test_file=
4378lt_cv_deplibs_check_method='unknown'
4379# Need to set the preceding variable on all platforms that support
4380# interlibrary dependencies.
4381# 'none' -- dependencies not supported.
4382# `unknown' -- same as none, but documents that we really don't know.
4383# 'pass_all' -- all dependencies passed with no checks.
4384# 'test_compile' -- check by making test program.
4385# 'file_magic [[regex]]' -- check by looking for files in library path
4386# which responds to the $file_magic_cmd with a given extended regex.
4387# If you have `file' or equivalent on your system and you're not sure
4388# whether `pass_all' will *always* work, you probably want this one.
4389
4390case $host_os in
4391aix[4-9]*)
4392  lt_cv_deplibs_check_method=pass_all
4393  ;;
4394
4395beos*)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399bsdi[45]*)
4400  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4401  lt_cv_file_magic_cmd='/usr/bin/file -L'
4402  lt_cv_file_magic_test_file=/shlib/libc.so
4403  ;;
4404
4405cygwin*)
4406  # func_win32_libid is a shell function defined in ltmain.sh
4407  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4408  lt_cv_file_magic_cmd='func_win32_libid'
4409  ;;
4410
4411mingw* | pw32*)
4412  # Base MSYS/MinGW do not provide the 'file' command needed by
4413  # func_win32_libid shell function, so use a weaker test based on 'objdump',
4414  # unless we find 'file', for example because we are cross-compiling.
4415  if ( file / ) >/dev/null 2>&1; then
4416    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4417    lt_cv_file_magic_cmd='func_win32_libid'
4418  else
4419    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4420    lt_cv_file_magic_cmd='$OBJDUMP -f'
4421  fi
4422  ;;
4423
4424darwin* | rhapsody*)
4425  lt_cv_deplibs_check_method=pass_all
4426  ;;
4427
4428freebsd* | dragonfly*)
4429  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4430    case $host_cpu in
4431    i*86 )
4432      # Not sure whether the presence of OpenBSD here was a mistake.
4433      # Let's accept both of them until this is cleared up.
4434      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4435      lt_cv_file_magic_cmd=/usr/bin/file
4436      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4437      ;;
4438    esac
4439  else
4440    lt_cv_deplibs_check_method=pass_all
4441  fi
4442  ;;
4443
4444gnu*)
4445  lt_cv_deplibs_check_method=pass_all
4446  ;;
4447
4448hpux10.20* | hpux11*)
4449  lt_cv_file_magic_cmd=/usr/bin/file
4450  case $host_cpu in
4451  ia64*)
4452    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4453    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4454    ;;
4455  hppa*64*)
4456    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4457    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4458    ;;
4459  *)
4460    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4461    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4462    ;;
4463  esac
4464  ;;
4465
4466interix[3-9]*)
4467  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4468  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4469  ;;
4470
4471irix5* | irix6* | nonstopux*)
4472  case $LD in
4473  *-32|*"-32 ") libmagic=32-bit;;
4474  *-n32|*"-n32 ") libmagic=N32;;
4475  *-64|*"-64 ") libmagic=64-bit;;
4476  *) libmagic=never-match;;
4477  esac
4478  lt_cv_deplibs_check_method=pass_all
4479  ;;
4480
4481# This must be Linux ELF.
4482linux* | k*bsd*-gnu)
4483  lt_cv_deplibs_check_method=pass_all
4484  ;;
4485
4486netbsd*)
4487  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4488    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4489  else
4490    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4491  fi
4492  ;;
4493
4494newos6*)
4495  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4496  lt_cv_file_magic_cmd=/usr/bin/file
4497  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4498  ;;
4499
4500nto-qnx*)
4501  lt_cv_deplibs_check_method=unknown
4502  ;;
4503
4504openbsd*)
4505  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4506    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4507  else
4508    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4509  fi
4510  ;;
4511
4512osf3* | osf4* | osf5*)
4513  lt_cv_deplibs_check_method=pass_all
4514  ;;
4515
4516rdos*)
4517  lt_cv_deplibs_check_method=pass_all
4518  ;;
4519
4520solaris*)
4521  lt_cv_deplibs_check_method=pass_all
4522  ;;
4523
4524sysv4 | sysv4.3*)
4525  case $host_vendor in
4526  motorola)
4527    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]'
4528    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4529    ;;
4530  ncr)
4531    lt_cv_deplibs_check_method=pass_all
4532    ;;
4533  sequent)
4534    lt_cv_file_magic_cmd='/bin/file'
4535    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4536    ;;
4537  sni)
4538    lt_cv_file_magic_cmd='/bin/file'
4539    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4540    lt_cv_file_magic_test_file=/lib/libc.so
4541    ;;
4542  siemens)
4543    lt_cv_deplibs_check_method=pass_all
4544    ;;
4545  pc)
4546    lt_cv_deplibs_check_method=pass_all
4547    ;;
4548  esac
4549  ;;
4550
4551sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4552  lt_cv_deplibs_check_method=pass_all
4553  ;;
4554esac
4555
4556fi
4557echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4558echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4559file_magic_cmd=$lt_cv_file_magic_cmd
4560deplibs_check_method=$lt_cv_deplibs_check_method
4561test -z "$deplibs_check_method" && deplibs_check_method=unknown
4562
4563
4564
4565
4566# If no C compiler was specified, use CC.
4567LTCC=${LTCC-"$CC"}
4568
4569# If no C compiler flags were specified, use CFLAGS.
4570LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4571
4572# Allow CC to be a program name with arguments.
4573compiler=$CC
4574
4575# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4576if test "${enable_libtool_lock+set}" = set; then
4577  enableval="$enable_libtool_lock"
4578
4579fi;
4580test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4581
4582# Some flags need to be propagated to the compiler or linker for good
4583# libtool support.
4584case $host in
4585ia64-*-hpux*)
4586  # Find out which ABI we are using.
4587  echo 'int i;' > conftest.$ac_ext
4588  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4589  (eval $ac_compile) 2>&5
4590  ac_status=$?
4591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592  (exit $ac_status); }; then
4593    case `/usr/bin/file conftest.$ac_objext` in
4594    *ELF-32*)
4595      HPUX_IA64_MODE="32"
4596      ;;
4597    *ELF-64*)
4598      HPUX_IA64_MODE="64"
4599      ;;
4600    esac
4601  fi
4602  rm -rf conftest*
4603  ;;
4604*-*-irix6*)
4605  # Find out which ABI we are using.
4606  echo '#line 4606 "configure"' > conftest.$ac_ext
4607  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4608  (eval $ac_compile) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; then
4612   if test "$lt_cv_prog_gnu_ld" = yes; then
4613    case `/usr/bin/file conftest.$ac_objext` in
4614    *32-bit*)
4615      LD="${LD-ld} -melf32bsmip"
4616      ;;
4617    *N32*)
4618      LD="${LD-ld} -melf32bmipn32"
4619      ;;
4620    *64-bit*)
4621      LD="${LD-ld} -melf64bmip"
4622      ;;
4623    esac
4624   else
4625    case `/usr/bin/file conftest.$ac_objext` in
4626    *32-bit*)
4627      LD="${LD-ld} -32"
4628      ;;
4629    *N32*)
4630      LD="${LD-ld} -n32"
4631      ;;
4632    *64-bit*)
4633      LD="${LD-ld} -64"
4634      ;;
4635    esac
4636   fi
4637  fi
4638  rm -rf conftest*
4639  ;;
4640
4641x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4642s390*-*linux*|sparc*-*linux*)
4643  # Find out which ABI we are using.
4644  echo 'int i;' > conftest.$ac_ext
4645  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4646  (eval $ac_compile) 2>&5
4647  ac_status=$?
4648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649  (exit $ac_status); }; then
4650    case `/usr/bin/file conftest.o` in
4651    *32-bit*)
4652      case $host in
4653        x86_64-*kfreebsd*-gnu)
4654          LD="${LD-ld} -m elf_i386_fbsd"
4655          ;;
4656        x86_64-*linux*)
4657          LD="${LD-ld} -m elf_i386"
4658          ;;
4659        ppc64-*linux*|powerpc64-*linux*)
4660          LD="${LD-ld} -m elf32ppclinux"
4661          ;;
4662        s390x-*linux*)
4663          LD="${LD-ld} -m elf_s390"
4664          ;;
4665        sparc64-*linux*)
4666          LD="${LD-ld} -m elf32_sparc"
4667          ;;
4668      esac
4669      ;;
4670    *64-bit*)
4671      libsuff=64
4672      case $host in
4673        x86_64-*kfreebsd*-gnu)
4674          LD="${LD-ld} -m elf_x86_64_fbsd"
4675          ;;
4676        x86_64-*linux*)
4677          LD="${LD-ld} -m elf_x86_64"
4678          ;;
4679        ppc*-*linux*|powerpc*-*linux*)
4680          LD="${LD-ld} -m elf64ppc"
4681          ;;
4682        s390*-*linux*)
4683          LD="${LD-ld} -m elf64_s390"
4684          ;;
4685        sparc*-*linux*)
4686          LD="${LD-ld} -m elf64_sparc"
4687          ;;
4688      esac
4689      ;;
4690    esac
4691  fi
4692  rm -rf conftest*
4693  ;;
4694
4695*-*-sco3.2v5*)
4696  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4697  SAVE_CFLAGS="$CFLAGS"
4698  CFLAGS="$CFLAGS -belf"
4699  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4700echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4701if test "${lt_cv_cc_needs_belf+set}" = set; then
4702  echo $ECHO_N "(cached) $ECHO_C" >&6
4703else
4704  ac_ext=c
4705ac_cpp='$CPP $CPPFLAGS'
4706ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4707ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4708ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709
4710     cat >conftest.$ac_ext <<_ACEOF
4711/* confdefs.h.  */
4712_ACEOF
4713cat confdefs.h >>conftest.$ac_ext
4714cat >>conftest.$ac_ext <<_ACEOF
4715/* end confdefs.h.  */
4716
4717int
4718main ()
4719{
4720
4721  ;
4722  return 0;
4723}
4724_ACEOF
4725rm -f conftest.$ac_objext conftest$ac_exeext
4726if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4727  (eval $ac_link) 2>conftest.er1
4728  ac_status=$?
4729  grep -v '^ *+' conftest.er1 >conftest.err
4730  rm -f conftest.er1
4731  cat conftest.err >&5
4732  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733  (exit $ac_status); } &&
4734	 { ac_try='test -z "$ac_c_werror_flag"
4735			 || test ! -s conftest.err'
4736  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4737  (eval $ac_try) 2>&5
4738  ac_status=$?
4739  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740  (exit $ac_status); }; } &&
4741	 { ac_try='test -s conftest$ac_exeext'
4742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4743  (eval $ac_try) 2>&5
4744  ac_status=$?
4745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746  (exit $ac_status); }; }; then
4747  lt_cv_cc_needs_belf=yes
4748else
4749  echo "$as_me: failed program was:" >&5
4750sed 's/^/| /' conftest.$ac_ext >&5
4751
4752lt_cv_cc_needs_belf=no
4753fi
4754rm -f conftest.err conftest.$ac_objext \
4755      conftest$ac_exeext conftest.$ac_ext
4756     ac_ext=c
4757ac_cpp='$CPP $CPPFLAGS'
4758ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760ac_compiler_gnu=$ac_cv_c_compiler_gnu
4761
4762fi
4763echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4764echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4765  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4766    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4767    CFLAGS="$SAVE_CFLAGS"
4768  fi
4769  ;;
4770sparc*-*solaris*)
4771  # Find out which ABI we are using.
4772  echo 'int i;' > conftest.$ac_ext
4773  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4774  (eval $ac_compile) 2>&5
4775  ac_status=$?
4776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777  (exit $ac_status); }; then
4778    case `/usr/bin/file conftest.o` in
4779    *64-bit*)
4780      case $lt_cv_prog_gnu_ld in
4781      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4782      *)
4783        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4784	  LD="${LD-ld} -64"
4785	fi
4786	;;
4787      esac
4788      ;;
4789    esac
4790  fi
4791  rm -rf conftest*
4792  ;;
4793
4794
4795esac
4796
4797need_locks="$enable_libtool_lock"
4798
4799
4800echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4801echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4802if test "${ac_cv_header_stdc+set}" = set; then
4803  echo $ECHO_N "(cached) $ECHO_C" >&6
4804else
4805  cat >conftest.$ac_ext <<_ACEOF
4806/* confdefs.h.  */
4807_ACEOF
4808cat confdefs.h >>conftest.$ac_ext
4809cat >>conftest.$ac_ext <<_ACEOF
4810/* end confdefs.h.  */
4811#include <stdlib.h>
4812#include <stdarg.h>
4813#include <string.h>
4814#include <float.h>
4815
4816int
4817main ()
4818{
4819
4820  ;
4821  return 0;
4822}
4823_ACEOF
4824rm -f conftest.$ac_objext
4825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4826  (eval $ac_compile) 2>conftest.er1
4827  ac_status=$?
4828  grep -v '^ *+' conftest.er1 >conftest.err
4829  rm -f conftest.er1
4830  cat conftest.err >&5
4831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832  (exit $ac_status); } &&
4833	 { ac_try='test -z "$ac_c_werror_flag"
4834			 || test ! -s conftest.err'
4835  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4836  (eval $ac_try) 2>&5
4837  ac_status=$?
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); }; } &&
4840	 { ac_try='test -s conftest.$ac_objext'
4841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4842  (eval $ac_try) 2>&5
4843  ac_status=$?
4844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845  (exit $ac_status); }; }; then
4846  ac_cv_header_stdc=yes
4847else
4848  echo "$as_me: failed program was:" >&5
4849sed 's/^/| /' conftest.$ac_ext >&5
4850
4851ac_cv_header_stdc=no
4852fi
4853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4854
4855if test $ac_cv_header_stdc = yes; then
4856  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4857  cat >conftest.$ac_ext <<_ACEOF
4858/* confdefs.h.  */
4859_ACEOF
4860cat confdefs.h >>conftest.$ac_ext
4861cat >>conftest.$ac_ext <<_ACEOF
4862/* end confdefs.h.  */
4863#include <string.h>
4864
4865_ACEOF
4866if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4867  $EGREP "memchr" >/dev/null 2>&1; then
4868  :
4869else
4870  ac_cv_header_stdc=no
4871fi
4872rm -f conftest*
4873
4874fi
4875
4876if test $ac_cv_header_stdc = yes; then
4877  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4878  cat >conftest.$ac_ext <<_ACEOF
4879/* confdefs.h.  */
4880_ACEOF
4881cat confdefs.h >>conftest.$ac_ext
4882cat >>conftest.$ac_ext <<_ACEOF
4883/* end confdefs.h.  */
4884#include <stdlib.h>
4885
4886_ACEOF
4887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4888  $EGREP "free" >/dev/null 2>&1; then
4889  :
4890else
4891  ac_cv_header_stdc=no
4892fi
4893rm -f conftest*
4894
4895fi
4896
4897if test $ac_cv_header_stdc = yes; then
4898  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4899  if test "$cross_compiling" = yes; then
4900  :
4901else
4902  cat >conftest.$ac_ext <<_ACEOF
4903/* confdefs.h.  */
4904_ACEOF
4905cat confdefs.h >>conftest.$ac_ext
4906cat >>conftest.$ac_ext <<_ACEOF
4907/* end confdefs.h.  */
4908#include <ctype.h>
4909#if ((' ' & 0x0FF) == 0x020)
4910# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4911# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4912#else
4913# define ISLOWER(c) \
4914		   (('a' <= (c) && (c) <= 'i') \
4915		     || ('j' <= (c) && (c) <= 'r') \
4916		     || ('s' <= (c) && (c) <= 'z'))
4917# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4918#endif
4919
4920#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4921int
4922main ()
4923{
4924  int i;
4925  for (i = 0; i < 256; i++)
4926    if (XOR (islower (i), ISLOWER (i))
4927	|| toupper (i) != TOUPPER (i))
4928      exit(2);
4929  exit (0);
4930}
4931_ACEOF
4932rm -f conftest$ac_exeext
4933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4934  (eval $ac_link) 2>&5
4935  ac_status=$?
4936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4937  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4938  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4939  (eval $ac_try) 2>&5
4940  ac_status=$?
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); }; }; then
4943  :
4944else
4945  echo "$as_me: program exited with status $ac_status" >&5
4946echo "$as_me: failed program was:" >&5
4947sed 's/^/| /' conftest.$ac_ext >&5
4948
4949( exit $ac_status )
4950ac_cv_header_stdc=no
4951fi
4952rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4953fi
4954fi
4955fi
4956echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4957echo "${ECHO_T}$ac_cv_header_stdc" >&6
4958if test $ac_cv_header_stdc = yes; then
4959
4960cat >>confdefs.h <<\_ACEOF
4961#define STDC_HEADERS 1
4962_ACEOF
4963
4964fi
4965
4966# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4977		  inttypes.h stdint.h unistd.h
4978do
4979as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4980echo "$as_me:$LINENO: checking for $ac_header" >&5
4981echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4982if eval "test \"\${$as_ac_Header+set}\" = set"; then
4983  echo $ECHO_N "(cached) $ECHO_C" >&6
4984else
4985  cat >conftest.$ac_ext <<_ACEOF
4986/* confdefs.h.  */
4987_ACEOF
4988cat confdefs.h >>conftest.$ac_ext
4989cat >>conftest.$ac_ext <<_ACEOF
4990/* end confdefs.h.  */
4991$ac_includes_default
4992
4993#include <$ac_header>
4994_ACEOF
4995rm -f conftest.$ac_objext
4996if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4997  (eval $ac_compile) 2>conftest.er1
4998  ac_status=$?
4999  grep -v '^ *+' conftest.er1 >conftest.err
5000  rm -f conftest.er1
5001  cat conftest.err >&5
5002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5003  (exit $ac_status); } &&
5004	 { ac_try='test -z "$ac_c_werror_flag"
5005			 || test ! -s conftest.err'
5006  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007  (eval $ac_try) 2>&5
5008  ac_status=$?
5009  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010  (exit $ac_status); }; } &&
5011	 { ac_try='test -s conftest.$ac_objext'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; }; then
5017  eval "$as_ac_Header=yes"
5018else
5019  echo "$as_me: failed program was:" >&5
5020sed 's/^/| /' conftest.$ac_ext >&5
5021
5022eval "$as_ac_Header=no"
5023fi
5024rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025fi
5026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5028if test `eval echo '${'$as_ac_Header'}'` = yes; then
5029  cat >>confdefs.h <<_ACEOF
5030#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5031_ACEOF
5032
5033fi
5034
5035done
5036
5037
5038
5039for ac_header in dlfcn.h
5040do
5041as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5042if eval "test \"\${$as_ac_Header+set}\" = set"; then
5043  echo "$as_me:$LINENO: checking for $ac_header" >&5
5044echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5045if eval "test \"\${$as_ac_Header+set}\" = set"; then
5046  echo $ECHO_N "(cached) $ECHO_C" >&6
5047fi
5048echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050else
5051  # Is the header compilable?
5052echo "$as_me:$LINENO: checking $ac_header usability" >&5
5053echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5054cat >conftest.$ac_ext <<_ACEOF
5055/* confdefs.h.  */
5056_ACEOF
5057cat confdefs.h >>conftest.$ac_ext
5058cat >>conftest.$ac_ext <<_ACEOF
5059/* end confdefs.h.  */
5060$ac_includes_default
5061#include <$ac_header>
5062_ACEOF
5063rm -f conftest.$ac_objext
5064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5065  (eval $ac_compile) 2>conftest.er1
5066  ac_status=$?
5067  grep -v '^ *+' conftest.er1 >conftest.err
5068  rm -f conftest.er1
5069  cat conftest.err >&5
5070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071  (exit $ac_status); } &&
5072	 { ac_try='test -z "$ac_c_werror_flag"
5073			 || test ! -s conftest.err'
5074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075  (eval $ac_try) 2>&5
5076  ac_status=$?
5077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078  (exit $ac_status); }; } &&
5079	 { ac_try='test -s conftest.$ac_objext'
5080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5081  (eval $ac_try) 2>&5
5082  ac_status=$?
5083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5084  (exit $ac_status); }; }; then
5085  ac_header_compiler=yes
5086else
5087  echo "$as_me: failed program was:" >&5
5088sed 's/^/| /' conftest.$ac_ext >&5
5089
5090ac_header_compiler=no
5091fi
5092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5093echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5094echo "${ECHO_T}$ac_header_compiler" >&6
5095
5096# Is the header present?
5097echo "$as_me:$LINENO: checking $ac_header presence" >&5
5098echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5099cat >conftest.$ac_ext <<_ACEOF
5100/* confdefs.h.  */
5101_ACEOF
5102cat confdefs.h >>conftest.$ac_ext
5103cat >>conftest.$ac_ext <<_ACEOF
5104/* end confdefs.h.  */
5105#include <$ac_header>
5106_ACEOF
5107if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5108  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5109  ac_status=$?
5110  grep -v '^ *+' conftest.er1 >conftest.err
5111  rm -f conftest.er1
5112  cat conftest.err >&5
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); } >/dev/null; then
5115  if test -s conftest.err; then
5116    ac_cpp_err=$ac_c_preproc_warn_flag
5117    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5118  else
5119    ac_cpp_err=
5120  fi
5121else
5122  ac_cpp_err=yes
5123fi
5124if test -z "$ac_cpp_err"; then
5125  ac_header_preproc=yes
5126else
5127  echo "$as_me: failed program was:" >&5
5128sed 's/^/| /' conftest.$ac_ext >&5
5129
5130  ac_header_preproc=no
5131fi
5132rm -f conftest.err conftest.$ac_ext
5133echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5134echo "${ECHO_T}$ac_header_preproc" >&6
5135
5136# So?  What about this header?
5137case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5138  yes:no: )
5139    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5140echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5141    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5142echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5143    ac_header_preproc=yes
5144    ;;
5145  no:yes:* )
5146    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5147echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5148    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5149echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5150    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5151echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5152    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5153echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5154    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5155echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5156    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5157echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5158    (
5159      cat <<\_ASBOX
5160## ------------------------------------------ ##
5161## Report this to the AC_PACKAGE_NAME lists.  ##
5162## ------------------------------------------ ##
5163_ASBOX
5164    ) |
5165      sed "s/^/$as_me: WARNING:     /" >&2
5166    ;;
5167esac
5168echo "$as_me:$LINENO: checking for $ac_header" >&5
5169echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5170if eval "test \"\${$as_ac_Header+set}\" = set"; then
5171  echo $ECHO_N "(cached) $ECHO_C" >&6
5172else
5173  eval "$as_ac_Header=\$ac_header_preproc"
5174fi
5175echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5176echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5177
5178fi
5179if test `eval echo '${'$as_ac_Header'}'` = yes; then
5180  cat >>confdefs.h <<_ACEOF
5181#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5182_ACEOF
5183
5184fi
5185
5186done
5187
5188
5189
5190if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5191    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5192    (test "X$CXX" != "Xg++"))) ; then
5193  ac_ext=cc
5194ac_cpp='$CXXCPP $CPPFLAGS'
5195ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5196ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5197ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5198echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5199echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5200if test -z "$CXXCPP"; then
5201  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5202  echo $ECHO_N "(cached) $ECHO_C" >&6
5203else
5204      # Double quotes because CXXCPP needs to be expanded
5205    for CXXCPP in "$CXX -E" "/lib/cpp"
5206    do
5207      ac_preproc_ok=false
5208for ac_cxx_preproc_warn_flag in '' yes
5209do
5210  # Use a header file that comes with gcc, so configuring glibc
5211  # with a fresh cross-compiler works.
5212  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5213  # <limits.h> exists even on freestanding compilers.
5214  # On the NeXT, cc -E runs the code through the compiler's parser,
5215  # not just through cpp. "Syntax error" is here to catch this case.
5216  cat >conftest.$ac_ext <<_ACEOF
5217/* confdefs.h.  */
5218_ACEOF
5219cat confdefs.h >>conftest.$ac_ext
5220cat >>conftest.$ac_ext <<_ACEOF
5221/* end confdefs.h.  */
5222#ifdef __STDC__
5223# include <limits.h>
5224#else
5225# include <assert.h>
5226#endif
5227		     Syntax error
5228_ACEOF
5229if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5230  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5231  ac_status=$?
5232  grep -v '^ *+' conftest.er1 >conftest.err
5233  rm -f conftest.er1
5234  cat conftest.err >&5
5235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236  (exit $ac_status); } >/dev/null; then
5237  if test -s conftest.err; then
5238    ac_cpp_err=$ac_cxx_preproc_warn_flag
5239    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5240  else
5241    ac_cpp_err=
5242  fi
5243else
5244  ac_cpp_err=yes
5245fi
5246if test -z "$ac_cpp_err"; then
5247  :
5248else
5249  echo "$as_me: failed program was:" >&5
5250sed 's/^/| /' conftest.$ac_ext >&5
5251
5252  # Broken: fails on valid input.
5253continue
5254fi
5255rm -f conftest.err conftest.$ac_ext
5256
5257  # OK, works on sane cases.  Now check whether non-existent headers
5258  # can be detected and how.
5259  cat >conftest.$ac_ext <<_ACEOF
5260/* confdefs.h.  */
5261_ACEOF
5262cat confdefs.h >>conftest.$ac_ext
5263cat >>conftest.$ac_ext <<_ACEOF
5264/* end confdefs.h.  */
5265#include <ac_nonexistent.h>
5266_ACEOF
5267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5269  ac_status=$?
5270  grep -v '^ *+' conftest.er1 >conftest.err
5271  rm -f conftest.er1
5272  cat conftest.err >&5
5273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274  (exit $ac_status); } >/dev/null; then
5275  if test -s conftest.err; then
5276    ac_cpp_err=$ac_cxx_preproc_warn_flag
5277    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5278  else
5279    ac_cpp_err=
5280  fi
5281else
5282  ac_cpp_err=yes
5283fi
5284if test -z "$ac_cpp_err"; then
5285  # Broken: success on invalid input.
5286continue
5287else
5288  echo "$as_me: failed program was:" >&5
5289sed 's/^/| /' conftest.$ac_ext >&5
5290
5291  # Passes both tests.
5292ac_preproc_ok=:
5293break
5294fi
5295rm -f conftest.err conftest.$ac_ext
5296
5297done
5298# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5299rm -f conftest.err conftest.$ac_ext
5300if $ac_preproc_ok; then
5301  break
5302fi
5303
5304    done
5305    ac_cv_prog_CXXCPP=$CXXCPP
5306
5307fi
5308  CXXCPP=$ac_cv_prog_CXXCPP
5309else
5310  ac_cv_prog_CXXCPP=$CXXCPP
5311fi
5312echo "$as_me:$LINENO: result: $CXXCPP" >&5
5313echo "${ECHO_T}$CXXCPP" >&6
5314ac_preproc_ok=false
5315for ac_cxx_preproc_warn_flag in '' yes
5316do
5317  # Use a header file that comes with gcc, so configuring glibc
5318  # with a fresh cross-compiler works.
5319  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5320  # <limits.h> exists even on freestanding compilers.
5321  # On the NeXT, cc -E runs the code through the compiler's parser,
5322  # not just through cpp. "Syntax error" is here to catch this case.
5323  cat >conftest.$ac_ext <<_ACEOF
5324/* confdefs.h.  */
5325_ACEOF
5326cat confdefs.h >>conftest.$ac_ext
5327cat >>conftest.$ac_ext <<_ACEOF
5328/* end confdefs.h.  */
5329#ifdef __STDC__
5330# include <limits.h>
5331#else
5332# include <assert.h>
5333#endif
5334		     Syntax error
5335_ACEOF
5336if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5337  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5338  ac_status=$?
5339  grep -v '^ *+' conftest.er1 >conftest.err
5340  rm -f conftest.er1
5341  cat conftest.err >&5
5342  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343  (exit $ac_status); } >/dev/null; then
5344  if test -s conftest.err; then
5345    ac_cpp_err=$ac_cxx_preproc_warn_flag
5346    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5347  else
5348    ac_cpp_err=
5349  fi
5350else
5351  ac_cpp_err=yes
5352fi
5353if test -z "$ac_cpp_err"; then
5354  :
5355else
5356  echo "$as_me: failed program was:" >&5
5357sed 's/^/| /' conftest.$ac_ext >&5
5358
5359  # Broken: fails on valid input.
5360continue
5361fi
5362rm -f conftest.err conftest.$ac_ext
5363
5364  # OK, works on sane cases.  Now check whether non-existent headers
5365  # can be detected and how.
5366  cat >conftest.$ac_ext <<_ACEOF
5367/* confdefs.h.  */
5368_ACEOF
5369cat confdefs.h >>conftest.$ac_ext
5370cat >>conftest.$ac_ext <<_ACEOF
5371/* end confdefs.h.  */
5372#include <ac_nonexistent.h>
5373_ACEOF
5374if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5375  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5376  ac_status=$?
5377  grep -v '^ *+' conftest.er1 >conftest.err
5378  rm -f conftest.er1
5379  cat conftest.err >&5
5380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5381  (exit $ac_status); } >/dev/null; then
5382  if test -s conftest.err; then
5383    ac_cpp_err=$ac_cxx_preproc_warn_flag
5384    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5385  else
5386    ac_cpp_err=
5387  fi
5388else
5389  ac_cpp_err=yes
5390fi
5391if test -z "$ac_cpp_err"; then
5392  # Broken: success on invalid input.
5393continue
5394else
5395  echo "$as_me: failed program was:" >&5
5396sed 's/^/| /' conftest.$ac_ext >&5
5397
5398  # Passes both tests.
5399ac_preproc_ok=:
5400break
5401fi
5402rm -f conftest.err conftest.$ac_ext
5403
5404done
5405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5406rm -f conftest.err conftest.$ac_ext
5407if $ac_preproc_ok; then
5408  :
5409else
5410  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5411See \`config.log' for more details." >&5
5412echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5413See \`config.log' for more details." >&2;}
5414   { (exit 1); exit 1; }; }
5415fi
5416
5417ac_ext=cc
5418ac_cpp='$CXXCPP $CPPFLAGS'
5419ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5422
5423fi
5424
5425
5426ac_ext=f
5427ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5428ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5429ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5430if test -n "$ac_tool_prefix"; then
5431  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5432  do
5433    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5434set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5435echo "$as_me:$LINENO: checking for $ac_word" >&5
5436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5437if test "${ac_cv_prog_F77+set}" = set; then
5438  echo $ECHO_N "(cached) $ECHO_C" >&6
5439else
5440  if test -n "$F77"; then
5441  ac_cv_prog_F77="$F77" # Let the user override the test.
5442else
5443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446  IFS=$as_save_IFS
5447  test -z "$as_dir" && as_dir=.
5448  for ac_exec_ext in '' $ac_executable_extensions; do
5449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452    break 2
5453  fi
5454done
5455done
5456
5457fi
5458fi
5459F77=$ac_cv_prog_F77
5460if test -n "$F77"; then
5461  echo "$as_me:$LINENO: result: $F77" >&5
5462echo "${ECHO_T}$F77" >&6
5463else
5464  echo "$as_me:$LINENO: result: no" >&5
5465echo "${ECHO_T}no" >&6
5466fi
5467
5468    test -n "$F77" && break
5469  done
5470fi
5471if test -z "$F77"; then
5472  ac_ct_F77=$F77
5473  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5474do
5475  # Extract the first word of "$ac_prog", so it can be a program name with args.
5476set dummy $ac_prog; ac_word=$2
5477echo "$as_me:$LINENO: checking for $ac_word" >&5
5478echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5479if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5480  echo $ECHO_N "(cached) $ECHO_C" >&6
5481else
5482  if test -n "$ac_ct_F77"; then
5483  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5484else
5485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486for as_dir in $PATH
5487do
5488  IFS=$as_save_IFS
5489  test -z "$as_dir" && as_dir=.
5490  for ac_exec_ext in '' $ac_executable_extensions; do
5491  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5492    ac_cv_prog_ac_ct_F77="$ac_prog"
5493    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5494    break 2
5495  fi
5496done
5497done
5498
5499fi
5500fi
5501ac_ct_F77=$ac_cv_prog_ac_ct_F77
5502if test -n "$ac_ct_F77"; then
5503  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5504echo "${ECHO_T}$ac_ct_F77" >&6
5505else
5506  echo "$as_me:$LINENO: result: no" >&5
5507echo "${ECHO_T}no" >&6
5508fi
5509
5510  test -n "$ac_ct_F77" && break
5511done
5512
5513  F77=$ac_ct_F77
5514fi
5515
5516
5517# Provide some information about the compiler.
5518echo "$as_me:5518:" \
5519     "checking for Fortran 77 compiler version" >&5
5520ac_compiler=`set X $ac_compile; echo $2`
5521{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5522  (eval $ac_compiler --version </dev/null >&5) 2>&5
5523  ac_status=$?
5524  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525  (exit $ac_status); }
5526{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5527  (eval $ac_compiler -v </dev/null >&5) 2>&5
5528  ac_status=$?
5529  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5530  (exit $ac_status); }
5531{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5532  (eval $ac_compiler -V </dev/null >&5) 2>&5
5533  ac_status=$?
5534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535  (exit $ac_status); }
5536rm -f a.out
5537
5538# If we don't use `.F' as extension, the preprocessor is not run on the
5539# input file.  (Note that this only needs to work for GNU compilers.)
5540ac_save_ext=$ac_ext
5541ac_ext=F
5542echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5543echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5544if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5545  echo $ECHO_N "(cached) $ECHO_C" >&6
5546else
5547  cat >conftest.$ac_ext <<_ACEOF
5548      program main
5549#ifndef __GNUC__
5550       choke me
5551#endif
5552
5553      end
5554_ACEOF
5555rm -f conftest.$ac_objext
5556if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5557  (eval $ac_compile) 2>conftest.er1
5558  ac_status=$?
5559  grep -v '^ *+' conftest.er1 >conftest.err
5560  rm -f conftest.er1
5561  cat conftest.err >&5
5562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563  (exit $ac_status); } &&
5564	 { ac_try='test -z "$ac_f77_werror_flag"
5565			 || test ! -s conftest.err'
5566  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5567  (eval $ac_try) 2>&5
5568  ac_status=$?
5569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570  (exit $ac_status); }; } &&
5571	 { ac_try='test -s conftest.$ac_objext'
5572  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5573  (eval $ac_try) 2>&5
5574  ac_status=$?
5575  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576  (exit $ac_status); }; }; then
5577  ac_compiler_gnu=yes
5578else
5579  echo "$as_me: failed program was:" >&5
5580sed 's/^/| /' conftest.$ac_ext >&5
5581
5582ac_compiler_gnu=no
5583fi
5584rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5585ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5586
5587fi
5588echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5589echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5590ac_ext=$ac_save_ext
5591ac_test_FFLAGS=${FFLAGS+set}
5592ac_save_FFLAGS=$FFLAGS
5593FFLAGS=
5594echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5595echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5596if test "${ac_cv_prog_f77_g+set}" = set; then
5597  echo $ECHO_N "(cached) $ECHO_C" >&6
5598else
5599  FFLAGS=-g
5600cat >conftest.$ac_ext <<_ACEOF
5601      program main
5602
5603      end
5604_ACEOF
5605rm -f conftest.$ac_objext
5606if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5607  (eval $ac_compile) 2>conftest.er1
5608  ac_status=$?
5609  grep -v '^ *+' conftest.er1 >conftest.err
5610  rm -f conftest.er1
5611  cat conftest.err >&5
5612  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613  (exit $ac_status); } &&
5614	 { ac_try='test -z "$ac_f77_werror_flag"
5615			 || test ! -s conftest.err'
5616  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5617  (eval $ac_try) 2>&5
5618  ac_status=$?
5619  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620  (exit $ac_status); }; } &&
5621	 { ac_try='test -s conftest.$ac_objext'
5622  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5623  (eval $ac_try) 2>&5
5624  ac_status=$?
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); }; }; then
5627  ac_cv_prog_f77_g=yes
5628else
5629  echo "$as_me: failed program was:" >&5
5630sed 's/^/| /' conftest.$ac_ext >&5
5631
5632ac_cv_prog_f77_g=no
5633fi
5634rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5635
5636fi
5637echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5638echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5639if test "$ac_test_FFLAGS" = set; then
5640  FFLAGS=$ac_save_FFLAGS
5641elif test $ac_cv_prog_f77_g = yes; then
5642  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5643    FFLAGS="-g -O2"
5644  else
5645    FFLAGS="-g"
5646  fi
5647else
5648  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5649    FFLAGS="-O2"
5650  else
5651    FFLAGS=
5652  fi
5653fi
5654
5655G77=`test $ac_compiler_gnu = yes && echo yes`
5656ac_ext=c
5657ac_cpp='$CPP $CPPFLAGS'
5658ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660ac_compiler_gnu=$ac_cv_c_compiler_gnu
5661
5662
5663
5664# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5665# find the maximum length of command line arguments
5666echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5667echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5668if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5669  echo $ECHO_N "(cached) $ECHO_C" >&6
5670else
5671    i=0
5672  teststring="ABCD"
5673
5674  case $build_os in
5675  msdosdjgpp*)
5676    # On DJGPP, this test can blow up pretty badly due to problems in libc
5677    # (any single argument exceeding 2000 bytes causes a buffer overrun
5678    # during glob expansion).  Even if it were fixed, the result of this
5679    # check would be larger than it should be.
5680    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5681    ;;
5682
5683  gnu*)
5684    # Under GNU Hurd, this test is not required because there is
5685    # no limit to the length of command line arguments.
5686    # Libtool will interpret -1 as no limit whatsoever
5687    lt_cv_sys_max_cmd_len=-1;
5688    ;;
5689
5690  cygwin* | mingw*)
5691    # On Win9x/ME, this test blows up -- it succeeds, but takes
5692    # about 5 minutes as the teststring grows exponentially.
5693    # Worse, since 9x/ME are not pre-emptively multitasking,
5694    # you end up with a "frozen" computer, even though with patience
5695    # the test eventually succeeds (with a max line length of 256k).
5696    # Instead, let's just punt: use the minimum linelength reported by
5697    # all of the supported platforms: 8192 (on NT/2K/XP).
5698    lt_cv_sys_max_cmd_len=8192;
5699    ;;
5700
5701  amigaos*)
5702    # On AmigaOS with pdksh, this test takes hours, literally.
5703    # So we just punt and use a minimum line length of 8192.
5704    lt_cv_sys_max_cmd_len=8192;
5705    ;;
5706
5707  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5708    # This has been around since 386BSD, at least.  Likely further.
5709    if test -x /sbin/sysctl; then
5710      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5711    elif test -x /usr/sbin/sysctl; then
5712      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5713    else
5714      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5715    fi
5716    # And add a safety zone
5717    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5718    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5719    ;;
5720
5721  interix*)
5722    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5723    lt_cv_sys_max_cmd_len=196608
5724    ;;
5725
5726  osf*)
5727    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5728    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5729    # nice to cause kernel panics so lets avoid the loop below.
5730    # First set a reasonable default.
5731    lt_cv_sys_max_cmd_len=16384
5732    #
5733    if test -x /sbin/sysconfig; then
5734      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5735        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5736      esac
5737    fi
5738    ;;
5739  sco3.2v5*)
5740    lt_cv_sys_max_cmd_len=102400
5741    ;;
5742  sysv5* | sco5v6* | sysv4.2uw2*)
5743    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5744    if test -n "$kargmax"; then
5745      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
5746    else
5747      lt_cv_sys_max_cmd_len=32768
5748    fi
5749    ;;
5750  *)
5751    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5752    if test -n "$lt_cv_sys_max_cmd_len"; then
5753      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5754      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5755    else
5756      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5757      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5758	       = "XX$teststring") >/dev/null 2>&1 &&
5759	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
5760	      lt_cv_sys_max_cmd_len=$new_result &&
5761	      test $i != 17 # 1/2 MB should be enough
5762      do
5763        i=`expr $i + 1`
5764        teststring=$teststring$teststring
5765      done
5766      teststring=
5767      # Add a significant safety factor because C++ compilers can tack on massive
5768      # amounts of additional arguments before passing them to the linker.
5769      # It appears as though 1/2 is a usable value.
5770      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5771    fi
5772    ;;
5773  esac
5774
5775fi
5776
5777if test -n $lt_cv_sys_max_cmd_len ; then
5778  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5779echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5780else
5781  echo "$as_me:$LINENO: result: none" >&5
5782echo "${ECHO_T}none" >&6
5783fi
5784
5785
5786
5787
5788
5789# Check for command to grab the raw symbol name followed by C symbol from nm.
5790echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5791echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5792if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5793  echo $ECHO_N "(cached) $ECHO_C" >&6
5794else
5795
5796# These are sane defaults that work on at least a few old systems.
5797# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5798
5799# Character class describing NM global symbol codes.
5800symcode='[BCDEGRST]'
5801
5802# Regexp to match symbols that can be accessed directly from C.
5803sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5804
5805# Transform an extracted symbol line into a proper C declaration
5806lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5807
5808# Transform an extracted symbol line into symbol name and symbol address
5809lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5810
5811# Define system-specific variables.
5812case $host_os in
5813aix*)
5814  symcode='[BCDT]'
5815  ;;
5816cygwin* | mingw* | pw32*)
5817  symcode='[ABCDGISTW]'
5818  ;;
5819hpux*) # Its linker distinguishes data from code symbols
5820  if test "$host_cpu" = ia64; then
5821    symcode='[ABCDEGRST]'
5822  fi
5823  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5824  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5825  ;;
5826linux* | k*bsd*-gnu)
5827  if test "$host_cpu" = ia64; then
5828    symcode='[ABCDGIRSTW]'
5829    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5830    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5831  fi
5832  ;;
5833irix* | nonstopux*)
5834  symcode='[BCDEGRST]'
5835  ;;
5836osf*)
5837  symcode='[BCDEGQRST]'
5838  ;;
5839solaris*)
5840  symcode='[BDRT]'
5841  ;;
5842sco3.2v5*)
5843  symcode='[DT]'
5844  ;;
5845sysv4.2uw2*)
5846  symcode='[DT]'
5847  ;;
5848sysv5* | sco5v6* | unixware* | OpenUNIX*)
5849  symcode='[ABDT]'
5850  ;;
5851sysv4)
5852  symcode='[DFNSTU]'
5853  ;;
5854esac
5855
5856# Handle CRLF in mingw tool chain
5857opt_cr=
5858case $build_os in
5859mingw*)
5860  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5861  ;;
5862esac
5863
5864# If we're using GNU nm, then use its standard symbol codes.
5865case `$NM -V 2>&1` in
5866*GNU* | *'with BFD'*)
5867  symcode='[ABCDGIRSTW]' ;;
5868esac
5869
5870# Try without a prefix undercore, then with it.
5871for ac_symprfx in "" "_"; do
5872
5873  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5874  symxfrm="\\1 $ac_symprfx\\2 \\2"
5875
5876  # Write the raw and C identifiers.
5877  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5878
5879  # Check to see that the pipe works correctly.
5880  pipe_works=no
5881
5882  rm -f conftest*
5883  cat > conftest.$ac_ext <<EOF
5884#ifdef __cplusplus
5885extern "C" {
5886#endif
5887char nm_test_var;
5888void nm_test_func(){}
5889#ifdef __cplusplus
5890}
5891#endif
5892int main(){nm_test_var='a';nm_test_func();return(0);}
5893EOF
5894
5895  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5896  (eval $ac_compile) 2>&5
5897  ac_status=$?
5898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899  (exit $ac_status); }; then
5900    # Now try to grab the symbols.
5901    nlist=conftest.nm
5902    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5903  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5904  ac_status=$?
5905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906  (exit $ac_status); } && test -s "$nlist"; then
5907      # Try sorting and uniquifying the output.
5908      if sort "$nlist" | uniq > "$nlist"T; then
5909	mv -f "$nlist"T "$nlist"
5910      else
5911	rm -f "$nlist"T
5912      fi
5913
5914      # Make sure that we snagged all the symbols we need.
5915      if grep ' nm_test_var$' "$nlist" >/dev/null; then
5916	if grep ' nm_test_func$' "$nlist" >/dev/null; then
5917	  cat <<EOF > conftest.$ac_ext
5918#ifdef __cplusplus
5919extern "C" {
5920#endif
5921
5922EOF
5923	  # Now generate the symbol file.
5924	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5925
5926	  cat <<EOF >> conftest.$ac_ext
5927#if defined (__STDC__) && __STDC__
5928# define lt_ptr_t void *
5929#else
5930# define lt_ptr_t char *
5931# define const
5932#endif
5933
5934/* The mapping between symbol names and symbols. */
5935const struct {
5936  const char *name;
5937  lt_ptr_t address;
5938}
5939lt_preloaded_symbols[] =
5940{
5941EOF
5942	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5943	  cat <<\EOF >> conftest.$ac_ext
5944  {0, (lt_ptr_t) 0}
5945};
5946
5947#ifdef __cplusplus
5948}
5949#endif
5950EOF
5951	  # Now try linking the two files.
5952	  mv conftest.$ac_objext conftstm.$ac_objext
5953	  lt_save_LIBS="$LIBS"
5954	  lt_save_CFLAGS="$CFLAGS"
5955	  LIBS="conftstm.$ac_objext"
5956	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5957	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5958  (eval $ac_link) 2>&5
5959  ac_status=$?
5960  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961  (exit $ac_status); } && test -s conftest${ac_exeext}; then
5962	    pipe_works=yes
5963	  fi
5964	  LIBS="$lt_save_LIBS"
5965	  CFLAGS="$lt_save_CFLAGS"
5966	else
5967	  echo "cannot find nm_test_func in $nlist" >&5
5968	fi
5969      else
5970	echo "cannot find nm_test_var in $nlist" >&5
5971      fi
5972    else
5973      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5974    fi
5975  else
5976    echo "$progname: failed program was:" >&5
5977    cat conftest.$ac_ext >&5
5978  fi
5979  rm -rf conftest* conftst*
5980
5981  # Do not use the global_symbol_pipe unless it works.
5982  if test "$pipe_works" = yes; then
5983    break
5984  else
5985    lt_cv_sys_global_symbol_pipe=
5986  fi
5987done
5988
5989fi
5990
5991if test -z "$lt_cv_sys_global_symbol_pipe"; then
5992  lt_cv_sys_global_symbol_to_cdecl=
5993fi
5994if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5995  echo "$as_me:$LINENO: result: failed" >&5
5996echo "${ECHO_T}failed" >&6
5997else
5998  echo "$as_me:$LINENO: result: ok" >&5
5999echo "${ECHO_T}ok" >&6
6000fi
6001
6002echo "$as_me:$LINENO: checking for objdir" >&5
6003echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6004if test "${lt_cv_objdir+set}" = set; then
6005  echo $ECHO_N "(cached) $ECHO_C" >&6
6006else
6007  rm -f .libs 2>/dev/null
6008mkdir .libs 2>/dev/null
6009if test -d .libs; then
6010  lt_cv_objdir=.libs
6011else
6012  # MS-DOS does not allow filenames that begin with a dot.
6013  lt_cv_objdir=_libs
6014fi
6015rmdir .libs 2>/dev/null
6016fi
6017echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6018echo "${ECHO_T}$lt_cv_objdir" >&6
6019objdir=$lt_cv_objdir
6020
6021
6022
6023
6024
6025case $host_os in
6026aix3*)
6027  # AIX sometimes has problems with the GCC collect2 program.  For some
6028  # reason, if we set the COLLECT_NAMES environment variable, the problems
6029  # vanish in a puff of smoke.
6030  if test "X${COLLECT_NAMES+set}" != Xset; then
6031    COLLECT_NAMES=
6032    export COLLECT_NAMES
6033  fi
6034  ;;
6035esac
6036
6037# Sed substitution that helps us do robust quoting.  It backslashifies
6038# metacharacters that are still active within double-quoted strings.
6039Xsed='sed -e 1s/^X//'
6040sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6041
6042# Same as above, but do not quote variable references.
6043double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6044
6045# Sed substitution to delay expansion of an escaped shell variable in a
6046# double_quote_subst'ed string.
6047delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6048
6049# Sed substitution to avoid accidental globbing in evaled expressions
6050no_glob_subst='s/\*/\\\*/g'
6051
6052# Constants:
6053rm="rm -f"
6054
6055# Global variables:
6056default_ofile=libtool
6057can_build_shared=yes
6058
6059# All known linkers require a `.a' archive for static linking (except MSVC,
6060# which needs '.lib').
6061libext=a
6062ltmain="$ac_aux_dir/ltmain.sh"
6063ofile="$default_ofile"
6064with_gnu_ld="$lt_cv_prog_gnu_ld"
6065
6066if test -n "$ac_tool_prefix"; then
6067  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6068set dummy ${ac_tool_prefix}ar; ac_word=$2
6069echo "$as_me:$LINENO: checking for $ac_word" >&5
6070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6071if test "${ac_cv_prog_AR+set}" = set; then
6072  echo $ECHO_N "(cached) $ECHO_C" >&6
6073else
6074  if test -n "$AR"; then
6075  ac_cv_prog_AR="$AR" # Let the user override the test.
6076else
6077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078for as_dir in $PATH
6079do
6080  IFS=$as_save_IFS
6081  test -z "$as_dir" && as_dir=.
6082  for ac_exec_ext in '' $ac_executable_extensions; do
6083  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084    ac_cv_prog_AR="${ac_tool_prefix}ar"
6085    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6086    break 2
6087  fi
6088done
6089done
6090
6091fi
6092fi
6093AR=$ac_cv_prog_AR
6094if test -n "$AR"; then
6095  echo "$as_me:$LINENO: result: $AR" >&5
6096echo "${ECHO_T}$AR" >&6
6097else
6098  echo "$as_me:$LINENO: result: no" >&5
6099echo "${ECHO_T}no" >&6
6100fi
6101
6102fi
6103if test -z "$ac_cv_prog_AR"; then
6104  ac_ct_AR=$AR
6105  # Extract the first word of "ar", so it can be a program name with args.
6106set dummy ar; ac_word=$2
6107echo "$as_me:$LINENO: checking for $ac_word" >&5
6108echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6109if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6110  echo $ECHO_N "(cached) $ECHO_C" >&6
6111else
6112  if test -n "$ac_ct_AR"; then
6113  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6114else
6115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116for as_dir in $PATH
6117do
6118  IFS=$as_save_IFS
6119  test -z "$as_dir" && as_dir=.
6120  for ac_exec_ext in '' $ac_executable_extensions; do
6121  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6122    ac_cv_prog_ac_ct_AR="ar"
6123    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6124    break 2
6125  fi
6126done
6127done
6128
6129  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6130fi
6131fi
6132ac_ct_AR=$ac_cv_prog_ac_ct_AR
6133if test -n "$ac_ct_AR"; then
6134  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6135echo "${ECHO_T}$ac_ct_AR" >&6
6136else
6137  echo "$as_me:$LINENO: result: no" >&5
6138echo "${ECHO_T}no" >&6
6139fi
6140
6141  AR=$ac_ct_AR
6142else
6143  AR="$ac_cv_prog_AR"
6144fi
6145
6146if test -n "$ac_tool_prefix"; then
6147  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6148set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6149echo "$as_me:$LINENO: checking for $ac_word" >&5
6150echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6151if test "${ac_cv_prog_RANLIB+set}" = set; then
6152  echo $ECHO_N "(cached) $ECHO_C" >&6
6153else
6154  if test -n "$RANLIB"; then
6155  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6156else
6157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158for as_dir in $PATH
6159do
6160  IFS=$as_save_IFS
6161  test -z "$as_dir" && as_dir=.
6162  for ac_exec_ext in '' $ac_executable_extensions; do
6163  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6165    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6166    break 2
6167  fi
6168done
6169done
6170
6171fi
6172fi
6173RANLIB=$ac_cv_prog_RANLIB
6174if test -n "$RANLIB"; then
6175  echo "$as_me:$LINENO: result: $RANLIB" >&5
6176echo "${ECHO_T}$RANLIB" >&6
6177else
6178  echo "$as_me:$LINENO: result: no" >&5
6179echo "${ECHO_T}no" >&6
6180fi
6181
6182fi
6183if test -z "$ac_cv_prog_RANLIB"; then
6184  ac_ct_RANLIB=$RANLIB
6185  # Extract the first word of "ranlib", so it can be a program name with args.
6186set dummy ranlib; ac_word=$2
6187echo "$as_me:$LINENO: checking for $ac_word" >&5
6188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6189if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6190  echo $ECHO_N "(cached) $ECHO_C" >&6
6191else
6192  if test -n "$ac_ct_RANLIB"; then
6193  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6194else
6195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196for as_dir in $PATH
6197do
6198  IFS=$as_save_IFS
6199  test -z "$as_dir" && as_dir=.
6200  for ac_exec_ext in '' $ac_executable_extensions; do
6201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6202    ac_cv_prog_ac_ct_RANLIB="ranlib"
6203    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6204    break 2
6205  fi
6206done
6207done
6208
6209  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6210fi
6211fi
6212ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6213if test -n "$ac_ct_RANLIB"; then
6214  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6215echo "${ECHO_T}$ac_ct_RANLIB" >&6
6216else
6217  echo "$as_me:$LINENO: result: no" >&5
6218echo "${ECHO_T}no" >&6
6219fi
6220
6221  RANLIB=$ac_ct_RANLIB
6222else
6223  RANLIB="$ac_cv_prog_RANLIB"
6224fi
6225
6226if test -n "$ac_tool_prefix"; then
6227  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6228set dummy ${ac_tool_prefix}strip; ac_word=$2
6229echo "$as_me:$LINENO: checking for $ac_word" >&5
6230echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6231if test "${ac_cv_prog_STRIP+set}" = set; then
6232  echo $ECHO_N "(cached) $ECHO_C" >&6
6233else
6234  if test -n "$STRIP"; then
6235  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242  for ac_exec_ext in '' $ac_executable_extensions; do
6243  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6245    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249done
6250
6251fi
6252fi
6253STRIP=$ac_cv_prog_STRIP
6254if test -n "$STRIP"; then
6255  echo "$as_me:$LINENO: result: $STRIP" >&5
6256echo "${ECHO_T}$STRIP" >&6
6257else
6258  echo "$as_me:$LINENO: result: no" >&5
6259echo "${ECHO_T}no" >&6
6260fi
6261
6262fi
6263if test -z "$ac_cv_prog_STRIP"; then
6264  ac_ct_STRIP=$STRIP
6265  # Extract the first word of "strip", so it can be a program name with args.
6266set dummy strip; ac_word=$2
6267echo "$as_me:$LINENO: checking for $ac_word" >&5
6268echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6269if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6270  echo $ECHO_N "(cached) $ECHO_C" >&6
6271else
6272  if test -n "$ac_ct_STRIP"; then
6273  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6274else
6275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276for as_dir in $PATH
6277do
6278  IFS=$as_save_IFS
6279  test -z "$as_dir" && as_dir=.
6280  for ac_exec_ext in '' $ac_executable_extensions; do
6281  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6282    ac_cv_prog_ac_ct_STRIP="strip"
6283    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6284    break 2
6285  fi
6286done
6287done
6288
6289  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6290fi
6291fi
6292ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6293if test -n "$ac_ct_STRIP"; then
6294  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6295echo "${ECHO_T}$ac_ct_STRIP" >&6
6296else
6297  echo "$as_me:$LINENO: result: no" >&5
6298echo "${ECHO_T}no" >&6
6299fi
6300
6301  STRIP=$ac_ct_STRIP
6302else
6303  STRIP="$ac_cv_prog_STRIP"
6304fi
6305
6306
6307old_CC="$CC"
6308old_CFLAGS="$CFLAGS"
6309
6310# Set sane defaults for various variables
6311test -z "$AR" && AR=ar
6312test -z "$AR_FLAGS" && AR_FLAGS=cru
6313test -z "$AS" && AS=as
6314test -z "$CC" && CC=cc
6315test -z "$LTCC" && LTCC=$CC
6316test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6317test -z "$DLLTOOL" && DLLTOOL=dlltool
6318test -z "$LD" && LD=ld
6319test -z "$LN_S" && LN_S="ln -s"
6320test -z "$MAGIC_CMD" && MAGIC_CMD=file
6321test -z "$NM" && NM=nm
6322test -z "$SED" && SED=sed
6323test -z "$OBJDUMP" && OBJDUMP=objdump
6324test -z "$RANLIB" && RANLIB=:
6325test -z "$STRIP" && STRIP=:
6326test -z "$ac_objext" && ac_objext=o
6327
6328# Determine commands to create old-style static archives.
6329old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6330old_postinstall_cmds='chmod 644 $oldlib'
6331old_postuninstall_cmds=
6332
6333if test -n "$RANLIB"; then
6334  case $host_os in
6335  openbsd*)
6336    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6337    ;;
6338  *)
6339    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6340    ;;
6341  esac
6342  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6343fi
6344
6345for cc_temp in $compiler""; do
6346  case $cc_temp in
6347    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6348    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6349    \-*) ;;
6350    *) break;;
6351  esac
6352done
6353cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6354
6355
6356# Only perform the check for file, if the check method requires it
6357case $deplibs_check_method in
6358file_magic*)
6359  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6360    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6361echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6362if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6363  echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365  case $MAGIC_CMD in
6366[\\/*] |  ?:[\\/]*)
6367  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6368  ;;
6369*)
6370  lt_save_MAGIC_CMD="$MAGIC_CMD"
6371  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6372  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6373  for ac_dir in $ac_dummy; do
6374    IFS="$lt_save_ifs"
6375    test -z "$ac_dir" && ac_dir=.
6376    if test -f $ac_dir/${ac_tool_prefix}file; then
6377      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6378      if test -n "$file_magic_test_file"; then
6379	case $deplibs_check_method in
6380	"file_magic "*)
6381	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6382	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6383	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6384	    $EGREP "$file_magic_regex" > /dev/null; then
6385	    :
6386	  else
6387	    cat <<EOF 1>&2
6388
6389*** Warning: the command libtool uses to detect shared libraries,
6390*** $file_magic_cmd, produces output that libtool cannot recognize.
6391*** The result is that libtool may fail to recognize shared libraries
6392*** as such.  This will affect the creation of libtool libraries that
6393*** depend on shared libraries, but programs linked with such libtool
6394*** libraries will work regardless of this problem.  Nevertheless, you
6395*** may want to report the problem to your system manager and/or to
6396*** bug-libtool@gnu.org
6397
6398EOF
6399	  fi ;;
6400	esac
6401      fi
6402      break
6403    fi
6404  done
6405  IFS="$lt_save_ifs"
6406  MAGIC_CMD="$lt_save_MAGIC_CMD"
6407  ;;
6408esac
6409fi
6410
6411MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6412if test -n "$MAGIC_CMD"; then
6413  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6414echo "${ECHO_T}$MAGIC_CMD" >&6
6415else
6416  echo "$as_me:$LINENO: result: no" >&5
6417echo "${ECHO_T}no" >&6
6418fi
6419
6420if test -z "$lt_cv_path_MAGIC_CMD"; then
6421  if test -n "$ac_tool_prefix"; then
6422    echo "$as_me:$LINENO: checking for file" >&5
6423echo $ECHO_N "checking for file... $ECHO_C" >&6
6424if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6425  echo $ECHO_N "(cached) $ECHO_C" >&6
6426else
6427  case $MAGIC_CMD in
6428[\\/*] |  ?:[\\/]*)
6429  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6430  ;;
6431*)
6432  lt_save_MAGIC_CMD="$MAGIC_CMD"
6433  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6434  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6435  for ac_dir in $ac_dummy; do
6436    IFS="$lt_save_ifs"
6437    test -z "$ac_dir" && ac_dir=.
6438    if test -f $ac_dir/file; then
6439      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6440      if test -n "$file_magic_test_file"; then
6441	case $deplibs_check_method in
6442	"file_magic "*)
6443	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6444	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6445	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6446	    $EGREP "$file_magic_regex" > /dev/null; then
6447	    :
6448	  else
6449	    cat <<EOF 1>&2
6450
6451*** Warning: the command libtool uses to detect shared libraries,
6452*** $file_magic_cmd, produces output that libtool cannot recognize.
6453*** The result is that libtool may fail to recognize shared libraries
6454*** as such.  This will affect the creation of libtool libraries that
6455*** depend on shared libraries, but programs linked with such libtool
6456*** libraries will work regardless of this problem.  Nevertheless, you
6457*** may want to report the problem to your system manager and/or to
6458*** bug-libtool@gnu.org
6459
6460EOF
6461	  fi ;;
6462	esac
6463      fi
6464      break
6465    fi
6466  done
6467  IFS="$lt_save_ifs"
6468  MAGIC_CMD="$lt_save_MAGIC_CMD"
6469  ;;
6470esac
6471fi
6472
6473MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6474if test -n "$MAGIC_CMD"; then
6475  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6476echo "${ECHO_T}$MAGIC_CMD" >&6
6477else
6478  echo "$as_me:$LINENO: result: no" >&5
6479echo "${ECHO_T}no" >&6
6480fi
6481
6482  else
6483    MAGIC_CMD=:
6484  fi
6485fi
6486
6487  fi
6488  ;;
6489esac
6490
6491
6492  case $host_os in
6493    rhapsody* | darwin*)
6494    if test -n "$ac_tool_prefix"; then
6495  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6496set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6497echo "$as_me:$LINENO: checking for $ac_word" >&5
6498echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6500  echo $ECHO_N "(cached) $ECHO_C" >&6
6501else
6502  if test -n "$DSYMUTIL"; then
6503  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6504else
6505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506for as_dir in $PATH
6507do
6508  IFS=$as_save_IFS
6509  test -z "$as_dir" && as_dir=.
6510  for ac_exec_ext in '' $ac_executable_extensions; do
6511  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6513    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6514    break 2
6515  fi
6516done
6517done
6518
6519fi
6520fi
6521DSYMUTIL=$ac_cv_prog_DSYMUTIL
6522if test -n "$DSYMUTIL"; then
6523  echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6524echo "${ECHO_T}$DSYMUTIL" >&6
6525else
6526  echo "$as_me:$LINENO: result: no" >&5
6527echo "${ECHO_T}no" >&6
6528fi
6529
6530fi
6531if test -z "$ac_cv_prog_DSYMUTIL"; then
6532  ac_ct_DSYMUTIL=$DSYMUTIL
6533  # Extract the first word of "dsymutil", so it can be a program name with args.
6534set dummy dsymutil; ac_word=$2
6535echo "$as_me:$LINENO: checking for $ac_word" >&5
6536echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6537if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6538  echo $ECHO_N "(cached) $ECHO_C" >&6
6539else
6540  if test -n "$ac_ct_DSYMUTIL"; then
6541  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6542else
6543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544for as_dir in $PATH
6545do
6546  IFS=$as_save_IFS
6547  test -z "$as_dir" && as_dir=.
6548  for ac_exec_ext in '' $ac_executable_extensions; do
6549  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6550    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6551    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6552    break 2
6553  fi
6554done
6555done
6556
6557  test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6558fi
6559fi
6560ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6561if test -n "$ac_ct_DSYMUTIL"; then
6562  echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6563echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6564else
6565  echo "$as_me:$LINENO: result: no" >&5
6566echo "${ECHO_T}no" >&6
6567fi
6568
6569  DSYMUTIL=$ac_ct_DSYMUTIL
6570else
6571  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6572fi
6573
6574    if test -n "$ac_tool_prefix"; then
6575  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6576set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6577echo "$as_me:$LINENO: checking for $ac_word" >&5
6578echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579if test "${ac_cv_prog_NMEDIT+set}" = set; then
6580  echo $ECHO_N "(cached) $ECHO_C" >&6
6581else
6582  if test -n "$NMEDIT"; then
6583  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6584else
6585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6586for as_dir in $PATH
6587do
6588  IFS=$as_save_IFS
6589  test -z "$as_dir" && as_dir=.
6590  for ac_exec_ext in '' $ac_executable_extensions; do
6591  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6593    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6594    break 2
6595  fi
6596done
6597done
6598
6599fi
6600fi
6601NMEDIT=$ac_cv_prog_NMEDIT
6602if test -n "$NMEDIT"; then
6603  echo "$as_me:$LINENO: result: $NMEDIT" >&5
6604echo "${ECHO_T}$NMEDIT" >&6
6605else
6606  echo "$as_me:$LINENO: result: no" >&5
6607echo "${ECHO_T}no" >&6
6608fi
6609
6610fi
6611if test -z "$ac_cv_prog_NMEDIT"; then
6612  ac_ct_NMEDIT=$NMEDIT
6613  # Extract the first word of "nmedit", so it can be a program name with args.
6614set dummy nmedit; ac_word=$2
6615echo "$as_me:$LINENO: checking for $ac_word" >&5
6616echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6617if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6618  echo $ECHO_N "(cached) $ECHO_C" >&6
6619else
6620  if test -n "$ac_ct_NMEDIT"; then
6621  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6622else
6623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6624for as_dir in $PATH
6625do
6626  IFS=$as_save_IFS
6627  test -z "$as_dir" && as_dir=.
6628  for ac_exec_ext in '' $ac_executable_extensions; do
6629  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6630    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6631    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6632    break 2
6633  fi
6634done
6635done
6636
6637  test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6638fi
6639fi
6640ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6641if test -n "$ac_ct_NMEDIT"; then
6642  echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6643echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6644else
6645  echo "$as_me:$LINENO: result: no" >&5
6646echo "${ECHO_T}no" >&6
6647fi
6648
6649  NMEDIT=$ac_ct_NMEDIT
6650else
6651  NMEDIT="$ac_cv_prog_NMEDIT"
6652fi
6653
6654
6655    echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6656echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6657if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6658  echo $ECHO_N "(cached) $ECHO_C" >&6
6659else
6660  lt_cv_apple_cc_single_mod=no
6661      if test -z "${LT_MULTI_MODULE}"; then
6662   # By default we will add the -single_module flag. You can override
6663   # by either setting the environment variable LT_MULTI_MODULE
6664   # non-empty at configure time, or by adding -multi_module to the
6665   # link flags.
6666   echo "int foo(void){return 1;}" > conftest.c
6667   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6668     -dynamiclib ${wl}-single_module conftest.c
6669   if test -f libconftest.dylib; then
6670     lt_cv_apple_cc_single_mod=yes
6671     rm -rf libconftest.dylib*
6672   fi
6673   rm conftest.c
6674      fi
6675fi
6676echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6677echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6678    echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6679echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6680if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6681  echo $ECHO_N "(cached) $ECHO_C" >&6
6682else
6683  lt_cv_ld_exported_symbols_list=no
6684      save_LDFLAGS=$LDFLAGS
6685      echo "_main" > conftest.sym
6686      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6687      cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h.  */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h.  */
6693
6694int
6695main ()
6696{
6697
6698  ;
6699  return 0;
6700}
6701_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext
6703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6704  (eval $ac_link) 2>conftest.er1
6705  ac_status=$?
6706  grep -v '^ *+' conftest.er1 >conftest.err
6707  rm -f conftest.er1
6708  cat conftest.err >&5
6709  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6710  (exit $ac_status); } &&
6711	 { ac_try='test -z "$ac_c_werror_flag"
6712			 || test ! -s conftest.err'
6713  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6714  (eval $ac_try) 2>&5
6715  ac_status=$?
6716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717  (exit $ac_status); }; } &&
6718	 { ac_try='test -s conftest$ac_exeext'
6719  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6720  (eval $ac_try) 2>&5
6721  ac_status=$?
6722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6723  (exit $ac_status); }; }; then
6724  lt_cv_ld_exported_symbols_list=yes
6725else
6726  echo "$as_me: failed program was:" >&5
6727sed 's/^/| /' conftest.$ac_ext >&5
6728
6729lt_cv_ld_exported_symbols_list=no
6730fi
6731rm -f conftest.err conftest.$ac_objext \
6732      conftest$ac_exeext conftest.$ac_ext
6733   LDFLAGS="$save_LDFLAGS"
6734
6735fi
6736echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6737echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6738    case $host_os in
6739    rhapsody* | darwin1.[0123])
6740      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6741    darwin1.*)
6742     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6743    darwin*)
6744      # if running on 10.5 or later, the deployment target defaults
6745      # to the OS version, if on x86, and 10.4, the deployment
6746      # target defaults to 10.4. Don't you love it?
6747      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6748   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6749     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6750   10.[012]*)
6751     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6752   10.*)
6753     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6754      esac
6755    ;;
6756  esac
6757    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6758      _lt_dar_single_mod='$single_module'
6759    fi
6760    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6761      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6762    else
6763      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6764    fi
6765    if test "$DSYMUTIL" != ":"; then
6766      _lt_dsymutil="~$DSYMUTIL \$lib || :"
6767    else
6768      _lt_dsymutil=
6769    fi
6770    ;;
6771  esac
6772
6773
6774enable_dlopen=no
6775enable_win32_dll=no
6776
6777# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6778if test "${enable_libtool_lock+set}" = set; then
6779  enableval="$enable_libtool_lock"
6780
6781fi;
6782test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6783
6784
6785# Check whether --with-pic or --without-pic was given.
6786if test "${with_pic+set}" = set; then
6787  withval="$with_pic"
6788  pic_mode="$withval"
6789else
6790  pic_mode=default
6791fi;
6792test -z "$pic_mode" && pic_mode=default
6793
6794# Use C for the default configuration in the libtool script
6795tagname=
6796lt_save_CC="$CC"
6797ac_ext=c
6798ac_cpp='$CPP $CPPFLAGS'
6799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6801ac_compiler_gnu=$ac_cv_c_compiler_gnu
6802
6803
6804# Source file extension for C test sources.
6805ac_ext=c
6806
6807# Object file extension for compiled C test sources.
6808objext=o
6809objext=$objext
6810
6811# Code to be used in simple compile tests
6812lt_simple_compile_test_code="int some_variable = 0;"
6813
6814# Code to be used in simple link tests
6815lt_simple_link_test_code='int main(){return(0);}'
6816
6817
6818# If no C compiler was specified, use CC.
6819LTCC=${LTCC-"$CC"}
6820
6821# If no C compiler flags were specified, use CFLAGS.
6822LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6823
6824# Allow CC to be a program name with arguments.
6825compiler=$CC
6826
6827
6828# save warnings/boilerplate of simple test code
6829ac_outfile=conftest.$ac_objext
6830echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6831eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6832_lt_compiler_boilerplate=`cat conftest.err`
6833$rm conftest*
6834
6835ac_outfile=conftest.$ac_objext
6836echo "$lt_simple_link_test_code" >conftest.$ac_ext
6837eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6838_lt_linker_boilerplate=`cat conftest.err`
6839$rm -r conftest*
6840
6841
6842
6843lt_prog_compiler_no_builtin_flag=
6844
6845if test "$GCC" = yes; then
6846  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6847
6848
6849echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6850echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6851if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6852  echo $ECHO_N "(cached) $ECHO_C" >&6
6853else
6854  lt_cv_prog_compiler_rtti_exceptions=no
6855  ac_outfile=conftest.$ac_objext
6856   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6857   lt_compiler_flag="-fno-rtti -fno-exceptions"
6858   # Insert the option either (1) after the last *FLAGS variable, or
6859   # (2) before a word containing "conftest.", or (3) at the end.
6860   # Note that $ac_compile itself does not contain backslashes and begins
6861   # with a dollar sign (not a hyphen), so the echo should work correctly.
6862   # The option is referenced via a variable to avoid confusing sed.
6863   lt_compile=`echo "$ac_compile" | $SED \
6864   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6865   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6866   -e 's:$: $lt_compiler_flag:'`
6867   (eval echo "\"\$as_me:6867: $lt_compile\"" >&5)
6868   (eval "$lt_compile" 2>conftest.err)
6869   ac_status=$?
6870   cat conftest.err >&5
6871   echo "$as_me:6871: \$? = $ac_status" >&5
6872   if (exit $ac_status) && test -s "$ac_outfile"; then
6873     # The compiler can only warn and ignore the option if not recognized
6874     # So say no if there are warnings other than the usual output.
6875     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6876     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6877     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6878       lt_cv_prog_compiler_rtti_exceptions=yes
6879     fi
6880   fi
6881   $rm conftest*
6882
6883fi
6884echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6885echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6886
6887if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6888    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6889else
6890    :
6891fi
6892
6893fi
6894
6895lt_prog_compiler_wl=
6896lt_prog_compiler_pic=
6897lt_prog_compiler_static=
6898
6899echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6900echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6901
6902  if test "$GCC" = yes; then
6903    lt_prog_compiler_wl='-Wl,'
6904    lt_prog_compiler_static='-static'
6905
6906    case $host_os in
6907      aix*)
6908      # All AIX code is PIC.
6909      if test "$host_cpu" = ia64; then
6910	# AIX 5 now supports IA64 processor
6911	lt_prog_compiler_static='-Bstatic'
6912      fi
6913      ;;
6914
6915    amigaos*)
6916      # FIXME: we need at least 68020 code to build shared libraries, but
6917      # adding the `-m68020' flag to GCC prevents building anything better,
6918      # like `-m68040'.
6919      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6920      ;;
6921
6922    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6923      # PIC is the default for these OSes.
6924      ;;
6925
6926    mingw* | cygwin* | pw32* | os2*)
6927      # This hack is so that the source file can tell whether it is being
6928      # built for inclusion in a dll (and should export symbols for example).
6929      # Although the cygwin gcc ignores -fPIC, still need this for old-style
6930      # (--disable-auto-import) libraries
6931      lt_prog_compiler_pic='-DDLL_EXPORT'
6932      ;;
6933
6934    darwin* | rhapsody*)
6935      # PIC is the default on this platform
6936      # Common symbols not allowed in MH_DYLIB files
6937      lt_prog_compiler_pic='-fno-common'
6938      ;;
6939
6940    interix[3-9]*)
6941      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6942      # Instead, we relocate shared libraries at runtime.
6943      ;;
6944
6945    msdosdjgpp*)
6946      # Just because we use GCC doesn't mean we suddenly get shared libraries
6947      # on systems that don't support them.
6948      lt_prog_compiler_can_build_shared=no
6949      enable_shared=no
6950      ;;
6951
6952    sysv4*MP*)
6953      if test -d /usr/nec; then
6954	lt_prog_compiler_pic=-Kconform_pic
6955      fi
6956      ;;
6957
6958    hpux*)
6959      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6960      # not for PA HP-UX.
6961      case $host_cpu in
6962      hppa*64*|ia64*)
6963	# +Z the default
6964	;;
6965      *)
6966	lt_prog_compiler_pic='-fPIC'
6967	;;
6968      esac
6969      ;;
6970
6971    *)
6972      lt_prog_compiler_pic='-fPIC'
6973      ;;
6974    esac
6975  else
6976    # PORTME Check for flag to pass linker flags through the system compiler.
6977    case $host_os in
6978    aix*)
6979      lt_prog_compiler_wl='-Wl,'
6980      if test "$host_cpu" = ia64; then
6981	# AIX 5 now supports IA64 processor
6982	lt_prog_compiler_static='-Bstatic'
6983      else
6984	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6985      fi
6986      ;;
6987      darwin*)
6988        # PIC is the default on this platform
6989        # Common symbols not allowed in MH_DYLIB files
6990       case $cc_basename in
6991         xlc*)
6992         lt_prog_compiler_pic='-qnocommon'
6993         lt_prog_compiler_wl='-Wl,'
6994         ;;
6995       esac
6996       ;;
6997
6998    mingw* | cygwin* | pw32* | os2*)
6999      # This hack is so that the source file can tell whether it is being
7000      # built for inclusion in a dll (and should export symbols for example).
7001      lt_prog_compiler_pic='-DDLL_EXPORT'
7002      ;;
7003
7004    hpux9* | hpux10* | hpux11*)
7005      lt_prog_compiler_wl='-Wl,'
7006      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7007      # not for PA HP-UX.
7008      case $host_cpu in
7009      hppa*64*|ia64*)
7010	# +Z the default
7011	;;
7012      *)
7013	lt_prog_compiler_pic='+Z'
7014	;;
7015      esac
7016      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7017      lt_prog_compiler_static='${wl}-a ${wl}archive'
7018      ;;
7019
7020    irix5* | irix6* | nonstopux*)
7021      lt_prog_compiler_wl='-Wl,'
7022      # PIC (with -KPIC) is the default.
7023      lt_prog_compiler_static='-non_shared'
7024      ;;
7025
7026    newsos6)
7027      lt_prog_compiler_pic='-KPIC'
7028      lt_prog_compiler_static='-Bstatic'
7029      ;;
7030
7031    linux* | k*bsd*-gnu)
7032      case $cc_basename in
7033      icc* | ecc*)
7034	lt_prog_compiler_wl='-Wl,'
7035	lt_prog_compiler_pic='-KPIC'
7036	lt_prog_compiler_static='-static'
7037        ;;
7038      pgcc* | pgf77* | pgf90* | pgf95*)
7039        # Portland Group compilers (*not* the Pentium gcc compiler,
7040	# which looks to be a dead project)
7041	lt_prog_compiler_wl='-Wl,'
7042	lt_prog_compiler_pic='-fpic'
7043	lt_prog_compiler_static='-Bstatic'
7044        ;;
7045      ccc*)
7046        lt_prog_compiler_wl='-Wl,'
7047        # All Alpha code is PIC.
7048        lt_prog_compiler_static='-non_shared'
7049        ;;
7050      *)
7051        case `$CC -V 2>&1 | sed 5q` in
7052	*Sun\ C*)
7053	  # Sun C 5.9
7054	  lt_prog_compiler_pic='-KPIC'
7055	  lt_prog_compiler_static='-Bstatic'
7056	  lt_prog_compiler_wl='-Wl,'
7057	  ;;
7058	*Sun\ F*)
7059	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
7060	  lt_prog_compiler_pic='-KPIC'
7061	  lt_prog_compiler_static='-Bstatic'
7062	  lt_prog_compiler_wl=''
7063	  ;;
7064	esac
7065	;;
7066      esac
7067      ;;
7068
7069    osf3* | osf4* | osf5*)
7070      lt_prog_compiler_wl='-Wl,'
7071      # All OSF/1 code is PIC.
7072      lt_prog_compiler_static='-non_shared'
7073      ;;
7074
7075    rdos*)
7076      lt_prog_compiler_static='-non_shared'
7077      ;;
7078
7079    solaris*)
7080      lt_prog_compiler_pic='-KPIC'
7081      lt_prog_compiler_static='-Bstatic'
7082      case $cc_basename in
7083      f77* | f90* | f95*)
7084	lt_prog_compiler_wl='-Qoption ld ';;
7085      *)
7086	lt_prog_compiler_wl='-Wl,';;
7087      esac
7088      ;;
7089
7090    sunos4*)
7091      lt_prog_compiler_wl='-Qoption ld '
7092      lt_prog_compiler_pic='-PIC'
7093      lt_prog_compiler_static='-Bstatic'
7094      ;;
7095
7096    sysv4 | sysv4.2uw2* | sysv4.3*)
7097      lt_prog_compiler_wl='-Wl,'
7098      lt_prog_compiler_pic='-KPIC'
7099      lt_prog_compiler_static='-Bstatic'
7100      ;;
7101
7102    sysv4*MP*)
7103      if test -d /usr/nec ;then
7104	lt_prog_compiler_pic='-Kconform_pic'
7105	lt_prog_compiler_static='-Bstatic'
7106      fi
7107      ;;
7108
7109    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7110      lt_prog_compiler_wl='-Wl,'
7111      lt_prog_compiler_pic='-KPIC'
7112      lt_prog_compiler_static='-Bstatic'
7113      ;;
7114
7115    unicos*)
7116      lt_prog_compiler_wl='-Wl,'
7117      lt_prog_compiler_can_build_shared=no
7118      ;;
7119
7120    uts4*)
7121      lt_prog_compiler_pic='-pic'
7122      lt_prog_compiler_static='-Bstatic'
7123      ;;
7124
7125    *)
7126      lt_prog_compiler_can_build_shared=no
7127      ;;
7128    esac
7129  fi
7130
7131echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7132echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7133
7134#
7135# Check to make sure the PIC flag actually works.
7136#
7137if test -n "$lt_prog_compiler_pic"; then
7138
7139echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7140echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7141if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7142  echo $ECHO_N "(cached) $ECHO_C" >&6
7143else
7144  lt_cv_prog_compiler_pic_works=no
7145  ac_outfile=conftest.$ac_objext
7146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7147   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7148   # Insert the option either (1) after the last *FLAGS variable, or
7149   # (2) before a word containing "conftest.", or (3) at the end.
7150   # Note that $ac_compile itself does not contain backslashes and begins
7151   # with a dollar sign (not a hyphen), so the echo should work correctly.
7152   # The option is referenced via a variable to avoid confusing sed.
7153   lt_compile=`echo "$ac_compile" | $SED \
7154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7156   -e 's:$: $lt_compiler_flag:'`
7157   (eval echo "\"\$as_me:7157: $lt_compile\"" >&5)
7158   (eval "$lt_compile" 2>conftest.err)
7159   ac_status=$?
7160   cat conftest.err >&5
7161   echo "$as_me:7161: \$? = $ac_status" >&5
7162   if (exit $ac_status) && test -s "$ac_outfile"; then
7163     # The compiler can only warn and ignore the option if not recognized
7164     # So say no if there are warnings other than the usual output.
7165     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7168       lt_cv_prog_compiler_pic_works=yes
7169     fi
7170   fi
7171   $rm conftest*
7172
7173fi
7174echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7175echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7176
7177if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7178    case $lt_prog_compiler_pic in
7179     "" | " "*) ;;
7180     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7181     esac
7182else
7183    lt_prog_compiler_pic=
7184     lt_prog_compiler_can_build_shared=no
7185fi
7186
7187fi
7188case $host_os in
7189  # For platforms which do not support PIC, -DPIC is meaningless:
7190  *djgpp*)
7191    lt_prog_compiler_pic=
7192    ;;
7193  *)
7194    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7195    ;;
7196esac
7197
7198#
7199# Check to make sure the static flag actually works.
7200#
7201wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7202echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7203echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7204if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7205  echo $ECHO_N "(cached) $ECHO_C" >&6
7206else
7207  lt_cv_prog_compiler_static_works=no
7208   save_LDFLAGS="$LDFLAGS"
7209   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7210   echo "$lt_simple_link_test_code" > conftest.$ac_ext
7211   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7212     # The linker can only warn and ignore the option if not recognized
7213     # So say no if there are warnings
7214     if test -s conftest.err; then
7215       # Append any errors to the config.log.
7216       cat conftest.err 1>&5
7217       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7218       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7219       if diff conftest.exp conftest.er2 >/dev/null; then
7220         lt_cv_prog_compiler_static_works=yes
7221       fi
7222     else
7223       lt_cv_prog_compiler_static_works=yes
7224     fi
7225   fi
7226   $rm -r conftest*
7227   LDFLAGS="$save_LDFLAGS"
7228
7229fi
7230echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7231echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7232
7233if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7234    :
7235else
7236    lt_prog_compiler_static=
7237fi
7238
7239
7240echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7241echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7242if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7243  echo $ECHO_N "(cached) $ECHO_C" >&6
7244else
7245  lt_cv_prog_compiler_c_o=no
7246   $rm -r conftest 2>/dev/null
7247   mkdir conftest
7248   cd conftest
7249   mkdir out
7250   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7251
7252   lt_compiler_flag="-o out/conftest2.$ac_objext"
7253   # Insert the option either (1) after the last *FLAGS variable, or
7254   # (2) before a word containing "conftest.", or (3) at the end.
7255   # Note that $ac_compile itself does not contain backslashes and begins
7256   # with a dollar sign (not a hyphen), so the echo should work correctly.
7257   lt_compile=`echo "$ac_compile" | $SED \
7258   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7259   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7260   -e 's:$: $lt_compiler_flag:'`
7261   (eval echo "\"\$as_me:7261: $lt_compile\"" >&5)
7262   (eval "$lt_compile" 2>out/conftest.err)
7263   ac_status=$?
7264   cat out/conftest.err >&5
7265   echo "$as_me:7265: \$? = $ac_status" >&5
7266   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7267   then
7268     # The compiler can only warn and ignore the option if not recognized
7269     # So say no if there are warnings
7270     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7271     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7272     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7273       lt_cv_prog_compiler_c_o=yes
7274     fi
7275   fi
7276   chmod u+w . 2>&5
7277   $rm conftest*
7278   # SGI C++ compiler will create directory out/ii_files/ for
7279   # template instantiation
7280   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7281   $rm out/* && rmdir out
7282   cd ..
7283   rmdir conftest
7284   $rm conftest*
7285
7286fi
7287echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7288echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7289
7290
7291hard_links="nottested"
7292if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7293  # do not overwrite the value of need_locks provided by the user
7294  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7295echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7296  hard_links=yes
7297  $rm conftest*
7298  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7299  touch conftest.a
7300  ln conftest.a conftest.b 2>&5 || hard_links=no
7301  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7302  echo "$as_me:$LINENO: result: $hard_links" >&5
7303echo "${ECHO_T}$hard_links" >&6
7304  if test "$hard_links" = no; then
7305    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7306echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7307    need_locks=warn
7308  fi
7309else
7310  need_locks=no
7311fi
7312
7313echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7314echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7315
7316  runpath_var=
7317  allow_undefined_flag=
7318  enable_shared_with_static_runtimes=no
7319  archive_cmds=
7320  archive_expsym_cmds=
7321  old_archive_From_new_cmds=
7322  old_archive_from_expsyms_cmds=
7323  export_dynamic_flag_spec=
7324  whole_archive_flag_spec=
7325  thread_safe_flag_spec=
7326  hardcode_libdir_flag_spec=
7327  hardcode_libdir_flag_spec_ld=
7328  hardcode_libdir_separator=
7329  hardcode_direct=no
7330  hardcode_minus_L=no
7331  hardcode_shlibpath_var=unsupported
7332  link_all_deplibs=unknown
7333  hardcode_automatic=no
7334  module_cmds=
7335  module_expsym_cmds=
7336  always_export_symbols=no
7337  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7338  # include_expsyms should be a list of space-separated symbols to be *always*
7339  # included in the symbol list
7340  include_expsyms=
7341  # exclude_expsyms can be an extended regexp of symbols to exclude
7342  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7343  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7344  # as well as any symbol that contains `d'.
7345  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7346  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7347  # platforms (ab)use it in PIC code, but their linkers get confused if
7348  # the symbol is explicitly referenced.  Since portable code cannot
7349  # rely on this symbol name, it's probably fine to never include it in
7350  # preloaded symbol tables.
7351  # Exclude shared library initialization/finalization symbols.
7352  extract_expsyms_cmds=
7353  # Just being paranoid about ensuring that cc_basename is set.
7354  for cc_temp in $compiler""; do
7355  case $cc_temp in
7356    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7357    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7358    \-*) ;;
7359    *) break;;
7360  esac
7361done
7362cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7363
7364  case $host_os in
7365  cygwin* | mingw* | pw32*)
7366    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7367    # When not using gcc, we currently assume that we are using
7368    # Microsoft Visual C++.
7369    if test "$GCC" != yes; then
7370      with_gnu_ld=no
7371    fi
7372    ;;
7373  interix*)
7374    # we just hope/assume this is gcc and not c89 (= MSVC++)
7375    with_gnu_ld=yes
7376    ;;
7377  openbsd*)
7378    with_gnu_ld=no
7379    ;;
7380  esac
7381
7382  ld_shlibs=yes
7383  if test "$with_gnu_ld" = yes; then
7384    # If archive_cmds runs LD, not CC, wlarc should be empty
7385    wlarc='${wl}'
7386
7387    # Set some defaults for GNU ld with shared library support. These
7388    # are reset later if shared libraries are not supported. Putting them
7389    # here allows them to be overridden if necessary.
7390    runpath_var=LD_RUN_PATH
7391    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7392    export_dynamic_flag_spec='${wl}--export-dynamic'
7393    # ancient GNU ld didn't support --whole-archive et. al.
7394    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7395	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7396      else
7397  	whole_archive_flag_spec=
7398    fi
7399    supports_anon_versioning=no
7400    case `$LD -v 2>/dev/null` in
7401      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7402      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7403      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7404      *\ 2.11.*) ;; # other 2.11 versions
7405      *) supports_anon_versioning=yes ;;
7406    esac
7407
7408    # See if GNU ld supports shared libraries.
7409    case $host_os in
7410    aix[3-9]*)
7411      # On AIX/PPC, the GNU linker is very broken
7412      if test "$host_cpu" != ia64; then
7413	ld_shlibs=no
7414	cat <<EOF 1>&2
7415
7416*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7417*** to be unable to reliably create shared libraries on AIX.
7418*** Therefore, libtool is disabling shared libraries support.  If you
7419*** really care for shared libraries, you may want to modify your PATH
7420*** so that a non-GNU linker is found, and then restart.
7421
7422EOF
7423      fi
7424      ;;
7425
7426    amigaos*)
7427      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)'
7428      hardcode_libdir_flag_spec='-L$libdir'
7429      hardcode_minus_L=yes
7430
7431      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7432      # that the semantics of dynamic libraries on AmigaOS, at least up
7433      # to version 4, is to share data among multiple programs linked
7434      # with the same dynamic library.  Since this doesn't match the
7435      # behavior of shared libraries on other platforms, we can't use
7436      # them.
7437      ld_shlibs=no
7438      ;;
7439
7440    beos*)
7441      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7442	allow_undefined_flag=unsupported
7443	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7444	# support --undefined.  This deserves some investigation.  FIXME
7445	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7446      else
7447	ld_shlibs=no
7448      fi
7449      ;;
7450
7451    cygwin* | mingw* | pw32*)
7452      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7453      # as there is no search path for DLLs.
7454      hardcode_libdir_flag_spec='-L$libdir'
7455      allow_undefined_flag=unsupported
7456      always_export_symbols=no
7457      enable_shared_with_static_runtimes=yes
7458      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7459
7460      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7461        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7462	# If the export-symbols file already is a .def file (1st line
7463	# is EXPORTS), use it as is; otherwise, prepend...
7464	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7465	  cp $export_symbols $output_objdir/$soname.def;
7466	else
7467	  echo EXPORTS > $output_objdir/$soname.def;
7468	  cat $export_symbols >> $output_objdir/$soname.def;
7469	fi~
7470	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7471      else
7472	ld_shlibs=no
7473      fi
7474      ;;
7475
7476    interix[3-9]*)
7477      hardcode_direct=no
7478      hardcode_shlibpath_var=no
7479      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7480      export_dynamic_flag_spec='${wl}-E'
7481      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7482      # Instead, shared libraries are loaded at an image base (0x10000000 by
7483      # default) and relocated if they conflict, which is a slow very memory
7484      # consuming and fragmenting process.  To avoid this, we pick a random,
7485      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7486      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7487      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7488      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7489      ;;
7490
7491    gnu* | linux* | k*bsd*-gnu)
7492      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7493	tmp_addflag=
7494	case $cc_basename,$host_cpu in
7495	pgcc*)				# Portland Group C compiler
7496	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7497	  tmp_addflag=' $pic_flag'
7498	  ;;
7499	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
7500	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7501	  tmp_addflag=' $pic_flag -Mnomain' ;;
7502	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
7503	  tmp_addflag=' -i_dynamic' ;;
7504	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
7505	  tmp_addflag=' -i_dynamic -nofor_main' ;;
7506	ifc* | ifort*)			# Intel Fortran compiler
7507	  tmp_addflag=' -nofor_main' ;;
7508	esac
7509	case `$CC -V 2>&1 | sed 5q` in
7510	*Sun\ C*)			# Sun C 5.9
7511	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7512	  tmp_sharedflag='-G' ;;
7513	*Sun\ F*)			# Sun Fortran 8.3
7514	  tmp_sharedflag='-G' ;;
7515	*)
7516	  tmp_sharedflag='-shared' ;;
7517	esac
7518	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7519
7520	if test $supports_anon_versioning = yes; then
7521	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7522  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7523  $echo "local: *; };" >> $output_objdir/$libname.ver~
7524	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7525	fi
7526      else
7527	ld_shlibs=no
7528      fi
7529      ;;
7530
7531    netbsd*)
7532      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7533	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7534	wlarc=
7535      else
7536	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7537	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7538      fi
7539      ;;
7540
7541    solaris*)
7542      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7543	ld_shlibs=no
7544	cat <<EOF 1>&2
7545
7546*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7547*** create shared libraries on Solaris systems.  Therefore, libtool
7548*** is disabling shared libraries support.  We urge you to upgrade GNU
7549*** binutils to release 2.9.1 or newer.  Another option is to modify
7550*** your PATH or compiler configuration so that the native linker is
7551*** used, and then restart.
7552
7553EOF
7554      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7555	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7556	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7557      else
7558	ld_shlibs=no
7559      fi
7560      ;;
7561
7562    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7563      case `$LD -v 2>&1` in
7564        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7565	ld_shlibs=no
7566	cat <<_LT_EOF 1>&2
7567
7568*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7569*** reliably create shared libraries on SCO systems.  Therefore, libtool
7570*** is disabling shared libraries support.  We urge you to upgrade GNU
7571*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7572*** your PATH or compiler configuration so that the native linker is
7573*** used, and then restart.
7574
7575_LT_EOF
7576	;;
7577	*)
7578	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7579	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7580	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7581	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7582	  else
7583	    ld_shlibs=no
7584	  fi
7585	;;
7586      esac
7587      ;;
7588
7589    sunos4*)
7590      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7591      wlarc=
7592      hardcode_direct=yes
7593      hardcode_shlibpath_var=no
7594      ;;
7595
7596    *)
7597      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7598	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7599	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7600      else
7601	ld_shlibs=no
7602      fi
7603      ;;
7604    esac
7605
7606    if test "$ld_shlibs" = no; then
7607      runpath_var=
7608      hardcode_libdir_flag_spec=
7609      export_dynamic_flag_spec=
7610      whole_archive_flag_spec=
7611    fi
7612  else
7613    # PORTME fill in a description of your system's linker (not GNU ld)
7614    case $host_os in
7615    aix3*)
7616      allow_undefined_flag=unsupported
7617      always_export_symbols=yes
7618      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'
7619      # Note: this linker hardcodes the directories in LIBPATH if there
7620      # are no directories specified by -L.
7621      hardcode_minus_L=yes
7622      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7623	# Neither direct hardcoding nor static linking is supported with a
7624	# broken collect2.
7625	hardcode_direct=unsupported
7626      fi
7627      ;;
7628
7629    aix[4-9]*)
7630      if test "$host_cpu" = ia64; then
7631	# On IA64, the linker does run time linking by default, so we don't
7632	# have to do anything special.
7633	aix_use_runtimelinking=no
7634	exp_sym_flag='-Bexport'
7635	no_entry_flag=""
7636      else
7637	# If we're using GNU nm, then we don't want the "-C" option.
7638	# -C means demangle to AIX nm, but means don't demangle with GNU nm
7639	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7640	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7641	else
7642	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7643	fi
7644	aix_use_runtimelinking=no
7645
7646	# Test if we are trying to use run time linking or normal
7647	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
7648	# need to do runtime linking.
7649	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7650	  for ld_flag in $LDFLAGS; do
7651  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7652  	    aix_use_runtimelinking=yes
7653  	    break
7654  	  fi
7655	  done
7656	  ;;
7657	esac
7658
7659	exp_sym_flag='-bexport'
7660	no_entry_flag='-bnoentry'
7661      fi
7662
7663      # When large executables or shared objects are built, AIX ld can
7664      # have problems creating the table of contents.  If linking a library
7665      # or program results in "error TOC overflow" add -mminimal-toc to
7666      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7667      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7668
7669      archive_cmds=''
7670      hardcode_direct=yes
7671      hardcode_libdir_separator=':'
7672      link_all_deplibs=yes
7673
7674      if test "$GCC" = yes; then
7675	case $host_os in aix4.[012]|aix4.[012].*)
7676	# We only want to do this on AIX 4.2 and lower, the check
7677	# below for broken collect2 doesn't work under 4.3+
7678	  collect2name=`${CC} -print-prog-name=collect2`
7679	  if test -f "$collect2name" && \
7680  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
7681	  then
7682  	  # We have reworked collect2
7683  	  :
7684	  else
7685  	  # We have old collect2
7686  	  hardcode_direct=unsupported
7687  	  # It fails to find uninstalled libraries when the uninstalled
7688  	  # path is not listed in the libpath.  Setting hardcode_minus_L
7689  	  # to unsupported forces relinking
7690  	  hardcode_minus_L=yes
7691  	  hardcode_libdir_flag_spec='-L$libdir'
7692  	  hardcode_libdir_separator=
7693	  fi
7694	  ;;
7695	esac
7696	shared_flag='-shared'
7697	if test "$aix_use_runtimelinking" = yes; then
7698	  shared_flag="$shared_flag "'${wl}-G'
7699	fi
7700      else
7701	# not using gcc
7702	if test "$host_cpu" = ia64; then
7703  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7704  	# chokes on -Wl,-G. The following line is correct:
7705	  shared_flag='-G'
7706	else
7707	  if test "$aix_use_runtimelinking" = yes; then
7708	    shared_flag='${wl}-G'
7709	  else
7710	    shared_flag='${wl}-bM:SRE'
7711	  fi
7712	fi
7713      fi
7714
7715      # It seems that -bexpall does not export symbols beginning with
7716      # underscore (_), so it is better to generate a list of symbols to export.
7717      always_export_symbols=yes
7718      if test "$aix_use_runtimelinking" = yes; then
7719	# Warning - without using the other runtime loading flags (-brtl),
7720	# -berok will link without error, but may produce a broken library.
7721	allow_undefined_flag='-berok'
7722       # Determine the default libpath from the value encoded in an empty executable.
7723       cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h.  */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h.  */
7729
7730int
7731main ()
7732{
7733
7734  ;
7735  return 0;
7736}
7737_ACEOF
7738rm -f conftest.$ac_objext conftest$ac_exeext
7739if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7740  (eval $ac_link) 2>conftest.er1
7741  ac_status=$?
7742  grep -v '^ *+' conftest.er1 >conftest.err
7743  rm -f conftest.er1
7744  cat conftest.err >&5
7745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7746  (exit $ac_status); } &&
7747	 { ac_try='test -z "$ac_c_werror_flag"
7748			 || test ! -s conftest.err'
7749  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7750  (eval $ac_try) 2>&5
7751  ac_status=$?
7752  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753  (exit $ac_status); }; } &&
7754	 { ac_try='test -s conftest$ac_exeext'
7755  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7756  (eval $ac_try) 2>&5
7757  ac_status=$?
7758  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7759  (exit $ac_status); }; }; then
7760
7761lt_aix_libpath_sed='
7762    /Import File Strings/,/^$/ {
7763	/^0/ {
7764	    s/^0  *\(.*\)$/\1/
7765	    p
7766	}
7767    }'
7768aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7769# Check for a 64-bit object if we didn't find anything.
7770if test -z "$aix_libpath"; then
7771  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7772fi
7773else
7774  echo "$as_me: failed program was:" >&5
7775sed 's/^/| /' conftest.$ac_ext >&5
7776
7777fi
7778rm -f conftest.err conftest.$ac_objext \
7779      conftest$ac_exeext conftest.$ac_ext
7780if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7781
7782       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7783	archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7784       else
7785	if test "$host_cpu" = ia64; then
7786	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7787	  allow_undefined_flag="-z nodefs"
7788	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7789	else
7790	 # Determine the default libpath from the value encoded in an empty executable.
7791	 cat >conftest.$ac_ext <<_ACEOF
7792/* confdefs.h.  */
7793_ACEOF
7794cat confdefs.h >>conftest.$ac_ext
7795cat >>conftest.$ac_ext <<_ACEOF
7796/* end confdefs.h.  */
7797
7798int
7799main ()
7800{
7801
7802  ;
7803  return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext conftest$ac_exeext
7807if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7808  (eval $ac_link) 2>conftest.er1
7809  ac_status=$?
7810  grep -v '^ *+' conftest.er1 >conftest.err
7811  rm -f conftest.er1
7812  cat conftest.err >&5
7813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814  (exit $ac_status); } &&
7815	 { ac_try='test -z "$ac_c_werror_flag"
7816			 || test ! -s conftest.err'
7817  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7818  (eval $ac_try) 2>&5
7819  ac_status=$?
7820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821  (exit $ac_status); }; } &&
7822	 { ac_try='test -s conftest$ac_exeext'
7823  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7824  (eval $ac_try) 2>&5
7825  ac_status=$?
7826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827  (exit $ac_status); }; }; then
7828
7829lt_aix_libpath_sed='
7830    /Import File Strings/,/^$/ {
7831	/^0/ {
7832	    s/^0  *\(.*\)$/\1/
7833	    p
7834	}
7835    }'
7836aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7837# Check for a 64-bit object if we didn't find anything.
7838if test -z "$aix_libpath"; then
7839  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7840fi
7841else
7842  echo "$as_me: failed program was:" >&5
7843sed 's/^/| /' conftest.$ac_ext >&5
7844
7845fi
7846rm -f conftest.err conftest.$ac_objext \
7847      conftest$ac_exeext conftest.$ac_ext
7848if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7849
7850	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7851	  # Warning - without using the other run time loading flags,
7852	  # -berok will link without error, but may produce a broken library.
7853	  no_undefined_flag=' ${wl}-bernotok'
7854	  allow_undefined_flag=' ${wl}-berok'
7855	  # Exported symbols can be pulled into shared objects from archives
7856	  whole_archive_flag_spec='$convenience'
7857	  archive_cmds_need_lc=yes
7858	  # This is similar to how AIX traditionally builds its shared libraries.
7859	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7860	fi
7861      fi
7862      ;;
7863
7864    amigaos*)
7865      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)'
7866      hardcode_libdir_flag_spec='-L$libdir'
7867      hardcode_minus_L=yes
7868      # see comment about different semantics on the GNU ld section
7869      ld_shlibs=no
7870      ;;
7871
7872    bsdi[45]*)
7873      export_dynamic_flag_spec=-rdynamic
7874      ;;
7875
7876    cygwin* | mingw* | pw32*)
7877      # When not using gcc, we currently assume that we are using
7878      # Microsoft Visual C++.
7879      # hardcode_libdir_flag_spec is actually meaningless, as there is
7880      # no search path for DLLs.
7881      hardcode_libdir_flag_spec=' '
7882      allow_undefined_flag=unsupported
7883      # Tell ltmain to make .lib files, not .a files.
7884      libext=lib
7885      # Tell ltmain to make .dll files, not .so files.
7886      shrext_cmds=".dll"
7887      # FIXME: Setting linknames here is a bad hack.
7888      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7889      # The linker will automatically build a .lib file if we build a DLL.
7890      old_archive_From_new_cmds='true'
7891      # FIXME: Should let the user specify the lib program.
7892      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7893      fix_srcfile_path='`cygpath -w "$srcfile"`'
7894      enable_shared_with_static_runtimes=yes
7895      ;;
7896
7897    darwin* | rhapsody*)
7898      case $host_os in
7899        rhapsody* | darwin1.[012])
7900         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7901         ;;
7902       *) # Darwin 1.3 on
7903         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7904           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7905         else
7906           case ${MACOSX_DEPLOYMENT_TARGET} in
7907             10.[012])
7908               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7909               ;;
7910             10.*)
7911               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7912               ;;
7913           esac
7914         fi
7915         ;;
7916      esac
7917      archive_cmds_need_lc=no
7918      hardcode_direct=no
7919      hardcode_automatic=yes
7920      hardcode_shlibpath_var=unsupported
7921      whole_archive_flag_spec=''
7922      link_all_deplibs=yes
7923    if test "$GCC" = yes ; then
7924    	output_verbose_link_cmd='echo'
7925        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7926        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7927        archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7928        module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7929    else
7930      case $cc_basename in
7931        xlc*)
7932         output_verbose_link_cmd='echo'
7933         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7934         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7935          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7936         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7937          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7938          ;;
7939       *)
7940         ld_shlibs=no
7941          ;;
7942      esac
7943    fi
7944      ;;
7945
7946    dgux*)
7947      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948      hardcode_libdir_flag_spec='-L$libdir'
7949      hardcode_shlibpath_var=no
7950      ;;
7951
7952    freebsd1*)
7953      ld_shlibs=no
7954      ;;
7955
7956    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7957    # support.  Future versions do this automatically, but an explicit c++rt0.o
7958    # does not break anything, and helps significantly (at the cost of a little
7959    # extra space).
7960    freebsd2.2*)
7961      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7962      hardcode_libdir_flag_spec='-R$libdir'
7963      hardcode_direct=yes
7964      hardcode_shlibpath_var=no
7965      ;;
7966
7967    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7968    freebsd2*)
7969      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7970      hardcode_direct=yes
7971      hardcode_minus_L=yes
7972      hardcode_shlibpath_var=no
7973      ;;
7974
7975    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7976    freebsd* | dragonfly*)
7977      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7978      hardcode_libdir_flag_spec='-R$libdir'
7979      hardcode_direct=yes
7980      hardcode_shlibpath_var=no
7981      ;;
7982
7983    hpux9*)
7984      if test "$GCC" = yes; then
7985	archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7986      else
7987	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'
7988      fi
7989      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7990      hardcode_libdir_separator=:
7991      hardcode_direct=yes
7992
7993      # hardcode_minus_L: Not really in the search PATH,
7994      # but as the default location of the library.
7995      hardcode_minus_L=yes
7996      export_dynamic_flag_spec='${wl}-E'
7997      ;;
7998
7999    hpux10*)
8000      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8001	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8002      else
8003	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8004      fi
8005      if test "$with_gnu_ld" = no; then
8006	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8007	hardcode_libdir_separator=:
8008
8009	hardcode_direct=yes
8010	export_dynamic_flag_spec='${wl}-E'
8011
8012	# hardcode_minus_L: Not really in the search PATH,
8013	# but as the default location of the library.
8014	hardcode_minus_L=yes
8015      fi
8016      ;;
8017
8018    hpux11*)
8019      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8020	case $host_cpu in
8021	hppa*64*)
8022	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8023	  ;;
8024	ia64*)
8025	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8026	  ;;
8027	*)
8028	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8029	  ;;
8030	esac
8031      else
8032	case $host_cpu in
8033	hppa*64*)
8034	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8035	  ;;
8036	ia64*)
8037	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8038	  ;;
8039	*)
8040	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8041	  ;;
8042	esac
8043      fi
8044      if test "$with_gnu_ld" = no; then
8045	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8046	hardcode_libdir_separator=:
8047
8048	case $host_cpu in
8049	hppa*64*|ia64*)
8050	  hardcode_libdir_flag_spec_ld='+b $libdir'
8051	  hardcode_direct=no
8052	  hardcode_shlibpath_var=no
8053	  ;;
8054	*)
8055	  hardcode_direct=yes
8056	  export_dynamic_flag_spec='${wl}-E'
8057
8058	  # hardcode_minus_L: Not really in the search PATH,
8059	  # but as the default location of the library.
8060	  hardcode_minus_L=yes
8061	  ;;
8062	esac
8063      fi
8064      ;;
8065
8066    irix5* | irix6* | nonstopux*)
8067      if test "$GCC" = yes; then
8068	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'
8069      else
8070	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'
8071	hardcode_libdir_flag_spec_ld='-rpath $libdir'
8072      fi
8073      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8074      hardcode_libdir_separator=:
8075      link_all_deplibs=yes
8076      ;;
8077
8078    netbsd*)
8079      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8080	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8081      else
8082	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8083      fi
8084      hardcode_libdir_flag_spec='-R$libdir'
8085      hardcode_direct=yes
8086      hardcode_shlibpath_var=no
8087      ;;
8088
8089    newsos6)
8090      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8091      hardcode_direct=yes
8092      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8093      hardcode_libdir_separator=:
8094      hardcode_shlibpath_var=no
8095      ;;
8096
8097    openbsd*)
8098      if test -f /usr/libexec/ld.so; then
8099	hardcode_direct=yes
8100	hardcode_shlibpath_var=no
8101	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8102	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8103	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8104	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8105	  export_dynamic_flag_spec='${wl}-E'
8106	else
8107	  case $host_os in
8108	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8109	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8110	     hardcode_libdir_flag_spec='-R$libdir'
8111	     ;;
8112	   *)
8113	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8114	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8115	     ;;
8116	  esac
8117        fi
8118      else
8119	ld_shlibs=no
8120      fi
8121      ;;
8122
8123    os2*)
8124      hardcode_libdir_flag_spec='-L$libdir'
8125      hardcode_minus_L=yes
8126      allow_undefined_flag=unsupported
8127      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'
8128      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8129      ;;
8130
8131    osf3*)
8132      if test "$GCC" = yes; then
8133	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8134	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'
8135      else
8136	allow_undefined_flag=' -expect_unresolved \*'
8137	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'
8138      fi
8139      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8140      hardcode_libdir_separator=:
8141      ;;
8142
8143    osf4* | osf5*)	# as osf3* with the addition of -msym flag
8144      if test "$GCC" = yes; then
8145	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8146	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'
8147	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8148      else
8149	allow_undefined_flag=' -expect_unresolved \*'
8150	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'
8151	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8152	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8153
8154	# Both c and cxx compiler support -rpath directly
8155	hardcode_libdir_flag_spec='-rpath $libdir'
8156      fi
8157      hardcode_libdir_separator=:
8158      ;;
8159
8160    solaris*)
8161      no_undefined_flag=' -z text'
8162      if test "$GCC" = yes; then
8163	wlarc='${wl}'
8164	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8165	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8166	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8167      else
8168	wlarc=''
8169	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8170	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8171  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8172      fi
8173      hardcode_libdir_flag_spec='-R$libdir'
8174      hardcode_shlibpath_var=no
8175      case $host_os in
8176      solaris2.[0-5] | solaris2.[0-5].*) ;;
8177      *)
8178	# The compiler driver will combine and reorder linker options,
8179	# but understands `-z linker_flag'.  GCC discards it without `$wl',
8180	# but is careful enough not to reorder.
8181 	# Supported since Solaris 2.6 (maybe 2.5.1?)
8182	if test "$GCC" = yes; then
8183	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8184	else
8185	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8186	fi
8187	;;
8188      esac
8189      link_all_deplibs=yes
8190      ;;
8191
8192    sunos4*)
8193      if test "x$host_vendor" = xsequent; then
8194	# Use $CC to link under sequent, because it throws in some extra .o
8195	# files that make .init and .fini sections work.
8196	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8197      else
8198	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8199      fi
8200      hardcode_libdir_flag_spec='-L$libdir'
8201      hardcode_direct=yes
8202      hardcode_minus_L=yes
8203      hardcode_shlibpath_var=no
8204      ;;
8205
8206    sysv4)
8207      case $host_vendor in
8208	sni)
8209	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8210	  hardcode_direct=yes # is this really true???
8211	;;
8212	siemens)
8213	  ## LD is ld it makes a PLAMLIB
8214	  ## CC just makes a GrossModule.
8215	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8216	  reload_cmds='$CC -r -o $output$reload_objs'
8217	  hardcode_direct=no
8218        ;;
8219	motorola)
8220	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8221	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8222	;;
8223      esac
8224      runpath_var='LD_RUN_PATH'
8225      hardcode_shlibpath_var=no
8226      ;;
8227
8228    sysv4.3*)
8229      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8230      hardcode_shlibpath_var=no
8231      export_dynamic_flag_spec='-Bexport'
8232      ;;
8233
8234    sysv4*MP*)
8235      if test -d /usr/nec; then
8236	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8237	hardcode_shlibpath_var=no
8238	runpath_var=LD_RUN_PATH
8239	hardcode_runpath_var=yes
8240	ld_shlibs=yes
8241      fi
8242      ;;
8243
8244    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8245      no_undefined_flag='${wl}-z,text'
8246      archive_cmds_need_lc=no
8247      hardcode_shlibpath_var=no
8248      runpath_var='LD_RUN_PATH'
8249
8250      if test "$GCC" = yes; then
8251	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8252	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8253      else
8254	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8255	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8256      fi
8257      ;;
8258
8259    sysv5* | sco3.2v5* | sco5v6*)
8260      # Note: We can NOT use -z defs as we might desire, because we do not
8261      # link with -lc, and that would cause any symbols used from libc to
8262      # always be unresolved, which means just about no library would
8263      # ever link correctly.  If we're not using GNU ld we use -z text
8264      # though, which does catch some bad symbols but isn't as heavy-handed
8265      # as -z defs.
8266      no_undefined_flag='${wl}-z,text'
8267      allow_undefined_flag='${wl}-z,nodefs'
8268      archive_cmds_need_lc=no
8269      hardcode_shlibpath_var=no
8270      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8271      hardcode_libdir_separator=':'
8272      link_all_deplibs=yes
8273      export_dynamic_flag_spec='${wl}-Bexport'
8274      runpath_var='LD_RUN_PATH'
8275
8276      if test "$GCC" = yes; then
8277	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8278	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8279      else
8280	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8281	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8282      fi
8283      ;;
8284
8285    uts4*)
8286      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8287      hardcode_libdir_flag_spec='-L$libdir'
8288      hardcode_shlibpath_var=no
8289      ;;
8290
8291    *)
8292      ld_shlibs=no
8293      ;;
8294    esac
8295  fi
8296
8297echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8298echo "${ECHO_T}$ld_shlibs" >&6
8299test "$ld_shlibs" = no && can_build_shared=no
8300
8301#
8302# Do we need to explicitly link libc?
8303#
8304case "x$archive_cmds_need_lc" in
8305x|xyes)
8306  # Assume -lc should be added
8307  archive_cmds_need_lc=yes
8308
8309  if test "$enable_shared" = yes && test "$GCC" = yes; then
8310    case $archive_cmds in
8311    *'~'*)
8312      # FIXME: we may have to deal with multi-command sequences.
8313      ;;
8314    '$CC '*)
8315      # Test whether the compiler implicitly links with -lc since on some
8316      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8317      # to ld, don't add -lc before -lgcc.
8318      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8319echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8320      $rm conftest*
8321      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8322
8323      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324  (eval $ac_compile) 2>&5
8325  ac_status=$?
8326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327  (exit $ac_status); } 2>conftest.err; then
8328        soname=conftest
8329        lib=conftest
8330        libobjs=conftest.$ac_objext
8331        deplibs=
8332        wl=$lt_prog_compiler_wl
8333	pic_flag=$lt_prog_compiler_pic
8334        compiler_flags=-v
8335        linker_flags=-v
8336        verstring=
8337        output_objdir=.
8338        libname=conftest
8339        lt_save_allow_undefined_flag=$allow_undefined_flag
8340        allow_undefined_flag=
8341        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8342  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8343  ac_status=$?
8344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345  (exit $ac_status); }
8346        then
8347	  archive_cmds_need_lc=no
8348        else
8349	  archive_cmds_need_lc=yes
8350        fi
8351        allow_undefined_flag=$lt_save_allow_undefined_flag
8352      else
8353        cat conftest.err 1>&5
8354      fi
8355      $rm conftest*
8356      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8357echo "${ECHO_T}$archive_cmds_need_lc" >&6
8358      ;;
8359    esac
8360  fi
8361  ;;
8362esac
8363
8364echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8365echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8366library_names_spec=
8367libname_spec='lib$name'
8368soname_spec=
8369shrext_cmds=".so"
8370postinstall_cmds=
8371postuninstall_cmds=
8372finish_cmds=
8373finish_eval=
8374shlibpath_var=
8375shlibpath_overrides_runpath=unknown
8376version_type=none
8377dynamic_linker="$host_os ld.so"
8378sys_lib_dlsearch_path_spec="/lib /usr/lib"
8379
8380if test "$GCC" = yes; then
8381  case $host_os in
8382    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8383    *) lt_awk_arg="/^libraries:/" ;;
8384  esac
8385  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8386  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8387    # if the path contains ";" then we assume it to be the separator
8388    # otherwise default to the standard path separator (i.e. ":") - it is
8389    # assumed that no part of a normal pathname contains ";" but that should
8390    # okay in the real world where ";" in dirpaths is itself problematic.
8391    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8392  else
8393    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8394  fi
8395  # Ok, now we have the path, separated by spaces, we can step through it
8396  # and add multilib dir if necessary.
8397  lt_tmp_lt_search_path_spec=
8398  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8399  for lt_sys_path in $lt_search_path_spec; do
8400    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8401      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8402    else
8403      test -d "$lt_sys_path" && \
8404	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8405    fi
8406  done
8407  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8408BEGIN {RS=" "; FS="/|\n";} {
8409  lt_foo="";
8410  lt_count=0;
8411  for (lt_i = NF; lt_i > 0; lt_i--) {
8412    if ($lt_i != "" && $lt_i != ".") {
8413      if ($lt_i == "..") {
8414        lt_count++;
8415      } else {
8416        if (lt_count == 0) {
8417          lt_foo="/" $lt_i lt_foo;
8418        } else {
8419          lt_count--;
8420        }
8421      }
8422    }
8423  }
8424  if (lt_foo != "") { lt_freq[lt_foo]++; }
8425  if (lt_freq[lt_foo] == 1) { print lt_foo; }
8426}'`
8427  sys_lib_search_path_spec=`echo $lt_search_path_spec`
8428else
8429  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8430fi
8431need_lib_prefix=unknown
8432hardcode_into_libs=no
8433
8434# when you set need_version to no, make sure it does not cause -set_version
8435# flags to be left without arguments
8436need_version=unknown
8437
8438case $host_os in
8439aix3*)
8440  version_type=linux
8441  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8442  shlibpath_var=LIBPATH
8443
8444  # AIX 3 has no versioning support, so we append a major version to the name.
8445  soname_spec='${libname}${release}${shared_ext}$major'
8446  ;;
8447
8448aix[4-9]*)
8449  version_type=linux
8450  need_lib_prefix=no
8451  need_version=no
8452  hardcode_into_libs=yes
8453  if test "$host_cpu" = ia64; then
8454    # AIX 5 supports IA64
8455    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8456    shlibpath_var=LD_LIBRARY_PATH
8457  else
8458    # With GCC up to 2.95.x, collect2 would create an import file
8459    # for dependence libraries.  The import file would start with
8460    # the line `#! .'.  This would cause the generated library to
8461    # depend on `.', always an invalid library.  This was fixed in
8462    # development snapshots of GCC prior to 3.0.
8463    case $host_os in
8464      aix4 | aix4.[01] | aix4.[01].*)
8465      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8466	   echo ' yes '
8467	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8468	:
8469      else
8470	can_build_shared=no
8471      fi
8472      ;;
8473    esac
8474    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8475    # soname into executable. Probably we can add versioning support to
8476    # collect2, so additional links can be useful in future.
8477    if test "$aix_use_runtimelinking" = yes; then
8478      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8479      # instead of lib<name>.a to let people know that these are not
8480      # typical AIX shared libraries.
8481      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8482    else
8483      # We preserve .a as extension for shared libraries through AIX4.2
8484      # and later when we are not doing run time linking.
8485      library_names_spec='${libname}${release}.a $libname.a'
8486      soname_spec='${libname}${release}${shared_ext}$major'
8487    fi
8488    shlibpath_var=LIBPATH
8489  fi
8490  ;;
8491
8492amigaos*)
8493  library_names_spec='$libname.ixlibrary $libname.a'
8494  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8495  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'
8496  ;;
8497
8498beos*)
8499  library_names_spec='${libname}${shared_ext}'
8500  dynamic_linker="$host_os ld.so"
8501  shlibpath_var=LIBRARY_PATH
8502  ;;
8503
8504bsdi[45]*)
8505  version_type=linux
8506  need_version=no
8507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8508  soname_spec='${libname}${release}${shared_ext}$major'
8509  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8510  shlibpath_var=LD_LIBRARY_PATH
8511  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8512  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8513  # the default ld.so.conf also contains /usr/contrib/lib and
8514  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8515  # libtool to hard-code these into programs
8516  ;;
8517
8518cygwin* | mingw* | pw32*)
8519  version_type=windows
8520  shrext_cmds=".dll"
8521  need_version=no
8522  need_lib_prefix=no
8523
8524  case $GCC,$host_os in
8525  yes,cygwin* | yes,mingw* | yes,pw32*)
8526    library_names_spec='$libname.dll.a'
8527    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8528    postinstall_cmds='base_file=`basename \${file}`~
8529      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8530      dldir=$destdir/`dirname \$dlpath`~
8531      test -d \$dldir || mkdir -p \$dldir~
8532      $install_prog $dir/$dlname \$dldir/$dlname~
8533      chmod a+x \$dldir/$dlname'
8534    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8535      dlpath=$dir/\$dldll~
8536       $rm \$dlpath'
8537    shlibpath_overrides_runpath=yes
8538
8539    case $host_os in
8540    cygwin*)
8541      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8542      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8543      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8544      ;;
8545    mingw*)
8546      # MinGW DLLs use traditional 'lib' prefix
8547      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8548      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8549      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8550        # It is most probably a Windows format PATH printed by
8551        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8552        # path with ; separators, and with drive letters. We can handle the
8553        # drive letters (cygwin fileutils understands them), so leave them,
8554        # especially as we might pass files found there to a mingw objdump,
8555        # which wouldn't understand a cygwinified path. Ahh.
8556        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8557      else
8558        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8559      fi
8560      ;;
8561    pw32*)
8562      # pw32 DLLs use 'pw' prefix rather than 'lib'
8563      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8564      ;;
8565    esac
8566    ;;
8567
8568  *)
8569    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8570    ;;
8571  esac
8572  dynamic_linker='Win32 ld.exe'
8573  # FIXME: first we should search . and the directory the executable is in
8574  shlibpath_var=PATH
8575  ;;
8576
8577darwin* | rhapsody*)
8578  dynamic_linker="$host_os dyld"
8579  version_type=darwin
8580  need_lib_prefix=no
8581  need_version=no
8582  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8583  soname_spec='${libname}${release}${major}$shared_ext'
8584  shlibpath_overrides_runpath=yes
8585  shlibpath_var=DYLD_LIBRARY_PATH
8586  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8587
8588  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8589  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8590  ;;
8591
8592dgux*)
8593  version_type=linux
8594  need_lib_prefix=no
8595  need_version=no
8596  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8597  soname_spec='${libname}${release}${shared_ext}$major'
8598  shlibpath_var=LD_LIBRARY_PATH
8599  ;;
8600
8601freebsd1*)
8602  dynamic_linker=no
8603  ;;
8604
8605freebsd* | dragonfly*)
8606  # DragonFly does not have aout.  When/if they implement a new
8607  # versioning mechanism, adjust this.
8608  if test -x /usr/bin/objformat; then
8609    objformat=`/usr/bin/objformat`
8610  else
8611    case $host_os in
8612    freebsd[123]*) objformat=aout ;;
8613    *) objformat=elf ;;
8614    esac
8615  fi
8616  version_type=freebsd-$objformat
8617  case $version_type in
8618    freebsd-elf*)
8619      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8620      need_version=no
8621      need_lib_prefix=no
8622      ;;
8623    freebsd-*)
8624      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8625      need_version=yes
8626      ;;
8627  esac
8628  shlibpath_var=LD_LIBRARY_PATH
8629  case $host_os in
8630  freebsd2*)
8631    shlibpath_overrides_runpath=yes
8632    ;;
8633  freebsd3.[01]* | freebsdelf3.[01]*)
8634    shlibpath_overrides_runpath=yes
8635    hardcode_into_libs=yes
8636    ;;
8637  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8638  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8639    shlibpath_overrides_runpath=no
8640    hardcode_into_libs=yes
8641    ;;
8642  *) # from 4.6 on, and DragonFly
8643    shlibpath_overrides_runpath=yes
8644    hardcode_into_libs=yes
8645    ;;
8646  esac
8647  ;;
8648
8649gnu*)
8650  version_type=linux
8651  need_lib_prefix=no
8652  need_version=no
8653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  shlibpath_var=LD_LIBRARY_PATH
8656  hardcode_into_libs=yes
8657  ;;
8658
8659hpux9* | hpux10* | hpux11*)
8660  # Give a soname corresponding to the major version so that dld.sl refuses to
8661  # link against other versions.
8662  version_type=sunos
8663  need_lib_prefix=no
8664  need_version=no
8665  case $host_cpu in
8666  ia64*)
8667    shrext_cmds='.so'
8668    hardcode_into_libs=yes
8669    dynamic_linker="$host_os dld.so"
8670    shlibpath_var=LD_LIBRARY_PATH
8671    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8672    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8673    soname_spec='${libname}${release}${shared_ext}$major'
8674    if test "X$HPUX_IA64_MODE" = X32; then
8675      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8676    else
8677      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8678    fi
8679    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8680    ;;
8681   hppa*64*)
8682     shrext_cmds='.sl'
8683     hardcode_into_libs=yes
8684     dynamic_linker="$host_os dld.sl"
8685     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8686     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8687     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8688     soname_spec='${libname}${release}${shared_ext}$major'
8689     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8690     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8691     ;;
8692   *)
8693    shrext_cmds='.sl'
8694    dynamic_linker="$host_os dld.sl"
8695    shlibpath_var=SHLIB_PATH
8696    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8697    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8698    soname_spec='${libname}${release}${shared_ext}$major'
8699    ;;
8700  esac
8701  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8702  postinstall_cmds='chmod 555 $lib'
8703  ;;
8704
8705interix[3-9]*)
8706  version_type=linux
8707  need_lib_prefix=no
8708  need_version=no
8709  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8710  soname_spec='${libname}${release}${shared_ext}$major'
8711  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8712  shlibpath_var=LD_LIBRARY_PATH
8713  shlibpath_overrides_runpath=no
8714  hardcode_into_libs=yes
8715  ;;
8716
8717irix5* | irix6* | nonstopux*)
8718  case $host_os in
8719    nonstopux*) version_type=nonstopux ;;
8720    *)
8721	if test "$lt_cv_prog_gnu_ld" = yes; then
8722		version_type=linux
8723	else
8724		version_type=irix
8725	fi ;;
8726  esac
8727  need_lib_prefix=no
8728  need_version=no
8729  soname_spec='${libname}${release}${shared_ext}$major'
8730  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8731  case $host_os in
8732  irix5* | nonstopux*)
8733    libsuff= shlibsuff=
8734    ;;
8735  *)
8736    case $LD in # libtool.m4 will add one of these switches to LD
8737    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8738      libsuff= shlibsuff= libmagic=32-bit;;
8739    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8740      libsuff=32 shlibsuff=N32 libmagic=N32;;
8741    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8742      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8743    *) libsuff= shlibsuff= libmagic=never-match;;
8744    esac
8745    ;;
8746  esac
8747  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8748  shlibpath_overrides_runpath=no
8749  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8750  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8751  hardcode_into_libs=yes
8752  ;;
8753
8754# No shared lib support for Linux oldld, aout, or coff.
8755linux*oldld* | linux*aout* | linux*coff*)
8756  dynamic_linker=no
8757  ;;
8758
8759# This must be Linux ELF.
8760linux* | k*bsd*-gnu)
8761  version_type=linux
8762  need_lib_prefix=no
8763  need_version=no
8764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8765  soname_spec='${libname}${release}${shared_ext}$major'
8766  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8767  shlibpath_var=LD_LIBRARY_PATH
8768  shlibpath_overrides_runpath=no
8769  # This implies no fast_install, which is unacceptable.
8770  # Some rework will be needed to allow for fast_install
8771  # before this can be enabled.
8772  hardcode_into_libs=yes
8773  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8774  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8775
8776  # Append ld.so.conf contents to the search path
8777  if test -f /etc/ld.so.conf; then
8778    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8779    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8780  fi
8781
8782  # We used to test for /lib/ld.so.1 and disable shared libraries on
8783  # powerpc, because MkLinux only supported shared libraries with the
8784  # GNU dynamic linker.  Since this was broken with cross compilers,
8785  # most powerpc-linux boxes support dynamic linking these days and
8786  # people can always --disable-shared, the test was removed, and we
8787  # assume the GNU/Linux dynamic linker is in use.
8788  dynamic_linker='GNU/Linux ld.so'
8789  ;;
8790
8791netbsd*)
8792  version_type=sunos
8793  need_lib_prefix=no
8794  need_version=no
8795  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8796    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8797    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8798    dynamic_linker='NetBSD (a.out) ld.so'
8799  else
8800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8801    soname_spec='${libname}${release}${shared_ext}$major'
8802    dynamic_linker='NetBSD ld.elf_so'
8803  fi
8804  shlibpath_var=LD_LIBRARY_PATH
8805  shlibpath_overrides_runpath=yes
8806  hardcode_into_libs=yes
8807  ;;
8808
8809newsos6)
8810  version_type=linux
8811  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812  shlibpath_var=LD_LIBRARY_PATH
8813  shlibpath_overrides_runpath=yes
8814  ;;
8815
8816nto-qnx*)
8817  version_type=linux
8818  need_lib_prefix=no
8819  need_version=no
8820  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8821  soname_spec='${libname}${release}${shared_ext}$major'
8822  shlibpath_var=LD_LIBRARY_PATH
8823  shlibpath_overrides_runpath=yes
8824  ;;
8825
8826openbsd*)
8827  version_type=sunos
8828  sys_lib_dlsearch_path_spec="/usr/lib"
8829  need_lib_prefix=no
8830  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8831  case $host_os in
8832    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8833    *)                         need_version=no  ;;
8834  esac
8835  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8836  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8837  shlibpath_var=LD_LIBRARY_PATH
8838  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8839    case $host_os in
8840      openbsd2.[89] | openbsd2.[89].*)
8841	shlibpath_overrides_runpath=no
8842	;;
8843      *)
8844	shlibpath_overrides_runpath=yes
8845	;;
8846      esac
8847  else
8848    shlibpath_overrides_runpath=yes
8849  fi
8850  ;;
8851
8852os2*)
8853  libname_spec='$name'
8854  shrext_cmds=".dll"
8855  need_lib_prefix=no
8856  library_names_spec='$libname${shared_ext} $libname.a'
8857  dynamic_linker='OS/2 ld.exe'
8858  shlibpath_var=LIBPATH
8859  ;;
8860
8861osf3* | osf4* | osf5*)
8862  version_type=osf
8863  need_lib_prefix=no
8864  need_version=no
8865  soname_spec='${libname}${release}${shared_ext}$major'
8866  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8867  shlibpath_var=LD_LIBRARY_PATH
8868  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8869  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8870  ;;
8871
8872rdos*)
8873  dynamic_linker=no
8874  ;;
8875
8876solaris*)
8877  version_type=linux
8878  need_lib_prefix=no
8879  need_version=no
8880  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881  soname_spec='${libname}${release}${shared_ext}$major'
8882  shlibpath_var=LD_LIBRARY_PATH
8883  shlibpath_overrides_runpath=yes
8884  hardcode_into_libs=yes
8885  # ldd complains unless libraries are executable
8886  postinstall_cmds='chmod +x $lib'
8887  ;;
8888
8889sunos4*)
8890  version_type=sunos
8891  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8892  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8893  shlibpath_var=LD_LIBRARY_PATH
8894  shlibpath_overrides_runpath=yes
8895  if test "$with_gnu_ld" = yes; then
8896    need_lib_prefix=no
8897  fi
8898  need_version=yes
8899  ;;
8900
8901sysv4 | sysv4.3*)
8902  version_type=linux
8903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8904  soname_spec='${libname}${release}${shared_ext}$major'
8905  shlibpath_var=LD_LIBRARY_PATH
8906  case $host_vendor in
8907    sni)
8908      shlibpath_overrides_runpath=no
8909      need_lib_prefix=no
8910      export_dynamic_flag_spec='${wl}-Blargedynsym'
8911      runpath_var=LD_RUN_PATH
8912      ;;
8913    siemens)
8914      need_lib_prefix=no
8915      ;;
8916    motorola)
8917      need_lib_prefix=no
8918      need_version=no
8919      shlibpath_overrides_runpath=no
8920      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8921      ;;
8922  esac
8923  ;;
8924
8925sysv4*MP*)
8926  if test -d /usr/nec ;then
8927    version_type=linux
8928    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8929    soname_spec='$libname${shared_ext}.$major'
8930    shlibpath_var=LD_LIBRARY_PATH
8931  fi
8932  ;;
8933
8934sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8935  version_type=freebsd-elf
8936  need_lib_prefix=no
8937  need_version=no
8938  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8939  soname_spec='${libname}${release}${shared_ext}$major'
8940  shlibpath_var=LD_LIBRARY_PATH
8941  hardcode_into_libs=yes
8942  if test "$with_gnu_ld" = yes; then
8943    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8944    shlibpath_overrides_runpath=no
8945  else
8946    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8947    shlibpath_overrides_runpath=yes
8948    case $host_os in
8949      sco3.2v5*)
8950        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8951	;;
8952    esac
8953  fi
8954  sys_lib_dlsearch_path_spec='/usr/lib'
8955  ;;
8956
8957uts4*)
8958  version_type=linux
8959  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8960  soname_spec='${libname}${release}${shared_ext}$major'
8961  shlibpath_var=LD_LIBRARY_PATH
8962  ;;
8963
8964*)
8965  dynamic_linker=no
8966  ;;
8967esac
8968echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8969echo "${ECHO_T}$dynamic_linker" >&6
8970test "$dynamic_linker" = no && can_build_shared=no
8971
8972if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8973  echo $ECHO_N "(cached) $ECHO_C" >&6
8974else
8975  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8976fi
8977
8978sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
8979if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
8983fi
8984
8985sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8986
8987variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8988if test "$GCC" = yes; then
8989  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8990fi
8991
8992echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8993echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8994hardcode_action=
8995if test -n "$hardcode_libdir_flag_spec" || \
8996   test -n "$runpath_var" || \
8997   test "X$hardcode_automatic" = "Xyes" ; then
8998
8999  # We can hardcode non-existant directories.
9000  if test "$hardcode_direct" != no &&
9001     # If the only mechanism to avoid hardcoding is shlibpath_var, we
9002     # have to relink, otherwise we might link with an installed library
9003     # when we should be linking with a yet-to-be-installed one
9004     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9005     test "$hardcode_minus_L" != no; then
9006    # Linking always hardcodes the temporary library directory.
9007    hardcode_action=relink
9008  else
9009    # We can link without hardcoding, and we can hardcode nonexisting dirs.
9010    hardcode_action=immediate
9011  fi
9012else
9013  # We cannot hardcode anything, or else we can only hardcode existing
9014  # directories.
9015  hardcode_action=unsupported
9016fi
9017echo "$as_me:$LINENO: result: $hardcode_action" >&5
9018echo "${ECHO_T}$hardcode_action" >&6
9019
9020if test "$hardcode_action" = relink; then
9021  # Fast installation is not supported
9022  enable_fast_install=no
9023elif test "$shlibpath_overrides_runpath" = yes ||
9024     test "$enable_shared" = no; then
9025  # Fast installation is not necessary
9026  enable_fast_install=needless
9027fi
9028
9029striplib=
9030old_striplib=
9031echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9032echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9033if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9034  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9035  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9036  echo "$as_me:$LINENO: result: yes" >&5
9037echo "${ECHO_T}yes" >&6
9038else
9039# FIXME - insert some real tests, host_os isn't really good enough
9040  case $host_os in
9041   darwin*)
9042       if test -n "$STRIP" ; then
9043         striplib="$STRIP -x"
9044         old_striplib="$STRIP -S"
9045         echo "$as_me:$LINENO: result: yes" >&5
9046echo "${ECHO_T}yes" >&6
9047       else
9048  echo "$as_me:$LINENO: result: no" >&5
9049echo "${ECHO_T}no" >&6
9050fi
9051       ;;
9052   *)
9053  echo "$as_me:$LINENO: result: no" >&5
9054echo "${ECHO_T}no" >&6
9055    ;;
9056  esac
9057fi
9058
9059if test "x$enable_dlopen" != xyes; then
9060  enable_dlopen=unknown
9061  enable_dlopen_self=unknown
9062  enable_dlopen_self_static=unknown
9063else
9064  lt_cv_dlopen=no
9065  lt_cv_dlopen_libs=
9066
9067  case $host_os in
9068  beos*)
9069    lt_cv_dlopen="load_add_on"
9070    lt_cv_dlopen_libs=
9071    lt_cv_dlopen_self=yes
9072    ;;
9073
9074  mingw* | pw32*)
9075    lt_cv_dlopen="LoadLibrary"
9076    lt_cv_dlopen_libs=
9077   ;;
9078
9079  cygwin*)
9080    lt_cv_dlopen="dlopen"
9081    lt_cv_dlopen_libs=
9082   ;;
9083
9084  darwin*)
9085  # if libdl is installed we need to link against it
9086    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9087echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9088if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9089  echo $ECHO_N "(cached) $ECHO_C" >&6
9090else
9091  ac_check_lib_save_LIBS=$LIBS
9092LIBS="-ldl  $LIBS"
9093cat >conftest.$ac_ext <<_ACEOF
9094/* confdefs.h.  */
9095_ACEOF
9096cat confdefs.h >>conftest.$ac_ext
9097cat >>conftest.$ac_ext <<_ACEOF
9098/* end confdefs.h.  */
9099
9100/* Override any gcc2 internal prototype to avoid an error.  */
9101#ifdef __cplusplus
9102extern "C"
9103#endif
9104/* We use char because int might match the return type of a gcc2
9105   builtin and then its argument prototype would still apply.  */
9106char dlopen ();
9107int
9108main ()
9109{
9110dlopen ();
9111  ;
9112  return 0;
9113}
9114_ACEOF
9115rm -f conftest.$ac_objext conftest$ac_exeext
9116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9117  (eval $ac_link) 2>conftest.er1
9118  ac_status=$?
9119  grep -v '^ *+' conftest.er1 >conftest.err
9120  rm -f conftest.er1
9121  cat conftest.err >&5
9122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123  (exit $ac_status); } &&
9124	 { ac_try='test -z "$ac_c_werror_flag"
9125			 || test ! -s conftest.err'
9126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9127  (eval $ac_try) 2>&5
9128  ac_status=$?
9129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130  (exit $ac_status); }; } &&
9131	 { ac_try='test -s conftest$ac_exeext'
9132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133  (eval $ac_try) 2>&5
9134  ac_status=$?
9135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136  (exit $ac_status); }; }; then
9137  ac_cv_lib_dl_dlopen=yes
9138else
9139  echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
9142ac_cv_lib_dl_dlopen=no
9143fi
9144rm -f conftest.err conftest.$ac_objext \
9145      conftest$ac_exeext conftest.$ac_ext
9146LIBS=$ac_check_lib_save_LIBS
9147fi
9148echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9149echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9150if test $ac_cv_lib_dl_dlopen = yes; then
9151  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9152else
9153
9154    lt_cv_dlopen="dyld"
9155    lt_cv_dlopen_libs=
9156    lt_cv_dlopen_self=yes
9157
9158fi
9159
9160   ;;
9161
9162  *)
9163    echo "$as_me:$LINENO: checking for shl_load" >&5
9164echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9165if test "${ac_cv_func_shl_load+set}" = set; then
9166  echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168  cat >conftest.$ac_ext <<_ACEOF
9169/* confdefs.h.  */
9170_ACEOF
9171cat confdefs.h >>conftest.$ac_ext
9172cat >>conftest.$ac_ext <<_ACEOF
9173/* end confdefs.h.  */
9174/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9175   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9176#define shl_load innocuous_shl_load
9177
9178/* System header to define __stub macros and hopefully few prototypes,
9179    which can conflict with char shl_load (); below.
9180    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9181    <limits.h> exists even on freestanding compilers.  */
9182
9183#ifdef __STDC__
9184# include <limits.h>
9185#else
9186# include <assert.h>
9187#endif
9188
9189#undef shl_load
9190
9191/* Override any gcc2 internal prototype to avoid an error.  */
9192#ifdef __cplusplus
9193extern "C"
9194{
9195#endif
9196/* We use char because int might match the return type of a gcc2
9197   builtin and then its argument prototype would still apply.  */
9198char shl_load ();
9199/* The GNU C library defines this for functions which it implements
9200    to always fail with ENOSYS.  Some functions are actually named
9201    something starting with __ and the normal name is an alias.  */
9202#if defined (__stub_shl_load) || defined (__stub___shl_load)
9203choke me
9204#else
9205char (*f) () = shl_load;
9206#endif
9207#ifdef __cplusplus
9208}
9209#endif
9210
9211int
9212main ()
9213{
9214return f != shl_load;
9215  ;
9216  return 0;
9217}
9218_ACEOF
9219rm -f conftest.$ac_objext conftest$ac_exeext
9220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9221  (eval $ac_link) 2>conftest.er1
9222  ac_status=$?
9223  grep -v '^ *+' conftest.er1 >conftest.err
9224  rm -f conftest.er1
9225  cat conftest.err >&5
9226  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227  (exit $ac_status); } &&
9228	 { ac_try='test -z "$ac_c_werror_flag"
9229			 || test ! -s conftest.err'
9230  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9231  (eval $ac_try) 2>&5
9232  ac_status=$?
9233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9234  (exit $ac_status); }; } &&
9235	 { ac_try='test -s conftest$ac_exeext'
9236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9237  (eval $ac_try) 2>&5
9238  ac_status=$?
9239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240  (exit $ac_status); }; }; then
9241  ac_cv_func_shl_load=yes
9242else
9243  echo "$as_me: failed program was:" >&5
9244sed 's/^/| /' conftest.$ac_ext >&5
9245
9246ac_cv_func_shl_load=no
9247fi
9248rm -f conftest.err conftest.$ac_objext \
9249      conftest$ac_exeext conftest.$ac_ext
9250fi
9251echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9252echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9253if test $ac_cv_func_shl_load = yes; then
9254  lt_cv_dlopen="shl_load"
9255else
9256  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9257echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9258if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9259  echo $ECHO_N "(cached) $ECHO_C" >&6
9260else
9261  ac_check_lib_save_LIBS=$LIBS
9262LIBS="-ldld  $LIBS"
9263cat >conftest.$ac_ext <<_ACEOF
9264/* confdefs.h.  */
9265_ACEOF
9266cat confdefs.h >>conftest.$ac_ext
9267cat >>conftest.$ac_ext <<_ACEOF
9268/* end confdefs.h.  */
9269
9270/* Override any gcc2 internal prototype to avoid an error.  */
9271#ifdef __cplusplus
9272extern "C"
9273#endif
9274/* We use char because int might match the return type of a gcc2
9275   builtin and then its argument prototype would still apply.  */
9276char shl_load ();
9277int
9278main ()
9279{
9280shl_load ();
9281  ;
9282  return 0;
9283}
9284_ACEOF
9285rm -f conftest.$ac_objext conftest$ac_exeext
9286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287  (eval $ac_link) 2>conftest.er1
9288  ac_status=$?
9289  grep -v '^ *+' conftest.er1 >conftest.err
9290  rm -f conftest.er1
9291  cat conftest.err >&5
9292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9293  (exit $ac_status); } &&
9294	 { ac_try='test -z "$ac_c_werror_flag"
9295			 || test ! -s conftest.err'
9296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9297  (eval $ac_try) 2>&5
9298  ac_status=$?
9299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300  (exit $ac_status); }; } &&
9301	 { ac_try='test -s conftest$ac_exeext'
9302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9303  (eval $ac_try) 2>&5
9304  ac_status=$?
9305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306  (exit $ac_status); }; }; then
9307  ac_cv_lib_dld_shl_load=yes
9308else
9309  echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312ac_cv_lib_dld_shl_load=no
9313fi
9314rm -f conftest.err conftest.$ac_objext \
9315      conftest$ac_exeext conftest.$ac_ext
9316LIBS=$ac_check_lib_save_LIBS
9317fi
9318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9319echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9320if test $ac_cv_lib_dld_shl_load = yes; then
9321  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9322else
9323  echo "$as_me:$LINENO: checking for dlopen" >&5
9324echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9325if test "${ac_cv_func_dlopen+set}" = set; then
9326  echo $ECHO_N "(cached) $ECHO_C" >&6
9327else
9328  cat >conftest.$ac_ext <<_ACEOF
9329/* confdefs.h.  */
9330_ACEOF
9331cat confdefs.h >>conftest.$ac_ext
9332cat >>conftest.$ac_ext <<_ACEOF
9333/* end confdefs.h.  */
9334/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9335   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9336#define dlopen innocuous_dlopen
9337
9338/* System header to define __stub macros and hopefully few prototypes,
9339    which can conflict with char dlopen (); below.
9340    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9341    <limits.h> exists even on freestanding compilers.  */
9342
9343#ifdef __STDC__
9344# include <limits.h>
9345#else
9346# include <assert.h>
9347#endif
9348
9349#undef dlopen
9350
9351/* Override any gcc2 internal prototype to avoid an error.  */
9352#ifdef __cplusplus
9353extern "C"
9354{
9355#endif
9356/* We use char because int might match the return type of a gcc2
9357   builtin and then its argument prototype would still apply.  */
9358char dlopen ();
9359/* The GNU C library defines this for functions which it implements
9360    to always fail with ENOSYS.  Some functions are actually named
9361    something starting with __ and the normal name is an alias.  */
9362#if defined (__stub_dlopen) || defined (__stub___dlopen)
9363choke me
9364#else
9365char (*f) () = dlopen;
9366#endif
9367#ifdef __cplusplus
9368}
9369#endif
9370
9371int
9372main ()
9373{
9374return f != dlopen;
9375  ;
9376  return 0;
9377}
9378_ACEOF
9379rm -f conftest.$ac_objext conftest$ac_exeext
9380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9381  (eval $ac_link) 2>conftest.er1
9382  ac_status=$?
9383  grep -v '^ *+' conftest.er1 >conftest.err
9384  rm -f conftest.er1
9385  cat conftest.err >&5
9386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387  (exit $ac_status); } &&
9388	 { ac_try='test -z "$ac_c_werror_flag"
9389			 || test ! -s conftest.err'
9390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391  (eval $ac_try) 2>&5
9392  ac_status=$?
9393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394  (exit $ac_status); }; } &&
9395	 { ac_try='test -s conftest$ac_exeext'
9396  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9397  (eval $ac_try) 2>&5
9398  ac_status=$?
9399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400  (exit $ac_status); }; }; then
9401  ac_cv_func_dlopen=yes
9402else
9403  echo "$as_me: failed program was:" >&5
9404sed 's/^/| /' conftest.$ac_ext >&5
9405
9406ac_cv_func_dlopen=no
9407fi
9408rm -f conftest.err conftest.$ac_objext \
9409      conftest$ac_exeext conftest.$ac_ext
9410fi
9411echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9412echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9413if test $ac_cv_func_dlopen = yes; then
9414  lt_cv_dlopen="dlopen"
9415else
9416  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9417echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9418if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9419  echo $ECHO_N "(cached) $ECHO_C" >&6
9420else
9421  ac_check_lib_save_LIBS=$LIBS
9422LIBS="-ldl  $LIBS"
9423cat >conftest.$ac_ext <<_ACEOF
9424/* confdefs.h.  */
9425_ACEOF
9426cat confdefs.h >>conftest.$ac_ext
9427cat >>conftest.$ac_ext <<_ACEOF
9428/* end confdefs.h.  */
9429
9430/* Override any gcc2 internal prototype to avoid an error.  */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434/* We use char because int might match the return type of a gcc2
9435   builtin and then its argument prototype would still apply.  */
9436char dlopen ();
9437int
9438main ()
9439{
9440dlopen ();
9441  ;
9442  return 0;
9443}
9444_ACEOF
9445rm -f conftest.$ac_objext conftest$ac_exeext
9446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9447  (eval $ac_link) 2>conftest.er1
9448  ac_status=$?
9449  grep -v '^ *+' conftest.er1 >conftest.err
9450  rm -f conftest.er1
9451  cat conftest.err >&5
9452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9453  (exit $ac_status); } &&
9454	 { ac_try='test -z "$ac_c_werror_flag"
9455			 || test ! -s conftest.err'
9456  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9457  (eval $ac_try) 2>&5
9458  ac_status=$?
9459  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9460  (exit $ac_status); }; } &&
9461	 { ac_try='test -s conftest$ac_exeext'
9462  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463  (eval $ac_try) 2>&5
9464  ac_status=$?
9465  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466  (exit $ac_status); }; }; then
9467  ac_cv_lib_dl_dlopen=yes
9468else
9469  echo "$as_me: failed program was:" >&5
9470sed 's/^/| /' conftest.$ac_ext >&5
9471
9472ac_cv_lib_dl_dlopen=no
9473fi
9474rm -f conftest.err conftest.$ac_objext \
9475      conftest$ac_exeext conftest.$ac_ext
9476LIBS=$ac_check_lib_save_LIBS
9477fi
9478echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9479echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9480if test $ac_cv_lib_dl_dlopen = yes; then
9481  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9482else
9483  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9484echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9485if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9486  echo $ECHO_N "(cached) $ECHO_C" >&6
9487else
9488  ac_check_lib_save_LIBS=$LIBS
9489LIBS="-lsvld  $LIBS"
9490cat >conftest.$ac_ext <<_ACEOF
9491/* confdefs.h.  */
9492_ACEOF
9493cat confdefs.h >>conftest.$ac_ext
9494cat >>conftest.$ac_ext <<_ACEOF
9495/* end confdefs.h.  */
9496
9497/* Override any gcc2 internal prototype to avoid an error.  */
9498#ifdef __cplusplus
9499extern "C"
9500#endif
9501/* We use char because int might match the return type of a gcc2
9502   builtin and then its argument prototype would still apply.  */
9503char dlopen ();
9504int
9505main ()
9506{
9507dlopen ();
9508  ;
9509  return 0;
9510}
9511_ACEOF
9512rm -f conftest.$ac_objext conftest$ac_exeext
9513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9514  (eval $ac_link) 2>conftest.er1
9515  ac_status=$?
9516  grep -v '^ *+' conftest.er1 >conftest.err
9517  rm -f conftest.er1
9518  cat conftest.err >&5
9519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9520  (exit $ac_status); } &&
9521	 { ac_try='test -z "$ac_c_werror_flag"
9522			 || test ! -s conftest.err'
9523  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9524  (eval $ac_try) 2>&5
9525  ac_status=$?
9526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527  (exit $ac_status); }; } &&
9528	 { ac_try='test -s conftest$ac_exeext'
9529  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9530  (eval $ac_try) 2>&5
9531  ac_status=$?
9532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533  (exit $ac_status); }; }; then
9534  ac_cv_lib_svld_dlopen=yes
9535else
9536  echo "$as_me: failed program was:" >&5
9537sed 's/^/| /' conftest.$ac_ext >&5
9538
9539ac_cv_lib_svld_dlopen=no
9540fi
9541rm -f conftest.err conftest.$ac_objext \
9542      conftest$ac_exeext conftest.$ac_ext
9543LIBS=$ac_check_lib_save_LIBS
9544fi
9545echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9546echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9547if test $ac_cv_lib_svld_dlopen = yes; then
9548  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9549else
9550  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9551echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9552if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9553  echo $ECHO_N "(cached) $ECHO_C" >&6
9554else
9555  ac_check_lib_save_LIBS=$LIBS
9556LIBS="-ldld  $LIBS"
9557cat >conftest.$ac_ext <<_ACEOF
9558/* confdefs.h.  */
9559_ACEOF
9560cat confdefs.h >>conftest.$ac_ext
9561cat >>conftest.$ac_ext <<_ACEOF
9562/* end confdefs.h.  */
9563
9564/* Override any gcc2 internal prototype to avoid an error.  */
9565#ifdef __cplusplus
9566extern "C"
9567#endif
9568/* We use char because int might match the return type of a gcc2
9569   builtin and then its argument prototype would still apply.  */
9570char dld_link ();
9571int
9572main ()
9573{
9574dld_link ();
9575  ;
9576  return 0;
9577}
9578_ACEOF
9579rm -f conftest.$ac_objext conftest$ac_exeext
9580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9581  (eval $ac_link) 2>conftest.er1
9582  ac_status=$?
9583  grep -v '^ *+' conftest.er1 >conftest.err
9584  rm -f conftest.er1
9585  cat conftest.err >&5
9586  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587  (exit $ac_status); } &&
9588	 { ac_try='test -z "$ac_c_werror_flag"
9589			 || test ! -s conftest.err'
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); }; } &&
9595	 { ac_try='test -s conftest$ac_exeext'
9596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9597  (eval $ac_try) 2>&5
9598  ac_status=$?
9599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600  (exit $ac_status); }; }; then
9601  ac_cv_lib_dld_dld_link=yes
9602else
9603  echo "$as_me: failed program was:" >&5
9604sed 's/^/| /' conftest.$ac_ext >&5
9605
9606ac_cv_lib_dld_dld_link=no
9607fi
9608rm -f conftest.err conftest.$ac_objext \
9609      conftest$ac_exeext conftest.$ac_ext
9610LIBS=$ac_check_lib_save_LIBS
9611fi
9612echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9613echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9614if test $ac_cv_lib_dld_dld_link = yes; then
9615  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9616fi
9617
9618
9619fi
9620
9621
9622fi
9623
9624
9625fi
9626
9627
9628fi
9629
9630
9631fi
9632
9633    ;;
9634  esac
9635
9636  if test "x$lt_cv_dlopen" != xno; then
9637    enable_dlopen=yes
9638  else
9639    enable_dlopen=no
9640  fi
9641
9642  case $lt_cv_dlopen in
9643  dlopen)
9644    save_CPPFLAGS="$CPPFLAGS"
9645    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9646
9647    save_LDFLAGS="$LDFLAGS"
9648    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9649
9650    save_LIBS="$LIBS"
9651    LIBS="$lt_cv_dlopen_libs $LIBS"
9652
9653    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9654echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9655if test "${lt_cv_dlopen_self+set}" = set; then
9656  echo $ECHO_N "(cached) $ECHO_C" >&6
9657else
9658  	  if test "$cross_compiling" = yes; then :
9659  lt_cv_dlopen_self=cross
9660else
9661  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9662  lt_status=$lt_dlunknown
9663  cat > conftest.$ac_ext <<EOF
9664#line 9664 "configure"
9665#include "confdefs.h"
9666
9667#if HAVE_DLFCN_H
9668#include <dlfcn.h>
9669#endif
9670
9671#include <stdio.h>
9672
9673#ifdef RTLD_GLOBAL
9674#  define LT_DLGLOBAL		RTLD_GLOBAL
9675#else
9676#  ifdef DL_GLOBAL
9677#    define LT_DLGLOBAL		DL_GLOBAL
9678#  else
9679#    define LT_DLGLOBAL		0
9680#  endif
9681#endif
9682
9683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9684   find out it does not work in some platform. */
9685#ifndef LT_DLLAZY_OR_NOW
9686#  ifdef RTLD_LAZY
9687#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9688#  else
9689#    ifdef DL_LAZY
9690#      define LT_DLLAZY_OR_NOW		DL_LAZY
9691#    else
9692#      ifdef RTLD_NOW
9693#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9694#      else
9695#        ifdef DL_NOW
9696#          define LT_DLLAZY_OR_NOW	DL_NOW
9697#        else
9698#          define LT_DLLAZY_OR_NOW	0
9699#        endif
9700#      endif
9701#    endif
9702#  endif
9703#endif
9704
9705#ifdef __cplusplus
9706extern "C" void exit (int);
9707#endif
9708
9709void fnord() { int i=42;}
9710int main ()
9711{
9712  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9713  int status = $lt_dlunknown;
9714
9715  if (self)
9716    {
9717      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9718      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9719      /* dlclose (self); */
9720    }
9721  else
9722    puts (dlerror ());
9723
9724    exit (status);
9725}
9726EOF
9727  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9728  (eval $ac_link) 2>&5
9729  ac_status=$?
9730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9732    (./conftest; exit; ) >&5 2>/dev/null
9733    lt_status=$?
9734    case x$lt_status in
9735      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9736      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9737      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9738    esac
9739  else :
9740    # compilation failed
9741    lt_cv_dlopen_self=no
9742  fi
9743fi
9744rm -fr conftest*
9745
9746
9747fi
9748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9749echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9750
9751    if test "x$lt_cv_dlopen_self" = xyes; then
9752      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9753      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9754echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9755if test "${lt_cv_dlopen_self_static+set}" = set; then
9756  echo $ECHO_N "(cached) $ECHO_C" >&6
9757else
9758  	  if test "$cross_compiling" = yes; then :
9759  lt_cv_dlopen_self_static=cross
9760else
9761  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9762  lt_status=$lt_dlunknown
9763  cat > conftest.$ac_ext <<EOF
9764#line 9764 "configure"
9765#include "confdefs.h"
9766
9767#if HAVE_DLFCN_H
9768#include <dlfcn.h>
9769#endif
9770
9771#include <stdio.h>
9772
9773#ifdef RTLD_GLOBAL
9774#  define LT_DLGLOBAL		RTLD_GLOBAL
9775#else
9776#  ifdef DL_GLOBAL
9777#    define LT_DLGLOBAL		DL_GLOBAL
9778#  else
9779#    define LT_DLGLOBAL		0
9780#  endif
9781#endif
9782
9783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9784   find out it does not work in some platform. */
9785#ifndef LT_DLLAZY_OR_NOW
9786#  ifdef RTLD_LAZY
9787#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
9788#  else
9789#    ifdef DL_LAZY
9790#      define LT_DLLAZY_OR_NOW		DL_LAZY
9791#    else
9792#      ifdef RTLD_NOW
9793#        define LT_DLLAZY_OR_NOW	RTLD_NOW
9794#      else
9795#        ifdef DL_NOW
9796#          define LT_DLLAZY_OR_NOW	DL_NOW
9797#        else
9798#          define LT_DLLAZY_OR_NOW	0
9799#        endif
9800#      endif
9801#    endif
9802#  endif
9803#endif
9804
9805#ifdef __cplusplus
9806extern "C" void exit (int);
9807#endif
9808
9809void fnord() { int i=42;}
9810int main ()
9811{
9812  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9813  int status = $lt_dlunknown;
9814
9815  if (self)
9816    {
9817      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9818      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9819      /* dlclose (self); */
9820    }
9821  else
9822    puts (dlerror ());
9823
9824    exit (status);
9825}
9826EOF
9827  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9828  (eval $ac_link) 2>&5
9829  ac_status=$?
9830  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9832    (./conftest; exit; ) >&5 2>/dev/null
9833    lt_status=$?
9834    case x$lt_status in
9835      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9836      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9837      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9838    esac
9839  else :
9840    # compilation failed
9841    lt_cv_dlopen_self_static=no
9842  fi
9843fi
9844rm -fr conftest*
9845
9846
9847fi
9848echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9849echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9850    fi
9851
9852    CPPFLAGS="$save_CPPFLAGS"
9853    LDFLAGS="$save_LDFLAGS"
9854    LIBS="$save_LIBS"
9855    ;;
9856  esac
9857
9858  case $lt_cv_dlopen_self in
9859  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9860  *) enable_dlopen_self=unknown ;;
9861  esac
9862
9863  case $lt_cv_dlopen_self_static in
9864  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9865  *) enable_dlopen_self_static=unknown ;;
9866  esac
9867fi
9868
9869
9870# Report which library types will actually be built
9871echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9872echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9873echo "$as_me:$LINENO: result: $can_build_shared" >&5
9874echo "${ECHO_T}$can_build_shared" >&6
9875
9876echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9877echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9878test "$can_build_shared" = "no" && enable_shared=no
9879
9880# On AIX, shared libraries and static libraries use the same namespace, and
9881# are all built from PIC.
9882case $host_os in
9883aix3*)
9884  test "$enable_shared" = yes && enable_static=no
9885  if test -n "$RANLIB"; then
9886    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9887    postinstall_cmds='$RANLIB $lib'
9888  fi
9889  ;;
9890
9891aix[4-9]*)
9892  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9893    test "$enable_shared" = yes && enable_static=no
9894  fi
9895    ;;
9896esac
9897echo "$as_me:$LINENO: result: $enable_shared" >&5
9898echo "${ECHO_T}$enable_shared" >&6
9899
9900echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9901echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9902# Make sure either enable_shared or enable_static is yes.
9903test "$enable_shared" = yes || enable_static=yes
9904echo "$as_me:$LINENO: result: $enable_static" >&5
9905echo "${ECHO_T}$enable_static" >&6
9906
9907# The else clause should only fire when bootstrapping the
9908# libtool distribution, otherwise you forgot to ship ltmain.sh
9909# with your package, and you will get complaints that there are
9910# no rules to generate ltmain.sh.
9911if test -f "$ltmain"; then
9912  # See if we are running on zsh, and set the options which allow our commands through
9913  # without removal of \ escapes.
9914  if test -n "${ZSH_VERSION+set}" ; then
9915    setopt NO_GLOB_SUBST
9916  fi
9917  # Now quote all the things that may contain metacharacters while being
9918  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9919  # variables and quote the copies for generation of the libtool script.
9920  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9921    SED SHELL STRIP \
9922    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9923    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9924    deplibs_check_method reload_flag reload_cmds need_locks \
9925    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9926    lt_cv_sys_global_symbol_to_c_name_address \
9927    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9928    old_postinstall_cmds old_postuninstall_cmds \
9929    compiler \
9930    CC \
9931    LD \
9932    lt_prog_compiler_wl \
9933    lt_prog_compiler_pic \
9934    lt_prog_compiler_static \
9935    lt_prog_compiler_no_builtin_flag \
9936    export_dynamic_flag_spec \
9937    thread_safe_flag_spec \
9938    whole_archive_flag_spec \
9939    enable_shared_with_static_runtimes \
9940    old_archive_cmds \
9941    old_archive_from_new_cmds \
9942    predep_objects \
9943    postdep_objects \
9944    predeps \
9945    postdeps \
9946    compiler_lib_search_path \
9947    compiler_lib_search_dirs \
9948    archive_cmds \
9949    archive_expsym_cmds \
9950    postinstall_cmds \
9951    postuninstall_cmds \
9952    old_archive_from_expsyms_cmds \
9953    allow_undefined_flag \
9954    no_undefined_flag \
9955    export_symbols_cmds \
9956    hardcode_libdir_flag_spec \
9957    hardcode_libdir_flag_spec_ld \
9958    hardcode_libdir_separator \
9959    hardcode_automatic \
9960    module_cmds \
9961    module_expsym_cmds \
9962    lt_cv_prog_compiler_c_o \
9963    fix_srcfile_path \
9964    exclude_expsyms \
9965    include_expsyms; do
9966
9967    case $var in
9968    old_archive_cmds | \
9969    old_archive_from_new_cmds | \
9970    archive_cmds | \
9971    archive_expsym_cmds | \
9972    module_cmds | \
9973    module_expsym_cmds | \
9974    old_archive_from_expsyms_cmds | \
9975    export_symbols_cmds | \
9976    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9977    postinstall_cmds | postuninstall_cmds | \
9978    old_postinstall_cmds | old_postuninstall_cmds | \
9979    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9980      # Double-quote double-evaled strings.
9981      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9982      ;;
9983    *)
9984      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9985      ;;
9986    esac
9987  done
9988
9989  case $lt_echo in
9990  *'\$0 --fallback-echo"')
9991    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9992    ;;
9993  esac
9994
9995cfgfile="${ofile}T"
9996  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9997  $rm -f "$cfgfile"
9998  { echo "$as_me:$LINENO: creating $ofile" >&5
9999echo "$as_me: creating $ofile" >&6;}
10000
10001  cat <<__EOF__ >> "$cfgfile"
10002#! $SHELL
10003
10004# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10005# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10006# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10007#
10008# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10009# Free Software Foundation, Inc.
10010#
10011# This file is part of GNU Libtool:
10012# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10013#
10014# This program is free software; you can redistribute it and/or modify
10015# it under the terms of the GNU General Public License as published by
10016# the Free Software Foundation; either version 2 of the License, or
10017# (at your option) any later version.
10018#
10019# This program is distributed in the hope that it will be useful, but
10020# WITHOUT ANY WARRANTY; without even the implied warranty of
10021# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10022# General Public License for more details.
10023#
10024# You should have received a copy of the GNU General Public License
10025# along with this program; if not, write to the Free Software
10026# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10027#
10028# As a special exception to the GNU General Public License, if you
10029# distribute this file as part of a program that contains a
10030# configuration script generated by Autoconf, you may include it under
10031# the same distribution terms that you use for the rest of that program.
10032
10033# A sed program that does not truncate output.
10034SED=$lt_SED
10035
10036# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10037Xsed="$SED -e 1s/^X//"
10038
10039# The HP-UX ksh and POSIX shell print the target directory to stdout
10040# if CDPATH is set.
10041(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10042
10043# The names of the tagged configurations supported by this script.
10044available_tags=
10045
10046# ### BEGIN LIBTOOL CONFIG
10047
10048# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10049
10050# Shell to use when invoking shell scripts.
10051SHELL=$lt_SHELL
10052
10053# Whether or not to build shared libraries.
10054build_libtool_libs=$enable_shared
10055
10056# Whether or not to build static libraries.
10057build_old_libs=$enable_static
10058
10059# Whether or not to add -lc for building shared libraries.
10060build_libtool_need_lc=$archive_cmds_need_lc
10061
10062# Whether or not to disallow shared libs when runtime libs are static
10063allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10064
10065# Whether or not to optimize for fast installation.
10066fast_install=$enable_fast_install
10067
10068# The host system.
10069host_alias=$host_alias
10070host=$host
10071host_os=$host_os
10072
10073# The build system.
10074build_alias=$build_alias
10075build=$build
10076build_os=$build_os
10077
10078# An echo program that does not interpret backslashes.
10079echo=$lt_echo
10080
10081# The archiver.
10082AR=$lt_AR
10083AR_FLAGS=$lt_AR_FLAGS
10084
10085# A C compiler.
10086LTCC=$lt_LTCC
10087
10088# LTCC compiler flags.
10089LTCFLAGS=$lt_LTCFLAGS
10090
10091# A language-specific compiler.
10092CC=$lt_compiler
10093
10094# Is the compiler the GNU C compiler?
10095with_gcc=$GCC
10096
10097# An ERE matcher.
10098EGREP=$lt_EGREP
10099
10100# The linker used to build libraries.
10101LD=$lt_LD
10102
10103# Whether we need hard or soft links.
10104LN_S=$lt_LN_S
10105
10106# A BSD-compatible nm program.
10107NM=$lt_NM
10108
10109# A symbol stripping program
10110STRIP=$lt_STRIP
10111
10112# Used to examine libraries when file_magic_cmd begins "file"
10113MAGIC_CMD=$MAGIC_CMD
10114
10115# Used on cygwin: DLL creation program.
10116DLLTOOL="$DLLTOOL"
10117
10118# Used on cygwin: object dumper.
10119OBJDUMP="$OBJDUMP"
10120
10121# Used on cygwin: assembler.
10122AS="$AS"
10123
10124# The name of the directory that contains temporary libtool files.
10125objdir=$objdir
10126
10127# How to create reloadable object files.
10128reload_flag=$lt_reload_flag
10129reload_cmds=$lt_reload_cmds
10130
10131# How to pass a linker flag through the compiler.
10132wl=$lt_lt_prog_compiler_wl
10133
10134# Object file suffix (normally "o").
10135objext="$ac_objext"
10136
10137# Old archive suffix (normally "a").
10138libext="$libext"
10139
10140# Shared library suffix (normally ".so").
10141shrext_cmds='$shrext_cmds'
10142
10143# Executable file suffix (normally "").
10144exeext="$exeext"
10145
10146# Additional compiler flags for building library objects.
10147pic_flag=$lt_lt_prog_compiler_pic
10148pic_mode=$pic_mode
10149
10150# What is the maximum length of a command?
10151max_cmd_len=$lt_cv_sys_max_cmd_len
10152
10153# Does compiler simultaneously support -c and -o options?
10154compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10155
10156# Must we lock files when doing compilation?
10157need_locks=$lt_need_locks
10158
10159# Do we need the lib prefix for modules?
10160need_lib_prefix=$need_lib_prefix
10161
10162# Do we need a version for libraries?
10163need_version=$need_version
10164
10165# Whether dlopen is supported.
10166dlopen_support=$enable_dlopen
10167
10168# Whether dlopen of programs is supported.
10169dlopen_self=$enable_dlopen_self
10170
10171# Whether dlopen of statically linked programs is supported.
10172dlopen_self_static=$enable_dlopen_self_static
10173
10174# Compiler flag to prevent dynamic linking.
10175link_static_flag=$lt_lt_prog_compiler_static
10176
10177# Compiler flag to turn off builtin functions.
10178no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10179
10180# Compiler flag to allow reflexive dlopens.
10181export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10182
10183# Compiler flag to generate shared objects directly from archives.
10184whole_archive_flag_spec=$lt_whole_archive_flag_spec
10185
10186# Compiler flag to generate thread-safe objects.
10187thread_safe_flag_spec=$lt_thread_safe_flag_spec
10188
10189# Library versioning type.
10190version_type=$version_type
10191
10192# Format of library name prefix.
10193libname_spec=$lt_libname_spec
10194
10195# List of archive names.  First name is the real one, the rest are links.
10196# The last name is the one that the linker finds with -lNAME.
10197library_names_spec=$lt_library_names_spec
10198
10199# The coded name of the library, if different from the real name.
10200soname_spec=$lt_soname_spec
10201
10202# Commands used to build and install an old-style archive.
10203RANLIB=$lt_RANLIB
10204old_archive_cmds=$lt_old_archive_cmds
10205old_postinstall_cmds=$lt_old_postinstall_cmds
10206old_postuninstall_cmds=$lt_old_postuninstall_cmds
10207
10208# Create an old-style archive from a shared archive.
10209old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10210
10211# Create a temporary old-style archive to link instead of a shared archive.
10212old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10213
10214# Commands used to build and install a shared archive.
10215archive_cmds=$lt_archive_cmds
10216archive_expsym_cmds=$lt_archive_expsym_cmds
10217postinstall_cmds=$lt_postinstall_cmds
10218postuninstall_cmds=$lt_postuninstall_cmds
10219
10220# Commands used to build a loadable module (assumed same as above if empty)
10221module_cmds=$lt_module_cmds
10222module_expsym_cmds=$lt_module_expsym_cmds
10223
10224# Commands to strip libraries.
10225old_striplib=$lt_old_striplib
10226striplib=$lt_striplib
10227
10228# Dependencies to place before the objects being linked to create a
10229# shared library.
10230predep_objects=$lt_predep_objects
10231
10232# Dependencies to place after the objects being linked to create a
10233# shared library.
10234postdep_objects=$lt_postdep_objects
10235
10236# Dependencies to place before the objects being linked to create a
10237# shared library.
10238predeps=$lt_predeps
10239
10240# Dependencies to place after the objects being linked to create a
10241# shared library.
10242postdeps=$lt_postdeps
10243
10244# The directories searched by this compiler when creating a shared
10245# library
10246compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10247
10248# The library search path used internally by the compiler when linking
10249# a shared library.
10250compiler_lib_search_path=$lt_compiler_lib_search_path
10251
10252# Method to check whether dependent libraries are shared objects.
10253deplibs_check_method=$lt_deplibs_check_method
10254
10255# Command to use when deplibs_check_method == file_magic.
10256file_magic_cmd=$lt_file_magic_cmd
10257
10258# Flag that allows shared libraries with undefined symbols to be built.
10259allow_undefined_flag=$lt_allow_undefined_flag
10260
10261# Flag that forces no undefined symbols.
10262no_undefined_flag=$lt_no_undefined_flag
10263
10264# Commands used to finish a libtool library installation in a directory.
10265finish_cmds=$lt_finish_cmds
10266
10267# Same as above, but a single script fragment to be evaled but not shown.
10268finish_eval=$lt_finish_eval
10269
10270# Take the output of nm and produce a listing of raw symbols and C names.
10271global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10272
10273# Transform the output of nm in a proper C declaration
10274global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10275
10276# Transform the output of nm in a C name address pair
10277global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10278
10279# This is the shared library runtime path variable.
10280runpath_var=$runpath_var
10281
10282# This is the shared library path variable.
10283shlibpath_var=$shlibpath_var
10284
10285# Is shlibpath searched before the hard-coded library search path?
10286shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10287
10288# How to hardcode a shared library path into an executable.
10289hardcode_action=$hardcode_action
10290
10291# Whether we should hardcode library paths into libraries.
10292hardcode_into_libs=$hardcode_into_libs
10293
10294# Flag to hardcode \$libdir into a binary during linking.
10295# This must work even if \$libdir does not exist.
10296hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10297
10298# If ld is used when linking, flag to hardcode \$libdir into
10299# a binary during linking. This must work even if \$libdir does
10300# not exist.
10301hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10302
10303# Whether we need a single -rpath flag with a separated argument.
10304hardcode_libdir_separator=$lt_hardcode_libdir_separator
10305
10306# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10307# resulting binary.
10308hardcode_direct=$hardcode_direct
10309
10310# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10311# resulting binary.
10312hardcode_minus_L=$hardcode_minus_L
10313
10314# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10315# the resulting binary.
10316hardcode_shlibpath_var=$hardcode_shlibpath_var
10317
10318# Set to yes if building a shared library automatically hardcodes DIR into the library
10319# and all subsequent libraries and executables linked against it.
10320hardcode_automatic=$hardcode_automatic
10321
10322# Variables whose values should be saved in libtool wrapper scripts and
10323# restored at relink time.
10324variables_saved_for_relink="$variables_saved_for_relink"
10325
10326# Whether libtool must link a program against all its dependency libraries.
10327link_all_deplibs=$link_all_deplibs
10328
10329# Compile-time system search path for libraries
10330sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10331
10332# Run-time system search path for libraries
10333sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10334
10335# Fix the shell variable \$srcfile for the compiler.
10336fix_srcfile_path=$lt_fix_srcfile_path
10337
10338# Set to yes if exported symbols are required.
10339always_export_symbols=$always_export_symbols
10340
10341# The commands to list exported symbols.
10342export_symbols_cmds=$lt_export_symbols_cmds
10343
10344# The commands to extract the exported symbol list from a shared archive.
10345extract_expsyms_cmds=$lt_extract_expsyms_cmds
10346
10347# Symbols that should not be listed in the preloaded symbols.
10348exclude_expsyms=$lt_exclude_expsyms
10349
10350# Symbols that must always be exported.
10351include_expsyms=$lt_include_expsyms
10352
10353# ### END LIBTOOL CONFIG
10354
10355__EOF__
10356
10357
10358  case $host_os in
10359  aix3*)
10360    cat <<\EOF >> "$cfgfile"
10361
10362# AIX sometimes has problems with the GCC collect2 program.  For some
10363# reason, if we set the COLLECT_NAMES environment variable, the problems
10364# vanish in a puff of smoke.
10365if test "X${COLLECT_NAMES+set}" != Xset; then
10366  COLLECT_NAMES=
10367  export COLLECT_NAMES
10368fi
10369EOF
10370    ;;
10371  esac
10372
10373  # We use sed instead of cat because bash on DJGPP gets confused if
10374  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10375  # text mode, it properly converts lines to CR/LF.  This bash problem
10376  # is reportedly fixed, but why not run on old versions too?
10377  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10378
10379  mv -f "$cfgfile" "$ofile" || \
10380    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10381  chmod +x "$ofile"
10382
10383else
10384  # If there is no Makefile yet, we rely on a make rule to execute
10385  # `config.status --recheck' to rerun these tests and create the
10386  # libtool script then.
10387  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10388  if test -f "$ltmain_in"; then
10389    test -f Makefile && make "$ltmain"
10390  fi
10391fi
10392
10393
10394ac_ext=c
10395ac_cpp='$CPP $CPPFLAGS'
10396ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10397ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10398ac_compiler_gnu=$ac_cv_c_compiler_gnu
10399
10400CC="$lt_save_CC"
10401
10402
10403# Check whether --with-tags or --without-tags was given.
10404if test "${with_tags+set}" = set; then
10405  withval="$with_tags"
10406  tagnames="$withval"
10407fi;
10408
10409if test -f "$ltmain" && test -n "$tagnames"; then
10410  if test ! -f "${ofile}"; then
10411    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10412echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10413  fi
10414
10415  if test -z "$LTCC"; then
10416    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10417    if test -z "$LTCC"; then
10418      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10419echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10420    else
10421      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10422echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10423    fi
10424  fi
10425  if test -z "$LTCFLAGS"; then
10426    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10427  fi
10428
10429  # Extract list of available tagged configurations in $ofile.
10430  # Note that this assumes the entire list is on one line.
10431  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10432
10433  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10434  for tagname in $tagnames; do
10435    IFS="$lt_save_ifs"
10436    # Check whether tagname contains only valid characters
10437    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10438    "") ;;
10439    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10440echo "$as_me: error: invalid tag name: $tagname" >&2;}
10441   { (exit 1); exit 1; }; }
10442	;;
10443    esac
10444
10445    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10446    then
10447      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10448echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10449   { (exit 1); exit 1; }; }
10450    fi
10451
10452    # Update the list of available tags.
10453    if test -n "$tagname"; then
10454      echo appending configuration tag \"$tagname\" to $ofile
10455
10456      case $tagname in
10457      CXX)
10458	if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10459	    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10460	    (test "X$CXX" != "Xg++"))) ; then
10461	  ac_ext=cc
10462ac_cpp='$CXXCPP $CPPFLAGS'
10463ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10464ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10465ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10466
10467
10468
10469
10470archive_cmds_need_lc_CXX=no
10471allow_undefined_flag_CXX=
10472always_export_symbols_CXX=no
10473archive_expsym_cmds_CXX=
10474export_dynamic_flag_spec_CXX=
10475hardcode_direct_CXX=no
10476hardcode_libdir_flag_spec_CXX=
10477hardcode_libdir_flag_spec_ld_CXX=
10478hardcode_libdir_separator_CXX=
10479hardcode_minus_L_CXX=no
10480hardcode_shlibpath_var_CXX=unsupported
10481hardcode_automatic_CXX=no
10482module_cmds_CXX=
10483module_expsym_cmds_CXX=
10484link_all_deplibs_CXX=unknown
10485old_archive_cmds_CXX=$old_archive_cmds
10486no_undefined_flag_CXX=
10487whole_archive_flag_spec_CXX=
10488enable_shared_with_static_runtimes_CXX=no
10489
10490# Dependencies to place before and after the object being linked:
10491predep_objects_CXX=
10492postdep_objects_CXX=
10493predeps_CXX=
10494postdeps_CXX=
10495compiler_lib_search_path_CXX=
10496compiler_lib_search_dirs_CXX=
10497
10498# Source file extension for C++ test sources.
10499ac_ext=cpp
10500
10501# Object file extension for compiled C++ test sources.
10502objext=o
10503objext_CXX=$objext
10504
10505# Code to be used in simple compile tests
10506lt_simple_compile_test_code="int some_variable = 0;"
10507
10508# Code to be used in simple link tests
10509lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10510
10511# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10512
10513# If no C compiler was specified, use CC.
10514LTCC=${LTCC-"$CC"}
10515
10516# If no C compiler flags were specified, use CFLAGS.
10517LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10518
10519# Allow CC to be a program name with arguments.
10520compiler=$CC
10521
10522
10523# save warnings/boilerplate of simple test code
10524ac_outfile=conftest.$ac_objext
10525echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10526eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10527_lt_compiler_boilerplate=`cat conftest.err`
10528$rm conftest*
10529
10530ac_outfile=conftest.$ac_objext
10531echo "$lt_simple_link_test_code" >conftest.$ac_ext
10532eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10533_lt_linker_boilerplate=`cat conftest.err`
10534$rm -r conftest*
10535
10536
10537# Allow CC to be a program name with arguments.
10538lt_save_CC=$CC
10539lt_save_LD=$LD
10540lt_save_GCC=$GCC
10541GCC=$GXX
10542lt_save_with_gnu_ld=$with_gnu_ld
10543lt_save_path_LD=$lt_cv_path_LD
10544if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10545  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10546else
10547  $as_unset lt_cv_prog_gnu_ld
10548fi
10549if test -n "${lt_cv_path_LDCXX+set}"; then
10550  lt_cv_path_LD=$lt_cv_path_LDCXX
10551else
10552  $as_unset lt_cv_path_LD
10553fi
10554test -z "${LDCXX+set}" || LD=$LDCXX
10555CC=${CXX-"c++"}
10556compiler=$CC
10557compiler_CXX=$CC
10558for cc_temp in $compiler""; do
10559  case $cc_temp in
10560    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10561    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10562    \-*) ;;
10563    *) break;;
10564  esac
10565done
10566cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10567
10568
10569# We don't want -fno-exception wen compiling C++ code, so set the
10570# no_builtin_flag separately
10571if test "$GXX" = yes; then
10572  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10573else
10574  lt_prog_compiler_no_builtin_flag_CXX=
10575fi
10576
10577if test "$GXX" = yes; then
10578  # Set up default GNU C++ configuration
10579
10580
10581# Check whether --with-gnu-ld or --without-gnu-ld was given.
10582if test "${with_gnu_ld+set}" = set; then
10583  withval="$with_gnu_ld"
10584  test "$withval" = no || with_gnu_ld=yes
10585else
10586  with_gnu_ld=no
10587fi;
10588ac_prog=ld
10589if test "$GCC" = yes; then
10590  # Check if gcc -print-prog-name=ld gives a path.
10591  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10592echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10593  case $host in
10594  *-*-mingw*)
10595    # gcc leaves a trailing carriage return which upsets mingw
10596    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10597  *)
10598    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10599  esac
10600  case $ac_prog in
10601    # Accept absolute paths.
10602    [\\/]* | ?:[\\/]*)
10603      re_direlt='/[^/][^/]*/\.\./'
10604      # Canonicalize the pathname of ld
10605      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10606      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10607	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10608      done
10609      test -z "$LD" && LD="$ac_prog"
10610      ;;
10611  "")
10612    # If it fails, then pretend we aren't using GCC.
10613    ac_prog=ld
10614    ;;
10615  *)
10616    # If it is relative, then search for the first ld in PATH.
10617    with_gnu_ld=unknown
10618    ;;
10619  esac
10620elif test "$with_gnu_ld" = yes; then
10621  echo "$as_me:$LINENO: checking for GNU ld" >&5
10622echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10623else
10624  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10625echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10626fi
10627if test "${lt_cv_path_LD+set}" = set; then
10628  echo $ECHO_N "(cached) $ECHO_C" >&6
10629else
10630  if test -z "$LD"; then
10631  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10632  for ac_dir in $PATH; do
10633    IFS="$lt_save_ifs"
10634    test -z "$ac_dir" && ac_dir=.
10635    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10636      lt_cv_path_LD="$ac_dir/$ac_prog"
10637      # Check to see if the program is GNU ld.  I'd rather use --version,
10638      # but apparently some variants of GNU ld only accept -v.
10639      # Break only if it was the GNU/non-GNU ld that we prefer.
10640      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10641      *GNU* | *'with BFD'*)
10642	test "$with_gnu_ld" != no && break
10643	;;
10644      *)
10645	test "$with_gnu_ld" != yes && break
10646	;;
10647      esac
10648    fi
10649  done
10650  IFS="$lt_save_ifs"
10651else
10652  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10653fi
10654fi
10655
10656LD="$lt_cv_path_LD"
10657if test -n "$LD"; then
10658  echo "$as_me:$LINENO: result: $LD" >&5
10659echo "${ECHO_T}$LD" >&6
10660else
10661  echo "$as_me:$LINENO: result: no" >&5
10662echo "${ECHO_T}no" >&6
10663fi
10664test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10665echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10666   { (exit 1); exit 1; }; }
10667echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10668echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10669if test "${lt_cv_prog_gnu_ld+set}" = set; then
10670  echo $ECHO_N "(cached) $ECHO_C" >&6
10671else
10672  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10673case `$LD -v 2>&1 </dev/null` in
10674*GNU* | *'with BFD'*)
10675  lt_cv_prog_gnu_ld=yes
10676  ;;
10677*)
10678  lt_cv_prog_gnu_ld=no
10679  ;;
10680esac
10681fi
10682echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10683echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10684with_gnu_ld=$lt_cv_prog_gnu_ld
10685
10686
10687
10688  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10689  # archiving commands below assume that GNU ld is being used.
10690  if test "$with_gnu_ld" = yes; then
10691    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10692    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10693
10694    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10695    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10696
10697    # If archive_cmds runs LD, not CC, wlarc should be empty
10698    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10699    #     investigate it a little bit more. (MM)
10700    wlarc='${wl}'
10701
10702    # ancient GNU ld didn't support --whole-archive et. al.
10703    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10704	grep 'no-whole-archive' > /dev/null; then
10705      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10706    else
10707      whole_archive_flag_spec_CXX=
10708    fi
10709  else
10710    with_gnu_ld=no
10711    wlarc=
10712
10713    # A generic and very simple default shared library creation
10714    # command for GNU C++ for the case where it uses the native
10715    # linker, instead of GNU ld.  If possible, this setting should
10716    # overridden to take advantage of the native linker features on
10717    # the platform it is being used on.
10718    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10719  fi
10720
10721  # Commands to make compiler produce verbose output that lists
10722  # what "hidden" libraries, object files and flags are used when
10723  # linking a shared library.
10724  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10725
10726else
10727  GXX=no
10728  with_gnu_ld=no
10729  wlarc=
10730fi
10731
10732# PORTME: fill in a description of your system's C++ link characteristics
10733echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10734echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10735ld_shlibs_CXX=yes
10736case $host_os in
10737  aix3*)
10738    # FIXME: insert proper C++ library support
10739    ld_shlibs_CXX=no
10740    ;;
10741  aix[4-9]*)
10742    if test "$host_cpu" = ia64; then
10743      # On IA64, the linker does run time linking by default, so we don't
10744      # have to do anything special.
10745      aix_use_runtimelinking=no
10746      exp_sym_flag='-Bexport'
10747      no_entry_flag=""
10748    else
10749      aix_use_runtimelinking=no
10750
10751      # Test if we are trying to use run time linking or normal
10752      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10753      # need to do runtime linking.
10754      case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10755	for ld_flag in $LDFLAGS; do
10756	  case $ld_flag in
10757	  *-brtl*)
10758	    aix_use_runtimelinking=yes
10759	    break
10760	    ;;
10761	  esac
10762	done
10763	;;
10764      esac
10765
10766      exp_sym_flag='-bexport'
10767      no_entry_flag='-bnoentry'
10768    fi
10769
10770    # When large executables or shared objects are built, AIX ld can
10771    # have problems creating the table of contents.  If linking a library
10772    # or program results in "error TOC overflow" add -mminimal-toc to
10773    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10774    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10775
10776    archive_cmds_CXX=''
10777    hardcode_direct_CXX=yes
10778    hardcode_libdir_separator_CXX=':'
10779    link_all_deplibs_CXX=yes
10780
10781    if test "$GXX" = yes; then
10782      case $host_os in aix4.[012]|aix4.[012].*)
10783      # We only want to do this on AIX 4.2 and lower, the check
10784      # below for broken collect2 doesn't work under 4.3+
10785	collect2name=`${CC} -print-prog-name=collect2`
10786	if test -f "$collect2name" && \
10787	   strings "$collect2name" | grep resolve_lib_name >/dev/null
10788	then
10789	  # We have reworked collect2
10790	  :
10791	else
10792	  # We have old collect2
10793	  hardcode_direct_CXX=unsupported
10794	  # It fails to find uninstalled libraries when the uninstalled
10795	  # path is not listed in the libpath.  Setting hardcode_minus_L
10796	  # to unsupported forces relinking
10797	  hardcode_minus_L_CXX=yes
10798	  hardcode_libdir_flag_spec_CXX='-L$libdir'
10799	  hardcode_libdir_separator_CXX=
10800	fi
10801	;;
10802      esac
10803      shared_flag='-shared'
10804      if test "$aix_use_runtimelinking" = yes; then
10805	shared_flag="$shared_flag "'${wl}-G'
10806      fi
10807    else
10808      # not using gcc
10809      if test "$host_cpu" = ia64; then
10810	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10811	# chokes on -Wl,-G. The following line is correct:
10812	shared_flag='-G'
10813      else
10814	if test "$aix_use_runtimelinking" = yes; then
10815	  shared_flag='${wl}-G'
10816	else
10817	  shared_flag='${wl}-bM:SRE'
10818	fi
10819      fi
10820    fi
10821
10822    # It seems that -bexpall does not export symbols beginning with
10823    # underscore (_), so it is better to generate a list of symbols to export.
10824    always_export_symbols_CXX=yes
10825    if test "$aix_use_runtimelinking" = yes; then
10826      # Warning - without using the other runtime loading flags (-brtl),
10827      # -berok will link without error, but may produce a broken library.
10828      allow_undefined_flag_CXX='-berok'
10829      # Determine the default libpath from the value encoded in an empty executable.
10830      cat >conftest.$ac_ext <<_ACEOF
10831/* confdefs.h.  */
10832_ACEOF
10833cat confdefs.h >>conftest.$ac_ext
10834cat >>conftest.$ac_ext <<_ACEOF
10835/* end confdefs.h.  */
10836
10837int
10838main ()
10839{
10840
10841  ;
10842  return 0;
10843}
10844_ACEOF
10845rm -f conftest.$ac_objext conftest$ac_exeext
10846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10847  (eval $ac_link) 2>conftest.er1
10848  ac_status=$?
10849  grep -v '^ *+' conftest.er1 >conftest.err
10850  rm -f conftest.er1
10851  cat conftest.err >&5
10852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10853  (exit $ac_status); } &&
10854	 { ac_try='test -z "$ac_cxx_werror_flag"
10855			 || test ! -s conftest.err'
10856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10857  (eval $ac_try) 2>&5
10858  ac_status=$?
10859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860  (exit $ac_status); }; } &&
10861	 { ac_try='test -s conftest$ac_exeext'
10862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863  (eval $ac_try) 2>&5
10864  ac_status=$?
10865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866  (exit $ac_status); }; }; then
10867
10868lt_aix_libpath_sed='
10869    /Import File Strings/,/^$/ {
10870	/^0/ {
10871	    s/^0  *\(.*\)$/\1/
10872	    p
10873	}
10874    }'
10875aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10876# Check for a 64-bit object if we didn't find anything.
10877if test -z "$aix_libpath"; then
10878  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10879fi
10880else
10881  echo "$as_me: failed program was:" >&5
10882sed 's/^/| /' conftest.$ac_ext >&5
10883
10884fi
10885rm -f conftest.err conftest.$ac_objext \
10886      conftest$ac_exeext conftest.$ac_ext
10887if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10888
10889      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10890
10891      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10892     else
10893      if test "$host_cpu" = ia64; then
10894	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10895	allow_undefined_flag_CXX="-z nodefs"
10896	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10897      else
10898	# Determine the default libpath from the value encoded in an empty executable.
10899	cat >conftest.$ac_ext <<_ACEOF
10900/* confdefs.h.  */
10901_ACEOF
10902cat confdefs.h >>conftest.$ac_ext
10903cat >>conftest.$ac_ext <<_ACEOF
10904/* end confdefs.h.  */
10905
10906int
10907main ()
10908{
10909
10910  ;
10911  return 0;
10912}
10913_ACEOF
10914rm -f conftest.$ac_objext conftest$ac_exeext
10915if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10916  (eval $ac_link) 2>conftest.er1
10917  ac_status=$?
10918  grep -v '^ *+' conftest.er1 >conftest.err
10919  rm -f conftest.er1
10920  cat conftest.err >&5
10921  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922  (exit $ac_status); } &&
10923	 { ac_try='test -z "$ac_cxx_werror_flag"
10924			 || test ! -s conftest.err'
10925  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10926  (eval $ac_try) 2>&5
10927  ac_status=$?
10928  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10929  (exit $ac_status); }; } &&
10930	 { ac_try='test -s conftest$ac_exeext'
10931  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10932  (eval $ac_try) 2>&5
10933  ac_status=$?
10934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935  (exit $ac_status); }; }; then
10936
10937lt_aix_libpath_sed='
10938    /Import File Strings/,/^$/ {
10939	/^0/ {
10940	    s/^0  *\(.*\)$/\1/
10941	    p
10942	}
10943    }'
10944aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10945# Check for a 64-bit object if we didn't find anything.
10946if test -z "$aix_libpath"; then
10947  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10948fi
10949else
10950  echo "$as_me: failed program was:" >&5
10951sed 's/^/| /' conftest.$ac_ext >&5
10952
10953fi
10954rm -f conftest.err conftest.$ac_objext \
10955      conftest$ac_exeext conftest.$ac_ext
10956if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10957
10958	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10959	# Warning - without using the other run time loading flags,
10960	# -berok will link without error, but may produce a broken library.
10961	no_undefined_flag_CXX=' ${wl}-bernotok'
10962	allow_undefined_flag_CXX=' ${wl}-berok'
10963	# Exported symbols can be pulled into shared objects from archives
10964	whole_archive_flag_spec_CXX='$convenience'
10965	archive_cmds_need_lc_CXX=yes
10966	# This is similar to how AIX traditionally builds its shared libraries.
10967	archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10968      fi
10969    fi
10970    ;;
10971
10972  beos*)
10973    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10974      allow_undefined_flag_CXX=unsupported
10975      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10976      # support --undefined.  This deserves some investigation.  FIXME
10977      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10978    else
10979      ld_shlibs_CXX=no
10980    fi
10981    ;;
10982
10983  chorus*)
10984    case $cc_basename in
10985      *)
10986	# FIXME: insert proper C++ library support
10987	ld_shlibs_CXX=no
10988	;;
10989    esac
10990    ;;
10991
10992  cygwin* | mingw* | pw32*)
10993    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10994    # as there is no search path for DLLs.
10995    hardcode_libdir_flag_spec_CXX='-L$libdir'
10996    allow_undefined_flag_CXX=unsupported
10997    always_export_symbols_CXX=no
10998    enable_shared_with_static_runtimes_CXX=yes
10999
11000    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11001      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11002      # If the export-symbols file already is a .def file (1st line
11003      # is EXPORTS), use it as is; otherwise, prepend...
11004      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11005	cp $export_symbols $output_objdir/$soname.def;
11006      else
11007	echo EXPORTS > $output_objdir/$soname.def;
11008	cat $export_symbols >> $output_objdir/$soname.def;
11009      fi~
11010      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11011    else
11012      ld_shlibs_CXX=no
11013    fi
11014  ;;
11015      darwin* | rhapsody*)
11016      archive_cmds_need_lc_CXX=no
11017      hardcode_direct_CXX=no
11018      hardcode_automatic_CXX=yes
11019      hardcode_shlibpath_var_CXX=unsupported
11020      whole_archive_flag_spec_CXX=''
11021      link_all_deplibs_CXX=yes
11022      allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11023      if test "$GXX" = yes ; then
11024      output_verbose_link_cmd='echo'
11025      archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11026      module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11027      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11028      module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11029      if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11030        archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11031        archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11032      fi
11033      else
11034      case $cc_basename in
11035        xlc*)
11036         output_verbose_link_cmd='echo'
11037          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11038          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11039          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11040          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11041          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11042          ;;
11043       *)
11044         ld_shlibs_CXX=no
11045          ;;
11046      esac
11047      fi
11048        ;;
11049
11050  dgux*)
11051    case $cc_basename in
11052      ec++*)
11053	# FIXME: insert proper C++ library support
11054	ld_shlibs_CXX=no
11055	;;
11056      ghcx*)
11057	# Green Hills C++ Compiler
11058	# FIXME: insert proper C++ library support
11059	ld_shlibs_CXX=no
11060	;;
11061      *)
11062	# FIXME: insert proper C++ library support
11063	ld_shlibs_CXX=no
11064	;;
11065    esac
11066    ;;
11067  freebsd[12]*)
11068    # C++ shared libraries reported to be fairly broken before switch to ELF
11069    ld_shlibs_CXX=no
11070    ;;
11071  freebsd-elf*)
11072    archive_cmds_need_lc_CXX=no
11073    ;;
11074  freebsd* | dragonfly*)
11075    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11076    # conventions
11077    ld_shlibs_CXX=yes
11078    ;;
11079  gnu*)
11080    ;;
11081  hpux9*)
11082    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11083    hardcode_libdir_separator_CXX=:
11084    export_dynamic_flag_spec_CXX='${wl}-E'
11085    hardcode_direct_CXX=yes
11086    hardcode_minus_L_CXX=yes # Not in the search PATH,
11087				# but as the default
11088				# location of the library.
11089
11090    case $cc_basename in
11091    CC*)
11092      # FIXME: insert proper C++ library support
11093      ld_shlibs_CXX=no
11094      ;;
11095    aCC*)
11096      archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11097      # Commands to make compiler produce verbose output that lists
11098      # what "hidden" libraries, object files and flags are used when
11099      # linking a shared library.
11100      #
11101      # There doesn't appear to be a way to prevent this compiler from
11102      # explicitly linking system object files so we need to strip them
11103      # from the output so that they don't get included in the library
11104      # dependencies.
11105      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11106      ;;
11107    *)
11108      if test "$GXX" = yes; then
11109        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11110      else
11111        # FIXME: insert proper C++ library support
11112        ld_shlibs_CXX=no
11113      fi
11114      ;;
11115    esac
11116    ;;
11117  hpux10*|hpux11*)
11118    if test $with_gnu_ld = no; then
11119      hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11120      hardcode_libdir_separator_CXX=:
11121
11122      case $host_cpu in
11123      hppa*64*|ia64*) ;;
11124      *)
11125	export_dynamic_flag_spec_CXX='${wl}-E'
11126        ;;
11127      esac
11128    fi
11129    case $host_cpu in
11130    hppa*64*|ia64*)
11131      hardcode_direct_CXX=no
11132      hardcode_shlibpath_var_CXX=no
11133      ;;
11134    *)
11135      hardcode_direct_CXX=yes
11136      hardcode_minus_L_CXX=yes # Not in the search PATH,
11137					      # but as the default
11138					      # location of the library.
11139      ;;
11140    esac
11141
11142    case $cc_basename in
11143      CC*)
11144	# FIXME: insert proper C++ library support
11145	ld_shlibs_CXX=no
11146	;;
11147      aCC*)
11148	case $host_cpu in
11149	hppa*64*)
11150	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11151	  ;;
11152	ia64*)
11153	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11154	  ;;
11155	*)
11156	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11157	  ;;
11158	esac
11159	# Commands to make compiler produce verbose output that lists
11160	# what "hidden" libraries, object files and flags are used when
11161	# linking a shared library.
11162	#
11163	# There doesn't appear to be a way to prevent this compiler from
11164	# explicitly linking system object files so we need to strip them
11165	# from the output so that they don't get included in the library
11166	# dependencies.
11167	output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11168	;;
11169      *)
11170	if test "$GXX" = yes; then
11171	  if test $with_gnu_ld = no; then
11172	    case $host_cpu in
11173	    hppa*64*)
11174	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11175	      ;;
11176	    ia64*)
11177	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11178	      ;;
11179	    *)
11180	      archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11181	      ;;
11182	    esac
11183	  fi
11184	else
11185	  # FIXME: insert proper C++ library support
11186	  ld_shlibs_CXX=no
11187	fi
11188	;;
11189    esac
11190    ;;
11191  interix[3-9]*)
11192    hardcode_direct_CXX=no
11193    hardcode_shlibpath_var_CXX=no
11194    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11195    export_dynamic_flag_spec_CXX='${wl}-E'
11196    # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11197    # Instead, shared libraries are loaded at an image base (0x10000000 by
11198    # default) and relocated if they conflict, which is a slow very memory
11199    # consuming and fragmenting process.  To avoid this, we pick a random,
11200    # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11201    # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11202    archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11203    archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11204    ;;
11205  irix5* | irix6*)
11206    case $cc_basename in
11207      CC*)
11208	# SGI C++
11209	archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11210
11211	# Archives containing C++ object files must be created using
11212	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
11213	# necessary to make sure instantiated templates are included
11214	# in the archive.
11215	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11216	;;
11217      *)
11218	if test "$GXX" = yes; then
11219	  if test "$with_gnu_ld" = no; then
11220	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11221	  else
11222	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11223	  fi
11224	fi
11225	link_all_deplibs_CXX=yes
11226	;;
11227    esac
11228    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11229    hardcode_libdir_separator_CXX=:
11230    ;;
11231  linux* | k*bsd*-gnu)
11232    case $cc_basename in
11233      KCC*)
11234	# Kuck and Associates, Inc. (KAI) C++ Compiler
11235
11236	# KCC will only create a shared library if the output file
11237	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11238	# to its proper name (with version) after linking.
11239	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11240	archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11241	# Commands to make compiler produce verbose output that lists
11242	# what "hidden" libraries, object files and flags are used when
11243	# linking a shared library.
11244	#
11245	# There doesn't appear to be a way to prevent this compiler from
11246	# explicitly linking system object files so we need to strip them
11247	# from the output so that they don't get included in the library
11248	# dependencies.
11249	output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11250
11251	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11252	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11253
11254	# Archives containing C++ object files must be created using
11255	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11256	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11257	;;
11258      icpc*)
11259	# Intel C++
11260	with_gnu_ld=yes
11261	# version 8.0 and above of icpc choke on multiply defined symbols
11262	# if we add $predep_objects and $postdep_objects, however 7.1 and
11263	# earlier do not add the objects themselves.
11264	case `$CC -V 2>&1` in
11265	*"Version 7."*)
11266  	  archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11267  	  archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11268	  ;;
11269	*)  # Version 8.0 or newer
11270	  tmp_idyn=
11271	  case $host_cpu in
11272	    ia64*) tmp_idyn=' -i_dynamic';;
11273	  esac
11274  	  archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11275	  archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11276	  ;;
11277	esac
11278	archive_cmds_need_lc_CXX=no
11279	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11280	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11281	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11282	;;
11283      pgCC* | pgcpp*)
11284        # Portland Group C++ compiler
11285	archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11286  	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11287
11288	hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11289	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11290	whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11291        ;;
11292      cxx*)
11293	# Compaq C++
11294	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11295	archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11296
11297	runpath_var=LD_RUN_PATH
11298	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11299	hardcode_libdir_separator_CXX=:
11300
11301	# Commands to make compiler produce verbose output that lists
11302	# what "hidden" libraries, object files and flags are used when
11303	# linking a shared library.
11304	#
11305	# There doesn't appear to be a way to prevent this compiler from
11306	# explicitly linking system object files so we need to strip them
11307	# from the output so that they don't get included in the library
11308	# dependencies.
11309	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11310	;;
11311      *)
11312	case `$CC -V 2>&1 | sed 5q` in
11313	*Sun\ C*)
11314	  # Sun C++ 5.9
11315	  no_undefined_flag_CXX=' -zdefs'
11316	  archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11317	  archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11318	  hardcode_libdir_flag_spec_CXX='-R$libdir'
11319	  whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11320
11321	  # Not sure whether something based on
11322	  # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11323	  # would be better.
11324	  output_verbose_link_cmd='echo'
11325
11326	  # Archives containing C++ object files must be created using
11327	  # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11328	  # necessary to make sure instantiated templates are included
11329	  # in the archive.
11330	  old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11331	  ;;
11332	esac
11333	;;
11334    esac
11335    ;;
11336  lynxos*)
11337    # FIXME: insert proper C++ library support
11338    ld_shlibs_CXX=no
11339    ;;
11340  m88k*)
11341    # FIXME: insert proper C++ library support
11342    ld_shlibs_CXX=no
11343    ;;
11344  mvs*)
11345    case $cc_basename in
11346      cxx*)
11347	# FIXME: insert proper C++ library support
11348	ld_shlibs_CXX=no
11349	;;
11350      *)
11351	# FIXME: insert proper C++ library support
11352	ld_shlibs_CXX=no
11353	;;
11354    esac
11355    ;;
11356  netbsd*)
11357    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11358      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11359      wlarc=
11360      hardcode_libdir_flag_spec_CXX='-R$libdir'
11361      hardcode_direct_CXX=yes
11362      hardcode_shlibpath_var_CXX=no
11363    fi
11364    # Workaround some broken pre-1.5 toolchains
11365    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11366    ;;
11367  openbsd2*)
11368    # C++ shared libraries are fairly broken
11369    ld_shlibs_CXX=no
11370    ;;
11371  openbsd*)
11372    if test -f /usr/libexec/ld.so; then
11373      hardcode_direct_CXX=yes
11374      hardcode_shlibpath_var_CXX=no
11375      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11376      hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11377      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11378	archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11379	export_dynamic_flag_spec_CXX='${wl}-E'
11380	whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11381      fi
11382      output_verbose_link_cmd='echo'
11383    else
11384      ld_shlibs_CXX=no
11385    fi
11386    ;;
11387  osf3*)
11388    case $cc_basename in
11389      KCC*)
11390	# Kuck and Associates, Inc. (KAI) C++ Compiler
11391
11392	# KCC will only create a shared library if the output file
11393	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11394	# to its proper name (with version) after linking.
11395	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11396
11397	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11398	hardcode_libdir_separator_CXX=:
11399
11400	# Archives containing C++ object files must be created using
11401	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
11402	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11403
11404	;;
11405      RCC*)
11406	# Rational C++ 2.4.1
11407	# FIXME: insert proper C++ library support
11408	ld_shlibs_CXX=no
11409	;;
11410      cxx*)
11411	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11412	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11413
11414	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11415	hardcode_libdir_separator_CXX=:
11416
11417	# Commands to make compiler produce verbose output that lists
11418	# what "hidden" libraries, object files and flags are used when
11419	# linking a shared library.
11420	#
11421	# There doesn't appear to be a way to prevent this compiler from
11422	# explicitly linking system object files so we need to strip them
11423	# from the output so that they don't get included in the library
11424	# dependencies.
11425	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11426	;;
11427      *)
11428	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11429	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11430	  archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11431
11432	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11433	  hardcode_libdir_separator_CXX=:
11434
11435	  # Commands to make compiler produce verbose output that lists
11436	  # what "hidden" libraries, object files and flags are used when
11437	  # linking a shared library.
11438	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11439
11440	else
11441	  # FIXME: insert proper C++ library support
11442	  ld_shlibs_CXX=no
11443	fi
11444	;;
11445    esac
11446    ;;
11447  osf4* | osf5*)
11448    case $cc_basename in
11449      KCC*)
11450	# Kuck and Associates, Inc. (KAI) C++ Compiler
11451
11452	# KCC will only create a shared library if the output file
11453	# ends with ".so" (or ".sl" for HP-UX), so rename the library
11454	# to its proper name (with version) after linking.
11455	archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11456
11457	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11458	hardcode_libdir_separator_CXX=:
11459
11460	# Archives containing C++ object files must be created using
11461	# the KAI C++ compiler.
11462	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11463	;;
11464      RCC*)
11465	# Rational C++ 2.4.1
11466	# FIXME: insert proper C++ library support
11467	ld_shlibs_CXX=no
11468	;;
11469      cxx*)
11470	allow_undefined_flag_CXX=' -expect_unresolved \*'
11471	archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11472	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11473	  echo "-hidden">> $lib.exp~
11474	  $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version	$verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11475	  $rm $lib.exp'
11476
11477	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11478	hardcode_libdir_separator_CXX=:
11479
11480	# Commands to make compiler produce verbose output that lists
11481	# what "hidden" libraries, object files and flags are used when
11482	# linking a shared library.
11483	#
11484	# There doesn't appear to be a way to prevent this compiler from
11485	# explicitly linking system object files so we need to strip them
11486	# from the output so that they don't get included in the library
11487	# dependencies.
11488	output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11489	;;
11490      *)
11491	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11492	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11493	 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11494
11495	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11496	  hardcode_libdir_separator_CXX=:
11497
11498	  # Commands to make compiler produce verbose output that lists
11499	  # what "hidden" libraries, object files and flags are used when
11500	  # linking a shared library.
11501	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11502
11503	else
11504	  # FIXME: insert proper C++ library support
11505	  ld_shlibs_CXX=no
11506	fi
11507	;;
11508    esac
11509    ;;
11510  psos*)
11511    # FIXME: insert proper C++ library support
11512    ld_shlibs_CXX=no
11513    ;;
11514  sunos4*)
11515    case $cc_basename in
11516      CC*)
11517	# Sun C++ 4.x
11518	# FIXME: insert proper C++ library support
11519	ld_shlibs_CXX=no
11520	;;
11521      lcc*)
11522	# Lucid
11523	# FIXME: insert proper C++ library support
11524	ld_shlibs_CXX=no
11525	;;
11526      *)
11527	# FIXME: insert proper C++ library support
11528	ld_shlibs_CXX=no
11529	;;
11530    esac
11531    ;;
11532  solaris*)
11533    case $cc_basename in
11534      CC*)
11535	# Sun C++ 4.2, 5.x and Centerline C++
11536        archive_cmds_need_lc_CXX=yes
11537	no_undefined_flag_CXX=' -zdefs'
11538	archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11539	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11540	$CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11541
11542	hardcode_libdir_flag_spec_CXX='-R$libdir'
11543	hardcode_shlibpath_var_CXX=no
11544	case $host_os in
11545	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11546	  *)
11547	    # The compiler driver will combine and reorder linker options,
11548	    # but understands `-z linker_flag'.
11549	    # Supported since Solaris 2.6 (maybe 2.5.1?)
11550	    whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11551	    ;;
11552	esac
11553	link_all_deplibs_CXX=yes
11554
11555	output_verbose_link_cmd='echo'
11556
11557	# Archives containing C++ object files must be created using
11558	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
11559	# necessary to make sure instantiated templates are included
11560	# in the archive.
11561	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11562	;;
11563      gcx*)
11564	# Green Hills C++ Compiler
11565	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11566
11567	# The C++ compiler must be used to create the archive.
11568	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11569	;;
11570      *)
11571	# GNU C++ compiler with Solaris linker
11572	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11573	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11574	  if $CC --version | grep -v '^2\.7' > /dev/null; then
11575	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11576	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11577		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11578
11579	    # Commands to make compiler produce verbose output that lists
11580	    # what "hidden" libraries, object files and flags are used when
11581	    # linking a shared library.
11582	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11583	  else
11584	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
11585	    # platform.
11586	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11587	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11588		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11589
11590	    # Commands to make compiler produce verbose output that lists
11591	    # what "hidden" libraries, object files and flags are used when
11592	    # linking a shared library.
11593	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11594	  fi
11595
11596	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11597	  case $host_os in
11598	  solaris2.[0-5] | solaris2.[0-5].*) ;;
11599	  *)
11600	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11601	    ;;
11602	  esac
11603	fi
11604	;;
11605    esac
11606    ;;
11607  sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11608    no_undefined_flag_CXX='${wl}-z,text'
11609    archive_cmds_need_lc_CXX=no
11610    hardcode_shlibpath_var_CXX=no
11611    runpath_var='LD_RUN_PATH'
11612
11613    case $cc_basename in
11614      CC*)
11615	archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11616	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11617	;;
11618      *)
11619	archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11620	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11621	;;
11622    esac
11623    ;;
11624  sysv5* | sco3.2v5* | sco5v6*)
11625    # Note: We can NOT use -z defs as we might desire, because we do not
11626    # link with -lc, and that would cause any symbols used from libc to
11627    # always be unresolved, which means just about no library would
11628    # ever link correctly.  If we're not using GNU ld we use -z text
11629    # though, which does catch some bad symbols but isn't as heavy-handed
11630    # as -z defs.
11631    # For security reasons, it is highly recommended that you always
11632    # use absolute paths for naming shared libraries, and exclude the
11633    # DT_RUNPATH tag from executables and libraries.  But doing so
11634    # requires that you compile everything twice, which is a pain.
11635    # So that behaviour is only enabled if SCOABSPATH is set to a
11636    # non-empty value in the environment.  Most likely only useful for
11637    # creating official distributions of packages.
11638    # This is a hack until libtool officially supports absolute path
11639    # names for shared libraries.
11640    no_undefined_flag_CXX='${wl}-z,text'
11641    allow_undefined_flag_CXX='${wl}-z,nodefs'
11642    archive_cmds_need_lc_CXX=no
11643    hardcode_shlibpath_var_CXX=no
11644    hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11645    hardcode_libdir_separator_CXX=':'
11646    link_all_deplibs_CXX=yes
11647    export_dynamic_flag_spec_CXX='${wl}-Bexport'
11648    runpath_var='LD_RUN_PATH'
11649
11650    case $cc_basename in
11651      CC*)
11652	archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11653	archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11654	;;
11655      *)
11656	archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11657	archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11658	;;
11659    esac
11660    ;;
11661  tandem*)
11662    case $cc_basename in
11663      NCC*)
11664	# NonStop-UX NCC 3.20
11665	# FIXME: insert proper C++ library support
11666	ld_shlibs_CXX=no
11667	;;
11668      *)
11669	# FIXME: insert proper C++ library support
11670	ld_shlibs_CXX=no
11671	;;
11672    esac
11673    ;;
11674  vxworks*)
11675    # FIXME: insert proper C++ library support
11676    ld_shlibs_CXX=no
11677    ;;
11678  *)
11679    # FIXME: insert proper C++ library support
11680    ld_shlibs_CXX=no
11681    ;;
11682esac
11683echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11684echo "${ECHO_T}$ld_shlibs_CXX" >&6
11685test "$ld_shlibs_CXX" = no && can_build_shared=no
11686
11687GCC_CXX="$GXX"
11688LD_CXX="$LD"
11689
11690cat > conftest.$ac_ext <<EOF
11691class Foo
11692{
11693public:
11694  Foo (void) { a = 0; }
11695private:
11696  int a;
11697};
11698EOF
11699
11700if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11701  (eval $ac_compile) 2>&5
11702  ac_status=$?
11703  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704  (exit $ac_status); }; then
11705  # Parse the compiler output and extract the necessary
11706  # objects, libraries and library flags.
11707
11708  # Sentinel used to keep track of whether or not we are before
11709  # the conftest object file.
11710  pre_test_object_deps_done=no
11711
11712  # The `*' in the case matches for architectures that use `case' in
11713  # $output_verbose_cmd can trigger glob expansion during the loop
11714  # eval without this substitution.
11715  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11716
11717  for p in `eval $output_verbose_link_cmd`; do
11718    case $p in
11719
11720    -L* | -R* | -l*)
11721       # Some compilers place space between "-{L,R}" and the path.
11722       # Remove the space.
11723       if test $p = "-L" \
11724	  || test $p = "-R"; then
11725	 prev=$p
11726	 continue
11727       else
11728	 prev=
11729       fi
11730
11731       if test "$pre_test_object_deps_done" = no; then
11732	 case $p in
11733	 -L* | -R*)
11734	   # Internal compiler library paths should come after those
11735	   # provided the user.  The postdeps already come after the
11736	   # user supplied libs so there is no need to process them.
11737	   if test -z "$compiler_lib_search_path_CXX"; then
11738	     compiler_lib_search_path_CXX="${prev}${p}"
11739	   else
11740	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11741	   fi
11742	   ;;
11743	 # The "-l" case would never come before the object being
11744	 # linked, so don't bother handling this case.
11745	 esac
11746       else
11747	 if test -z "$postdeps_CXX"; then
11748	   postdeps_CXX="${prev}${p}"
11749	 else
11750	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11751	 fi
11752       fi
11753       ;;
11754
11755    *.$objext)
11756       # This assumes that the test object file only shows up
11757       # once in the compiler output.
11758       if test "$p" = "conftest.$objext"; then
11759	 pre_test_object_deps_done=yes
11760	 continue
11761       fi
11762
11763       if test "$pre_test_object_deps_done" = no; then
11764	 if test -z "$predep_objects_CXX"; then
11765	   predep_objects_CXX="$p"
11766	 else
11767	   predep_objects_CXX="$predep_objects_CXX $p"
11768	 fi
11769       else
11770	 if test -z "$postdep_objects_CXX"; then
11771	   postdep_objects_CXX="$p"
11772	 else
11773	   postdep_objects_CXX="$postdep_objects_CXX $p"
11774	 fi
11775       fi
11776       ;;
11777
11778    *) ;; # Ignore the rest.
11779
11780    esac
11781  done
11782
11783  # Clean up.
11784  rm -f a.out a.exe
11785else
11786  echo "libtool.m4: error: problem compiling CXX test program"
11787fi
11788
11789$rm -f confest.$objext
11790
11791compiler_lib_search_dirs_CXX=
11792if test -n "$compiler_lib_search_path_CXX"; then
11793  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11794fi
11795
11796# PORTME: override above test on systems where it is broken
11797case $host_os in
11798interix[3-9]*)
11799  # Interix 3.5 installs completely hosed .la files for C++, so rather than
11800  # hack all around it, let's just trust "g++" to DTRT.
11801  predep_objects_CXX=
11802  postdep_objects_CXX=
11803  postdeps_CXX=
11804  ;;
11805
11806linux*)
11807  case `$CC -V 2>&1 | sed 5q` in
11808  *Sun\ C*)
11809    # Sun C++ 5.9
11810    #
11811    # The more standards-conforming stlport4 library is
11812    # incompatible with the Cstd library. Avoid specifying
11813    # it if it's in CXXFLAGS. Ignore libCrun as
11814    # -library=stlport4 depends on it.
11815    case " $CXX $CXXFLAGS " in
11816    *" -library=stlport4 "*)
11817      solaris_use_stlport4=yes
11818      ;;
11819    esac
11820    if test "$solaris_use_stlport4" != yes; then
11821      postdeps_CXX='-library=Cstd -library=Crun'
11822    fi
11823    ;;
11824  esac
11825  ;;
11826
11827solaris*)
11828  case $cc_basename in
11829  CC*)
11830    # The more standards-conforming stlport4 library is
11831    # incompatible with the Cstd library. Avoid specifying
11832    # it if it's in CXXFLAGS. Ignore libCrun as
11833    # -library=stlport4 depends on it.
11834    case " $CXX $CXXFLAGS " in
11835    *" -library=stlport4 "*)
11836      solaris_use_stlport4=yes
11837      ;;
11838    esac
11839
11840    # Adding this requires a known-good setup of shared libraries for
11841    # Sun compiler versions before 5.6, else PIC objects from an old
11842    # archive will be linked into the output, leading to subtle bugs.
11843    if test "$solaris_use_stlport4" != yes; then
11844      postdeps_CXX='-library=Cstd -library=Crun'
11845    fi
11846    ;;
11847  esac
11848  ;;
11849esac
11850
11851case " $postdeps_CXX " in
11852*" -lc "*) archive_cmds_need_lc_CXX=no ;;
11853esac
11854
11855lt_prog_compiler_wl_CXX=
11856lt_prog_compiler_pic_CXX=
11857lt_prog_compiler_static_CXX=
11858
11859echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11860echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11861
11862  # C++ specific cases for pic, static, wl, etc.
11863  if test "$GXX" = yes; then
11864    lt_prog_compiler_wl_CXX='-Wl,'
11865    lt_prog_compiler_static_CXX='-static'
11866
11867    case $host_os in
11868    aix*)
11869      # All AIX code is PIC.
11870      if test "$host_cpu" = ia64; then
11871	# AIX 5 now supports IA64 processor
11872	lt_prog_compiler_static_CXX='-Bstatic'
11873      fi
11874      ;;
11875    amigaos*)
11876      # FIXME: we need at least 68020 code to build shared libraries, but
11877      # adding the `-m68020' flag to GCC prevents building anything better,
11878      # like `-m68040'.
11879      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11880      ;;
11881    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11882      # PIC is the default for these OSes.
11883      ;;
11884    mingw* | cygwin* | os2* | pw32*)
11885      # This hack is so that the source file can tell whether it is being
11886      # built for inclusion in a dll (and should export symbols for example).
11887      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11888      # (--disable-auto-import) libraries
11889      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11890      ;;
11891    darwin* | rhapsody*)
11892      # PIC is the default on this platform
11893      # Common symbols not allowed in MH_DYLIB files
11894      lt_prog_compiler_pic_CXX='-fno-common'
11895      ;;
11896    *djgpp*)
11897      # DJGPP does not support shared libraries at all
11898      lt_prog_compiler_pic_CXX=
11899      ;;
11900    interix[3-9]*)
11901      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11902      # Instead, we relocate shared libraries at runtime.
11903      ;;
11904    sysv4*MP*)
11905      if test -d /usr/nec; then
11906	lt_prog_compiler_pic_CXX=-Kconform_pic
11907      fi
11908      ;;
11909    hpux*)
11910      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11911      # not for PA HP-UX.
11912      case $host_cpu in
11913      hppa*64*|ia64*)
11914	;;
11915      *)
11916	lt_prog_compiler_pic_CXX='-fPIC'
11917	;;
11918      esac
11919      ;;
11920    *)
11921      lt_prog_compiler_pic_CXX='-fPIC'
11922      ;;
11923    esac
11924  else
11925    case $host_os in
11926      aix[4-9]*)
11927	# All AIX code is PIC.
11928	if test "$host_cpu" = ia64; then
11929	  # AIX 5 now supports IA64 processor
11930	  lt_prog_compiler_static_CXX='-Bstatic'
11931	else
11932	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11933	fi
11934	;;
11935      chorus*)
11936	case $cc_basename in
11937	cxch68*)
11938	  # Green Hills C++ Compiler
11939	  # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11940	  ;;
11941	esac
11942	;;
11943       darwin*)
11944         # PIC is the default on this platform
11945         # Common symbols not allowed in MH_DYLIB files
11946         case $cc_basename in
11947           xlc*)
11948           lt_prog_compiler_pic_CXX='-qnocommon'
11949           lt_prog_compiler_wl_CXX='-Wl,'
11950           ;;
11951         esac
11952       ;;
11953      dgux*)
11954	case $cc_basename in
11955	  ec++*)
11956	    lt_prog_compiler_pic_CXX='-KPIC'
11957	    ;;
11958	  ghcx*)
11959	    # Green Hills C++ Compiler
11960	    lt_prog_compiler_pic_CXX='-pic'
11961	    ;;
11962	  *)
11963	    ;;
11964	esac
11965	;;
11966      freebsd* | dragonfly*)
11967	# FreeBSD uses GNU C++
11968	;;
11969      hpux9* | hpux10* | hpux11*)
11970	case $cc_basename in
11971	  CC*)
11972	    lt_prog_compiler_wl_CXX='-Wl,'
11973	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11974	    if test "$host_cpu" != ia64; then
11975	      lt_prog_compiler_pic_CXX='+Z'
11976	    fi
11977	    ;;
11978	  aCC*)
11979	    lt_prog_compiler_wl_CXX='-Wl,'
11980	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11981	    case $host_cpu in
11982	    hppa*64*|ia64*)
11983	      # +Z the default
11984	      ;;
11985	    *)
11986	      lt_prog_compiler_pic_CXX='+Z'
11987	      ;;
11988	    esac
11989	    ;;
11990	  *)
11991	    ;;
11992	esac
11993	;;
11994      interix*)
11995	# This is c89, which is MS Visual C++ (no shared libs)
11996	# Anyone wants to do a port?
11997	;;
11998      irix5* | irix6* | nonstopux*)
11999	case $cc_basename in
12000	  CC*)
12001	    lt_prog_compiler_wl_CXX='-Wl,'
12002	    lt_prog_compiler_static_CXX='-non_shared'
12003	    # CC pic flag -KPIC is the default.
12004	    ;;
12005	  *)
12006	    ;;
12007	esac
12008	;;
12009      linux* | k*bsd*-gnu)
12010	case $cc_basename in
12011	  KCC*)
12012	    # KAI C++ Compiler
12013	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12014	    lt_prog_compiler_pic_CXX='-fPIC'
12015	    ;;
12016	  icpc* | ecpc*)
12017	    # Intel C++
12018	    lt_prog_compiler_wl_CXX='-Wl,'
12019	    lt_prog_compiler_pic_CXX='-KPIC'
12020	    lt_prog_compiler_static_CXX='-static'
12021	    ;;
12022	  pgCC* | pgcpp*)
12023	    # Portland Group C++ compiler.
12024	    lt_prog_compiler_wl_CXX='-Wl,'
12025	    lt_prog_compiler_pic_CXX='-fpic'
12026	    lt_prog_compiler_static_CXX='-Bstatic'
12027	    ;;
12028	  cxx*)
12029	    # Compaq C++
12030	    # Make sure the PIC flag is empty.  It appears that all Alpha
12031	    # Linux and Compaq Tru64 Unix objects are PIC.
12032	    lt_prog_compiler_pic_CXX=
12033	    lt_prog_compiler_static_CXX='-non_shared'
12034	    ;;
12035	  *)
12036	    case `$CC -V 2>&1 | sed 5q` in
12037	    *Sun\ C*)
12038	      # Sun C++ 5.9
12039	      lt_prog_compiler_pic_CXX='-KPIC'
12040	      lt_prog_compiler_static_CXX='-Bstatic'
12041	      lt_prog_compiler_wl_CXX='-Qoption ld '
12042	      ;;
12043	    esac
12044	    ;;
12045	esac
12046	;;
12047      lynxos*)
12048	;;
12049      m88k*)
12050	;;
12051      mvs*)
12052	case $cc_basename in
12053	  cxx*)
12054	    lt_prog_compiler_pic_CXX='-W c,exportall'
12055	    ;;
12056	  *)
12057	    ;;
12058	esac
12059	;;
12060      netbsd*)
12061	;;
12062      osf3* | osf4* | osf5*)
12063	case $cc_basename in
12064	  KCC*)
12065	    lt_prog_compiler_wl_CXX='--backend -Wl,'
12066	    ;;
12067	  RCC*)
12068	    # Rational C++ 2.4.1
12069	    lt_prog_compiler_pic_CXX='-pic'
12070	    ;;
12071	  cxx*)
12072	    # Digital/Compaq C++
12073	    lt_prog_compiler_wl_CXX='-Wl,'
12074	    # Make sure the PIC flag is empty.  It appears that all Alpha
12075	    # Linux and Compaq Tru64 Unix objects are PIC.
12076	    lt_prog_compiler_pic_CXX=
12077	    lt_prog_compiler_static_CXX='-non_shared'
12078	    ;;
12079	  *)
12080	    ;;
12081	esac
12082	;;
12083      psos*)
12084	;;
12085      solaris*)
12086	case $cc_basename in
12087	  CC*)
12088	    # Sun C++ 4.2, 5.x and Centerline C++
12089	    lt_prog_compiler_pic_CXX='-KPIC'
12090	    lt_prog_compiler_static_CXX='-Bstatic'
12091	    lt_prog_compiler_wl_CXX='-Qoption ld '
12092	    ;;
12093	  gcx*)
12094	    # Green Hills C++ Compiler
12095	    lt_prog_compiler_pic_CXX='-PIC'
12096	    ;;
12097	  *)
12098	    ;;
12099	esac
12100	;;
12101      sunos4*)
12102	case $cc_basename in
12103	  CC*)
12104	    # Sun C++ 4.x
12105	    lt_prog_compiler_pic_CXX='-pic'
12106	    lt_prog_compiler_static_CXX='-Bstatic'
12107	    ;;
12108	  lcc*)
12109	    # Lucid
12110	    lt_prog_compiler_pic_CXX='-pic'
12111	    ;;
12112	  *)
12113	    ;;
12114	esac
12115	;;
12116      tandem*)
12117	case $cc_basename in
12118	  NCC*)
12119	    # NonStop-UX NCC 3.20
12120	    lt_prog_compiler_pic_CXX='-KPIC'
12121	    ;;
12122	  *)
12123	    ;;
12124	esac
12125	;;
12126      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12127	case $cc_basename in
12128	  CC*)
12129	    lt_prog_compiler_wl_CXX='-Wl,'
12130	    lt_prog_compiler_pic_CXX='-KPIC'
12131	    lt_prog_compiler_static_CXX='-Bstatic'
12132	    ;;
12133	esac
12134	;;
12135      vxworks*)
12136	;;
12137      *)
12138	lt_prog_compiler_can_build_shared_CXX=no
12139	;;
12140    esac
12141  fi
12142
12143echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12144echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12145
12146#
12147# Check to make sure the PIC flag actually works.
12148#
12149if test -n "$lt_prog_compiler_pic_CXX"; then
12150
12151echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12152echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12153if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12154  echo $ECHO_N "(cached) $ECHO_C" >&6
12155else
12156  lt_cv_prog_compiler_pic_works_CXX=no
12157  ac_outfile=conftest.$ac_objext
12158   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12159   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12160   # Insert the option either (1) after the last *FLAGS variable, or
12161   # (2) before a word containing "conftest.", or (3) at the end.
12162   # Note that $ac_compile itself does not contain backslashes and begins
12163   # with a dollar sign (not a hyphen), so the echo should work correctly.
12164   # The option is referenced via a variable to avoid confusing sed.
12165   lt_compile=`echo "$ac_compile" | $SED \
12166   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12167   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12168   -e 's:$: $lt_compiler_flag:'`
12169   (eval echo "\"\$as_me:12169: $lt_compile\"" >&5)
12170   (eval "$lt_compile" 2>conftest.err)
12171   ac_status=$?
12172   cat conftest.err >&5
12173   echo "$as_me:12173: \$? = $ac_status" >&5
12174   if (exit $ac_status) && test -s "$ac_outfile"; then
12175     # The compiler can only warn and ignore the option if not recognized
12176     # So say no if there are warnings other than the usual output.
12177     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12178     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12179     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12180       lt_cv_prog_compiler_pic_works_CXX=yes
12181     fi
12182   fi
12183   $rm conftest*
12184
12185fi
12186echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12187echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
12188
12189if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12190    case $lt_prog_compiler_pic_CXX in
12191     "" | " "*) ;;
12192     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12193     esac
12194else
12195    lt_prog_compiler_pic_CXX=
12196     lt_prog_compiler_can_build_shared_CXX=no
12197fi
12198
12199fi
12200case $host_os in
12201  # For platforms which do not support PIC, -DPIC is meaningless:
12202  *djgpp*)
12203    lt_prog_compiler_pic_CXX=
12204    ;;
12205  *)
12206    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12207    ;;
12208esac
12209
12210#
12211# Check to make sure the static flag actually works.
12212#
12213wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12214echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12215echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12216if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12217  echo $ECHO_N "(cached) $ECHO_C" >&6
12218else
12219  lt_cv_prog_compiler_static_works_CXX=no
12220   save_LDFLAGS="$LDFLAGS"
12221   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12222   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12223   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12224     # The linker can only warn and ignore the option if not recognized
12225     # So say no if there are warnings
12226     if test -s conftest.err; then
12227       # Append any errors to the config.log.
12228       cat conftest.err 1>&5
12229       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12230       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12231       if diff conftest.exp conftest.er2 >/dev/null; then
12232         lt_cv_prog_compiler_static_works_CXX=yes
12233       fi
12234     else
12235       lt_cv_prog_compiler_static_works_CXX=yes
12236     fi
12237   fi
12238   $rm -r conftest*
12239   LDFLAGS="$save_LDFLAGS"
12240
12241fi
12242echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12243echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
12244
12245if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12246    :
12247else
12248    lt_prog_compiler_static_CXX=
12249fi
12250
12251
12252echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12253echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12254if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12255  echo $ECHO_N "(cached) $ECHO_C" >&6
12256else
12257  lt_cv_prog_compiler_c_o_CXX=no
12258   $rm -r conftest 2>/dev/null
12259   mkdir conftest
12260   cd conftest
12261   mkdir out
12262   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12263
12264   lt_compiler_flag="-o out/conftest2.$ac_objext"
12265   # Insert the option either (1) after the last *FLAGS variable, or
12266   # (2) before a word containing "conftest.", or (3) at the end.
12267   # Note that $ac_compile itself does not contain backslashes and begins
12268   # with a dollar sign (not a hyphen), so the echo should work correctly.
12269   lt_compile=`echo "$ac_compile" | $SED \
12270   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12271   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12272   -e 's:$: $lt_compiler_flag:'`
12273   (eval echo "\"\$as_me:12273: $lt_compile\"" >&5)
12274   (eval "$lt_compile" 2>out/conftest.err)
12275   ac_status=$?
12276   cat out/conftest.err >&5
12277   echo "$as_me:12277: \$? = $ac_status" >&5
12278   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12279   then
12280     # The compiler can only warn and ignore the option if not recognized
12281     # So say no if there are warnings
12282     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12283     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12284     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12285       lt_cv_prog_compiler_c_o_CXX=yes
12286     fi
12287   fi
12288   chmod u+w . 2>&5
12289   $rm conftest*
12290   # SGI C++ compiler will create directory out/ii_files/ for
12291   # template instantiation
12292   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12293   $rm out/* && rmdir out
12294   cd ..
12295   rmdir conftest
12296   $rm conftest*
12297
12298fi
12299echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12300echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12301
12302
12303hard_links="nottested"
12304if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12305  # do not overwrite the value of need_locks provided by the user
12306  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12307echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12308  hard_links=yes
12309  $rm conftest*
12310  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12311  touch conftest.a
12312  ln conftest.a conftest.b 2>&5 || hard_links=no
12313  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12314  echo "$as_me:$LINENO: result: $hard_links" >&5
12315echo "${ECHO_T}$hard_links" >&6
12316  if test "$hard_links" = no; then
12317    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12318echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12319    need_locks=warn
12320  fi
12321else
12322  need_locks=no
12323fi
12324
12325echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12326echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12327
12328  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12329  case $host_os in
12330  aix[4-9]*)
12331    # If we're using GNU nm, then we don't want the "-C" option.
12332    # -C means demangle to AIX nm, but means don't demangle with GNU nm
12333    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12334      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12335    else
12336      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12337    fi
12338    ;;
12339  pw32*)
12340    export_symbols_cmds_CXX="$ltdll_cmds"
12341  ;;
12342  cygwin* | mingw*)
12343    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12344  ;;
12345  *)
12346    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12347  ;;
12348  esac
12349  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12350
12351echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12352echo "${ECHO_T}$ld_shlibs_CXX" >&6
12353test "$ld_shlibs_CXX" = no && can_build_shared=no
12354
12355#
12356# Do we need to explicitly link libc?
12357#
12358case "x$archive_cmds_need_lc_CXX" in
12359x|xyes)
12360  # Assume -lc should be added
12361  archive_cmds_need_lc_CXX=yes
12362
12363  if test "$enable_shared" = yes && test "$GCC" = yes; then
12364    case $archive_cmds_CXX in
12365    *'~'*)
12366      # FIXME: we may have to deal with multi-command sequences.
12367      ;;
12368    '$CC '*)
12369      # Test whether the compiler implicitly links with -lc since on some
12370      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12371      # to ld, don't add -lc before -lgcc.
12372      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12373echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12374      $rm conftest*
12375      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12376
12377      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12378  (eval $ac_compile) 2>&5
12379  ac_status=$?
12380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12381  (exit $ac_status); } 2>conftest.err; then
12382        soname=conftest
12383        lib=conftest
12384        libobjs=conftest.$ac_objext
12385        deplibs=
12386        wl=$lt_prog_compiler_wl_CXX
12387	pic_flag=$lt_prog_compiler_pic_CXX
12388        compiler_flags=-v
12389        linker_flags=-v
12390        verstring=
12391        output_objdir=.
12392        libname=conftest
12393        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12394        allow_undefined_flag_CXX=
12395        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12396  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12397  ac_status=$?
12398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399  (exit $ac_status); }
12400        then
12401	  archive_cmds_need_lc_CXX=no
12402        else
12403	  archive_cmds_need_lc_CXX=yes
12404        fi
12405        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12406      else
12407        cat conftest.err 1>&5
12408      fi
12409      $rm conftest*
12410      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12411echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12412      ;;
12413    esac
12414  fi
12415  ;;
12416esac
12417
12418echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12419echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12420library_names_spec=
12421libname_spec='lib$name'
12422soname_spec=
12423shrext_cmds=".so"
12424postinstall_cmds=
12425postuninstall_cmds=
12426finish_cmds=
12427finish_eval=
12428shlibpath_var=
12429shlibpath_overrides_runpath=unknown
12430version_type=none
12431dynamic_linker="$host_os ld.so"
12432sys_lib_dlsearch_path_spec="/lib /usr/lib"
12433
12434need_lib_prefix=unknown
12435hardcode_into_libs=no
12436
12437# when you set need_version to no, make sure it does not cause -set_version
12438# flags to be left without arguments
12439need_version=unknown
12440
12441case $host_os in
12442aix3*)
12443  version_type=linux
12444  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12445  shlibpath_var=LIBPATH
12446
12447  # AIX 3 has no versioning support, so we append a major version to the name.
12448  soname_spec='${libname}${release}${shared_ext}$major'
12449  ;;
12450
12451aix[4-9]*)
12452  version_type=linux
12453  need_lib_prefix=no
12454  need_version=no
12455  hardcode_into_libs=yes
12456  if test "$host_cpu" = ia64; then
12457    # AIX 5 supports IA64
12458    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12459    shlibpath_var=LD_LIBRARY_PATH
12460  else
12461    # With GCC up to 2.95.x, collect2 would create an import file
12462    # for dependence libraries.  The import file would start with
12463    # the line `#! .'.  This would cause the generated library to
12464    # depend on `.', always an invalid library.  This was fixed in
12465    # development snapshots of GCC prior to 3.0.
12466    case $host_os in
12467      aix4 | aix4.[01] | aix4.[01].*)
12468      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12469	   echo ' yes '
12470	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12471	:
12472      else
12473	can_build_shared=no
12474      fi
12475      ;;
12476    esac
12477    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12478    # soname into executable. Probably we can add versioning support to
12479    # collect2, so additional links can be useful in future.
12480    if test "$aix_use_runtimelinking" = yes; then
12481      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12482      # instead of lib<name>.a to let people know that these are not
12483      # typical AIX shared libraries.
12484      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12485    else
12486      # We preserve .a as extension for shared libraries through AIX4.2
12487      # and later when we are not doing run time linking.
12488      library_names_spec='${libname}${release}.a $libname.a'
12489      soname_spec='${libname}${release}${shared_ext}$major'
12490    fi
12491    shlibpath_var=LIBPATH
12492  fi
12493  ;;
12494
12495amigaos*)
12496  library_names_spec='$libname.ixlibrary $libname.a'
12497  # Create ${libname}_ixlibrary.a entries in /sys/libs.
12498  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'
12499  ;;
12500
12501beos*)
12502  library_names_spec='${libname}${shared_ext}'
12503  dynamic_linker="$host_os ld.so"
12504  shlibpath_var=LIBRARY_PATH
12505  ;;
12506
12507bsdi[45]*)
12508  version_type=linux
12509  need_version=no
12510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12511  soname_spec='${libname}${release}${shared_ext}$major'
12512  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12513  shlibpath_var=LD_LIBRARY_PATH
12514  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12515  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12516  # the default ld.so.conf also contains /usr/contrib/lib and
12517  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12518  # libtool to hard-code these into programs
12519  ;;
12520
12521cygwin* | mingw* | pw32*)
12522  version_type=windows
12523  shrext_cmds=".dll"
12524  need_version=no
12525  need_lib_prefix=no
12526
12527  case $GCC,$host_os in
12528  yes,cygwin* | yes,mingw* | yes,pw32*)
12529    library_names_spec='$libname.dll.a'
12530    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12531    postinstall_cmds='base_file=`basename \${file}`~
12532      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12533      dldir=$destdir/`dirname \$dlpath`~
12534      test -d \$dldir || mkdir -p \$dldir~
12535      $install_prog $dir/$dlname \$dldir/$dlname~
12536      chmod a+x \$dldir/$dlname'
12537    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12538      dlpath=$dir/\$dldll~
12539       $rm \$dlpath'
12540    shlibpath_overrides_runpath=yes
12541
12542    case $host_os in
12543    cygwin*)
12544      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12545      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12546      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12547      ;;
12548    mingw*)
12549      # MinGW DLLs use traditional 'lib' prefix
12550      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12551      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12552      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12553        # It is most probably a Windows format PATH printed by
12554        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12555        # path with ; separators, and with drive letters. We can handle the
12556        # drive letters (cygwin fileutils understands them), so leave them,
12557        # especially as we might pass files found there to a mingw objdump,
12558        # which wouldn't understand a cygwinified path. Ahh.
12559        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12560      else
12561        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12562      fi
12563      ;;
12564    pw32*)
12565      # pw32 DLLs use 'pw' prefix rather than 'lib'
12566      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12567      ;;
12568    esac
12569    ;;
12570
12571  *)
12572    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12573    ;;
12574  esac
12575  dynamic_linker='Win32 ld.exe'
12576  # FIXME: first we should search . and the directory the executable is in
12577  shlibpath_var=PATH
12578  ;;
12579
12580darwin* | rhapsody*)
12581  dynamic_linker="$host_os dyld"
12582  version_type=darwin
12583  need_lib_prefix=no
12584  need_version=no
12585  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12586  soname_spec='${libname}${release}${major}$shared_ext'
12587  shlibpath_overrides_runpath=yes
12588  shlibpath_var=DYLD_LIBRARY_PATH
12589  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12590
12591  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12592  ;;
12593
12594dgux*)
12595  version_type=linux
12596  need_lib_prefix=no
12597  need_version=no
12598  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12599  soname_spec='${libname}${release}${shared_ext}$major'
12600  shlibpath_var=LD_LIBRARY_PATH
12601  ;;
12602
12603freebsd1*)
12604  dynamic_linker=no
12605  ;;
12606
12607freebsd* | dragonfly*)
12608  # DragonFly does not have aout.  When/if they implement a new
12609  # versioning mechanism, adjust this.
12610  if test -x /usr/bin/objformat; then
12611    objformat=`/usr/bin/objformat`
12612  else
12613    case $host_os in
12614    freebsd[123]*) objformat=aout ;;
12615    *) objformat=elf ;;
12616    esac
12617  fi
12618  version_type=freebsd-$objformat
12619  case $version_type in
12620    freebsd-elf*)
12621      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12622      need_version=no
12623      need_lib_prefix=no
12624      ;;
12625    freebsd-*)
12626      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12627      need_version=yes
12628      ;;
12629  esac
12630  shlibpath_var=LD_LIBRARY_PATH
12631  case $host_os in
12632  freebsd2*)
12633    shlibpath_overrides_runpath=yes
12634    ;;
12635  freebsd3.[01]* | freebsdelf3.[01]*)
12636    shlibpath_overrides_runpath=yes
12637    hardcode_into_libs=yes
12638    ;;
12639  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12640  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12641    shlibpath_overrides_runpath=no
12642    hardcode_into_libs=yes
12643    ;;
12644  *) # from 4.6 on, and DragonFly
12645    shlibpath_overrides_runpath=yes
12646    hardcode_into_libs=yes
12647    ;;
12648  esac
12649  ;;
12650
12651gnu*)
12652  version_type=linux
12653  need_lib_prefix=no
12654  need_version=no
12655  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12656  soname_spec='${libname}${release}${shared_ext}$major'
12657  shlibpath_var=LD_LIBRARY_PATH
12658  hardcode_into_libs=yes
12659  ;;
12660
12661hpux9* | hpux10* | hpux11*)
12662  # Give a soname corresponding to the major version so that dld.sl refuses to
12663  # link against other versions.
12664  version_type=sunos
12665  need_lib_prefix=no
12666  need_version=no
12667  case $host_cpu in
12668  ia64*)
12669    shrext_cmds='.so'
12670    hardcode_into_libs=yes
12671    dynamic_linker="$host_os dld.so"
12672    shlibpath_var=LD_LIBRARY_PATH
12673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12675    soname_spec='${libname}${release}${shared_ext}$major'
12676    if test "X$HPUX_IA64_MODE" = X32; then
12677      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12678    else
12679      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12680    fi
12681    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12682    ;;
12683   hppa*64*)
12684     shrext_cmds='.sl'
12685     hardcode_into_libs=yes
12686     dynamic_linker="$host_os dld.sl"
12687     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12688     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12690     soname_spec='${libname}${release}${shared_ext}$major'
12691     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12692     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12693     ;;
12694   *)
12695    shrext_cmds='.sl'
12696    dynamic_linker="$host_os dld.sl"
12697    shlibpath_var=SHLIB_PATH
12698    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700    soname_spec='${libname}${release}${shared_ext}$major'
12701    ;;
12702  esac
12703  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12704  postinstall_cmds='chmod 555 $lib'
12705  ;;
12706
12707interix[3-9]*)
12708  version_type=linux
12709  need_lib_prefix=no
12710  need_version=no
12711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12712  soname_spec='${libname}${release}${shared_ext}$major'
12713  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12714  shlibpath_var=LD_LIBRARY_PATH
12715  shlibpath_overrides_runpath=no
12716  hardcode_into_libs=yes
12717  ;;
12718
12719irix5* | irix6* | nonstopux*)
12720  case $host_os in
12721    nonstopux*) version_type=nonstopux ;;
12722    *)
12723	if test "$lt_cv_prog_gnu_ld" = yes; then
12724		version_type=linux
12725	else
12726		version_type=irix
12727	fi ;;
12728  esac
12729  need_lib_prefix=no
12730  need_version=no
12731  soname_spec='${libname}${release}${shared_ext}$major'
12732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12733  case $host_os in
12734  irix5* | nonstopux*)
12735    libsuff= shlibsuff=
12736    ;;
12737  *)
12738    case $LD in # libtool.m4 will add one of these switches to LD
12739    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12740      libsuff= shlibsuff= libmagic=32-bit;;
12741    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12742      libsuff=32 shlibsuff=N32 libmagic=N32;;
12743    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12744      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12745    *) libsuff= shlibsuff= libmagic=never-match;;
12746    esac
12747    ;;
12748  esac
12749  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12750  shlibpath_overrides_runpath=no
12751  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12752  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12753  hardcode_into_libs=yes
12754  ;;
12755
12756# No shared lib support for Linux oldld, aout, or coff.
12757linux*oldld* | linux*aout* | linux*coff*)
12758  dynamic_linker=no
12759  ;;
12760
12761# This must be Linux ELF.
12762linux* | k*bsd*-gnu)
12763  version_type=linux
12764  need_lib_prefix=no
12765  need_version=no
12766  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12767  soname_spec='${libname}${release}${shared_ext}$major'
12768  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12769  shlibpath_var=LD_LIBRARY_PATH
12770  shlibpath_overrides_runpath=no
12771  # This implies no fast_install, which is unacceptable.
12772  # Some rework will be needed to allow for fast_install
12773  # before this can be enabled.
12774  hardcode_into_libs=yes
12775  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12776  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12777
12778  # Append ld.so.conf contents to the search path
12779  if test -f /etc/ld.so.conf; then
12780    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12781    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12782  fi
12783
12784  # We used to test for /lib/ld.so.1 and disable shared libraries on
12785  # powerpc, because MkLinux only supported shared libraries with the
12786  # GNU dynamic linker.  Since this was broken with cross compilers,
12787  # most powerpc-linux boxes support dynamic linking these days and
12788  # people can always --disable-shared, the test was removed, and we
12789  # assume the GNU/Linux dynamic linker is in use.
12790  dynamic_linker='GNU/Linux ld.so'
12791  ;;
12792
12793netbsd*)
12794  version_type=sunos
12795  need_lib_prefix=no
12796  need_version=no
12797  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12798    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12799    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12800    dynamic_linker='NetBSD (a.out) ld.so'
12801  else
12802    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12803    soname_spec='${libname}${release}${shared_ext}$major'
12804    dynamic_linker='NetBSD ld.elf_so'
12805  fi
12806  shlibpath_var=LD_LIBRARY_PATH
12807  shlibpath_overrides_runpath=yes
12808  hardcode_into_libs=yes
12809  ;;
12810
12811newsos6)
12812  version_type=linux
12813  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12814  shlibpath_var=LD_LIBRARY_PATH
12815  shlibpath_overrides_runpath=yes
12816  ;;
12817
12818nto-qnx*)
12819  version_type=linux
12820  need_lib_prefix=no
12821  need_version=no
12822  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12823  soname_spec='${libname}${release}${shared_ext}$major'
12824  shlibpath_var=LD_LIBRARY_PATH
12825  shlibpath_overrides_runpath=yes
12826  ;;
12827
12828openbsd*)
12829  version_type=sunos
12830  sys_lib_dlsearch_path_spec="/usr/lib"
12831  need_lib_prefix=no
12832  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12833  case $host_os in
12834    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12835    *)                         need_version=no  ;;
12836  esac
12837  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12838  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12839  shlibpath_var=LD_LIBRARY_PATH
12840  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12841    case $host_os in
12842      openbsd2.[89] | openbsd2.[89].*)
12843	shlibpath_overrides_runpath=no
12844	;;
12845      *)
12846	shlibpath_overrides_runpath=yes
12847	;;
12848      esac
12849  else
12850    shlibpath_overrides_runpath=yes
12851  fi
12852  ;;
12853
12854os2*)
12855  libname_spec='$name'
12856  shrext_cmds=".dll"
12857  need_lib_prefix=no
12858  library_names_spec='$libname${shared_ext} $libname.a'
12859  dynamic_linker='OS/2 ld.exe'
12860  shlibpath_var=LIBPATH
12861  ;;
12862
12863osf3* | osf4* | osf5*)
12864  version_type=osf
12865  need_lib_prefix=no
12866  need_version=no
12867  soname_spec='${libname}${release}${shared_ext}$major'
12868  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12869  shlibpath_var=LD_LIBRARY_PATH
12870  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12871  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12872  ;;
12873
12874rdos*)
12875  dynamic_linker=no
12876  ;;
12877
12878solaris*)
12879  version_type=linux
12880  need_lib_prefix=no
12881  need_version=no
12882  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883  soname_spec='${libname}${release}${shared_ext}$major'
12884  shlibpath_var=LD_LIBRARY_PATH
12885  shlibpath_overrides_runpath=yes
12886  hardcode_into_libs=yes
12887  # ldd complains unless libraries are executable
12888  postinstall_cmds='chmod +x $lib'
12889  ;;
12890
12891sunos4*)
12892  version_type=sunos
12893  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12894  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12895  shlibpath_var=LD_LIBRARY_PATH
12896  shlibpath_overrides_runpath=yes
12897  if test "$with_gnu_ld" = yes; then
12898    need_lib_prefix=no
12899  fi
12900  need_version=yes
12901  ;;
12902
12903sysv4 | sysv4.3*)
12904  version_type=linux
12905  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12906  soname_spec='${libname}${release}${shared_ext}$major'
12907  shlibpath_var=LD_LIBRARY_PATH
12908  case $host_vendor in
12909    sni)
12910      shlibpath_overrides_runpath=no
12911      need_lib_prefix=no
12912      export_dynamic_flag_spec='${wl}-Blargedynsym'
12913      runpath_var=LD_RUN_PATH
12914      ;;
12915    siemens)
12916      need_lib_prefix=no
12917      ;;
12918    motorola)
12919      need_lib_prefix=no
12920      need_version=no
12921      shlibpath_overrides_runpath=no
12922      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12923      ;;
12924  esac
12925  ;;
12926
12927sysv4*MP*)
12928  if test -d /usr/nec ;then
12929    version_type=linux
12930    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12931    soname_spec='$libname${shared_ext}.$major'
12932    shlibpath_var=LD_LIBRARY_PATH
12933  fi
12934  ;;
12935
12936sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12937  version_type=freebsd-elf
12938  need_lib_prefix=no
12939  need_version=no
12940  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12941  soname_spec='${libname}${release}${shared_ext}$major'
12942  shlibpath_var=LD_LIBRARY_PATH
12943  hardcode_into_libs=yes
12944  if test "$with_gnu_ld" = yes; then
12945    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12946    shlibpath_overrides_runpath=no
12947  else
12948    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12949    shlibpath_overrides_runpath=yes
12950    case $host_os in
12951      sco3.2v5*)
12952        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12953	;;
12954    esac
12955  fi
12956  sys_lib_dlsearch_path_spec='/usr/lib'
12957  ;;
12958
12959uts4*)
12960  version_type=linux
12961  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12962  soname_spec='${libname}${release}${shared_ext}$major'
12963  shlibpath_var=LD_LIBRARY_PATH
12964  ;;
12965
12966*)
12967  dynamic_linker=no
12968  ;;
12969esac
12970echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12971echo "${ECHO_T}$dynamic_linker" >&6
12972test "$dynamic_linker" = no && can_build_shared=no
12973
12974if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12975  echo $ECHO_N "(cached) $ECHO_C" >&6
12976else
12977  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12978fi
12979
12980sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12981if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12982  echo $ECHO_N "(cached) $ECHO_C" >&6
12983else
12984  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12985fi
12986
12987sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12988
12989variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12990if test "$GCC" = yes; then
12991  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12992fi
12993
12994echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12995echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12996hardcode_action_CXX=
12997if test -n "$hardcode_libdir_flag_spec_CXX" || \
12998   test -n "$runpath_var_CXX" || \
12999   test "X$hardcode_automatic_CXX" = "Xyes" ; then
13000
13001  # We can hardcode non-existant directories.
13002  if test "$hardcode_direct_CXX" != no &&
13003     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13004     # have to relink, otherwise we might link with an installed library
13005     # when we should be linking with a yet-to-be-installed one
13006     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13007     test "$hardcode_minus_L_CXX" != no; then
13008    # Linking always hardcodes the temporary library directory.
13009    hardcode_action_CXX=relink
13010  else
13011    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13012    hardcode_action_CXX=immediate
13013  fi
13014else
13015  # We cannot hardcode anything, or else we can only hardcode existing
13016  # directories.
13017  hardcode_action_CXX=unsupported
13018fi
13019echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13020echo "${ECHO_T}$hardcode_action_CXX" >&6
13021
13022if test "$hardcode_action_CXX" = relink; then
13023  # Fast installation is not supported
13024  enable_fast_install=no
13025elif test "$shlibpath_overrides_runpath" = yes ||
13026     test "$enable_shared" = no; then
13027  # Fast installation is not necessary
13028  enable_fast_install=needless
13029fi
13030
13031
13032# The else clause should only fire when bootstrapping the
13033# libtool distribution, otherwise you forgot to ship ltmain.sh
13034# with your package, and you will get complaints that there are
13035# no rules to generate ltmain.sh.
13036if test -f "$ltmain"; then
13037  # See if we are running on zsh, and set the options which allow our commands through
13038  # without removal of \ escapes.
13039  if test -n "${ZSH_VERSION+set}" ; then
13040    setopt NO_GLOB_SUBST
13041  fi
13042  # Now quote all the things that may contain metacharacters while being
13043  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13044  # variables and quote the copies for generation of the libtool script.
13045  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13046    SED SHELL STRIP \
13047    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13048    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13049    deplibs_check_method reload_flag reload_cmds need_locks \
13050    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13051    lt_cv_sys_global_symbol_to_c_name_address \
13052    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13053    old_postinstall_cmds old_postuninstall_cmds \
13054    compiler_CXX \
13055    CC_CXX \
13056    LD_CXX \
13057    lt_prog_compiler_wl_CXX \
13058    lt_prog_compiler_pic_CXX \
13059    lt_prog_compiler_static_CXX \
13060    lt_prog_compiler_no_builtin_flag_CXX \
13061    export_dynamic_flag_spec_CXX \
13062    thread_safe_flag_spec_CXX \
13063    whole_archive_flag_spec_CXX \
13064    enable_shared_with_static_runtimes_CXX \
13065    old_archive_cmds_CXX \
13066    old_archive_from_new_cmds_CXX \
13067    predep_objects_CXX \
13068    postdep_objects_CXX \
13069    predeps_CXX \
13070    postdeps_CXX \
13071    compiler_lib_search_path_CXX \
13072    compiler_lib_search_dirs_CXX \
13073    archive_cmds_CXX \
13074    archive_expsym_cmds_CXX \
13075    postinstall_cmds_CXX \
13076    postuninstall_cmds_CXX \
13077    old_archive_from_expsyms_cmds_CXX \
13078    allow_undefined_flag_CXX \
13079    no_undefined_flag_CXX \
13080    export_symbols_cmds_CXX \
13081    hardcode_libdir_flag_spec_CXX \
13082    hardcode_libdir_flag_spec_ld_CXX \
13083    hardcode_libdir_separator_CXX \
13084    hardcode_automatic_CXX \
13085    module_cmds_CXX \
13086    module_expsym_cmds_CXX \
13087    lt_cv_prog_compiler_c_o_CXX \
13088    fix_srcfile_path_CXX \
13089    exclude_expsyms_CXX \
13090    include_expsyms_CXX; do
13091
13092    case $var in
13093    old_archive_cmds_CXX | \
13094    old_archive_from_new_cmds_CXX | \
13095    archive_cmds_CXX | \
13096    archive_expsym_cmds_CXX | \
13097    module_cmds_CXX | \
13098    module_expsym_cmds_CXX | \
13099    old_archive_from_expsyms_cmds_CXX | \
13100    export_symbols_cmds_CXX | \
13101    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13102    postinstall_cmds | postuninstall_cmds | \
13103    old_postinstall_cmds | old_postuninstall_cmds | \
13104    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13105      # Double-quote double-evaled strings.
13106      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13107      ;;
13108    *)
13109      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13110      ;;
13111    esac
13112  done
13113
13114  case $lt_echo in
13115  *'\$0 --fallback-echo"')
13116    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13117    ;;
13118  esac
13119
13120cfgfile="$ofile"
13121
13122  cat <<__EOF__ >> "$cfgfile"
13123# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13124
13125# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13126
13127# Shell to use when invoking shell scripts.
13128SHELL=$lt_SHELL
13129
13130# Whether or not to build shared libraries.
13131build_libtool_libs=$enable_shared
13132
13133# Whether or not to build static libraries.
13134build_old_libs=$enable_static
13135
13136# Whether or not to add -lc for building shared libraries.
13137build_libtool_need_lc=$archive_cmds_need_lc_CXX
13138
13139# Whether or not to disallow shared libs when runtime libs are static
13140allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13141
13142# Whether or not to optimize for fast installation.
13143fast_install=$enable_fast_install
13144
13145# The host system.
13146host_alias=$host_alias
13147host=$host
13148host_os=$host_os
13149
13150# The build system.
13151build_alias=$build_alias
13152build=$build
13153build_os=$build_os
13154
13155# An echo program that does not interpret backslashes.
13156echo=$lt_echo
13157
13158# The archiver.
13159AR=$lt_AR
13160AR_FLAGS=$lt_AR_FLAGS
13161
13162# A C compiler.
13163LTCC=$lt_LTCC
13164
13165# LTCC compiler flags.
13166LTCFLAGS=$lt_LTCFLAGS
13167
13168# A language-specific compiler.
13169CC=$lt_compiler_CXX
13170
13171# Is the compiler the GNU C compiler?
13172with_gcc=$GCC_CXX
13173
13174# An ERE matcher.
13175EGREP=$lt_EGREP
13176
13177# The linker used to build libraries.
13178LD=$lt_LD_CXX
13179
13180# Whether we need hard or soft links.
13181LN_S=$lt_LN_S
13182
13183# A BSD-compatible nm program.
13184NM=$lt_NM
13185
13186# A symbol stripping program
13187STRIP=$lt_STRIP
13188
13189# Used to examine libraries when file_magic_cmd begins "file"
13190MAGIC_CMD=$MAGIC_CMD
13191
13192# Used on cygwin: DLL creation program.
13193DLLTOOL="$DLLTOOL"
13194
13195# Used on cygwin: object dumper.
13196OBJDUMP="$OBJDUMP"
13197
13198# Used on cygwin: assembler.
13199AS="$AS"
13200
13201# The name of the directory that contains temporary libtool files.
13202objdir=$objdir
13203
13204# How to create reloadable object files.
13205reload_flag=$lt_reload_flag
13206reload_cmds=$lt_reload_cmds
13207
13208# How to pass a linker flag through the compiler.
13209wl=$lt_lt_prog_compiler_wl_CXX
13210
13211# Object file suffix (normally "o").
13212objext="$ac_objext"
13213
13214# Old archive suffix (normally "a").
13215libext="$libext"
13216
13217# Shared library suffix (normally ".so").
13218shrext_cmds='$shrext_cmds'
13219
13220# Executable file suffix (normally "").
13221exeext="$exeext"
13222
13223# Additional compiler flags for building library objects.
13224pic_flag=$lt_lt_prog_compiler_pic_CXX
13225pic_mode=$pic_mode
13226
13227# What is the maximum length of a command?
13228max_cmd_len=$lt_cv_sys_max_cmd_len
13229
13230# Does compiler simultaneously support -c and -o options?
13231compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13232
13233# Must we lock files when doing compilation?
13234need_locks=$lt_need_locks
13235
13236# Do we need the lib prefix for modules?
13237need_lib_prefix=$need_lib_prefix
13238
13239# Do we need a version for libraries?
13240need_version=$need_version
13241
13242# Whether dlopen is supported.
13243dlopen_support=$enable_dlopen
13244
13245# Whether dlopen of programs is supported.
13246dlopen_self=$enable_dlopen_self
13247
13248# Whether dlopen of statically linked programs is supported.
13249dlopen_self_static=$enable_dlopen_self_static
13250
13251# Compiler flag to prevent dynamic linking.
13252link_static_flag=$lt_lt_prog_compiler_static_CXX
13253
13254# Compiler flag to turn off builtin functions.
13255no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13256
13257# Compiler flag to allow reflexive dlopens.
13258export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13259
13260# Compiler flag to generate shared objects directly from archives.
13261whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13262
13263# Compiler flag to generate thread-safe objects.
13264thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13265
13266# Library versioning type.
13267version_type=$version_type
13268
13269# Format of library name prefix.
13270libname_spec=$lt_libname_spec
13271
13272# List of archive names.  First name is the real one, the rest are links.
13273# The last name is the one that the linker finds with -lNAME.
13274library_names_spec=$lt_library_names_spec
13275
13276# The coded name of the library, if different from the real name.
13277soname_spec=$lt_soname_spec
13278
13279# Commands used to build and install an old-style archive.
13280RANLIB=$lt_RANLIB
13281old_archive_cmds=$lt_old_archive_cmds_CXX
13282old_postinstall_cmds=$lt_old_postinstall_cmds
13283old_postuninstall_cmds=$lt_old_postuninstall_cmds
13284
13285# Create an old-style archive from a shared archive.
13286old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13287
13288# Create a temporary old-style archive to link instead of a shared archive.
13289old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13290
13291# Commands used to build and install a shared archive.
13292archive_cmds=$lt_archive_cmds_CXX
13293archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13294postinstall_cmds=$lt_postinstall_cmds
13295postuninstall_cmds=$lt_postuninstall_cmds
13296
13297# Commands used to build a loadable module (assumed same as above if empty)
13298module_cmds=$lt_module_cmds_CXX
13299module_expsym_cmds=$lt_module_expsym_cmds_CXX
13300
13301# Commands to strip libraries.
13302old_striplib=$lt_old_striplib
13303striplib=$lt_striplib
13304
13305# Dependencies to place before the objects being linked to create a
13306# shared library.
13307predep_objects=$lt_predep_objects_CXX
13308
13309# Dependencies to place after the objects being linked to create a
13310# shared library.
13311postdep_objects=$lt_postdep_objects_CXX
13312
13313# Dependencies to place before the objects being linked to create a
13314# shared library.
13315predeps=$lt_predeps_CXX
13316
13317# Dependencies to place after the objects being linked to create a
13318# shared library.
13319postdeps=$lt_postdeps_CXX
13320
13321# The directories searched by this compiler when creating a shared
13322# library
13323compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13324
13325# The library search path used internally by the compiler when linking
13326# a shared library.
13327compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13328
13329# Method to check whether dependent libraries are shared objects.
13330deplibs_check_method=$lt_deplibs_check_method
13331
13332# Command to use when deplibs_check_method == file_magic.
13333file_magic_cmd=$lt_file_magic_cmd
13334
13335# Flag that allows shared libraries with undefined symbols to be built.
13336allow_undefined_flag=$lt_allow_undefined_flag_CXX
13337
13338# Flag that forces no undefined symbols.
13339no_undefined_flag=$lt_no_undefined_flag_CXX
13340
13341# Commands used to finish a libtool library installation in a directory.
13342finish_cmds=$lt_finish_cmds
13343
13344# Same as above, but a single script fragment to be evaled but not shown.
13345finish_eval=$lt_finish_eval
13346
13347# Take the output of nm and produce a listing of raw symbols and C names.
13348global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13349
13350# Transform the output of nm in a proper C declaration
13351global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13352
13353# Transform the output of nm in a C name address pair
13354global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13355
13356# This is the shared library runtime path variable.
13357runpath_var=$runpath_var
13358
13359# This is the shared library path variable.
13360shlibpath_var=$shlibpath_var
13361
13362# Is shlibpath searched before the hard-coded library search path?
13363shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13364
13365# How to hardcode a shared library path into an executable.
13366hardcode_action=$hardcode_action_CXX
13367
13368# Whether we should hardcode library paths into libraries.
13369hardcode_into_libs=$hardcode_into_libs
13370
13371# Flag to hardcode \$libdir into a binary during linking.
13372# This must work even if \$libdir does not exist.
13373hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13374
13375# If ld is used when linking, flag to hardcode \$libdir into
13376# a binary during linking. This must work even if \$libdir does
13377# not exist.
13378hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13379
13380# Whether we need a single -rpath flag with a separated argument.
13381hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13382
13383# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13384# resulting binary.
13385hardcode_direct=$hardcode_direct_CXX
13386
13387# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13388# resulting binary.
13389hardcode_minus_L=$hardcode_minus_L_CXX
13390
13391# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13392# the resulting binary.
13393hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13394
13395# Set to yes if building a shared library automatically hardcodes DIR into the library
13396# and all subsequent libraries and executables linked against it.
13397hardcode_automatic=$hardcode_automatic_CXX
13398
13399# Variables whose values should be saved in libtool wrapper scripts and
13400# restored at relink time.
13401variables_saved_for_relink="$variables_saved_for_relink"
13402
13403# Whether libtool must link a program against all its dependency libraries.
13404link_all_deplibs=$link_all_deplibs_CXX
13405
13406# Compile-time system search path for libraries
13407sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13408
13409# Run-time system search path for libraries
13410sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13411
13412# Fix the shell variable \$srcfile for the compiler.
13413fix_srcfile_path=$lt_fix_srcfile_path
13414
13415# Set to yes if exported symbols are required.
13416always_export_symbols=$always_export_symbols_CXX
13417
13418# The commands to list exported symbols.
13419export_symbols_cmds=$lt_export_symbols_cmds_CXX
13420
13421# The commands to extract the exported symbol list from a shared archive.
13422extract_expsyms_cmds=$lt_extract_expsyms_cmds
13423
13424# Symbols that should not be listed in the preloaded symbols.
13425exclude_expsyms=$lt_exclude_expsyms_CXX
13426
13427# Symbols that must always be exported.
13428include_expsyms=$lt_include_expsyms_CXX
13429
13430# ### END LIBTOOL TAG CONFIG: $tagname
13431
13432__EOF__
13433
13434
13435else
13436  # If there is no Makefile yet, we rely on a make rule to execute
13437  # `config.status --recheck' to rerun these tests and create the
13438  # libtool script then.
13439  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13440  if test -f "$ltmain_in"; then
13441    test -f Makefile && make "$ltmain"
13442  fi
13443fi
13444
13445
13446ac_ext=c
13447ac_cpp='$CPP $CPPFLAGS'
13448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13449ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13450ac_compiler_gnu=$ac_cv_c_compiler_gnu
13451
13452CC=$lt_save_CC
13453LDCXX=$LD
13454LD=$lt_save_LD
13455GCC=$lt_save_GCC
13456with_gnu_ldcxx=$with_gnu_ld
13457with_gnu_ld=$lt_save_with_gnu_ld
13458lt_cv_path_LDCXX=$lt_cv_path_LD
13459lt_cv_path_LD=$lt_save_path_LD
13460lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13461lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13462
13463	else
13464	  tagname=""
13465	fi
13466	;;
13467
13468      F77)
13469	if test -n "$F77" && test "X$F77" != "Xno"; then
13470
13471ac_ext=f
13472ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13473ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13474ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13475
13476
13477archive_cmds_need_lc_F77=no
13478allow_undefined_flag_F77=
13479always_export_symbols_F77=no
13480archive_expsym_cmds_F77=
13481export_dynamic_flag_spec_F77=
13482hardcode_direct_F77=no
13483hardcode_libdir_flag_spec_F77=
13484hardcode_libdir_flag_spec_ld_F77=
13485hardcode_libdir_separator_F77=
13486hardcode_minus_L_F77=no
13487hardcode_automatic_F77=no
13488module_cmds_F77=
13489module_expsym_cmds_F77=
13490link_all_deplibs_F77=unknown
13491old_archive_cmds_F77=$old_archive_cmds
13492no_undefined_flag_F77=
13493whole_archive_flag_spec_F77=
13494enable_shared_with_static_runtimes_F77=no
13495
13496# Source file extension for f77 test sources.
13497ac_ext=f
13498
13499# Object file extension for compiled f77 test sources.
13500objext=o
13501objext_F77=$objext
13502
13503# Code to be used in simple compile tests
13504lt_simple_compile_test_code="\
13505      subroutine t
13506      return
13507      end
13508"
13509
13510# Code to be used in simple link tests
13511lt_simple_link_test_code="\
13512      program t
13513      end
13514"
13515
13516# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13517
13518# If no C compiler was specified, use CC.
13519LTCC=${LTCC-"$CC"}
13520
13521# If no C compiler flags were specified, use CFLAGS.
13522LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13523
13524# Allow CC to be a program name with arguments.
13525compiler=$CC
13526
13527
13528# save warnings/boilerplate of simple test code
13529ac_outfile=conftest.$ac_objext
13530echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13531eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13532_lt_compiler_boilerplate=`cat conftest.err`
13533$rm conftest*
13534
13535ac_outfile=conftest.$ac_objext
13536echo "$lt_simple_link_test_code" >conftest.$ac_ext
13537eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13538_lt_linker_boilerplate=`cat conftest.err`
13539$rm -r conftest*
13540
13541
13542# Allow CC to be a program name with arguments.
13543lt_save_CC="$CC"
13544CC=${F77-"f77"}
13545compiler=$CC
13546compiler_F77=$CC
13547for cc_temp in $compiler""; do
13548  case $cc_temp in
13549    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13550    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13551    \-*) ;;
13552    *) break;;
13553  esac
13554done
13555cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13556
13557
13558echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13559echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13560echo "$as_me:$LINENO: result: $can_build_shared" >&5
13561echo "${ECHO_T}$can_build_shared" >&6
13562
13563echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13564echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13565test "$can_build_shared" = "no" && enable_shared=no
13566
13567# On AIX, shared libraries and static libraries use the same namespace, and
13568# are all built from PIC.
13569case $host_os in
13570aix3*)
13571  test "$enable_shared" = yes && enable_static=no
13572  if test -n "$RANLIB"; then
13573    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13574    postinstall_cmds='$RANLIB $lib'
13575  fi
13576  ;;
13577aix[4-9]*)
13578  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13579    test "$enable_shared" = yes && enable_static=no
13580  fi
13581  ;;
13582esac
13583echo "$as_me:$LINENO: result: $enable_shared" >&5
13584echo "${ECHO_T}$enable_shared" >&6
13585
13586echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13587echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13588# Make sure either enable_shared or enable_static is yes.
13589test "$enable_shared" = yes || enable_static=yes
13590echo "$as_me:$LINENO: result: $enable_static" >&5
13591echo "${ECHO_T}$enable_static" >&6
13592
13593GCC_F77="$G77"
13594LD_F77="$LD"
13595
13596lt_prog_compiler_wl_F77=
13597lt_prog_compiler_pic_F77=
13598lt_prog_compiler_static_F77=
13599
13600echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13601echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13602
13603  if test "$GCC" = yes; then
13604    lt_prog_compiler_wl_F77='-Wl,'
13605    lt_prog_compiler_static_F77='-static'
13606
13607    case $host_os in
13608      aix*)
13609      # All AIX code is PIC.
13610      if test "$host_cpu" = ia64; then
13611	# AIX 5 now supports IA64 processor
13612	lt_prog_compiler_static_F77='-Bstatic'
13613      fi
13614      ;;
13615
13616    amigaos*)
13617      # FIXME: we need at least 68020 code to build shared libraries, but
13618      # adding the `-m68020' flag to GCC prevents building anything better,
13619      # like `-m68040'.
13620      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13621      ;;
13622
13623    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13624      # PIC is the default for these OSes.
13625      ;;
13626
13627    mingw* | cygwin* | pw32* | os2*)
13628      # This hack is so that the source file can tell whether it is being
13629      # built for inclusion in a dll (and should export symbols for example).
13630      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13631      # (--disable-auto-import) libraries
13632      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13633      ;;
13634
13635    darwin* | rhapsody*)
13636      # PIC is the default on this platform
13637      # Common symbols not allowed in MH_DYLIB files
13638      lt_prog_compiler_pic_F77='-fno-common'
13639      ;;
13640
13641    interix[3-9]*)
13642      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13643      # Instead, we relocate shared libraries at runtime.
13644      ;;
13645
13646    msdosdjgpp*)
13647      # Just because we use GCC doesn't mean we suddenly get shared libraries
13648      # on systems that don't support them.
13649      lt_prog_compiler_can_build_shared_F77=no
13650      enable_shared=no
13651      ;;
13652
13653    sysv4*MP*)
13654      if test -d /usr/nec; then
13655	lt_prog_compiler_pic_F77=-Kconform_pic
13656      fi
13657      ;;
13658
13659    hpux*)
13660      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13661      # not for PA HP-UX.
13662      case $host_cpu in
13663      hppa*64*|ia64*)
13664	# +Z the default
13665	;;
13666      *)
13667	lt_prog_compiler_pic_F77='-fPIC'
13668	;;
13669      esac
13670      ;;
13671
13672    *)
13673      lt_prog_compiler_pic_F77='-fPIC'
13674      ;;
13675    esac
13676  else
13677    # PORTME Check for flag to pass linker flags through the system compiler.
13678    case $host_os in
13679    aix*)
13680      lt_prog_compiler_wl_F77='-Wl,'
13681      if test "$host_cpu" = ia64; then
13682	# AIX 5 now supports IA64 processor
13683	lt_prog_compiler_static_F77='-Bstatic'
13684      else
13685	lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13686      fi
13687      ;;
13688      darwin*)
13689        # PIC is the default on this platform
13690        # Common symbols not allowed in MH_DYLIB files
13691       case $cc_basename in
13692         xlc*)
13693         lt_prog_compiler_pic_F77='-qnocommon'
13694         lt_prog_compiler_wl_F77='-Wl,'
13695         ;;
13696       esac
13697       ;;
13698
13699    mingw* | cygwin* | pw32* | os2*)
13700      # This hack is so that the source file can tell whether it is being
13701      # built for inclusion in a dll (and should export symbols for example).
13702      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13703      ;;
13704
13705    hpux9* | hpux10* | hpux11*)
13706      lt_prog_compiler_wl_F77='-Wl,'
13707      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13708      # not for PA HP-UX.
13709      case $host_cpu in
13710      hppa*64*|ia64*)
13711	# +Z the default
13712	;;
13713      *)
13714	lt_prog_compiler_pic_F77='+Z'
13715	;;
13716      esac
13717      # Is there a better lt_prog_compiler_static that works with the bundled CC?
13718      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13719      ;;
13720
13721    irix5* | irix6* | nonstopux*)
13722      lt_prog_compiler_wl_F77='-Wl,'
13723      # PIC (with -KPIC) is the default.
13724      lt_prog_compiler_static_F77='-non_shared'
13725      ;;
13726
13727    newsos6)
13728      lt_prog_compiler_pic_F77='-KPIC'
13729      lt_prog_compiler_static_F77='-Bstatic'
13730      ;;
13731
13732    linux* | k*bsd*-gnu)
13733      case $cc_basename in
13734      icc* | ecc*)
13735	lt_prog_compiler_wl_F77='-Wl,'
13736	lt_prog_compiler_pic_F77='-KPIC'
13737	lt_prog_compiler_static_F77='-static'
13738        ;;
13739      pgcc* | pgf77* | pgf90* | pgf95*)
13740        # Portland Group compilers (*not* the Pentium gcc compiler,
13741	# which looks to be a dead project)
13742	lt_prog_compiler_wl_F77='-Wl,'
13743	lt_prog_compiler_pic_F77='-fpic'
13744	lt_prog_compiler_static_F77='-Bstatic'
13745        ;;
13746      ccc*)
13747        lt_prog_compiler_wl_F77='-Wl,'
13748        # All Alpha code is PIC.
13749        lt_prog_compiler_static_F77='-non_shared'
13750        ;;
13751      *)
13752        case `$CC -V 2>&1 | sed 5q` in
13753	*Sun\ C*)
13754	  # Sun C 5.9
13755	  lt_prog_compiler_pic_F77='-KPIC'
13756	  lt_prog_compiler_static_F77='-Bstatic'
13757	  lt_prog_compiler_wl_F77='-Wl,'
13758	  ;;
13759	*Sun\ F*)
13760	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
13761	  lt_prog_compiler_pic_F77='-KPIC'
13762	  lt_prog_compiler_static_F77='-Bstatic'
13763	  lt_prog_compiler_wl_F77=''
13764	  ;;
13765	esac
13766	;;
13767      esac
13768      ;;
13769
13770    osf3* | osf4* | osf5*)
13771      lt_prog_compiler_wl_F77='-Wl,'
13772      # All OSF/1 code is PIC.
13773      lt_prog_compiler_static_F77='-non_shared'
13774      ;;
13775
13776    rdos*)
13777      lt_prog_compiler_static_F77='-non_shared'
13778      ;;
13779
13780    solaris*)
13781      lt_prog_compiler_pic_F77='-KPIC'
13782      lt_prog_compiler_static_F77='-Bstatic'
13783      case $cc_basename in
13784      f77* | f90* | f95*)
13785	lt_prog_compiler_wl_F77='-Qoption ld ';;
13786      *)
13787	lt_prog_compiler_wl_F77='-Wl,';;
13788      esac
13789      ;;
13790
13791    sunos4*)
13792      lt_prog_compiler_wl_F77='-Qoption ld '
13793      lt_prog_compiler_pic_F77='-PIC'
13794      lt_prog_compiler_static_F77='-Bstatic'
13795      ;;
13796
13797    sysv4 | sysv4.2uw2* | sysv4.3*)
13798      lt_prog_compiler_wl_F77='-Wl,'
13799      lt_prog_compiler_pic_F77='-KPIC'
13800      lt_prog_compiler_static_F77='-Bstatic'
13801      ;;
13802
13803    sysv4*MP*)
13804      if test -d /usr/nec ;then
13805	lt_prog_compiler_pic_F77='-Kconform_pic'
13806	lt_prog_compiler_static_F77='-Bstatic'
13807      fi
13808      ;;
13809
13810    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13811      lt_prog_compiler_wl_F77='-Wl,'
13812      lt_prog_compiler_pic_F77='-KPIC'
13813      lt_prog_compiler_static_F77='-Bstatic'
13814      ;;
13815
13816    unicos*)
13817      lt_prog_compiler_wl_F77='-Wl,'
13818      lt_prog_compiler_can_build_shared_F77=no
13819      ;;
13820
13821    uts4*)
13822      lt_prog_compiler_pic_F77='-pic'
13823      lt_prog_compiler_static_F77='-Bstatic'
13824      ;;
13825
13826    *)
13827      lt_prog_compiler_can_build_shared_F77=no
13828      ;;
13829    esac
13830  fi
13831
13832echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13833echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13834
13835#
13836# Check to make sure the PIC flag actually works.
13837#
13838if test -n "$lt_prog_compiler_pic_F77"; then
13839
13840echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13841echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13842if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13843  echo $ECHO_N "(cached) $ECHO_C" >&6
13844else
13845  lt_cv_prog_compiler_pic_works_F77=no
13846  ac_outfile=conftest.$ac_objext
13847   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13848   lt_compiler_flag="$lt_prog_compiler_pic_F77"
13849   # Insert the option either (1) after the last *FLAGS variable, or
13850   # (2) before a word containing "conftest.", or (3) at the end.
13851   # Note that $ac_compile itself does not contain backslashes and begins
13852   # with a dollar sign (not a hyphen), so the echo should work correctly.
13853   # The option is referenced via a variable to avoid confusing sed.
13854   lt_compile=`echo "$ac_compile" | $SED \
13855   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13856   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13857   -e 's:$: $lt_compiler_flag:'`
13858   (eval echo "\"\$as_me:13858: $lt_compile\"" >&5)
13859   (eval "$lt_compile" 2>conftest.err)
13860   ac_status=$?
13861   cat conftest.err >&5
13862   echo "$as_me:13862: \$? = $ac_status" >&5
13863   if (exit $ac_status) && test -s "$ac_outfile"; then
13864     # The compiler can only warn and ignore the option if not recognized
13865     # So say no if there are warnings other than the usual output.
13866     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13867     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13868     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13869       lt_cv_prog_compiler_pic_works_F77=yes
13870     fi
13871   fi
13872   $rm conftest*
13873
13874fi
13875echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13876echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6
13877
13878if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13879    case $lt_prog_compiler_pic_F77 in
13880     "" | " "*) ;;
13881     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13882     esac
13883else
13884    lt_prog_compiler_pic_F77=
13885     lt_prog_compiler_can_build_shared_F77=no
13886fi
13887
13888fi
13889case $host_os in
13890  # For platforms which do not support PIC, -DPIC is meaningless:
13891  *djgpp*)
13892    lt_prog_compiler_pic_F77=
13893    ;;
13894  *)
13895    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13896    ;;
13897esac
13898
13899#
13900# Check to make sure the static flag actually works.
13901#
13902wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13903echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13904echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13905if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13906  echo $ECHO_N "(cached) $ECHO_C" >&6
13907else
13908  lt_cv_prog_compiler_static_works_F77=no
13909   save_LDFLAGS="$LDFLAGS"
13910   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13911   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13912   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13913     # The linker can only warn and ignore the option if not recognized
13914     # So say no if there are warnings
13915     if test -s conftest.err; then
13916       # Append any errors to the config.log.
13917       cat conftest.err 1>&5
13918       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13919       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13920       if diff conftest.exp conftest.er2 >/dev/null; then
13921         lt_cv_prog_compiler_static_works_F77=yes
13922       fi
13923     else
13924       lt_cv_prog_compiler_static_works_F77=yes
13925     fi
13926   fi
13927   $rm -r conftest*
13928   LDFLAGS="$save_LDFLAGS"
13929
13930fi
13931echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13932echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6
13933
13934if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13935    :
13936else
13937    lt_prog_compiler_static_F77=
13938fi
13939
13940
13941echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13942echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13943if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13944  echo $ECHO_N "(cached) $ECHO_C" >&6
13945else
13946  lt_cv_prog_compiler_c_o_F77=no
13947   $rm -r conftest 2>/dev/null
13948   mkdir conftest
13949   cd conftest
13950   mkdir out
13951   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13952
13953   lt_compiler_flag="-o out/conftest2.$ac_objext"
13954   # Insert the option either (1) after the last *FLAGS variable, or
13955   # (2) before a word containing "conftest.", or (3) at the end.
13956   # Note that $ac_compile itself does not contain backslashes and begins
13957   # with a dollar sign (not a hyphen), so the echo should work correctly.
13958   lt_compile=`echo "$ac_compile" | $SED \
13959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13961   -e 's:$: $lt_compiler_flag:'`
13962   (eval echo "\"\$as_me:13962: $lt_compile\"" >&5)
13963   (eval "$lt_compile" 2>out/conftest.err)
13964   ac_status=$?
13965   cat out/conftest.err >&5
13966   echo "$as_me:13966: \$? = $ac_status" >&5
13967   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13968   then
13969     # The compiler can only warn and ignore the option if not recognized
13970     # So say no if there are warnings
13971     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13972     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13973     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13974       lt_cv_prog_compiler_c_o_F77=yes
13975     fi
13976   fi
13977   chmod u+w . 2>&5
13978   $rm conftest*
13979   # SGI C++ compiler will create directory out/ii_files/ for
13980   # template instantiation
13981   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13982   $rm out/* && rmdir out
13983   cd ..
13984   rmdir conftest
13985   $rm conftest*
13986
13987fi
13988echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13989echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13990
13991
13992hard_links="nottested"
13993if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13994  # do not overwrite the value of need_locks provided by the user
13995  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13996echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13997  hard_links=yes
13998  $rm conftest*
13999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14000  touch conftest.a
14001  ln conftest.a conftest.b 2>&5 || hard_links=no
14002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
14003  echo "$as_me:$LINENO: result: $hard_links" >&5
14004echo "${ECHO_T}$hard_links" >&6
14005  if test "$hard_links" = no; then
14006    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14007echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14008    need_locks=warn
14009  fi
14010else
14011  need_locks=no
14012fi
14013
14014echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14015echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14016
14017  runpath_var=
14018  allow_undefined_flag_F77=
14019  enable_shared_with_static_runtimes_F77=no
14020  archive_cmds_F77=
14021  archive_expsym_cmds_F77=
14022  old_archive_From_new_cmds_F77=
14023  old_archive_from_expsyms_cmds_F77=
14024  export_dynamic_flag_spec_F77=
14025  whole_archive_flag_spec_F77=
14026  thread_safe_flag_spec_F77=
14027  hardcode_libdir_flag_spec_F77=
14028  hardcode_libdir_flag_spec_ld_F77=
14029  hardcode_libdir_separator_F77=
14030  hardcode_direct_F77=no
14031  hardcode_minus_L_F77=no
14032  hardcode_shlibpath_var_F77=unsupported
14033  link_all_deplibs_F77=unknown
14034  hardcode_automatic_F77=no
14035  module_cmds_F77=
14036  module_expsym_cmds_F77=
14037  always_export_symbols_F77=no
14038  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14039  # include_expsyms should be a list of space-separated symbols to be *always*
14040  # included in the symbol list
14041  include_expsyms_F77=
14042  # exclude_expsyms can be an extended regexp of symbols to exclude
14043  # it will be wrapped by ` (' and `)$', so one must not match beginning or
14044  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14045  # as well as any symbol that contains `d'.
14046  exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14047  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14048  # platforms (ab)use it in PIC code, but their linkers get confused if
14049  # the symbol is explicitly referenced.  Since portable code cannot
14050  # rely on this symbol name, it's probably fine to never include it in
14051  # preloaded symbol tables.
14052  # Exclude shared library initialization/finalization symbols.
14053  extract_expsyms_cmds=
14054  # Just being paranoid about ensuring that cc_basename is set.
14055  for cc_temp in $compiler""; do
14056  case $cc_temp in
14057    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14058    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14059    \-*) ;;
14060    *) break;;
14061  esac
14062done
14063cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14064
14065  case $host_os in
14066  cygwin* | mingw* | pw32*)
14067    # FIXME: the MSVC++ port hasn't been tested in a loooong time
14068    # When not using gcc, we currently assume that we are using
14069    # Microsoft Visual C++.
14070    if test "$GCC" != yes; then
14071      with_gnu_ld=no
14072    fi
14073    ;;
14074  interix*)
14075    # we just hope/assume this is gcc and not c89 (= MSVC++)
14076    with_gnu_ld=yes
14077    ;;
14078  openbsd*)
14079    with_gnu_ld=no
14080    ;;
14081  esac
14082
14083  ld_shlibs_F77=yes
14084  if test "$with_gnu_ld" = yes; then
14085    # If archive_cmds runs LD, not CC, wlarc should be empty
14086    wlarc='${wl}'
14087
14088    # Set some defaults for GNU ld with shared library support. These
14089    # are reset later if shared libraries are not supported. Putting them
14090    # here allows them to be overridden if necessary.
14091    runpath_var=LD_RUN_PATH
14092    hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14093    export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14094    # ancient GNU ld didn't support --whole-archive et. al.
14095    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14096	whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14097      else
14098  	whole_archive_flag_spec_F77=
14099    fi
14100    supports_anon_versioning=no
14101    case `$LD -v 2>/dev/null` in
14102      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14103      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14104      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14105      *\ 2.11.*) ;; # other 2.11 versions
14106      *) supports_anon_versioning=yes ;;
14107    esac
14108
14109    # See if GNU ld supports shared libraries.
14110    case $host_os in
14111    aix[3-9]*)
14112      # On AIX/PPC, the GNU linker is very broken
14113      if test "$host_cpu" != ia64; then
14114	ld_shlibs_F77=no
14115	cat <<EOF 1>&2
14116
14117*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14118*** to be unable to reliably create shared libraries on AIX.
14119*** Therefore, libtool is disabling shared libraries support.  If you
14120*** really care for shared libraries, you may want to modify your PATH
14121*** so that a non-GNU linker is found, and then restart.
14122
14123EOF
14124      fi
14125      ;;
14126
14127    amigaos*)
14128      archive_cmds_F77='$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)'
14129      hardcode_libdir_flag_spec_F77='-L$libdir'
14130      hardcode_minus_L_F77=yes
14131
14132      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14133      # that the semantics of dynamic libraries on AmigaOS, at least up
14134      # to version 4, is to share data among multiple programs linked
14135      # with the same dynamic library.  Since this doesn't match the
14136      # behavior of shared libraries on other platforms, we can't use
14137      # them.
14138      ld_shlibs_F77=no
14139      ;;
14140
14141    beos*)
14142      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14143	allow_undefined_flag_F77=unsupported
14144	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14145	# support --undefined.  This deserves some investigation.  FIXME
14146	archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147      else
14148	ld_shlibs_F77=no
14149      fi
14150      ;;
14151
14152    cygwin* | mingw* | pw32*)
14153      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14154      # as there is no search path for DLLs.
14155      hardcode_libdir_flag_spec_F77='-L$libdir'
14156      allow_undefined_flag_F77=unsupported
14157      always_export_symbols_F77=no
14158      enable_shared_with_static_runtimes_F77=yes
14159      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14160
14161      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14162        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14163	# If the export-symbols file already is a .def file (1st line
14164	# is EXPORTS), use it as is; otherwise, prepend...
14165	archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14166	  cp $export_symbols $output_objdir/$soname.def;
14167	else
14168	  echo EXPORTS > $output_objdir/$soname.def;
14169	  cat $export_symbols >> $output_objdir/$soname.def;
14170	fi~
14171	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14172      else
14173	ld_shlibs_F77=no
14174      fi
14175      ;;
14176
14177    interix[3-9]*)
14178      hardcode_direct_F77=no
14179      hardcode_shlibpath_var_F77=no
14180      hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14181      export_dynamic_flag_spec_F77='${wl}-E'
14182      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14183      # Instead, shared libraries are loaded at an image base (0x10000000 by
14184      # default) and relocated if they conflict, which is a slow very memory
14185      # consuming and fragmenting process.  To avoid this, we pick a random,
14186      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14187      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14188      archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14189      archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14190      ;;
14191
14192    gnu* | linux* | k*bsd*-gnu)
14193      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14194	tmp_addflag=
14195	case $cc_basename,$host_cpu in
14196	pgcc*)				# Portland Group C compiler
14197	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14198	  tmp_addflag=' $pic_flag'
14199	  ;;
14200	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
14201	  whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14202	  tmp_addflag=' $pic_flag -Mnomain' ;;
14203	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
14204	  tmp_addflag=' -i_dynamic' ;;
14205	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
14206	  tmp_addflag=' -i_dynamic -nofor_main' ;;
14207	ifc* | ifort*)			# Intel Fortran compiler
14208	  tmp_addflag=' -nofor_main' ;;
14209	esac
14210	case `$CC -V 2>&1 | sed 5q` in
14211	*Sun\ C*)			# Sun C 5.9
14212	  whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14213	  tmp_sharedflag='-G' ;;
14214	*Sun\ F*)			# Sun Fortran 8.3
14215	  tmp_sharedflag='-G' ;;
14216	*)
14217	  tmp_sharedflag='-shared' ;;
14218	esac
14219	archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14220
14221	if test $supports_anon_versioning = yes; then
14222	  archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14223  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14224  $echo "local: *; };" >> $output_objdir/$libname.ver~
14225	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14226	fi
14227      else
14228	ld_shlibs_F77=no
14229      fi
14230      ;;
14231
14232    netbsd*)
14233      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14234	archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14235	wlarc=
14236      else
14237	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14238	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14239      fi
14240      ;;
14241
14242    solaris*)
14243      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14244	ld_shlibs_F77=no
14245	cat <<EOF 1>&2
14246
14247*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14248*** create shared libraries on Solaris systems.  Therefore, libtool
14249*** is disabling shared libraries support.  We urge you to upgrade GNU
14250*** binutils to release 2.9.1 or newer.  Another option is to modify
14251*** your PATH or compiler configuration so that the native linker is
14252*** used, and then restart.
14253
14254EOF
14255      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14256	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14257	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14258      else
14259	ld_shlibs_F77=no
14260      fi
14261      ;;
14262
14263    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14264      case `$LD -v 2>&1` in
14265        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14266	ld_shlibs_F77=no
14267	cat <<_LT_EOF 1>&2
14268
14269*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14270*** reliably create shared libraries on SCO systems.  Therefore, libtool
14271*** is disabling shared libraries support.  We urge you to upgrade GNU
14272*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
14273*** your PATH or compiler configuration so that the native linker is
14274*** used, and then restart.
14275
14276_LT_EOF
14277	;;
14278	*)
14279	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14280	    hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14281	    archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14282	    archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14283	  else
14284	    ld_shlibs_F77=no
14285	  fi
14286	;;
14287      esac
14288      ;;
14289
14290    sunos4*)
14291      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14292      wlarc=
14293      hardcode_direct_F77=yes
14294      hardcode_shlibpath_var_F77=no
14295      ;;
14296
14297    *)
14298      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14299	archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14300	archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14301      else
14302	ld_shlibs_F77=no
14303      fi
14304      ;;
14305    esac
14306
14307    if test "$ld_shlibs_F77" = no; then
14308      runpath_var=
14309      hardcode_libdir_flag_spec_F77=
14310      export_dynamic_flag_spec_F77=
14311      whole_archive_flag_spec_F77=
14312    fi
14313  else
14314    # PORTME fill in a description of your system's linker (not GNU ld)
14315    case $host_os in
14316    aix3*)
14317      allow_undefined_flag_F77=unsupported
14318      always_export_symbols_F77=yes
14319      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14320      # Note: this linker hardcodes the directories in LIBPATH if there
14321      # are no directories specified by -L.
14322      hardcode_minus_L_F77=yes
14323      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14324	# Neither direct hardcoding nor static linking is supported with a
14325	# broken collect2.
14326	hardcode_direct_F77=unsupported
14327      fi
14328      ;;
14329
14330    aix[4-9]*)
14331      if test "$host_cpu" = ia64; then
14332	# On IA64, the linker does run time linking by default, so we don't
14333	# have to do anything special.
14334	aix_use_runtimelinking=no
14335	exp_sym_flag='-Bexport'
14336	no_entry_flag=""
14337      else
14338	# If we're using GNU nm, then we don't want the "-C" option.
14339	# -C means demangle to AIX nm, but means don't demangle with GNU nm
14340	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14341	  export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14342	else
14343	  export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14344	fi
14345	aix_use_runtimelinking=no
14346
14347	# Test if we are trying to use run time linking or normal
14348	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
14349	# need to do runtime linking.
14350	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14351	  for ld_flag in $LDFLAGS; do
14352  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14353  	    aix_use_runtimelinking=yes
14354  	    break
14355  	  fi
14356	  done
14357	  ;;
14358	esac
14359
14360	exp_sym_flag='-bexport'
14361	no_entry_flag='-bnoentry'
14362      fi
14363
14364      # When large executables or shared objects are built, AIX ld can
14365      # have problems creating the table of contents.  If linking a library
14366      # or program results in "error TOC overflow" add -mminimal-toc to
14367      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14368      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14369
14370      archive_cmds_F77=''
14371      hardcode_direct_F77=yes
14372      hardcode_libdir_separator_F77=':'
14373      link_all_deplibs_F77=yes
14374
14375      if test "$GCC" = yes; then
14376	case $host_os in aix4.[012]|aix4.[012].*)
14377	# We only want to do this on AIX 4.2 and lower, the check
14378	# below for broken collect2 doesn't work under 4.3+
14379	  collect2name=`${CC} -print-prog-name=collect2`
14380	  if test -f "$collect2name" && \
14381  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
14382	  then
14383  	  # We have reworked collect2
14384  	  :
14385	  else
14386  	  # We have old collect2
14387  	  hardcode_direct_F77=unsupported
14388  	  # It fails to find uninstalled libraries when the uninstalled
14389  	  # path is not listed in the libpath.  Setting hardcode_minus_L
14390  	  # to unsupported forces relinking
14391  	  hardcode_minus_L_F77=yes
14392  	  hardcode_libdir_flag_spec_F77='-L$libdir'
14393  	  hardcode_libdir_separator_F77=
14394	  fi
14395	  ;;
14396	esac
14397	shared_flag='-shared'
14398	if test "$aix_use_runtimelinking" = yes; then
14399	  shared_flag="$shared_flag "'${wl}-G'
14400	fi
14401      else
14402	# not using gcc
14403	if test "$host_cpu" = ia64; then
14404  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14405  	# chokes on -Wl,-G. The following line is correct:
14406	  shared_flag='-G'
14407	else
14408	  if test "$aix_use_runtimelinking" = yes; then
14409	    shared_flag='${wl}-G'
14410	  else
14411	    shared_flag='${wl}-bM:SRE'
14412	  fi
14413	fi
14414      fi
14415
14416      # It seems that -bexpall does not export symbols beginning with
14417      # underscore (_), so it is better to generate a list of symbols to export.
14418      always_export_symbols_F77=yes
14419      if test "$aix_use_runtimelinking" = yes; then
14420	# Warning - without using the other runtime loading flags (-brtl),
14421	# -berok will link without error, but may produce a broken library.
14422	allow_undefined_flag_F77='-berok'
14423       # Determine the default libpath from the value encoded in an empty executable.
14424       cat >conftest.$ac_ext <<_ACEOF
14425      program main
14426
14427      end
14428_ACEOF
14429rm -f conftest.$ac_objext conftest$ac_exeext
14430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14431  (eval $ac_link) 2>conftest.er1
14432  ac_status=$?
14433  grep -v '^ *+' conftest.er1 >conftest.err
14434  rm -f conftest.er1
14435  cat conftest.err >&5
14436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437  (exit $ac_status); } &&
14438	 { ac_try='test -z "$ac_f77_werror_flag"
14439			 || test ! -s conftest.err'
14440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14441  (eval $ac_try) 2>&5
14442  ac_status=$?
14443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444  (exit $ac_status); }; } &&
14445	 { ac_try='test -s conftest$ac_exeext'
14446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14447  (eval $ac_try) 2>&5
14448  ac_status=$?
14449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14450  (exit $ac_status); }; }; then
14451
14452lt_aix_libpath_sed='
14453    /Import File Strings/,/^$/ {
14454	/^0/ {
14455	    s/^0  *\(.*\)$/\1/
14456	    p
14457	}
14458    }'
14459aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14460# Check for a 64-bit object if we didn't find anything.
14461if test -z "$aix_libpath"; then
14462  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14463fi
14464else
14465  echo "$as_me: failed program was:" >&5
14466sed 's/^/| /' conftest.$ac_ext >&5
14467
14468fi
14469rm -f conftest.err conftest.$ac_objext \
14470      conftest$ac_exeext conftest.$ac_ext
14471if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14472
14473       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14474	archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14475       else
14476	if test "$host_cpu" = ia64; then
14477	  hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14478	  allow_undefined_flag_F77="-z nodefs"
14479	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14480	else
14481	 # Determine the default libpath from the value encoded in an empty executable.
14482	 cat >conftest.$ac_ext <<_ACEOF
14483      program main
14484
14485      end
14486_ACEOF
14487rm -f conftest.$ac_objext conftest$ac_exeext
14488if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14489  (eval $ac_link) 2>conftest.er1
14490  ac_status=$?
14491  grep -v '^ *+' conftest.er1 >conftest.err
14492  rm -f conftest.er1
14493  cat conftest.err >&5
14494  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14495  (exit $ac_status); } &&
14496	 { ac_try='test -z "$ac_f77_werror_flag"
14497			 || test ! -s conftest.err'
14498  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14499  (eval $ac_try) 2>&5
14500  ac_status=$?
14501  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502  (exit $ac_status); }; } &&
14503	 { ac_try='test -s conftest$ac_exeext'
14504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14505  (eval $ac_try) 2>&5
14506  ac_status=$?
14507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508  (exit $ac_status); }; }; then
14509
14510lt_aix_libpath_sed='
14511    /Import File Strings/,/^$/ {
14512	/^0/ {
14513	    s/^0  *\(.*\)$/\1/
14514	    p
14515	}
14516    }'
14517aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14518# Check for a 64-bit object if we didn't find anything.
14519if test -z "$aix_libpath"; then
14520  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14521fi
14522else
14523  echo "$as_me: failed program was:" >&5
14524sed 's/^/| /' conftest.$ac_ext >&5
14525
14526fi
14527rm -f conftest.err conftest.$ac_objext \
14528      conftest$ac_exeext conftest.$ac_ext
14529if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14530
14531	 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14532	  # Warning - without using the other run time loading flags,
14533	  # -berok will link without error, but may produce a broken library.
14534	  no_undefined_flag_F77=' ${wl}-bernotok'
14535	  allow_undefined_flag_F77=' ${wl}-berok'
14536	  # Exported symbols can be pulled into shared objects from archives
14537	  whole_archive_flag_spec_F77='$convenience'
14538	  archive_cmds_need_lc_F77=yes
14539	  # This is similar to how AIX traditionally builds its shared libraries.
14540	  archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14541	fi
14542      fi
14543      ;;
14544
14545    amigaos*)
14546      archive_cmds_F77='$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)'
14547      hardcode_libdir_flag_spec_F77='-L$libdir'
14548      hardcode_minus_L_F77=yes
14549      # see comment about different semantics on the GNU ld section
14550      ld_shlibs_F77=no
14551      ;;
14552
14553    bsdi[45]*)
14554      export_dynamic_flag_spec_F77=-rdynamic
14555      ;;
14556
14557    cygwin* | mingw* | pw32*)
14558      # When not using gcc, we currently assume that we are using
14559      # Microsoft Visual C++.
14560      # hardcode_libdir_flag_spec is actually meaningless, as there is
14561      # no search path for DLLs.
14562      hardcode_libdir_flag_spec_F77=' '
14563      allow_undefined_flag_F77=unsupported
14564      # Tell ltmain to make .lib files, not .a files.
14565      libext=lib
14566      # Tell ltmain to make .dll files, not .so files.
14567      shrext_cmds=".dll"
14568      # FIXME: Setting linknames here is a bad hack.
14569      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14570      # The linker will automatically build a .lib file if we build a DLL.
14571      old_archive_From_new_cmds_F77='true'
14572      # FIXME: Should let the user specify the lib program.
14573      old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14574      fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14575      enable_shared_with_static_runtimes_F77=yes
14576      ;;
14577
14578    darwin* | rhapsody*)
14579      case $host_os in
14580        rhapsody* | darwin1.[012])
14581         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14582         ;;
14583       *) # Darwin 1.3 on
14584         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14585           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14586         else
14587           case ${MACOSX_DEPLOYMENT_TARGET} in
14588             10.[012])
14589               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14590               ;;
14591             10.*)
14592               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14593               ;;
14594           esac
14595         fi
14596         ;;
14597      esac
14598      archive_cmds_need_lc_F77=no
14599      hardcode_direct_F77=no
14600      hardcode_automatic_F77=yes
14601      hardcode_shlibpath_var_F77=unsupported
14602      whole_archive_flag_spec_F77=''
14603      link_all_deplibs_F77=yes
14604    if test "$GCC" = yes ; then
14605    	output_verbose_link_cmd='echo'
14606        archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14607        module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14608        archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14609        module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14610    else
14611      case $cc_basename in
14612        xlc*)
14613         output_verbose_link_cmd='echo'
14614         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14615         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14616          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14617         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14618          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14619          ;;
14620       *)
14621         ld_shlibs_F77=no
14622          ;;
14623      esac
14624    fi
14625      ;;
14626
14627    dgux*)
14628      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14629      hardcode_libdir_flag_spec_F77='-L$libdir'
14630      hardcode_shlibpath_var_F77=no
14631      ;;
14632
14633    freebsd1*)
14634      ld_shlibs_F77=no
14635      ;;
14636
14637    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14638    # support.  Future versions do this automatically, but an explicit c++rt0.o
14639    # does not break anything, and helps significantly (at the cost of a little
14640    # extra space).
14641    freebsd2.2*)
14642      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14643      hardcode_libdir_flag_spec_F77='-R$libdir'
14644      hardcode_direct_F77=yes
14645      hardcode_shlibpath_var_F77=no
14646      ;;
14647
14648    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14649    freebsd2*)
14650      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14651      hardcode_direct_F77=yes
14652      hardcode_minus_L_F77=yes
14653      hardcode_shlibpath_var_F77=no
14654      ;;
14655
14656    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14657    freebsd* | dragonfly*)
14658      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14659      hardcode_libdir_flag_spec_F77='-R$libdir'
14660      hardcode_direct_F77=yes
14661      hardcode_shlibpath_var_F77=no
14662      ;;
14663
14664    hpux9*)
14665      if test "$GCC" = yes; then
14666	archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14667      else
14668	archive_cmds_F77='$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'
14669      fi
14670      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14671      hardcode_libdir_separator_F77=:
14672      hardcode_direct_F77=yes
14673
14674      # hardcode_minus_L: Not really in the search PATH,
14675      # but as the default location of the library.
14676      hardcode_minus_L_F77=yes
14677      export_dynamic_flag_spec_F77='${wl}-E'
14678      ;;
14679
14680    hpux10*)
14681      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14682	archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14683      else
14684	archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14685      fi
14686      if test "$with_gnu_ld" = no; then
14687	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14688	hardcode_libdir_separator_F77=:
14689
14690	hardcode_direct_F77=yes
14691	export_dynamic_flag_spec_F77='${wl}-E'
14692
14693	# hardcode_minus_L: Not really in the search PATH,
14694	# but as the default location of the library.
14695	hardcode_minus_L_F77=yes
14696      fi
14697      ;;
14698
14699    hpux11*)
14700      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14701	case $host_cpu in
14702	hppa*64*)
14703	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14704	  ;;
14705	ia64*)
14706	  archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14707	  ;;
14708	*)
14709	  archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14710	  ;;
14711	esac
14712      else
14713	case $host_cpu in
14714	hppa*64*)
14715	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14716	  ;;
14717	ia64*)
14718	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14719	  ;;
14720	*)
14721	  archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14722	  ;;
14723	esac
14724      fi
14725      if test "$with_gnu_ld" = no; then
14726	hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14727	hardcode_libdir_separator_F77=:
14728
14729	case $host_cpu in
14730	hppa*64*|ia64*)
14731	  hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14732	  hardcode_direct_F77=no
14733	  hardcode_shlibpath_var_F77=no
14734	  ;;
14735	*)
14736	  hardcode_direct_F77=yes
14737	  export_dynamic_flag_spec_F77='${wl}-E'
14738
14739	  # hardcode_minus_L: Not really in the search PATH,
14740	  # but as the default location of the library.
14741	  hardcode_minus_L_F77=yes
14742	  ;;
14743	esac
14744      fi
14745      ;;
14746
14747    irix5* | irix6* | nonstopux*)
14748      if test "$GCC" = yes; then
14749	archive_cmds_F77='$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'
14750      else
14751	archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14752	hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14753      fi
14754      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14755      hardcode_libdir_separator_F77=:
14756      link_all_deplibs_F77=yes
14757      ;;
14758
14759    netbsd*)
14760      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14761	archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14762      else
14763	archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14764      fi
14765      hardcode_libdir_flag_spec_F77='-R$libdir'
14766      hardcode_direct_F77=yes
14767      hardcode_shlibpath_var_F77=no
14768      ;;
14769
14770    newsos6)
14771      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14772      hardcode_direct_F77=yes
14773      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14774      hardcode_libdir_separator_F77=:
14775      hardcode_shlibpath_var_F77=no
14776      ;;
14777
14778    openbsd*)
14779      if test -f /usr/libexec/ld.so; then
14780	hardcode_direct_F77=yes
14781	hardcode_shlibpath_var_F77=no
14782	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14783	  archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14784	  archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14785	  hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14786	  export_dynamic_flag_spec_F77='${wl}-E'
14787	else
14788	  case $host_os in
14789	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14790	     archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14791	     hardcode_libdir_flag_spec_F77='-R$libdir'
14792	     ;;
14793	   *)
14794	     archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14795	     hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14796	     ;;
14797	  esac
14798        fi
14799      else
14800	ld_shlibs_F77=no
14801      fi
14802      ;;
14803
14804    os2*)
14805      hardcode_libdir_flag_spec_F77='-L$libdir'
14806      hardcode_minus_L_F77=yes
14807      allow_undefined_flag_F77=unsupported
14808      archive_cmds_F77='$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'
14809      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14810      ;;
14811
14812    osf3*)
14813      if test "$GCC" = yes; then
14814	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14815	archive_cmds_F77='$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'
14816      else
14817	allow_undefined_flag_F77=' -expect_unresolved \*'
14818	archive_cmds_F77='$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'
14819      fi
14820      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14821      hardcode_libdir_separator_F77=:
14822      ;;
14823
14824    osf4* | osf5*)	# as osf3* with the addition of -msym flag
14825      if test "$GCC" = yes; then
14826	allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14827	archive_cmds_F77='$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'
14828	hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14829      else
14830	allow_undefined_flag_F77=' -expect_unresolved \*'
14831	archive_cmds_F77='$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'
14832	archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14833	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14834
14835	# Both c and cxx compiler support -rpath directly
14836	hardcode_libdir_flag_spec_F77='-rpath $libdir'
14837      fi
14838      hardcode_libdir_separator_F77=:
14839      ;;
14840
14841    solaris*)
14842      no_undefined_flag_F77=' -z text'
14843      if test "$GCC" = yes; then
14844	wlarc='${wl}'
14845	archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14846	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14847	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14848      else
14849	wlarc=''
14850	archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14851	archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14852  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14853      fi
14854      hardcode_libdir_flag_spec_F77='-R$libdir'
14855      hardcode_shlibpath_var_F77=no
14856      case $host_os in
14857      solaris2.[0-5] | solaris2.[0-5].*) ;;
14858      *)
14859	# The compiler driver will combine and reorder linker options,
14860	# but understands `-z linker_flag'.  GCC discards it without `$wl',
14861	# but is careful enough not to reorder.
14862 	# Supported since Solaris 2.6 (maybe 2.5.1?)
14863	if test "$GCC" = yes; then
14864	  whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14865	else
14866	  whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14867	fi
14868	;;
14869      esac
14870      link_all_deplibs_F77=yes
14871      ;;
14872
14873    sunos4*)
14874      if test "x$host_vendor" = xsequent; then
14875	# Use $CC to link under sequent, because it throws in some extra .o
14876	# files that make .init and .fini sections work.
14877	archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14878      else
14879	archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14880      fi
14881      hardcode_libdir_flag_spec_F77='-L$libdir'
14882      hardcode_direct_F77=yes
14883      hardcode_minus_L_F77=yes
14884      hardcode_shlibpath_var_F77=no
14885      ;;
14886
14887    sysv4)
14888      case $host_vendor in
14889	sni)
14890	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14891	  hardcode_direct_F77=yes # is this really true???
14892	;;
14893	siemens)
14894	  ## LD is ld it makes a PLAMLIB
14895	  ## CC just makes a GrossModule.
14896	  archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14897	  reload_cmds_F77='$CC -r -o $output$reload_objs'
14898	  hardcode_direct_F77=no
14899        ;;
14900	motorola)
14901	  archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14902	  hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14903	;;
14904      esac
14905      runpath_var='LD_RUN_PATH'
14906      hardcode_shlibpath_var_F77=no
14907      ;;
14908
14909    sysv4.3*)
14910      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14911      hardcode_shlibpath_var_F77=no
14912      export_dynamic_flag_spec_F77='-Bexport'
14913      ;;
14914
14915    sysv4*MP*)
14916      if test -d /usr/nec; then
14917	archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14918	hardcode_shlibpath_var_F77=no
14919	runpath_var=LD_RUN_PATH
14920	hardcode_runpath_var=yes
14921	ld_shlibs_F77=yes
14922      fi
14923      ;;
14924
14925    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14926      no_undefined_flag_F77='${wl}-z,text'
14927      archive_cmds_need_lc_F77=no
14928      hardcode_shlibpath_var_F77=no
14929      runpath_var='LD_RUN_PATH'
14930
14931      if test "$GCC" = yes; then
14932	archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14933	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14934      else
14935	archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14936	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14937      fi
14938      ;;
14939
14940    sysv5* | sco3.2v5* | sco5v6*)
14941      # Note: We can NOT use -z defs as we might desire, because we do not
14942      # link with -lc, and that would cause any symbols used from libc to
14943      # always be unresolved, which means just about no library would
14944      # ever link correctly.  If we're not using GNU ld we use -z text
14945      # though, which does catch some bad symbols but isn't as heavy-handed
14946      # as -z defs.
14947      no_undefined_flag_F77='${wl}-z,text'
14948      allow_undefined_flag_F77='${wl}-z,nodefs'
14949      archive_cmds_need_lc_F77=no
14950      hardcode_shlibpath_var_F77=no
14951      hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14952      hardcode_libdir_separator_F77=':'
14953      link_all_deplibs_F77=yes
14954      export_dynamic_flag_spec_F77='${wl}-Bexport'
14955      runpath_var='LD_RUN_PATH'
14956
14957      if test "$GCC" = yes; then
14958	archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14959	archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14960      else
14961	archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14962	archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14963      fi
14964      ;;
14965
14966    uts4*)
14967      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14968      hardcode_libdir_flag_spec_F77='-L$libdir'
14969      hardcode_shlibpath_var_F77=no
14970      ;;
14971
14972    *)
14973      ld_shlibs_F77=no
14974      ;;
14975    esac
14976  fi
14977
14978echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14979echo "${ECHO_T}$ld_shlibs_F77" >&6
14980test "$ld_shlibs_F77" = no && can_build_shared=no
14981
14982#
14983# Do we need to explicitly link libc?
14984#
14985case "x$archive_cmds_need_lc_F77" in
14986x|xyes)
14987  # Assume -lc should be added
14988  archive_cmds_need_lc_F77=yes
14989
14990  if test "$enable_shared" = yes && test "$GCC" = yes; then
14991    case $archive_cmds_F77 in
14992    *'~'*)
14993      # FIXME: we may have to deal with multi-command sequences.
14994      ;;
14995    '$CC '*)
14996      # Test whether the compiler implicitly links with -lc since on some
14997      # systems, -lgcc has to come before -lc. If gcc already passes -lc
14998      # to ld, don't add -lc before -lgcc.
14999      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15000echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15001      $rm conftest*
15002      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15003
15004      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15005  (eval $ac_compile) 2>&5
15006  ac_status=$?
15007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15008  (exit $ac_status); } 2>conftest.err; then
15009        soname=conftest
15010        lib=conftest
15011        libobjs=conftest.$ac_objext
15012        deplibs=
15013        wl=$lt_prog_compiler_wl_F77
15014	pic_flag=$lt_prog_compiler_pic_F77
15015        compiler_flags=-v
15016        linker_flags=-v
15017        verstring=
15018        output_objdir=.
15019        libname=conftest
15020        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15021        allow_undefined_flag_F77=
15022        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15023  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15024  ac_status=$?
15025  echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026  (exit $ac_status); }
15027        then
15028	  archive_cmds_need_lc_F77=no
15029        else
15030	  archive_cmds_need_lc_F77=yes
15031        fi
15032        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15033      else
15034        cat conftest.err 1>&5
15035      fi
15036      $rm conftest*
15037      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15038echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15039      ;;
15040    esac
15041  fi
15042  ;;
15043esac
15044
15045echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15046echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15047library_names_spec=
15048libname_spec='lib$name'
15049soname_spec=
15050shrext_cmds=".so"
15051postinstall_cmds=
15052postuninstall_cmds=
15053finish_cmds=
15054finish_eval=
15055shlibpath_var=
15056shlibpath_overrides_runpath=unknown
15057version_type=none
15058dynamic_linker="$host_os ld.so"
15059sys_lib_dlsearch_path_spec="/lib /usr/lib"
15060
15061need_lib_prefix=unknown
15062hardcode_into_libs=no
15063
15064# when you set need_version to no, make sure it does not cause -set_version
15065# flags to be left without arguments
15066need_version=unknown
15067
15068case $host_os in
15069aix3*)
15070  version_type=linux
15071  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15072  shlibpath_var=LIBPATH
15073
15074  # AIX 3 has no versioning support, so we append a major version to the name.
15075  soname_spec='${libname}${release}${shared_ext}$major'
15076  ;;
15077
15078aix[4-9]*)
15079  version_type=linux
15080  need_lib_prefix=no
15081  need_version=no
15082  hardcode_into_libs=yes
15083  if test "$host_cpu" = ia64; then
15084    # AIX 5 supports IA64
15085    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15086    shlibpath_var=LD_LIBRARY_PATH
15087  else
15088    # With GCC up to 2.95.x, collect2 would create an import file
15089    # for dependence libraries.  The import file would start with
15090    # the line `#! .'.  This would cause the generated library to
15091    # depend on `.', always an invalid library.  This was fixed in
15092    # development snapshots of GCC prior to 3.0.
15093    case $host_os in
15094      aix4 | aix4.[01] | aix4.[01].*)
15095      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15096	   echo ' yes '
15097	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15098	:
15099      else
15100	can_build_shared=no
15101      fi
15102      ;;
15103    esac
15104    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15105    # soname into executable. Probably we can add versioning support to
15106    # collect2, so additional links can be useful in future.
15107    if test "$aix_use_runtimelinking" = yes; then
15108      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15109      # instead of lib<name>.a to let people know that these are not
15110      # typical AIX shared libraries.
15111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15112    else
15113      # We preserve .a as extension for shared libraries through AIX4.2
15114      # and later when we are not doing run time linking.
15115      library_names_spec='${libname}${release}.a $libname.a'
15116      soname_spec='${libname}${release}${shared_ext}$major'
15117    fi
15118    shlibpath_var=LIBPATH
15119  fi
15120  ;;
15121
15122amigaos*)
15123  library_names_spec='$libname.ixlibrary $libname.a'
15124  # Create ${libname}_ixlibrary.a entries in /sys/libs.
15125  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'
15126  ;;
15127
15128beos*)
15129  library_names_spec='${libname}${shared_ext}'
15130  dynamic_linker="$host_os ld.so"
15131  shlibpath_var=LIBRARY_PATH
15132  ;;
15133
15134bsdi[45]*)
15135  version_type=linux
15136  need_version=no
15137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138  soname_spec='${libname}${release}${shared_ext}$major'
15139  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15140  shlibpath_var=LD_LIBRARY_PATH
15141  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15142  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15143  # the default ld.so.conf also contains /usr/contrib/lib and
15144  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15145  # libtool to hard-code these into programs
15146  ;;
15147
15148cygwin* | mingw* | pw32*)
15149  version_type=windows
15150  shrext_cmds=".dll"
15151  need_version=no
15152  need_lib_prefix=no
15153
15154  case $GCC,$host_os in
15155  yes,cygwin* | yes,mingw* | yes,pw32*)
15156    library_names_spec='$libname.dll.a'
15157    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15158    postinstall_cmds='base_file=`basename \${file}`~
15159      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15160      dldir=$destdir/`dirname \$dlpath`~
15161      test -d \$dldir || mkdir -p \$dldir~
15162      $install_prog $dir/$dlname \$dldir/$dlname~
15163      chmod a+x \$dldir/$dlname'
15164    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15165      dlpath=$dir/\$dldll~
15166       $rm \$dlpath'
15167    shlibpath_overrides_runpath=yes
15168
15169    case $host_os in
15170    cygwin*)
15171      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15172      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15173      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15174      ;;
15175    mingw*)
15176      # MinGW DLLs use traditional 'lib' prefix
15177      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15178      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15179      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15180        # It is most probably a Windows format PATH printed by
15181        # mingw gcc, but we are running on Cygwin. Gcc prints its search
15182        # path with ; separators, and with drive letters. We can handle the
15183        # drive letters (cygwin fileutils understands them), so leave them,
15184        # especially as we might pass files found there to a mingw objdump,
15185        # which wouldn't understand a cygwinified path. Ahh.
15186        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15187      else
15188        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
15189      fi
15190      ;;
15191    pw32*)
15192      # pw32 DLLs use 'pw' prefix rather than 'lib'
15193      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15194      ;;
15195    esac
15196    ;;
15197
15198  *)
15199    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15200    ;;
15201  esac
15202  dynamic_linker='Win32 ld.exe'
15203  # FIXME: first we should search . and the directory the executable is in
15204  shlibpath_var=PATH
15205  ;;
15206
15207darwin* | rhapsody*)
15208  dynamic_linker="$host_os dyld"
15209  version_type=darwin
15210  need_lib_prefix=no
15211  need_version=no
15212  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15213  soname_spec='${libname}${release}${major}$shared_ext'
15214  shlibpath_overrides_runpath=yes
15215  shlibpath_var=DYLD_LIBRARY_PATH
15216  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15217
15218  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15219  ;;
15220
15221dgux*)
15222  version_type=linux
15223  need_lib_prefix=no
15224  need_version=no
15225  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15226  soname_spec='${libname}${release}${shared_ext}$major'
15227  shlibpath_var=LD_LIBRARY_PATH
15228  ;;
15229
15230freebsd1*)
15231  dynamic_linker=no
15232  ;;
15233
15234freebsd* | dragonfly*)
15235  # DragonFly does not have aout.  When/if they implement a new
15236  # versioning mechanism, adjust this.
15237  if test -x /usr/bin/objformat; then
15238    objformat=`/usr/bin/objformat`
15239  else
15240    case $host_os in
15241    freebsd[123]*) objformat=aout ;;
15242    *) objformat=elf ;;
15243    esac
15244  fi
15245  version_type=freebsd-$objformat
15246  case $version_type in
15247    freebsd-elf*)
15248      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15249      need_version=no
15250      need_lib_prefix=no
15251      ;;
15252    freebsd-*)
15253      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15254      need_version=yes
15255      ;;
15256  esac
15257  shlibpath_var=LD_LIBRARY_PATH
15258  case $host_os in
15259  freebsd2*)
15260    shlibpath_overrides_runpath=yes
15261    ;;
15262  freebsd3.[01]* | freebsdelf3.[01]*)
15263    shlibpath_overrides_runpath=yes
15264    hardcode_into_libs=yes
15265    ;;
15266  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15267  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15268    shlibpath_overrides_runpath=no
15269    hardcode_into_libs=yes
15270    ;;
15271  *) # from 4.6 on, and DragonFly
15272    shlibpath_overrides_runpath=yes
15273    hardcode_into_libs=yes
15274    ;;
15275  esac
15276  ;;
15277
15278gnu*)
15279  version_type=linux
15280  need_lib_prefix=no
15281  need_version=no
15282  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15283  soname_spec='${libname}${release}${shared_ext}$major'
15284  shlibpath_var=LD_LIBRARY_PATH
15285  hardcode_into_libs=yes
15286  ;;
15287
15288hpux9* | hpux10* | hpux11*)
15289  # Give a soname corresponding to the major version so that dld.sl refuses to
15290  # link against other versions.
15291  version_type=sunos
15292  need_lib_prefix=no
15293  need_version=no
15294  case $host_cpu in
15295  ia64*)
15296    shrext_cmds='.so'
15297    hardcode_into_libs=yes
15298    dynamic_linker="$host_os dld.so"
15299    shlibpath_var=LD_LIBRARY_PATH
15300    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15301    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15302    soname_spec='${libname}${release}${shared_ext}$major'
15303    if test "X$HPUX_IA64_MODE" = X32; then
15304      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15305    else
15306      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15307    fi
15308    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15309    ;;
15310   hppa*64*)
15311     shrext_cmds='.sl'
15312     hardcode_into_libs=yes
15313     dynamic_linker="$host_os dld.sl"
15314     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15315     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15316     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15317     soname_spec='${libname}${release}${shared_ext}$major'
15318     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15319     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15320     ;;
15321   *)
15322    shrext_cmds='.sl'
15323    dynamic_linker="$host_os dld.sl"
15324    shlibpath_var=SHLIB_PATH
15325    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15326    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15327    soname_spec='${libname}${release}${shared_ext}$major'
15328    ;;
15329  esac
15330  # HP-UX runs *really* slowly unless shared libraries are mode 555.
15331  postinstall_cmds='chmod 555 $lib'
15332  ;;
15333
15334interix[3-9]*)
15335  version_type=linux
15336  need_lib_prefix=no
15337  need_version=no
15338  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15339  soname_spec='${libname}${release}${shared_ext}$major'
15340  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15341  shlibpath_var=LD_LIBRARY_PATH
15342  shlibpath_overrides_runpath=no
15343  hardcode_into_libs=yes
15344  ;;
15345
15346irix5* | irix6* | nonstopux*)
15347  case $host_os in
15348    nonstopux*) version_type=nonstopux ;;
15349    *)
15350	if test "$lt_cv_prog_gnu_ld" = yes; then
15351		version_type=linux
15352	else
15353		version_type=irix
15354	fi ;;
15355  esac
15356  need_lib_prefix=no
15357  need_version=no
15358  soname_spec='${libname}${release}${shared_ext}$major'
15359  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15360  case $host_os in
15361  irix5* | nonstopux*)
15362    libsuff= shlibsuff=
15363    ;;
15364  *)
15365    case $LD in # libtool.m4 will add one of these switches to LD
15366    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15367      libsuff= shlibsuff= libmagic=32-bit;;
15368    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15369      libsuff=32 shlibsuff=N32 libmagic=N32;;
15370    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15371      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15372    *) libsuff= shlibsuff= libmagic=never-match;;
15373    esac
15374    ;;
15375  esac
15376  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15377  shlibpath_overrides_runpath=no
15378  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15379  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15380  hardcode_into_libs=yes
15381  ;;
15382
15383# No shared lib support for Linux oldld, aout, or coff.
15384linux*oldld* | linux*aout* | linux*coff*)
15385  dynamic_linker=no
15386  ;;
15387
15388# This must be Linux ELF.
15389linux* | k*bsd*-gnu)
15390  version_type=linux
15391  need_lib_prefix=no
15392  need_version=no
15393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394  soname_spec='${libname}${release}${shared_ext}$major'
15395  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15396  shlibpath_var=LD_LIBRARY_PATH
15397  shlibpath_overrides_runpath=no
15398  # This implies no fast_install, which is unacceptable.
15399  # Some rework will be needed to allow for fast_install
15400  # before this can be enabled.
15401  hardcode_into_libs=yes
15402  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15403  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15404
15405  # Append ld.so.conf contents to the search path
15406  if test -f /etc/ld.so.conf; then
15407    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15408    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15409  fi
15410
15411  # We used to test for /lib/ld.so.1 and disable shared libraries on
15412  # powerpc, because MkLinux only supported shared libraries with the
15413  # GNU dynamic linker.  Since this was broken with cross compilers,
15414  # most powerpc-linux boxes support dynamic linking these days and
15415  # people can always --disable-shared, the test was removed, and we
15416  # assume the GNU/Linux dynamic linker is in use.
15417  dynamic_linker='GNU/Linux ld.so'
15418  ;;
15419
15420netbsd*)
15421  version_type=sunos
15422  need_lib_prefix=no
15423  need_version=no
15424  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15425    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15426    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15427    dynamic_linker='NetBSD (a.out) ld.so'
15428  else
15429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15430    soname_spec='${libname}${release}${shared_ext}$major'
15431    dynamic_linker='NetBSD ld.elf_so'
15432  fi
15433  shlibpath_var=LD_LIBRARY_PATH
15434  shlibpath_overrides_runpath=yes
15435  hardcode_into_libs=yes
15436  ;;
15437
15438newsos6)
15439  version_type=linux
15440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15441  shlibpath_var=LD_LIBRARY_PATH
15442  shlibpath_overrides_runpath=yes
15443  ;;
15444
15445nto-qnx*)
15446  version_type=linux
15447  need_lib_prefix=no
15448  need_version=no
15449  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450  soname_spec='${libname}${release}${shared_ext}$major'
15451  shlibpath_var=LD_LIBRARY_PATH
15452  shlibpath_overrides_runpath=yes
15453  ;;
15454
15455openbsd*)
15456  version_type=sunos
15457  sys_lib_dlsearch_path_spec="/usr/lib"
15458  need_lib_prefix=no
15459  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15460  case $host_os in
15461    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15462    *)                         need_version=no  ;;
15463  esac
15464  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15465  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15466  shlibpath_var=LD_LIBRARY_PATH
15467  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15468    case $host_os in
15469      openbsd2.[89] | openbsd2.[89].*)
15470	shlibpath_overrides_runpath=no
15471	;;
15472      *)
15473	shlibpath_overrides_runpath=yes
15474	;;
15475      esac
15476  else
15477    shlibpath_overrides_runpath=yes
15478  fi
15479  ;;
15480
15481os2*)
15482  libname_spec='$name'
15483  shrext_cmds=".dll"
15484  need_lib_prefix=no
15485  library_names_spec='$libname${shared_ext} $libname.a'
15486  dynamic_linker='OS/2 ld.exe'
15487  shlibpath_var=LIBPATH
15488  ;;
15489
15490osf3* | osf4* | osf5*)
15491  version_type=osf
15492  need_lib_prefix=no
15493  need_version=no
15494  soname_spec='${libname}${release}${shared_ext}$major'
15495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15496  shlibpath_var=LD_LIBRARY_PATH
15497  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15498  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15499  ;;
15500
15501rdos*)
15502  dynamic_linker=no
15503  ;;
15504
15505solaris*)
15506  version_type=linux
15507  need_lib_prefix=no
15508  need_version=no
15509  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15510  soname_spec='${libname}${release}${shared_ext}$major'
15511  shlibpath_var=LD_LIBRARY_PATH
15512  shlibpath_overrides_runpath=yes
15513  hardcode_into_libs=yes
15514  # ldd complains unless libraries are executable
15515  postinstall_cmds='chmod +x $lib'
15516  ;;
15517
15518sunos4*)
15519  version_type=sunos
15520  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15521  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15522  shlibpath_var=LD_LIBRARY_PATH
15523  shlibpath_overrides_runpath=yes
15524  if test "$with_gnu_ld" = yes; then
15525    need_lib_prefix=no
15526  fi
15527  need_version=yes
15528  ;;
15529
15530sysv4 | sysv4.3*)
15531  version_type=linux
15532  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533  soname_spec='${libname}${release}${shared_ext}$major'
15534  shlibpath_var=LD_LIBRARY_PATH
15535  case $host_vendor in
15536    sni)
15537      shlibpath_overrides_runpath=no
15538      need_lib_prefix=no
15539      export_dynamic_flag_spec='${wl}-Blargedynsym'
15540      runpath_var=LD_RUN_PATH
15541      ;;
15542    siemens)
15543      need_lib_prefix=no
15544      ;;
15545    motorola)
15546      need_lib_prefix=no
15547      need_version=no
15548      shlibpath_overrides_runpath=no
15549      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15550      ;;
15551  esac
15552  ;;
15553
15554sysv4*MP*)
15555  if test -d /usr/nec ;then
15556    version_type=linux
15557    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15558    soname_spec='$libname${shared_ext}.$major'
15559    shlibpath_var=LD_LIBRARY_PATH
15560  fi
15561  ;;
15562
15563sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15564  version_type=freebsd-elf
15565  need_lib_prefix=no
15566  need_version=no
15567  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15568  soname_spec='${libname}${release}${shared_ext}$major'
15569  shlibpath_var=LD_LIBRARY_PATH
15570  hardcode_into_libs=yes
15571  if test "$with_gnu_ld" = yes; then
15572    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15573    shlibpath_overrides_runpath=no
15574  else
15575    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15576    shlibpath_overrides_runpath=yes
15577    case $host_os in
15578      sco3.2v5*)
15579        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15580	;;
15581    esac
15582  fi
15583  sys_lib_dlsearch_path_spec='/usr/lib'
15584  ;;
15585
15586uts4*)
15587  version_type=linux
15588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15589  soname_spec='${libname}${release}${shared_ext}$major'
15590  shlibpath_var=LD_LIBRARY_PATH
15591  ;;
15592
15593*)
15594  dynamic_linker=no
15595  ;;
15596esac
15597echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15598echo "${ECHO_T}$dynamic_linker" >&6
15599test "$dynamic_linker" = no && can_build_shared=no
15600
15601if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15602  echo $ECHO_N "(cached) $ECHO_C" >&6
15603else
15604  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15605fi
15606
15607sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15608if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15609  echo $ECHO_N "(cached) $ECHO_C" >&6
15610else
15611  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15612fi
15613
15614sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15615
15616variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15617if test "$GCC" = yes; then
15618  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15619fi
15620
15621echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15622echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15623hardcode_action_F77=
15624if test -n "$hardcode_libdir_flag_spec_F77" || \
15625   test -n "$runpath_var_F77" || \
15626   test "X$hardcode_automatic_F77" = "Xyes" ; then
15627
15628  # We can hardcode non-existant directories.
15629  if test "$hardcode_direct_F77" != no &&
15630     # If the only mechanism to avoid hardcoding is shlibpath_var, we
15631     # have to relink, otherwise we might link with an installed library
15632     # when we should be linking with a yet-to-be-installed one
15633     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15634     test "$hardcode_minus_L_F77" != no; then
15635    # Linking always hardcodes the temporary library directory.
15636    hardcode_action_F77=relink
15637  else
15638    # We can link without hardcoding, and we can hardcode nonexisting dirs.
15639    hardcode_action_F77=immediate
15640  fi
15641else
15642  # We cannot hardcode anything, or else we can only hardcode existing
15643  # directories.
15644  hardcode_action_F77=unsupported
15645fi
15646echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15647echo "${ECHO_T}$hardcode_action_F77" >&6
15648
15649if test "$hardcode_action_F77" = relink; then
15650  # Fast installation is not supported
15651  enable_fast_install=no
15652elif test "$shlibpath_overrides_runpath" = yes ||
15653     test "$enable_shared" = no; then
15654  # Fast installation is not necessary
15655  enable_fast_install=needless
15656fi
15657
15658
15659# The else clause should only fire when bootstrapping the
15660# libtool distribution, otherwise you forgot to ship ltmain.sh
15661# with your package, and you will get complaints that there are
15662# no rules to generate ltmain.sh.
15663if test -f "$ltmain"; then
15664  # See if we are running on zsh, and set the options which allow our commands through
15665  # without removal of \ escapes.
15666  if test -n "${ZSH_VERSION+set}" ; then
15667    setopt NO_GLOB_SUBST
15668  fi
15669  # Now quote all the things that may contain metacharacters while being
15670  # careful not to overquote the AC_SUBSTed values.  We take copies of the
15671  # variables and quote the copies for generation of the libtool script.
15672  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15673    SED SHELL STRIP \
15674    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15675    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15676    deplibs_check_method reload_flag reload_cmds need_locks \
15677    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15678    lt_cv_sys_global_symbol_to_c_name_address \
15679    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15680    old_postinstall_cmds old_postuninstall_cmds \
15681    compiler_F77 \
15682    CC_F77 \
15683    LD_F77 \
15684    lt_prog_compiler_wl_F77 \
15685    lt_prog_compiler_pic_F77 \
15686    lt_prog_compiler_static_F77 \
15687    lt_prog_compiler_no_builtin_flag_F77 \
15688    export_dynamic_flag_spec_F77 \
15689    thread_safe_flag_spec_F77 \
15690    whole_archive_flag_spec_F77 \
15691    enable_shared_with_static_runtimes_F77 \
15692    old_archive_cmds_F77 \
15693    old_archive_from_new_cmds_F77 \
15694    predep_objects_F77 \
15695    postdep_objects_F77 \
15696    predeps_F77 \
15697    postdeps_F77 \
15698    compiler_lib_search_path_F77 \
15699    compiler_lib_search_dirs_F77 \
15700    archive_cmds_F77 \
15701    archive_expsym_cmds_F77 \
15702    postinstall_cmds_F77 \
15703    postuninstall_cmds_F77 \
15704    old_archive_from_expsyms_cmds_F77 \
15705    allow_undefined_flag_F77 \
15706    no_undefined_flag_F77 \
15707    export_symbols_cmds_F77 \
15708    hardcode_libdir_flag_spec_F77 \
15709    hardcode_libdir_flag_spec_ld_F77 \
15710    hardcode_libdir_separator_F77 \
15711    hardcode_automatic_F77 \
15712    module_cmds_F77 \
15713    module_expsym_cmds_F77 \
15714    lt_cv_prog_compiler_c_o_F77 \
15715    fix_srcfile_path_F77 \
15716    exclude_expsyms_F77 \
15717    include_expsyms_F77; do
15718
15719    case $var in
15720    old_archive_cmds_F77 | \
15721    old_archive_from_new_cmds_F77 | \
15722    archive_cmds_F77 | \
15723    archive_expsym_cmds_F77 | \
15724    module_cmds_F77 | \
15725    module_expsym_cmds_F77 | \
15726    old_archive_from_expsyms_cmds_F77 | \
15727    export_symbols_cmds_F77 | \
15728    extract_expsyms_cmds | reload_cmds | finish_cmds | \
15729    postinstall_cmds | postuninstall_cmds | \
15730    old_postinstall_cmds | old_postuninstall_cmds | \
15731    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15732      # Double-quote double-evaled strings.
15733      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15734      ;;
15735    *)
15736      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15737      ;;
15738    esac
15739  done
15740
15741  case $lt_echo in
15742  *'\$0 --fallback-echo"')
15743    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15744    ;;
15745  esac
15746
15747cfgfile="$ofile"
15748
15749  cat <<__EOF__ >> "$cfgfile"
15750# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15751
15752# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15753
15754# Shell to use when invoking shell scripts.
15755SHELL=$lt_SHELL
15756
15757# Whether or not to build shared libraries.
15758build_libtool_libs=$enable_shared
15759
15760# Whether or not to build static libraries.
15761build_old_libs=$enable_static
15762
15763# Whether or not to add -lc for building shared libraries.
15764build_libtool_need_lc=$archive_cmds_need_lc_F77
15765
15766# Whether or not to disallow shared libs when runtime libs are static
15767allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15768
15769# Whether or not to optimize for fast installation.
15770fast_install=$enable_fast_install
15771
15772# The host system.
15773host_alias=$host_alias
15774host=$host
15775host_os=$host_os
15776
15777# The build system.
15778build_alias=$build_alias
15779build=$build
15780build_os=$build_os
15781
15782# An echo program that does not interpret backslashes.
15783echo=$lt_echo
15784
15785# The archiver.
15786AR=$lt_AR
15787AR_FLAGS=$lt_AR_FLAGS
15788
15789# A C compiler.
15790LTCC=$lt_LTCC
15791
15792# LTCC compiler flags.
15793LTCFLAGS=$lt_LTCFLAGS
15794
15795# A language-specific compiler.
15796CC=$lt_compiler_F77
15797
15798# Is the compiler the GNU C compiler?
15799with_gcc=$GCC_F77
15800
15801# An ERE matcher.
15802EGREP=$lt_EGREP
15803
15804# The linker used to build libraries.
15805LD=$lt_LD_F77
15806
15807# Whether we need hard or soft links.
15808LN_S=$lt_LN_S
15809
15810# A BSD-compatible nm program.
15811NM=$lt_NM
15812
15813# A symbol stripping program
15814STRIP=$lt_STRIP
15815
15816# Used to examine libraries when file_magic_cmd begins "file"
15817MAGIC_CMD=$MAGIC_CMD
15818
15819# Used on cygwin: DLL creation program.
15820DLLTOOL="$DLLTOOL"
15821
15822# Used on cygwin: object dumper.
15823OBJDUMP="$OBJDUMP"
15824
15825# Used on cygwin: assembler.
15826AS="$AS"
15827
15828# The name of the directory that contains temporary libtool files.
15829objdir=$objdir
15830
15831# How to create reloadable object files.
15832reload_flag=$lt_reload_flag
15833reload_cmds=$lt_reload_cmds
15834
15835# How to pass a linker flag through the compiler.
15836wl=$lt_lt_prog_compiler_wl_F77
15837
15838# Object file suffix (normally "o").
15839objext="$ac_objext"
15840
15841# Old archive suffix (normally "a").
15842libext="$libext"
15843
15844# Shared library suffix (normally ".so").
15845shrext_cmds='$shrext_cmds'
15846
15847# Executable file suffix (normally "").
15848exeext="$exeext"
15849
15850# Additional compiler flags for building library objects.
15851pic_flag=$lt_lt_prog_compiler_pic_F77
15852pic_mode=$pic_mode
15853
15854# What is the maximum length of a command?
15855max_cmd_len=$lt_cv_sys_max_cmd_len
15856
15857# Does compiler simultaneously support -c and -o options?
15858compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15859
15860# Must we lock files when doing compilation?
15861need_locks=$lt_need_locks
15862
15863# Do we need the lib prefix for modules?
15864need_lib_prefix=$need_lib_prefix
15865
15866# Do we need a version for libraries?
15867need_version=$need_version
15868
15869# Whether dlopen is supported.
15870dlopen_support=$enable_dlopen
15871
15872# Whether dlopen of programs is supported.
15873dlopen_self=$enable_dlopen_self
15874
15875# Whether dlopen of statically linked programs is supported.
15876dlopen_self_static=$enable_dlopen_self_static
15877
15878# Compiler flag to prevent dynamic linking.
15879link_static_flag=$lt_lt_prog_compiler_static_F77
15880
15881# Compiler flag to turn off builtin functions.
15882no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15883
15884# Compiler flag to allow reflexive dlopens.
15885export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15886
15887# Compiler flag to generate shared objects directly from archives.
15888whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15889
15890# Compiler flag to generate thread-safe objects.
15891thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15892
15893# Library versioning type.
15894version_type=$version_type
15895
15896# Format of library name prefix.
15897libname_spec=$lt_libname_spec
15898
15899# List of archive names.  First name is the real one, the rest are links.
15900# The last name is the one that the linker finds with -lNAME.
15901library_names_spec=$lt_library_names_spec
15902
15903# The coded name of the library, if different from the real name.
15904soname_spec=$lt_soname_spec
15905
15906# Commands used to build and install an old-style archive.
15907RANLIB=$lt_RANLIB
15908old_archive_cmds=$lt_old_archive_cmds_F77
15909old_postinstall_cmds=$lt_old_postinstall_cmds
15910old_postuninstall_cmds=$lt_old_postuninstall_cmds
15911
15912# Create an old-style archive from a shared archive.
15913old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15914
15915# Create a temporary old-style archive to link instead of a shared archive.
15916old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15917
15918# Commands used to build and install a shared archive.
15919archive_cmds=$lt_archive_cmds_F77
15920archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15921postinstall_cmds=$lt_postinstall_cmds
15922postuninstall_cmds=$lt_postuninstall_cmds
15923
15924# Commands used to build a loadable module (assumed same as above if empty)
15925module_cmds=$lt_module_cmds_F77
15926module_expsym_cmds=$lt_module_expsym_cmds_F77
15927
15928# Commands to strip libraries.
15929old_striplib=$lt_old_striplib
15930striplib=$lt_striplib
15931
15932# Dependencies to place before the objects being linked to create a
15933# shared library.
15934predep_objects=$lt_predep_objects_F77
15935
15936# Dependencies to place after the objects being linked to create a
15937# shared library.
15938postdep_objects=$lt_postdep_objects_F77
15939
15940# Dependencies to place before the objects being linked to create a
15941# shared library.
15942predeps=$lt_predeps_F77
15943
15944# Dependencies to place after the objects being linked to create a
15945# shared library.
15946postdeps=$lt_postdeps_F77
15947
15948# The directories searched by this compiler when creating a shared
15949# library
15950compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15951
15952# The library search path used internally by the compiler when linking
15953# a shared library.
15954compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15955
15956# Method to check whether dependent libraries are shared objects.
15957deplibs_check_method=$lt_deplibs_check_method
15958
15959# Command to use when deplibs_check_method == file_magic.
15960file_magic_cmd=$lt_file_magic_cmd
15961
15962# Flag that allows shared libraries with undefined symbols to be built.
15963allow_undefined_flag=$lt_allow_undefined_flag_F77
15964
15965# Flag that forces no undefined symbols.
15966no_undefined_flag=$lt_no_undefined_flag_F77
15967
15968# Commands used to finish a libtool library installation in a directory.
15969finish_cmds=$lt_finish_cmds
15970
15971# Same as above, but a single script fragment to be evaled but not shown.
15972finish_eval=$lt_finish_eval
15973
15974# Take the output of nm and produce a listing of raw symbols and C names.
15975global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15976
15977# Transform the output of nm in a proper C declaration
15978global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15979
15980# Transform the output of nm in a C name address pair
15981global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15982
15983# This is the shared library runtime path variable.
15984runpath_var=$runpath_var
15985
15986# This is the shared library path variable.
15987shlibpath_var=$shlibpath_var
15988
15989# Is shlibpath searched before the hard-coded library search path?
15990shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15991
15992# How to hardcode a shared library path into an executable.
15993hardcode_action=$hardcode_action_F77
15994
15995# Whether we should hardcode library paths into libraries.
15996hardcode_into_libs=$hardcode_into_libs
15997
15998# Flag to hardcode \$libdir into a binary during linking.
15999# This must work even if \$libdir does not exist.
16000hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16001
16002# If ld is used when linking, flag to hardcode \$libdir into
16003# a binary during linking. This must work even if \$libdir does
16004# not exist.
16005hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16006
16007# Whether we need a single -rpath flag with a separated argument.
16008hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16009
16010# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16011# resulting binary.
16012hardcode_direct=$hardcode_direct_F77
16013
16014# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16015# resulting binary.
16016hardcode_minus_L=$hardcode_minus_L_F77
16017
16018# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16019# the resulting binary.
16020hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16021
16022# Set to yes if building a shared library automatically hardcodes DIR into the library
16023# and all subsequent libraries and executables linked against it.
16024hardcode_automatic=$hardcode_automatic_F77
16025
16026# Variables whose values should be saved in libtool wrapper scripts and
16027# restored at relink time.
16028variables_saved_for_relink="$variables_saved_for_relink"
16029
16030# Whether libtool must link a program against all its dependency libraries.
16031link_all_deplibs=$link_all_deplibs_F77
16032
16033# Compile-time system search path for libraries
16034sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16035
16036# Run-time system search path for libraries
16037sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16038
16039# Fix the shell variable \$srcfile for the compiler.
16040fix_srcfile_path=$lt_fix_srcfile_path
16041
16042# Set to yes if exported symbols are required.
16043always_export_symbols=$always_export_symbols_F77
16044
16045# The commands to list exported symbols.
16046export_symbols_cmds=$lt_export_symbols_cmds_F77
16047
16048# The commands to extract the exported symbol list from a shared archive.
16049extract_expsyms_cmds=$lt_extract_expsyms_cmds
16050
16051# Symbols that should not be listed in the preloaded symbols.
16052exclude_expsyms=$lt_exclude_expsyms_F77
16053
16054# Symbols that must always be exported.
16055include_expsyms=$lt_include_expsyms_F77
16056
16057# ### END LIBTOOL TAG CONFIG: $tagname
16058
16059__EOF__
16060
16061
16062else
16063  # If there is no Makefile yet, we rely on a make rule to execute
16064  # `config.status --recheck' to rerun these tests and create the
16065  # libtool script then.
16066  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16067  if test -f "$ltmain_in"; then
16068    test -f Makefile && make "$ltmain"
16069  fi
16070fi
16071
16072
16073ac_ext=c
16074ac_cpp='$CPP $CPPFLAGS'
16075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16077ac_compiler_gnu=$ac_cv_c_compiler_gnu
16078
16079CC="$lt_save_CC"
16080
16081	else
16082	  tagname=""
16083	fi
16084	;;
16085
16086      GCJ)
16087	if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16088
16089
16090
16091# Source file extension for Java test sources.
16092ac_ext=java
16093
16094# Object file extension for compiled Java test sources.
16095objext=o
16096objext_GCJ=$objext
16097
16098# Code to be used in simple compile tests
16099lt_simple_compile_test_code="class foo {}"
16100
16101# Code to be used in simple link tests
16102lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16103
16104# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16105
16106# If no C compiler was specified, use CC.
16107LTCC=${LTCC-"$CC"}
16108
16109# If no C compiler flags were specified, use CFLAGS.
16110LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16111
16112# Allow CC to be a program name with arguments.
16113compiler=$CC
16114
16115
16116# save warnings/boilerplate of simple test code
16117ac_outfile=conftest.$ac_objext
16118echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16119eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16120_lt_compiler_boilerplate=`cat conftest.err`
16121$rm conftest*
16122
16123ac_outfile=conftest.$ac_objext
16124echo "$lt_simple_link_test_code" >conftest.$ac_ext
16125eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16126_lt_linker_boilerplate=`cat conftest.err`
16127$rm -r conftest*
16128
16129
16130# Allow CC to be a program name with arguments.
16131lt_save_CC="$CC"
16132CC=${GCJ-"gcj"}
16133compiler=$CC
16134compiler_GCJ=$CC
16135for cc_temp in $compiler""; do
16136  case $cc_temp in
16137    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16138    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16139    \-*) ;;
16140    *) break;;
16141  esac
16142done
16143cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16144
16145
16146# GCJ did not exist at the time GCC didn't implicitly link libc in.
16147archive_cmds_need_lc_GCJ=no
16148
16149old_archive_cmds_GCJ=$old_archive_cmds
16150
16151
16152lt_prog_compiler_no_builtin_flag_GCJ=
16153
16154if test "$GCC" = yes; then
16155  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16156
16157
16158echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16159echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16160if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16161  echo $ECHO_N "(cached) $ECHO_C" >&6
16162else
16163  lt_cv_prog_compiler_rtti_exceptions=no
16164  ac_outfile=conftest.$ac_objext
16165   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16166   lt_compiler_flag="-fno-rtti -fno-exceptions"
16167   # Insert the option either (1) after the last *FLAGS variable, or
16168   # (2) before a word containing "conftest.", or (3) at the end.
16169   # Note that $ac_compile itself does not contain backslashes and begins
16170   # with a dollar sign (not a hyphen), so the echo should work correctly.
16171   # The option is referenced via a variable to avoid confusing sed.
16172   lt_compile=`echo "$ac_compile" | $SED \
16173   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16174   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16175   -e 's:$: $lt_compiler_flag:'`
16176   (eval echo "\"\$as_me:16176: $lt_compile\"" >&5)
16177   (eval "$lt_compile" 2>conftest.err)
16178   ac_status=$?
16179   cat conftest.err >&5
16180   echo "$as_me:16180: \$? = $ac_status" >&5
16181   if (exit $ac_status) && test -s "$ac_outfile"; then
16182     # The compiler can only warn and ignore the option if not recognized
16183     # So say no if there are warnings other than the usual output.
16184     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16185     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16186     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16187       lt_cv_prog_compiler_rtti_exceptions=yes
16188     fi
16189   fi
16190   $rm conftest*
16191
16192fi
16193echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16194echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16195
16196if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16197    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16198else
16199    :
16200fi
16201
16202fi
16203
16204lt_prog_compiler_wl_GCJ=
16205lt_prog_compiler_pic_GCJ=
16206lt_prog_compiler_static_GCJ=
16207
16208echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16209echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16210
16211  if test "$GCC" = yes; then
16212    lt_prog_compiler_wl_GCJ='-Wl,'
16213    lt_prog_compiler_static_GCJ='-static'
16214
16215    case $host_os in
16216      aix*)
16217      # All AIX code is PIC.
16218      if test "$host_cpu" = ia64; then
16219	# AIX 5 now supports IA64 processor
16220	lt_prog_compiler_static_GCJ='-Bstatic'
16221      fi
16222      ;;
16223
16224    amigaos*)
16225      # FIXME: we need at least 68020 code to build shared libraries, but
16226      # adding the `-m68020' flag to GCC prevents building anything better,
16227      # like `-m68040'.
16228      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16229      ;;
16230
16231    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16232      # PIC is the default for these OSes.
16233      ;;
16234
16235    mingw* | cygwin* | pw32* | os2*)
16236      # This hack is so that the source file can tell whether it is being
16237      # built for inclusion in a dll (and should export symbols for example).
16238      # Although the cygwin gcc ignores -fPIC, still need this for old-style
16239      # (--disable-auto-import) libraries
16240
16241      ;;
16242
16243    darwin* | rhapsody*)
16244      # PIC is the default on this platform
16245      # Common symbols not allowed in MH_DYLIB files
16246      lt_prog_compiler_pic_GCJ='-fno-common'
16247      ;;
16248
16249    interix[3-9]*)
16250      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16251      # Instead, we relocate shared libraries at runtime.
16252      ;;
16253
16254    msdosdjgpp*)
16255      # Just because we use GCC doesn't mean we suddenly get shared libraries
16256      # on systems that don't support them.
16257      lt_prog_compiler_can_build_shared_GCJ=no
16258      enable_shared=no
16259      ;;
16260
16261    sysv4*MP*)
16262      if test -d /usr/nec; then
16263	lt_prog_compiler_pic_GCJ=-Kconform_pic
16264      fi
16265      ;;
16266
16267    hpux*)
16268      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16269      # not for PA HP-UX.
16270      case $host_cpu in
16271      hppa*64*|ia64*)
16272	# +Z the default
16273	;;
16274      *)
16275	lt_prog_compiler_pic_GCJ='-fPIC'
16276	;;
16277      esac
16278      ;;
16279
16280    *)
16281      lt_prog_compiler_pic_GCJ='-fPIC'
16282      ;;
16283    esac
16284  else
16285    # PORTME Check for flag to pass linker flags through the system compiler.
16286    case $host_os in
16287    aix*)
16288      lt_prog_compiler_wl_GCJ='-Wl,'
16289      if test "$host_cpu" = ia64; then
16290	# AIX 5 now supports IA64 processor
16291	lt_prog_compiler_static_GCJ='-Bstatic'
16292      else
16293	lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16294      fi
16295      ;;
16296      darwin*)
16297        # PIC is the default on this platform
16298        # Common symbols not allowed in MH_DYLIB files
16299       case $cc_basename in
16300         xlc*)
16301         lt_prog_compiler_pic_GCJ='-qnocommon'
16302         lt_prog_compiler_wl_GCJ='-Wl,'
16303         ;;
16304       esac
16305       ;;
16306
16307    mingw* | cygwin* | pw32* | os2*)
16308      # This hack is so that the source file can tell whether it is being
16309      # built for inclusion in a dll (and should export symbols for example).
16310
16311      ;;
16312
16313    hpux9* | hpux10* | hpux11*)
16314      lt_prog_compiler_wl_GCJ='-Wl,'
16315      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16316      # not for PA HP-UX.
16317      case $host_cpu in
16318      hppa*64*|ia64*)
16319	# +Z the default
16320	;;
16321      *)
16322	lt_prog_compiler_pic_GCJ='+Z'
16323	;;
16324      esac
16325      # Is there a better lt_prog_compiler_static that works with the bundled CC?
16326      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16327      ;;
16328
16329    irix5* | irix6* | nonstopux*)
16330      lt_prog_compiler_wl_GCJ='-Wl,'
16331      # PIC (with -KPIC) is the default.
16332      lt_prog_compiler_static_GCJ='-non_shared'
16333      ;;
16334
16335    newsos6)
16336      lt_prog_compiler_pic_GCJ='-KPIC'
16337      lt_prog_compiler_static_GCJ='-Bstatic'
16338      ;;
16339
16340    linux* | k*bsd*-gnu)
16341      case $cc_basename in
16342      icc* | ecc*)
16343	lt_prog_compiler_wl_GCJ='-Wl,'
16344	lt_prog_compiler_pic_GCJ='-KPIC'
16345	lt_prog_compiler_static_GCJ='-static'
16346        ;;
16347      pgcc* | pgf77* | pgf90* | pgf95*)
16348        # Portland Group compilers (*not* the Pentium gcc compiler,
16349	# which looks to be a dead project)
16350	lt_prog_compiler_wl_GCJ='-Wl,'
16351	lt_prog_compiler_pic_GCJ='-fpic'
16352	lt_prog_compiler_static_GCJ='-Bstatic'
16353        ;;
16354      ccc*)
16355        lt_prog_compiler_wl_GCJ='-Wl,'
16356        # All Alpha code is PIC.
16357        lt_prog_compiler_static_GCJ='-non_shared'
16358        ;;
16359      *)
16360        case `$CC -V 2>&1 | sed 5q` in
16361	*Sun\ C*)
16362	  # Sun C 5.9
16363	  lt_prog_compiler_pic_GCJ='-KPIC'
16364	  lt_prog_compiler_static_GCJ='-Bstatic'
16365	  lt_prog_compiler_wl_GCJ='-Wl,'
16366	  ;;
16367	*Sun\ F*)
16368	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
16369	  lt_prog_compiler_pic_GCJ='-KPIC'
16370	  lt_prog_compiler_static_GCJ='-Bstatic'
16371	  lt_prog_compiler_wl_GCJ=''
16372	  ;;
16373	esac
16374	;;
16375      esac
16376      ;;
16377
16378    osf3* | osf4* | osf5*)
16379      lt_prog_compiler_wl_GCJ='-Wl,'
16380      # All OSF/1 code is PIC.
16381      lt_prog_compiler_static_GCJ='-non_shared'
16382      ;;
16383
16384    rdos*)
16385      lt_prog_compiler_static_GCJ='-non_shared'
16386      ;;
16387
16388    solaris*)
16389      lt_prog_compiler_pic_GCJ='-KPIC'
16390      lt_prog_compiler_static_GCJ='-Bstatic'
16391      case $cc_basename in
16392      f77* | f90* | f95*)
16393	lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16394      *)
16395	lt_prog_compiler_wl_GCJ='-Wl,';;
16396      esac
16397      ;;
16398
16399    sunos4*)
16400      lt_prog_compiler_wl_GCJ='-Qoption ld '
16401      lt_prog_compiler_pic_GCJ='-PIC'
16402      lt_prog_compiler_static_GCJ='-Bstatic'
16403      ;;
16404
16405    sysv4 | sysv4.2uw2* | sysv4.3*)
16406      lt_prog_compiler_wl_GCJ='-Wl,'
16407      lt_prog_compiler_pic_GCJ='-KPIC'
16408      lt_prog_compiler_static_GCJ='-Bstatic'
16409      ;;
16410
16411    sysv4*MP*)
16412      if test -d /usr/nec ;then
16413	lt_prog_compiler_pic_GCJ='-Kconform_pic'
16414	lt_prog_compiler_static_GCJ='-Bstatic'
16415      fi
16416      ;;
16417
16418    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16419      lt_prog_compiler_wl_GCJ='-Wl,'
16420      lt_prog_compiler_pic_GCJ='-KPIC'
16421      lt_prog_compiler_static_GCJ='-Bstatic'
16422      ;;
16423
16424    unicos*)
16425      lt_prog_compiler_wl_GCJ='-Wl,'
16426      lt_prog_compiler_can_build_shared_GCJ=no
16427      ;;
16428
16429    uts4*)
16430      lt_prog_compiler_pic_GCJ='-pic'
16431      lt_prog_compiler_static_GCJ='-Bstatic'
16432      ;;
16433
16434    *)
16435      lt_prog_compiler_can_build_shared_GCJ=no
16436      ;;
16437    esac
16438  fi
16439
16440echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16441echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16442
16443#
16444# Check to make sure the PIC flag actually works.
16445#
16446if test -n "$lt_prog_compiler_pic_GCJ"; then
16447
16448echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16449echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16450if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16451  echo $ECHO_N "(cached) $ECHO_C" >&6
16452else
16453  lt_cv_prog_compiler_pic_works_GCJ=no
16454  ac_outfile=conftest.$ac_objext
16455   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16456   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16457   # Insert the option either (1) after the last *FLAGS variable, or
16458   # (2) before a word containing "conftest.", or (3) at the end.
16459   # Note that $ac_compile itself does not contain backslashes and begins
16460   # with a dollar sign (not a hyphen), so the echo should work correctly.
16461   # The option is referenced via a variable to avoid confusing sed.
16462   lt_compile=`echo "$ac_compile" | $SED \
16463   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16464   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16465   -e 's:$: $lt_compiler_flag:'`
16466   (eval echo "\"\$as_me:16466: $lt_compile\"" >&5)
16467   (eval "$lt_compile" 2>conftest.err)
16468   ac_status=$?
16469   cat conftest.err >&5
16470   echo "$as_me:16470: \$? = $ac_status" >&5
16471   if (exit $ac_status) && test -s "$ac_outfile"; then
16472     # The compiler can only warn and ignore the option if not recognized
16473     # So say no if there are warnings other than the usual output.
16474     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16475     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16476     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16477       lt_cv_prog_compiler_pic_works_GCJ=yes
16478     fi
16479   fi
16480   $rm conftest*
16481
16482fi
16483echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16484echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16485
16486if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16487    case $lt_prog_compiler_pic_GCJ in
16488     "" | " "*) ;;
16489     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16490     esac
16491else
16492    lt_prog_compiler_pic_GCJ=
16493     lt_prog_compiler_can_build_shared_GCJ=no
16494fi
16495
16496fi
16497case $host_os in
16498  # For platforms which do not support PIC, -DPIC is meaningless:
16499  *djgpp*)
16500    lt_prog_compiler_pic_GCJ=
16501    ;;
16502  *)
16503    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16504    ;;
16505esac
16506
16507#
16508# Check to make sure the static flag actually works.
16509#
16510wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16511echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16512echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16513if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16514  echo $ECHO_N "(cached) $ECHO_C" >&6
16515else
16516  lt_cv_prog_compiler_static_works_GCJ=no
16517   save_LDFLAGS="$LDFLAGS"
16518   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16519   echo "$lt_simple_link_test_code" > conftest.$ac_ext
16520   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16521     # The linker can only warn and ignore the option if not recognized
16522     # So say no if there are warnings
16523     if test -s conftest.err; then
16524       # Append any errors to the config.log.
16525       cat conftest.err 1>&5
16526       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16527       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16528       if diff conftest.exp conftest.er2 >/dev/null; then
16529         lt_cv_prog_compiler_static_works_GCJ=yes
16530       fi
16531     else
16532       lt_cv_prog_compiler_static_works_GCJ=yes
16533     fi
16534   fi
16535   $rm -r conftest*
16536   LDFLAGS="$save_LDFLAGS"
16537
16538fi
16539echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16540echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16541
16542if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16543    :
16544else
16545    lt_prog_compiler_static_GCJ=
16546fi
16547
16548
16549echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16550echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16551if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16552  echo $ECHO_N "(cached) $ECHO_C" >&6
16553else
16554  lt_cv_prog_compiler_c_o_GCJ=no
16555   $rm -r conftest 2>/dev/null
16556   mkdir conftest
16557   cd conftest
16558   mkdir out
16559   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16560
16561   lt_compiler_flag="-o out/conftest2.$ac_objext"
16562   # Insert the option either (1) after the last *FLAGS variable, or
16563   # (2) before a word containing "conftest.", or (3) at the end.
16564   # Note that $ac_compile itself does not contain backslashes and begins
16565   # with a dollar sign (not a hyphen), so the echo should work correctly.
16566   lt_compile=`echo "$ac_compile" | $SED \
16567   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16568   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16569   -e 's:$: $lt_compiler_flag:'`
16570   (eval echo "\"\$as_me:16570: $lt_compile\"" >&5)
16571   (eval "$lt_compile" 2>out/conftest.err)
16572   ac_status=$?
16573   cat out/conftest.err >&5
16574   echo "$as_me:16574: \$? = $ac_status" >&5
16575   if (exit $ac_status) && test -s out/conftest2.$ac_objext
16576   then
16577     # The compiler can only warn and ignore the option if not recognized
16578     # So say no if there are warnings
16579     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16580     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16581     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16582       lt_cv_prog_compiler_c_o_GCJ=yes
16583     fi
16584   fi
16585   chmod u+w . 2>&5
16586   $rm conftest*
16587   # SGI C++ compiler will create directory out/ii_files/ for
16588   # template instantiation
16589   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16590   $rm out/* && rmdir out
16591   cd ..
16592   rmdir conftest
16593   $rm conftest*
16594
16595fi
16596echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16597echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16598
16599
16600hard_links="nottested"
16601if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16602  # do not overwrite the value of need_locks provided by the user
16603  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16604echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16605  hard_links=yes
16606  $rm conftest*
16607  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16608  touch conftest.a
16609  ln conftest.a conftest.b 2>&5 || hard_links=no
16610  ln conftest.a conftest.b 2>/dev/null && hard_links=no
16611  echo "$as_me:$LINENO: result: $hard_links" >&5
16612echo "${ECHO_T}$hard_links" >&6
16613  if test "$hard_links" = no; then
16614    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16615echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16616    need_locks=warn
16617  fi
16618else
16619  need_locks=no
16620fi
16621
16622echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16623echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16624
16625  runpath_var=
16626  allow_undefined_flag_GCJ=
16627  enable_shared_with_static_runtimes_GCJ=no
16628  archive_cmds_GCJ=
16629  archive_expsym_cmds_GCJ=
16630  old_archive_From_new_cmds_GCJ=
16631  old_archive_from_expsyms_cmds_GCJ=
16632  export_dynamic_flag_spec_GCJ=
16633  whole_archive_flag_spec_GCJ=
16634  thread_safe_flag_spec_GCJ=
16635  hardcode_libdir_flag_spec_GCJ=
16636  hardcode_libdir_flag_spec_ld_GCJ=
16637  hardcode_libdir_separator_GCJ=
16638  hardcode_direct_GCJ=no
16639  hardcode_minus_L_GCJ=no
16640  hardcode_shlibpath_var_GCJ=unsupported
16641  link_all_deplibs_GCJ=unknown
16642  hardcode_automatic_GCJ=no
16643  module_cmds_GCJ=
16644  module_expsym_cmds_GCJ=
16645  always_export_symbols_GCJ=no
16646  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16647  # include_expsyms should be a list of space-separated symbols to be *always*
16648  # included in the symbol list
16649  include_expsyms_GCJ=
16650  # exclude_expsyms can be an extended regexp of symbols to exclude
16651  # it will be wrapped by ` (' and `)$', so one must not match beginning or
16652  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16653  # as well as any symbol that contains `d'.
16654  exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16655  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16656  # platforms (ab)use it in PIC code, but their linkers get confused if
16657  # the symbol is explicitly referenced.  Since portable code cannot
16658  # rely on this symbol name, it's probably fine to never include it in
16659  # preloaded symbol tables.
16660  # Exclude shared library initialization/finalization symbols.
16661  extract_expsyms_cmds=
16662  # Just being paranoid about ensuring that cc_basename is set.
16663  for cc_temp in $compiler""; do
16664  case $cc_temp in
16665    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16666    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16667    \-*) ;;
16668    *) break;;
16669  esac
16670done
16671cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16672
16673  case $host_os in
16674  cygwin* | mingw* | pw32*)
16675    # FIXME: the MSVC++ port hasn't been tested in a loooong time
16676    # When not using gcc, we currently assume that we are using
16677    # Microsoft Visual C++.
16678    if test "$GCC" != yes; then
16679      with_gnu_ld=no
16680    fi
16681    ;;
16682  interix*)
16683    # we just hope/assume this is gcc and not c89 (= MSVC++)
16684    with_gnu_ld=yes
16685    ;;
16686  openbsd*)
16687    with_gnu_ld=no
16688    ;;
16689  esac
16690
16691  ld_shlibs_GCJ=yes
16692  if test "$with_gnu_ld" = yes; then
16693    # If archive_cmds runs LD, not CC, wlarc should be empty
16694    wlarc='${wl}'
16695
16696    # Set some defaults for GNU ld with shared library support. These
16697    # are reset later if shared libraries are not supported. Putting them
16698    # here allows them to be overridden if necessary.
16699    runpath_var=LD_RUN_PATH
16700    hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16701    export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16702    # ancient GNU ld didn't support --whole-archive et. al.
16703    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16704	whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16705      else
16706  	whole_archive_flag_spec_GCJ=
16707    fi
16708    supports_anon_versioning=no
16709    case `$LD -v 2>/dev/null` in
16710      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16711      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16712      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16713      *\ 2.11.*) ;; # other 2.11 versions
16714      *) supports_anon_versioning=yes ;;
16715    esac
16716
16717    # See if GNU ld supports shared libraries.
16718    case $host_os in
16719    aix[3-9]*)
16720      # On AIX/PPC, the GNU linker is very broken
16721      if test "$host_cpu" != ia64; then
16722	ld_shlibs_GCJ=no
16723	cat <<EOF 1>&2
16724
16725*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16726*** to be unable to reliably create shared libraries on AIX.
16727*** Therefore, libtool is disabling shared libraries support.  If you
16728*** really care for shared libraries, you may want to modify your PATH
16729*** so that a non-GNU linker is found, and then restart.
16730
16731EOF
16732      fi
16733      ;;
16734
16735    amigaos*)
16736      archive_cmds_GCJ='$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)'
16737      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16738      hardcode_minus_L_GCJ=yes
16739
16740      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16741      # that the semantics of dynamic libraries on AmigaOS, at least up
16742      # to version 4, is to share data among multiple programs linked
16743      # with the same dynamic library.  Since this doesn't match the
16744      # behavior of shared libraries on other platforms, we can't use
16745      # them.
16746      ld_shlibs_GCJ=no
16747      ;;
16748
16749    beos*)
16750      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16751	allow_undefined_flag_GCJ=unsupported
16752	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16753	# support --undefined.  This deserves some investigation.  FIXME
16754	archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16755      else
16756	ld_shlibs_GCJ=no
16757      fi
16758      ;;
16759
16760    cygwin* | mingw* | pw32*)
16761      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16762      # as there is no search path for DLLs.
16763      hardcode_libdir_flag_spec_GCJ='-L$libdir'
16764      allow_undefined_flag_GCJ=unsupported
16765      always_export_symbols_GCJ=no
16766      enable_shared_with_static_runtimes_GCJ=yes
16767      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16768
16769      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16770        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16771	# If the export-symbols file already is a .def file (1st line
16772	# is EXPORTS), use it as is; otherwise, prepend...
16773	archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16774	  cp $export_symbols $output_objdir/$soname.def;
16775	else
16776	  echo EXPORTS > $output_objdir/$soname.def;
16777	  cat $export_symbols >> $output_objdir/$soname.def;
16778	fi~
16779	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16780      else
16781	ld_shlibs_GCJ=no
16782      fi
16783      ;;
16784
16785    interix[3-9]*)
16786      hardcode_direct_GCJ=no
16787      hardcode_shlibpath_var_GCJ=no
16788      hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16789      export_dynamic_flag_spec_GCJ='${wl}-E'
16790      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16791      # Instead, shared libraries are loaded at an image base (0x10000000 by
16792      # default) and relocated if they conflict, which is a slow very memory
16793      # consuming and fragmenting process.  To avoid this, we pick a random,
16794      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16795      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16796      archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16797      archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16798      ;;
16799
16800    gnu* | linux* | k*bsd*-gnu)
16801      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16802	tmp_addflag=
16803	case $cc_basename,$host_cpu in
16804	pgcc*)				# Portland Group C compiler
16805	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16806	  tmp_addflag=' $pic_flag'
16807	  ;;
16808	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
16809	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16810	  tmp_addflag=' $pic_flag -Mnomain' ;;
16811	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
16812	  tmp_addflag=' -i_dynamic' ;;
16813	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
16814	  tmp_addflag=' -i_dynamic -nofor_main' ;;
16815	ifc* | ifort*)			# Intel Fortran compiler
16816	  tmp_addflag=' -nofor_main' ;;
16817	esac
16818	case `$CC -V 2>&1 | sed 5q` in
16819	*Sun\ C*)			# Sun C 5.9
16820	  whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16821	  tmp_sharedflag='-G' ;;
16822	*Sun\ F*)			# Sun Fortran 8.3
16823	  tmp_sharedflag='-G' ;;
16824	*)
16825	  tmp_sharedflag='-shared' ;;
16826	esac
16827	archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16828
16829	if test $supports_anon_versioning = yes; then
16830	  archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16831  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16832  $echo "local: *; };" >> $output_objdir/$libname.ver~
16833	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16834	fi
16835      else
16836	ld_shlibs_GCJ=no
16837      fi
16838      ;;
16839
16840    netbsd*)
16841      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16842	archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16843	wlarc=
16844      else
16845	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16846	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16847      fi
16848      ;;
16849
16850    solaris*)
16851      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16852	ld_shlibs_GCJ=no
16853	cat <<EOF 1>&2
16854
16855*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16856*** create shared libraries on Solaris systems.  Therefore, libtool
16857*** is disabling shared libraries support.  We urge you to upgrade GNU
16858*** binutils to release 2.9.1 or newer.  Another option is to modify
16859*** your PATH or compiler configuration so that the native linker is
16860*** used, and then restart.
16861
16862EOF
16863      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16864	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16866      else
16867	ld_shlibs_GCJ=no
16868      fi
16869      ;;
16870
16871    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16872      case `$LD -v 2>&1` in
16873        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16874	ld_shlibs_GCJ=no
16875	cat <<_LT_EOF 1>&2
16876
16877*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16878*** reliably create shared libraries on SCO systems.  Therefore, libtool
16879*** is disabling shared libraries support.  We urge you to upgrade GNU
16880*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16881*** your PATH or compiler configuration so that the native linker is
16882*** used, and then restart.
16883
16884_LT_EOF
16885	;;
16886	*)
16887	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16888	    hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16889	    archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16890	    archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16891	  else
16892	    ld_shlibs_GCJ=no
16893	  fi
16894	;;
16895      esac
16896      ;;
16897
16898    sunos4*)
16899      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16900      wlarc=
16901      hardcode_direct_GCJ=yes
16902      hardcode_shlibpath_var_GCJ=no
16903      ;;
16904
16905    *)
16906      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16907	archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16908	archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16909      else
16910	ld_shlibs_GCJ=no
16911      fi
16912      ;;
16913    esac
16914
16915    if test "$ld_shlibs_GCJ" = no; then
16916      runpath_var=
16917      hardcode_libdir_flag_spec_GCJ=
16918      export_dynamic_flag_spec_GCJ=
16919      whole_archive_flag_spec_GCJ=
16920    fi
16921  else
16922    # PORTME fill in a description of your system's linker (not GNU ld)
16923    case $host_os in
16924    aix3*)
16925      allow_undefined_flag_GCJ=unsupported
16926      always_export_symbols_GCJ=yes
16927      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16928      # Note: this linker hardcodes the directories in LIBPATH if there
16929      # are no directories specified by -L.
16930      hardcode_minus_L_GCJ=yes
16931      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16932	# Neither direct hardcoding nor static linking is supported with a
16933	# broken collect2.
16934	hardcode_direct_GCJ=unsupported
16935      fi
16936      ;;
16937
16938    aix[4-9]*)
16939      if test "$host_cpu" = ia64; then
16940	# On IA64, the linker does run time linking by default, so we don't
16941	# have to do anything special.
16942	aix_use_runtimelinking=no
16943	exp_sym_flag='-Bexport'
16944	no_entry_flag=""
16945      else
16946	# If we're using GNU nm, then we don't want the "-C" option.
16947	# -C means demangle to AIX nm, but means don't demangle with GNU nm
16948	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16949	  export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16950	else
16951	  export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16952	fi
16953	aix_use_runtimelinking=no
16954
16955	# Test if we are trying to use run time linking or normal
16956	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
16957	# need to do runtime linking.
16958	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16959	  for ld_flag in $LDFLAGS; do
16960  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16961  	    aix_use_runtimelinking=yes
16962  	    break
16963  	  fi
16964	  done
16965	  ;;
16966	esac
16967
16968	exp_sym_flag='-bexport'
16969	no_entry_flag='-bnoentry'
16970      fi
16971
16972      # When large executables or shared objects are built, AIX ld can
16973      # have problems creating the table of contents.  If linking a library
16974      # or program results in "error TOC overflow" add -mminimal-toc to
16975      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16976      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16977
16978      archive_cmds_GCJ=''
16979      hardcode_direct_GCJ=yes
16980      hardcode_libdir_separator_GCJ=':'
16981      link_all_deplibs_GCJ=yes
16982
16983      if test "$GCC" = yes; then
16984	case $host_os in aix4.[012]|aix4.[012].*)
16985	# We only want to do this on AIX 4.2 and lower, the check
16986	# below for broken collect2 doesn't work under 4.3+
16987	  collect2name=`${CC} -print-prog-name=collect2`
16988	  if test -f "$collect2name" && \
16989  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
16990	  then
16991  	  # We have reworked collect2
16992  	  :
16993	  else
16994  	  # We have old collect2
16995  	  hardcode_direct_GCJ=unsupported
16996  	  # It fails to find uninstalled libraries when the uninstalled
16997  	  # path is not listed in the libpath.  Setting hardcode_minus_L
16998  	  # to unsupported forces relinking
16999  	  hardcode_minus_L_GCJ=yes
17000  	  hardcode_libdir_flag_spec_GCJ='-L$libdir'
17001  	  hardcode_libdir_separator_GCJ=
17002	  fi
17003	  ;;
17004	esac
17005	shared_flag='-shared'
17006	if test "$aix_use_runtimelinking" = yes; then
17007	  shared_flag="$shared_flag "'${wl}-G'
17008	fi
17009      else
17010	# not using gcc
17011	if test "$host_cpu" = ia64; then
17012  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17013  	# chokes on -Wl,-G. The following line is correct:
17014	  shared_flag='-G'
17015	else
17016	  if test "$aix_use_runtimelinking" = yes; then
17017	    shared_flag='${wl}-G'
17018	  else
17019	    shared_flag='${wl}-bM:SRE'
17020	  fi
17021	fi
17022      fi
17023
17024      # It seems that -bexpall does not export symbols beginning with
17025      # underscore (_), so it is better to generate a list of symbols to export.
17026      always_export_symbols_GCJ=yes
17027      if test "$aix_use_runtimelinking" = yes; then
17028	# Warning - without using the other runtime loading flags (-brtl),
17029	# -berok will link without error, but may produce a broken library.
17030	allow_undefined_flag_GCJ='-berok'
17031       # Determine the default libpath from the value encoded in an empty executable.
17032       cat >conftest.$ac_ext <<_ACEOF
17033/* confdefs.h.  */
17034_ACEOF
17035cat confdefs.h >>conftest.$ac_ext
17036cat >>conftest.$ac_ext <<_ACEOF
17037/* end confdefs.h.  */
17038
17039int
17040main ()
17041{
17042
17043  ;
17044  return 0;
17045}
17046_ACEOF
17047rm -f conftest.$ac_objext conftest$ac_exeext
17048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17049  (eval $ac_link) 2>conftest.er1
17050  ac_status=$?
17051  grep -v '^ *+' conftest.er1 >conftest.err
17052  rm -f conftest.er1
17053  cat conftest.err >&5
17054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055  (exit $ac_status); } &&
17056	 { ac_try='test -z "$ac_c_werror_flag"
17057			 || test ! -s conftest.err'
17058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059  (eval $ac_try) 2>&5
17060  ac_status=$?
17061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062  (exit $ac_status); }; } &&
17063	 { ac_try='test -s conftest$ac_exeext'
17064  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17065  (eval $ac_try) 2>&5
17066  ac_status=$?
17067  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068  (exit $ac_status); }; }; then
17069
17070lt_aix_libpath_sed='
17071    /Import File Strings/,/^$/ {
17072	/^0/ {
17073	    s/^0  *\(.*\)$/\1/
17074	    p
17075	}
17076    }'
17077aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17078# Check for a 64-bit object if we didn't find anything.
17079if test -z "$aix_libpath"; then
17080  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17081fi
17082else
17083  echo "$as_me: failed program was:" >&5
17084sed 's/^/| /' conftest.$ac_ext >&5
17085
17086fi
17087rm -f conftest.err conftest.$ac_objext \
17088      conftest$ac_exeext conftest.$ac_ext
17089if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17090
17091       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17092	archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17093       else
17094	if test "$host_cpu" = ia64; then
17095	  hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17096	  allow_undefined_flag_GCJ="-z nodefs"
17097	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17098	else
17099	 # Determine the default libpath from the value encoded in an empty executable.
17100	 cat >conftest.$ac_ext <<_ACEOF
17101/* confdefs.h.  */
17102_ACEOF
17103cat confdefs.h >>conftest.$ac_ext
17104cat >>conftest.$ac_ext <<_ACEOF
17105/* end confdefs.h.  */
17106
17107int
17108main ()
17109{
17110
17111  ;
17112  return 0;
17113}
17114_ACEOF
17115rm -f conftest.$ac_objext conftest$ac_exeext
17116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17117  (eval $ac_link) 2>conftest.er1
17118  ac_status=$?
17119  grep -v '^ *+' conftest.er1 >conftest.err
17120  rm -f conftest.er1
17121  cat conftest.err >&5
17122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123  (exit $ac_status); } &&
17124	 { ac_try='test -z "$ac_c_werror_flag"
17125			 || test ! -s conftest.err'
17126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17127  (eval $ac_try) 2>&5
17128  ac_status=$?
17129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17130  (exit $ac_status); }; } &&
17131	 { ac_try='test -s conftest$ac_exeext'
17132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17133  (eval $ac_try) 2>&5
17134  ac_status=$?
17135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17136  (exit $ac_status); }; }; then
17137
17138lt_aix_libpath_sed='
17139    /Import File Strings/,/^$/ {
17140	/^0/ {
17141	    s/^0  *\(.*\)$/\1/
17142	    p
17143	}
17144    }'
17145aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17146# Check for a 64-bit object if we didn't find anything.
17147if test -z "$aix_libpath"; then
17148  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17149fi
17150else
17151  echo "$as_me: failed program was:" >&5
17152sed 's/^/| /' conftest.$ac_ext >&5
17153
17154fi
17155rm -f conftest.err conftest.$ac_objext \
17156      conftest$ac_exeext conftest.$ac_ext
17157if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17158
17159	 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17160	  # Warning - without using the other run time loading flags,
17161	  # -berok will link without error, but may produce a broken library.
17162	  no_undefined_flag_GCJ=' ${wl}-bernotok'
17163	  allow_undefined_flag_GCJ=' ${wl}-berok'
17164	  # Exported symbols can be pulled into shared objects from archives
17165	  whole_archive_flag_spec_GCJ='$convenience'
17166	  archive_cmds_need_lc_GCJ=yes
17167	  # This is similar to how AIX traditionally builds its shared libraries.
17168	  archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17169	fi
17170      fi
17171      ;;
17172
17173    amigaos*)
17174      archive_cmds_GCJ='$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)'
17175      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17176      hardcode_minus_L_GCJ=yes
17177      # see comment about different semantics on the GNU ld section
17178      ld_shlibs_GCJ=no
17179      ;;
17180
17181    bsdi[45]*)
17182      export_dynamic_flag_spec_GCJ=-rdynamic
17183      ;;
17184
17185    cygwin* | mingw* | pw32*)
17186      # When not using gcc, we currently assume that we are using
17187      # Microsoft Visual C++.
17188      # hardcode_libdir_flag_spec is actually meaningless, as there is
17189      # no search path for DLLs.
17190      hardcode_libdir_flag_spec_GCJ=' '
17191      allow_undefined_flag_GCJ=unsupported
17192      # Tell ltmain to make .lib files, not .a files.
17193      libext=lib
17194      # Tell ltmain to make .dll files, not .so files.
17195      shrext_cmds=".dll"
17196      # FIXME: Setting linknames here is a bad hack.
17197      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17198      # The linker will automatically build a .lib file if we build a DLL.
17199      old_archive_From_new_cmds_GCJ='true'
17200      # FIXME: Should let the user specify the lib program.
17201      old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17202      fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17203      enable_shared_with_static_runtimes_GCJ=yes
17204      ;;
17205
17206    darwin* | rhapsody*)
17207      case $host_os in
17208        rhapsody* | darwin1.[012])
17209         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17210         ;;
17211       *) # Darwin 1.3 on
17212         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17213           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17214         else
17215           case ${MACOSX_DEPLOYMENT_TARGET} in
17216             10.[012])
17217               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17218               ;;
17219             10.*)
17220               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17221               ;;
17222           esac
17223         fi
17224         ;;
17225      esac
17226      archive_cmds_need_lc_GCJ=no
17227      hardcode_direct_GCJ=no
17228      hardcode_automatic_GCJ=yes
17229      hardcode_shlibpath_var_GCJ=unsupported
17230      whole_archive_flag_spec_GCJ=''
17231      link_all_deplibs_GCJ=yes
17232    if test "$GCC" = yes ; then
17233    	output_verbose_link_cmd='echo'
17234        archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17235        module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236        archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17237        module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17238    else
17239      case $cc_basename in
17240        xlc*)
17241         output_verbose_link_cmd='echo'
17242         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17243         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17244          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17245         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17246          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17247          ;;
17248       *)
17249         ld_shlibs_GCJ=no
17250          ;;
17251      esac
17252    fi
17253      ;;
17254
17255    dgux*)
17256      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17257      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17258      hardcode_shlibpath_var_GCJ=no
17259      ;;
17260
17261    freebsd1*)
17262      ld_shlibs_GCJ=no
17263      ;;
17264
17265    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17266    # support.  Future versions do this automatically, but an explicit c++rt0.o
17267    # does not break anything, and helps significantly (at the cost of a little
17268    # extra space).
17269    freebsd2.2*)
17270      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17271      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17272      hardcode_direct_GCJ=yes
17273      hardcode_shlibpath_var_GCJ=no
17274      ;;
17275
17276    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17277    freebsd2*)
17278      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17279      hardcode_direct_GCJ=yes
17280      hardcode_minus_L_GCJ=yes
17281      hardcode_shlibpath_var_GCJ=no
17282      ;;
17283
17284    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17285    freebsd* | dragonfly*)
17286      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17287      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17288      hardcode_direct_GCJ=yes
17289      hardcode_shlibpath_var_GCJ=no
17290      ;;
17291
17292    hpux9*)
17293      if test "$GCC" = yes; then
17294	archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17295      else
17296	archive_cmds_GCJ='$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'
17297      fi
17298      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17299      hardcode_libdir_separator_GCJ=:
17300      hardcode_direct_GCJ=yes
17301
17302      # hardcode_minus_L: Not really in the search PATH,
17303      # but as the default location of the library.
17304      hardcode_minus_L_GCJ=yes
17305      export_dynamic_flag_spec_GCJ='${wl}-E'
17306      ;;
17307
17308    hpux10*)
17309      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17310	archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17311      else
17312	archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17313      fi
17314      if test "$with_gnu_ld" = no; then
17315	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17316	hardcode_libdir_separator_GCJ=:
17317
17318	hardcode_direct_GCJ=yes
17319	export_dynamic_flag_spec_GCJ='${wl}-E'
17320
17321	# hardcode_minus_L: Not really in the search PATH,
17322	# but as the default location of the library.
17323	hardcode_minus_L_GCJ=yes
17324      fi
17325      ;;
17326
17327    hpux11*)
17328      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17329	case $host_cpu in
17330	hppa*64*)
17331	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17332	  ;;
17333	ia64*)
17334	  archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17335	  ;;
17336	*)
17337	  archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17338	  ;;
17339	esac
17340      else
17341	case $host_cpu in
17342	hppa*64*)
17343	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17344	  ;;
17345	ia64*)
17346	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17347	  ;;
17348	*)
17349	  archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17350	  ;;
17351	esac
17352      fi
17353      if test "$with_gnu_ld" = no; then
17354	hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17355	hardcode_libdir_separator_GCJ=:
17356
17357	case $host_cpu in
17358	hppa*64*|ia64*)
17359	  hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17360	  hardcode_direct_GCJ=no
17361	  hardcode_shlibpath_var_GCJ=no
17362	  ;;
17363	*)
17364	  hardcode_direct_GCJ=yes
17365	  export_dynamic_flag_spec_GCJ='${wl}-E'
17366
17367	  # hardcode_minus_L: Not really in the search PATH,
17368	  # but as the default location of the library.
17369	  hardcode_minus_L_GCJ=yes
17370	  ;;
17371	esac
17372      fi
17373      ;;
17374
17375    irix5* | irix6* | nonstopux*)
17376      if test "$GCC" = yes; then
17377	archive_cmds_GCJ='$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'
17378      else
17379	archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17380	hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17381      fi
17382      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17383      hardcode_libdir_separator_GCJ=:
17384      link_all_deplibs_GCJ=yes
17385      ;;
17386
17387    netbsd*)
17388      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17389	archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
17390      else
17391	archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
17392      fi
17393      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17394      hardcode_direct_GCJ=yes
17395      hardcode_shlibpath_var_GCJ=no
17396      ;;
17397
17398    newsos6)
17399      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17400      hardcode_direct_GCJ=yes
17401      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17402      hardcode_libdir_separator_GCJ=:
17403      hardcode_shlibpath_var_GCJ=no
17404      ;;
17405
17406    openbsd*)
17407      if test -f /usr/libexec/ld.so; then
17408	hardcode_direct_GCJ=yes
17409	hardcode_shlibpath_var_GCJ=no
17410	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17411	  archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17412	  archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17413	  hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17414	  export_dynamic_flag_spec_GCJ='${wl}-E'
17415	else
17416	  case $host_os in
17417	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17418	     archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17419	     hardcode_libdir_flag_spec_GCJ='-R$libdir'
17420	     ;;
17421	   *)
17422	     archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17423	     hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17424	     ;;
17425	  esac
17426        fi
17427      else
17428	ld_shlibs_GCJ=no
17429      fi
17430      ;;
17431
17432    os2*)
17433      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17434      hardcode_minus_L_GCJ=yes
17435      allow_undefined_flag_GCJ=unsupported
17436      archive_cmds_GCJ='$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'
17437      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17438      ;;
17439
17440    osf3*)
17441      if test "$GCC" = yes; then
17442	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17443	archive_cmds_GCJ='$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'
17444      else
17445	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17446	archive_cmds_GCJ='$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'
17447      fi
17448      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17449      hardcode_libdir_separator_GCJ=:
17450      ;;
17451
17452    osf4* | osf5*)	# as osf3* with the addition of -msym flag
17453      if test "$GCC" = yes; then
17454	allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17455	archive_cmds_GCJ='$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'
17456	hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17457      else
17458	allow_undefined_flag_GCJ=' -expect_unresolved \*'
17459	archive_cmds_GCJ='$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'
17460	archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17461	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17462
17463	# Both c and cxx compiler support -rpath directly
17464	hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17465      fi
17466      hardcode_libdir_separator_GCJ=:
17467      ;;
17468
17469    solaris*)
17470      no_undefined_flag_GCJ=' -z text'
17471      if test "$GCC" = yes; then
17472	wlarc='${wl}'
17473	archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17474	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17475	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17476      else
17477	wlarc=''
17478	archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17479	archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17480  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17481      fi
17482      hardcode_libdir_flag_spec_GCJ='-R$libdir'
17483      hardcode_shlibpath_var_GCJ=no
17484      case $host_os in
17485      solaris2.[0-5] | solaris2.[0-5].*) ;;
17486      *)
17487	# The compiler driver will combine and reorder linker options,
17488	# but understands `-z linker_flag'.  GCC discards it without `$wl',
17489	# but is careful enough not to reorder.
17490 	# Supported since Solaris 2.6 (maybe 2.5.1?)
17491	if test "$GCC" = yes; then
17492	  whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17493	else
17494	  whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17495	fi
17496	;;
17497      esac
17498      link_all_deplibs_GCJ=yes
17499      ;;
17500
17501    sunos4*)
17502      if test "x$host_vendor" = xsequent; then
17503	# Use $CC to link under sequent, because it throws in some extra .o
17504	# files that make .init and .fini sections work.
17505	archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17506      else
17507	archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17508      fi
17509      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17510      hardcode_direct_GCJ=yes
17511      hardcode_minus_L_GCJ=yes
17512      hardcode_shlibpath_var_GCJ=no
17513      ;;
17514
17515    sysv4)
17516      case $host_vendor in
17517	sni)
17518	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17519	  hardcode_direct_GCJ=yes # is this really true???
17520	;;
17521	siemens)
17522	  ## LD is ld it makes a PLAMLIB
17523	  ## CC just makes a GrossModule.
17524	  archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17525	  reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17526	  hardcode_direct_GCJ=no
17527        ;;
17528	motorola)
17529	  archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530	  hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17531	;;
17532      esac
17533      runpath_var='LD_RUN_PATH'
17534      hardcode_shlibpath_var_GCJ=no
17535      ;;
17536
17537    sysv4.3*)
17538      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539      hardcode_shlibpath_var_GCJ=no
17540      export_dynamic_flag_spec_GCJ='-Bexport'
17541      ;;
17542
17543    sysv4*MP*)
17544      if test -d /usr/nec; then
17545	archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17546	hardcode_shlibpath_var_GCJ=no
17547	runpath_var=LD_RUN_PATH
17548	hardcode_runpath_var=yes
17549	ld_shlibs_GCJ=yes
17550      fi
17551      ;;
17552
17553    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17554      no_undefined_flag_GCJ='${wl}-z,text'
17555      archive_cmds_need_lc_GCJ=no
17556      hardcode_shlibpath_var_GCJ=no
17557      runpath_var='LD_RUN_PATH'
17558
17559      if test "$GCC" = yes; then
17560	archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562      else
17563	archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565      fi
17566      ;;
17567
17568    sysv5* | sco3.2v5* | sco5v6*)
17569      # Note: We can NOT use -z defs as we might desire, because we do not
17570      # link with -lc, and that would cause any symbols used from libc to
17571      # always be unresolved, which means just about no library would
17572      # ever link correctly.  If we're not using GNU ld we use -z text
17573      # though, which does catch some bad symbols but isn't as heavy-handed
17574      # as -z defs.
17575      no_undefined_flag_GCJ='${wl}-z,text'
17576      allow_undefined_flag_GCJ='${wl}-z,nodefs'
17577      archive_cmds_need_lc_GCJ=no
17578      hardcode_shlibpath_var_GCJ=no
17579      hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17580      hardcode_libdir_separator_GCJ=':'
17581      link_all_deplibs_GCJ=yes
17582      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17583      runpath_var='LD_RUN_PATH'
17584
17585      if test "$GCC" = yes; then
17586	archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587	archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588      else
17589	archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17590	archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591      fi
17592      ;;
17593
17594    uts4*)
17595      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17596      hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597      hardcode_shlibpath_var_GCJ=no
17598      ;;
17599
17600    *)
17601      ld_shlibs_GCJ=no
17602      ;;
17603    esac
17604  fi
17605
17606echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17607echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17608test "$ld_shlibs_GCJ" = no && can_build_shared=no
17609
17610#
17611# Do we need to explicitly link libc?
17612#
17613case "x$archive_cmds_need_lc_GCJ" in
17614x|xyes)
17615  # Assume -lc should be added
17616  archive_cmds_need_lc_GCJ=yes
17617
17618  if test "$enable_shared" = yes && test "$GCC" = yes; then
17619    case $archive_cmds_GCJ in
17620    *'~'*)
17621      # FIXME: we may have to deal with multi-command sequences.
17622      ;;
17623    '$CC '*)
17624      # Test whether the compiler implicitly links with -lc since on some
17625      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17626      # to ld, don't add -lc before -lgcc.
17627      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17628echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17629      $rm conftest*
17630      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17631
17632      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17633  (eval $ac_compile) 2>&5
17634  ac_status=$?
17635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636  (exit $ac_status); } 2>conftest.err; then
17637        soname=conftest
17638        lib=conftest
17639        libobjs=conftest.$ac_objext
17640        deplibs=
17641        wl=$lt_prog_compiler_wl_GCJ
17642	pic_flag=$lt_prog_compiler_pic_GCJ
17643        compiler_flags=-v
17644        linker_flags=-v
17645        verstring=
17646        output_objdir=.
17647        libname=conftest
17648        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17649        allow_undefined_flag_GCJ=
17650        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17651  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17652  ac_status=$?
17653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654  (exit $ac_status); }
17655        then
17656	  archive_cmds_need_lc_GCJ=no
17657        else
17658	  archive_cmds_need_lc_GCJ=yes
17659        fi
17660        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17661      else
17662        cat conftest.err 1>&5
17663      fi
17664      $rm conftest*
17665      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17666echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17667      ;;
17668    esac
17669  fi
17670  ;;
17671esac
17672
17673echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17674echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17675library_names_spec=
17676libname_spec='lib$name'
17677soname_spec=
17678shrext_cmds=".so"
17679postinstall_cmds=
17680postuninstall_cmds=
17681finish_cmds=
17682finish_eval=
17683shlibpath_var=
17684shlibpath_overrides_runpath=unknown
17685version_type=none
17686dynamic_linker="$host_os ld.so"
17687sys_lib_dlsearch_path_spec="/lib /usr/lib"
17688
17689need_lib_prefix=unknown
17690hardcode_into_libs=no
17691
17692# when you set need_version to no, make sure it does not cause -set_version
17693# flags to be left without arguments
17694need_version=unknown
17695
17696case $host_os in
17697aix3*)
17698  version_type=linux
17699  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17700  shlibpath_var=LIBPATH
17701
17702  # AIX 3 has no versioning support, so we append a major version to the name.
17703  soname_spec='${libname}${release}${shared_ext}$major'
17704  ;;
17705
17706aix[4-9]*)
17707  version_type=linux
17708  need_lib_prefix=no
17709  need_version=no
17710  hardcode_into_libs=yes
17711  if test "$host_cpu" = ia64; then
17712    # AIX 5 supports IA64
17713    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17714    shlibpath_var=LD_LIBRARY_PATH
17715  else
17716    # With GCC up to 2.95.x, collect2 would create an import file
17717    # for dependence libraries.  The import file would start with
17718    # the line `#! .'.  This would cause the generated library to
17719    # depend on `.', always an invalid library.  This was fixed in
17720    # development snapshots of GCC prior to 3.0.
17721    case $host_os in
17722      aix4 | aix4.[01] | aix4.[01].*)
17723      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17724	   echo ' yes '
17725	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17726	:
17727      else
17728	can_build_shared=no
17729      fi
17730      ;;
17731    esac
17732    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17733    # soname into executable. Probably we can add versioning support to
17734    # collect2, so additional links can be useful in future.
17735    if test "$aix_use_runtimelinking" = yes; then
17736      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17737      # instead of lib<name>.a to let people know that these are not
17738      # typical AIX shared libraries.
17739      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17740    else
17741      # We preserve .a as extension for shared libraries through AIX4.2
17742      # and later when we are not doing run time linking.
17743      library_names_spec='${libname}${release}.a $libname.a'
17744      soname_spec='${libname}${release}${shared_ext}$major'
17745    fi
17746    shlibpath_var=LIBPATH
17747  fi
17748  ;;
17749
17750amigaos*)
17751  library_names_spec='$libname.ixlibrary $libname.a'
17752  # Create ${libname}_ixlibrary.a entries in /sys/libs.
17753  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'
17754  ;;
17755
17756beos*)
17757  library_names_spec='${libname}${shared_ext}'
17758  dynamic_linker="$host_os ld.so"
17759  shlibpath_var=LIBRARY_PATH
17760  ;;
17761
17762bsdi[45]*)
17763  version_type=linux
17764  need_version=no
17765  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17766  soname_spec='${libname}${release}${shared_ext}$major'
17767  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17768  shlibpath_var=LD_LIBRARY_PATH
17769  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17770  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17771  # the default ld.so.conf also contains /usr/contrib/lib and
17772  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17773  # libtool to hard-code these into programs
17774  ;;
17775
17776cygwin* | mingw* | pw32*)
17777  version_type=windows
17778  shrext_cmds=".dll"
17779  need_version=no
17780  need_lib_prefix=no
17781
17782  case $GCC,$host_os in
17783  yes,cygwin* | yes,mingw* | yes,pw32*)
17784    library_names_spec='$libname.dll.a'
17785    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17786    postinstall_cmds='base_file=`basename \${file}`~
17787      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17788      dldir=$destdir/`dirname \$dlpath`~
17789      test -d \$dldir || mkdir -p \$dldir~
17790      $install_prog $dir/$dlname \$dldir/$dlname~
17791      chmod a+x \$dldir/$dlname'
17792    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17793      dlpath=$dir/\$dldll~
17794       $rm \$dlpath'
17795    shlibpath_overrides_runpath=yes
17796
17797    case $host_os in
17798    cygwin*)
17799      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17800      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17801      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17802      ;;
17803    mingw*)
17804      # MinGW DLLs use traditional 'lib' prefix
17805      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17806      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17807      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17808        # It is most probably a Windows format PATH printed by
17809        # mingw gcc, but we are running on Cygwin. Gcc prints its search
17810        # path with ; separators, and with drive letters. We can handle the
17811        # drive letters (cygwin fileutils understands them), so leave them,
17812        # especially as we might pass files found there to a mingw objdump,
17813        # which wouldn't understand a cygwinified path. Ahh.
17814        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17815      else
17816        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17817      fi
17818      ;;
17819    pw32*)
17820      # pw32 DLLs use 'pw' prefix rather than 'lib'
17821      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17822      ;;
17823    esac
17824    ;;
17825
17826  *)
17827    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17828    ;;
17829  esac
17830  dynamic_linker='Win32 ld.exe'
17831  # FIXME: first we should search . and the directory the executable is in
17832  shlibpath_var=PATH
17833  ;;
17834
17835darwin* | rhapsody*)
17836  dynamic_linker="$host_os dyld"
17837  version_type=darwin
17838  need_lib_prefix=no
17839  need_version=no
17840  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17841  soname_spec='${libname}${release}${major}$shared_ext'
17842  shlibpath_overrides_runpath=yes
17843  shlibpath_var=DYLD_LIBRARY_PATH
17844  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17845
17846  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17847  ;;
17848
17849dgux*)
17850  version_type=linux
17851  need_lib_prefix=no
17852  need_version=no
17853  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17854  soname_spec='${libname}${release}${shared_ext}$major'
17855  shlibpath_var=LD_LIBRARY_PATH
17856  ;;
17857
17858freebsd1*)
17859  dynamic_linker=no
17860  ;;
17861
17862freebsd* | dragonfly*)
17863  # DragonFly does not have aout.  When/if they implement a new
17864  # versioning mechanism, adjust this.
17865  if test -x /usr/bin/objformat; then
17866    objformat=`/usr/bin/objformat`
17867  else
17868    case $host_os in
17869    freebsd[123]*) objformat=aout ;;
17870    *) objformat=elf ;;
17871    esac
17872  fi
17873  version_type=freebsd-$objformat
17874  case $version_type in
17875    freebsd-elf*)
17876      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17877      need_version=no
17878      need_lib_prefix=no
17879      ;;
17880    freebsd-*)
17881      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17882      need_version=yes
17883      ;;
17884  esac
17885  shlibpath_var=LD_LIBRARY_PATH
17886  case $host_os in
17887  freebsd2*)
17888    shlibpath_overrides_runpath=yes
17889    ;;
17890  freebsd3.[01]* | freebsdelf3.[01]*)
17891    shlibpath_overrides_runpath=yes
17892    hardcode_into_libs=yes
17893    ;;
17894  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17895  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17896    shlibpath_overrides_runpath=no
17897    hardcode_into_libs=yes
17898    ;;
17899  *) # from 4.6 on, and DragonFly
17900    shlibpath_overrides_runpath=yes
17901    hardcode_into_libs=yes
17902    ;;
17903  esac
17904  ;;
17905
17906gnu*)
17907  version_type=linux
17908  need_lib_prefix=no
17909  need_version=no
17910  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17911  soname_spec='${libname}${release}${shared_ext}$major'
17912  shlibpath_var=LD_LIBRARY_PATH
17913  hardcode_into_libs=yes
17914  ;;
17915
17916hpux9* | hpux10* | hpux11*)
17917  # Give a soname corresponding to the major version so that dld.sl refuses to
17918  # link against other versions.
17919  version_type=sunos
17920  need_lib_prefix=no
17921  need_version=no
17922  case $host_cpu in
17923  ia64*)
17924    shrext_cmds='.so'
17925    hardcode_into_libs=yes
17926    dynamic_linker="$host_os dld.so"
17927    shlibpath_var=LD_LIBRARY_PATH
17928    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17929    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17930    soname_spec='${libname}${release}${shared_ext}$major'
17931    if test "X$HPUX_IA64_MODE" = X32; then
17932      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17933    else
17934      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17935    fi
17936    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17937    ;;
17938   hppa*64*)
17939     shrext_cmds='.sl'
17940     hardcode_into_libs=yes
17941     dynamic_linker="$host_os dld.sl"
17942     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17943     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17944     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17945     soname_spec='${libname}${release}${shared_ext}$major'
17946     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17947     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17948     ;;
17949   *)
17950    shrext_cmds='.sl'
17951    dynamic_linker="$host_os dld.sl"
17952    shlibpath_var=SHLIB_PATH
17953    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17954    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17955    soname_spec='${libname}${release}${shared_ext}$major'
17956    ;;
17957  esac
17958  # HP-UX runs *really* slowly unless shared libraries are mode 555.
17959  postinstall_cmds='chmod 555 $lib'
17960  ;;
17961
17962interix[3-9]*)
17963  version_type=linux
17964  need_lib_prefix=no
17965  need_version=no
17966  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17967  soname_spec='${libname}${release}${shared_ext}$major'
17968  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17969  shlibpath_var=LD_LIBRARY_PATH
17970  shlibpath_overrides_runpath=no
17971  hardcode_into_libs=yes
17972  ;;
17973
17974irix5* | irix6* | nonstopux*)
17975  case $host_os in
17976    nonstopux*) version_type=nonstopux ;;
17977    *)
17978	if test "$lt_cv_prog_gnu_ld" = yes; then
17979		version_type=linux
17980	else
17981		version_type=irix
17982	fi ;;
17983  esac
17984  need_lib_prefix=no
17985  need_version=no
17986  soname_spec='${libname}${release}${shared_ext}$major'
17987  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17988  case $host_os in
17989  irix5* | nonstopux*)
17990    libsuff= shlibsuff=
17991    ;;
17992  *)
17993    case $LD in # libtool.m4 will add one of these switches to LD
17994    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17995      libsuff= shlibsuff= libmagic=32-bit;;
17996    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17997      libsuff=32 shlibsuff=N32 libmagic=N32;;
17998    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17999      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18000    *) libsuff= shlibsuff= libmagic=never-match;;
18001    esac
18002    ;;
18003  esac
18004  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18005  shlibpath_overrides_runpath=no
18006  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18007  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18008  hardcode_into_libs=yes
18009  ;;
18010
18011# No shared lib support for Linux oldld, aout, or coff.
18012linux*oldld* | linux*aout* | linux*coff*)
18013  dynamic_linker=no
18014  ;;
18015
18016# This must be Linux ELF.
18017linux* | k*bsd*-gnu)
18018  version_type=linux
18019  need_lib_prefix=no
18020  need_version=no
18021  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18022  soname_spec='${libname}${release}${shared_ext}$major'
18023  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18024  shlibpath_var=LD_LIBRARY_PATH
18025  shlibpath_overrides_runpath=no
18026  # This implies no fast_install, which is unacceptable.
18027  # Some rework will be needed to allow for fast_install
18028  # before this can be enabled.
18029  hardcode_into_libs=yes
18030  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18031  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18032
18033  # Append ld.so.conf contents to the search path
18034  if test -f /etc/ld.so.conf; then
18035    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ 	]*hwcap[ 	]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18036    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18037  fi
18038
18039  # We used to test for /lib/ld.so.1 and disable shared libraries on
18040  # powerpc, because MkLinux only supported shared libraries with the
18041  # GNU dynamic linker.  Since this was broken with cross compilers,
18042  # most powerpc-linux boxes support dynamic linking these days and
18043  # people can always --disable-shared, the test was removed, and we
18044  # assume the GNU/Linux dynamic linker is in use.
18045  dynamic_linker='GNU/Linux ld.so'
18046  ;;
18047
18048netbsd*)
18049  version_type=sunos
18050  need_lib_prefix=no
18051  need_version=no
18052  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18053    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18054    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18055    dynamic_linker='NetBSD (a.out) ld.so'
18056  else
18057    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18058    soname_spec='${libname}${release}${shared_ext}$major'
18059    dynamic_linker='NetBSD ld.elf_so'
18060  fi
18061  shlibpath_var=LD_LIBRARY_PATH
18062  shlibpath_overrides_runpath=yes
18063  hardcode_into_libs=yes
18064  ;;
18065
18066newsos6)
18067  version_type=linux
18068  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18069  shlibpath_var=LD_LIBRARY_PATH
18070  shlibpath_overrides_runpath=yes
18071  ;;
18072
18073nto-qnx*)
18074  version_type=linux
18075  need_lib_prefix=no
18076  need_version=no
18077  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18078  soname_spec='${libname}${release}${shared_ext}$major'
18079  shlibpath_var=LD_LIBRARY_PATH
18080  shlibpath_overrides_runpath=yes
18081  ;;
18082
18083openbsd*)
18084  version_type=sunos
18085  sys_lib_dlsearch_path_spec="/usr/lib"
18086  need_lib_prefix=no
18087  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18088  case $host_os in
18089    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18090    *)                         need_version=no  ;;
18091  esac
18092  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18093  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18094  shlibpath_var=LD_LIBRARY_PATH
18095  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18096    case $host_os in
18097      openbsd2.[89] | openbsd2.[89].*)
18098	shlibpath_overrides_runpath=no
18099	;;
18100      *)
18101	shlibpath_overrides_runpath=yes
18102	;;
18103      esac
18104  else
18105    shlibpath_overrides_runpath=yes
18106  fi
18107  ;;
18108
18109os2*)
18110  libname_spec='$name'
18111  shrext_cmds=".dll"
18112  need_lib_prefix=no
18113  library_names_spec='$libname${shared_ext} $libname.a'
18114  dynamic_linker='OS/2 ld.exe'
18115  shlibpath_var=LIBPATH
18116  ;;
18117
18118osf3* | osf4* | osf5*)
18119  version_type=osf
18120  need_lib_prefix=no
18121  need_version=no
18122  soname_spec='${libname}${release}${shared_ext}$major'
18123  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18124  shlibpath_var=LD_LIBRARY_PATH
18125  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18126  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18127  ;;
18128
18129rdos*)
18130  dynamic_linker=no
18131  ;;
18132
18133solaris*)
18134  version_type=linux
18135  need_lib_prefix=no
18136  need_version=no
18137  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18138  soname_spec='${libname}${release}${shared_ext}$major'
18139  shlibpath_var=LD_LIBRARY_PATH
18140  shlibpath_overrides_runpath=yes
18141  hardcode_into_libs=yes
18142  # ldd complains unless libraries are executable
18143  postinstall_cmds='chmod +x $lib'
18144  ;;
18145
18146sunos4*)
18147  version_type=sunos
18148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18149  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18150  shlibpath_var=LD_LIBRARY_PATH
18151  shlibpath_overrides_runpath=yes
18152  if test "$with_gnu_ld" = yes; then
18153    need_lib_prefix=no
18154  fi
18155  need_version=yes
18156  ;;
18157
18158sysv4 | sysv4.3*)
18159  version_type=linux
18160  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18161  soname_spec='${libname}${release}${shared_ext}$major'
18162  shlibpath_var=LD_LIBRARY_PATH
18163  case $host_vendor in
18164    sni)
18165      shlibpath_overrides_runpath=no
18166      need_lib_prefix=no
18167      export_dynamic_flag_spec='${wl}-Blargedynsym'
18168      runpath_var=LD_RUN_PATH
18169      ;;
18170    siemens)
18171      need_lib_prefix=no
18172      ;;
18173    motorola)
18174      need_lib_prefix=no
18175      need_version=no
18176      shlibpath_overrides_runpath=no
18177      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18178      ;;
18179  esac
18180  ;;
18181
18182sysv4*MP*)
18183  if test -d /usr/nec ;then
18184    version_type=linux
18185    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18186    soname_spec='$libname${shared_ext}.$major'
18187    shlibpath_var=LD_LIBRARY_PATH
18188  fi
18189  ;;
18190
18191sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18192  version_type=freebsd-elf
18193  need_lib_prefix=no
18194  need_version=no
18195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18196  soname_spec='${libname}${release}${shared_ext}$major'
18197  shlibpath_var=LD_LIBRARY_PATH
18198  hardcode_into_libs=yes
18199  if test "$with_gnu_ld" = yes; then
18200    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18201    shlibpath_overrides_runpath=no
18202  else
18203    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18204    shlibpath_overrides_runpath=yes
18205    case $host_os in
18206      sco3.2v5*)
18207        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18208	;;
18209    esac
18210  fi
18211  sys_lib_dlsearch_path_spec='/usr/lib'
18212  ;;
18213
18214uts4*)
18215  version_type=linux
18216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18217  soname_spec='${libname}${release}${shared_ext}$major'
18218  shlibpath_var=LD_LIBRARY_PATH
18219  ;;
18220
18221*)
18222  dynamic_linker=no
18223  ;;
18224esac
18225echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18226echo "${ECHO_T}$dynamic_linker" >&6
18227test "$dynamic_linker" = no && can_build_shared=no
18228
18229if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18230  echo $ECHO_N "(cached) $ECHO_C" >&6
18231else
18232  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18233fi
18234
18235sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18236if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18237  echo $ECHO_N "(cached) $ECHO_C" >&6
18238else
18239  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18240fi
18241
18242sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18243
18244variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18245if test "$GCC" = yes; then
18246  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18247fi
18248
18249echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18250echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18251hardcode_action_GCJ=
18252if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18253   test -n "$runpath_var_GCJ" || \
18254   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18255
18256  # We can hardcode non-existant directories.
18257  if test "$hardcode_direct_GCJ" != no &&
18258     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18259     # have to relink, otherwise we might link with an installed library
18260     # when we should be linking with a yet-to-be-installed one
18261     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18262     test "$hardcode_minus_L_GCJ" != no; then
18263    # Linking always hardcodes the temporary library directory.
18264    hardcode_action_GCJ=relink
18265  else
18266    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18267    hardcode_action_GCJ=immediate
18268  fi
18269else
18270  # We cannot hardcode anything, or else we can only hardcode existing
18271  # directories.
18272  hardcode_action_GCJ=unsupported
18273fi
18274echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18275echo "${ECHO_T}$hardcode_action_GCJ" >&6
18276
18277if test "$hardcode_action_GCJ" = relink; then
18278  # Fast installation is not supported
18279  enable_fast_install=no
18280elif test "$shlibpath_overrides_runpath" = yes ||
18281     test "$enable_shared" = no; then
18282  # Fast installation is not necessary
18283  enable_fast_install=needless
18284fi
18285
18286
18287# The else clause should only fire when bootstrapping the
18288# libtool distribution, otherwise you forgot to ship ltmain.sh
18289# with your package, and you will get complaints that there are
18290# no rules to generate ltmain.sh.
18291if test -f "$ltmain"; then
18292  # See if we are running on zsh, and set the options which allow our commands through
18293  # without removal of \ escapes.
18294  if test -n "${ZSH_VERSION+set}" ; then
18295    setopt NO_GLOB_SUBST
18296  fi
18297  # Now quote all the things that may contain metacharacters while being
18298  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18299  # variables and quote the copies for generation of the libtool script.
18300  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18301    SED SHELL STRIP \
18302    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18303    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18304    deplibs_check_method reload_flag reload_cmds need_locks \
18305    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18306    lt_cv_sys_global_symbol_to_c_name_address \
18307    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18308    old_postinstall_cmds old_postuninstall_cmds \
18309    compiler_GCJ \
18310    CC_GCJ \
18311    LD_GCJ \
18312    lt_prog_compiler_wl_GCJ \
18313    lt_prog_compiler_pic_GCJ \
18314    lt_prog_compiler_static_GCJ \
18315    lt_prog_compiler_no_builtin_flag_GCJ \
18316    export_dynamic_flag_spec_GCJ \
18317    thread_safe_flag_spec_GCJ \
18318    whole_archive_flag_spec_GCJ \
18319    enable_shared_with_static_runtimes_GCJ \
18320    old_archive_cmds_GCJ \
18321    old_archive_from_new_cmds_GCJ \
18322    predep_objects_GCJ \
18323    postdep_objects_GCJ \
18324    predeps_GCJ \
18325    postdeps_GCJ \
18326    compiler_lib_search_path_GCJ \
18327    compiler_lib_search_dirs_GCJ \
18328    archive_cmds_GCJ \
18329    archive_expsym_cmds_GCJ \
18330    postinstall_cmds_GCJ \
18331    postuninstall_cmds_GCJ \
18332    old_archive_from_expsyms_cmds_GCJ \
18333    allow_undefined_flag_GCJ \
18334    no_undefined_flag_GCJ \
18335    export_symbols_cmds_GCJ \
18336    hardcode_libdir_flag_spec_GCJ \
18337    hardcode_libdir_flag_spec_ld_GCJ \
18338    hardcode_libdir_separator_GCJ \
18339    hardcode_automatic_GCJ \
18340    module_cmds_GCJ \
18341    module_expsym_cmds_GCJ \
18342    lt_cv_prog_compiler_c_o_GCJ \
18343    fix_srcfile_path_GCJ \
18344    exclude_expsyms_GCJ \
18345    include_expsyms_GCJ; do
18346
18347    case $var in
18348    old_archive_cmds_GCJ | \
18349    old_archive_from_new_cmds_GCJ | \
18350    archive_cmds_GCJ | \
18351    archive_expsym_cmds_GCJ | \
18352    module_cmds_GCJ | \
18353    module_expsym_cmds_GCJ | \
18354    old_archive_from_expsyms_cmds_GCJ | \
18355    export_symbols_cmds_GCJ | \
18356    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18357    postinstall_cmds | postuninstall_cmds | \
18358    old_postinstall_cmds | old_postuninstall_cmds | \
18359    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18360      # Double-quote double-evaled strings.
18361      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18362      ;;
18363    *)
18364      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18365      ;;
18366    esac
18367  done
18368
18369  case $lt_echo in
18370  *'\$0 --fallback-echo"')
18371    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18372    ;;
18373  esac
18374
18375cfgfile="$ofile"
18376
18377  cat <<__EOF__ >> "$cfgfile"
18378# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18379
18380# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18381
18382# Shell to use when invoking shell scripts.
18383SHELL=$lt_SHELL
18384
18385# Whether or not to build shared libraries.
18386build_libtool_libs=$enable_shared
18387
18388# Whether or not to build static libraries.
18389build_old_libs=$enable_static
18390
18391# Whether or not to add -lc for building shared libraries.
18392build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18393
18394# Whether or not to disallow shared libs when runtime libs are static
18395allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18396
18397# Whether or not to optimize for fast installation.
18398fast_install=$enable_fast_install
18399
18400# The host system.
18401host_alias=$host_alias
18402host=$host
18403host_os=$host_os
18404
18405# The build system.
18406build_alias=$build_alias
18407build=$build
18408build_os=$build_os
18409
18410# An echo program that does not interpret backslashes.
18411echo=$lt_echo
18412
18413# The archiver.
18414AR=$lt_AR
18415AR_FLAGS=$lt_AR_FLAGS
18416
18417# A C compiler.
18418LTCC=$lt_LTCC
18419
18420# LTCC compiler flags.
18421LTCFLAGS=$lt_LTCFLAGS
18422
18423# A language-specific compiler.
18424CC=$lt_compiler_GCJ
18425
18426# Is the compiler the GNU C compiler?
18427with_gcc=$GCC_GCJ
18428
18429# An ERE matcher.
18430EGREP=$lt_EGREP
18431
18432# The linker used to build libraries.
18433LD=$lt_LD_GCJ
18434
18435# Whether we need hard or soft links.
18436LN_S=$lt_LN_S
18437
18438# A BSD-compatible nm program.
18439NM=$lt_NM
18440
18441# A symbol stripping program
18442STRIP=$lt_STRIP
18443
18444# Used to examine libraries when file_magic_cmd begins "file"
18445MAGIC_CMD=$MAGIC_CMD
18446
18447# Used on cygwin: DLL creation program.
18448DLLTOOL="$DLLTOOL"
18449
18450# Used on cygwin: object dumper.
18451OBJDUMP="$OBJDUMP"
18452
18453# Used on cygwin: assembler.
18454AS="$AS"
18455
18456# The name of the directory that contains temporary libtool files.
18457objdir=$objdir
18458
18459# How to create reloadable object files.
18460reload_flag=$lt_reload_flag
18461reload_cmds=$lt_reload_cmds
18462
18463# How to pass a linker flag through the compiler.
18464wl=$lt_lt_prog_compiler_wl_GCJ
18465
18466# Object file suffix (normally "o").
18467objext="$ac_objext"
18468
18469# Old archive suffix (normally "a").
18470libext="$libext"
18471
18472# Shared library suffix (normally ".so").
18473shrext_cmds='$shrext_cmds'
18474
18475# Executable file suffix (normally "").
18476exeext="$exeext"
18477
18478# Additional compiler flags for building library objects.
18479pic_flag=$lt_lt_prog_compiler_pic_GCJ
18480pic_mode=$pic_mode
18481
18482# What is the maximum length of a command?
18483max_cmd_len=$lt_cv_sys_max_cmd_len
18484
18485# Does compiler simultaneously support -c and -o options?
18486compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18487
18488# Must we lock files when doing compilation?
18489need_locks=$lt_need_locks
18490
18491# Do we need the lib prefix for modules?
18492need_lib_prefix=$need_lib_prefix
18493
18494# Do we need a version for libraries?
18495need_version=$need_version
18496
18497# Whether dlopen is supported.
18498dlopen_support=$enable_dlopen
18499
18500# Whether dlopen of programs is supported.
18501dlopen_self=$enable_dlopen_self
18502
18503# Whether dlopen of statically linked programs is supported.
18504dlopen_self_static=$enable_dlopen_self_static
18505
18506# Compiler flag to prevent dynamic linking.
18507link_static_flag=$lt_lt_prog_compiler_static_GCJ
18508
18509# Compiler flag to turn off builtin functions.
18510no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18511
18512# Compiler flag to allow reflexive dlopens.
18513export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18514
18515# Compiler flag to generate shared objects directly from archives.
18516whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18517
18518# Compiler flag to generate thread-safe objects.
18519thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18520
18521# Library versioning type.
18522version_type=$version_type
18523
18524# Format of library name prefix.
18525libname_spec=$lt_libname_spec
18526
18527# List of archive names.  First name is the real one, the rest are links.
18528# The last name is the one that the linker finds with -lNAME.
18529library_names_spec=$lt_library_names_spec
18530
18531# The coded name of the library, if different from the real name.
18532soname_spec=$lt_soname_spec
18533
18534# Commands used to build and install an old-style archive.
18535RANLIB=$lt_RANLIB
18536old_archive_cmds=$lt_old_archive_cmds_GCJ
18537old_postinstall_cmds=$lt_old_postinstall_cmds
18538old_postuninstall_cmds=$lt_old_postuninstall_cmds
18539
18540# Create an old-style archive from a shared archive.
18541old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18542
18543# Create a temporary old-style archive to link instead of a shared archive.
18544old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18545
18546# Commands used to build and install a shared archive.
18547archive_cmds=$lt_archive_cmds_GCJ
18548archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18549postinstall_cmds=$lt_postinstall_cmds
18550postuninstall_cmds=$lt_postuninstall_cmds
18551
18552# Commands used to build a loadable module (assumed same as above if empty)
18553module_cmds=$lt_module_cmds_GCJ
18554module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18555
18556# Commands to strip libraries.
18557old_striplib=$lt_old_striplib
18558striplib=$lt_striplib
18559
18560# Dependencies to place before the objects being linked to create a
18561# shared library.
18562predep_objects=$lt_predep_objects_GCJ
18563
18564# Dependencies to place after the objects being linked to create a
18565# shared library.
18566postdep_objects=$lt_postdep_objects_GCJ
18567
18568# Dependencies to place before the objects being linked to create a
18569# shared library.
18570predeps=$lt_predeps_GCJ
18571
18572# Dependencies to place after the objects being linked to create a
18573# shared library.
18574postdeps=$lt_postdeps_GCJ
18575
18576# The directories searched by this compiler when creating a shared
18577# library
18578compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18579
18580# The library search path used internally by the compiler when linking
18581# a shared library.
18582compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18583
18584# Method to check whether dependent libraries are shared objects.
18585deplibs_check_method=$lt_deplibs_check_method
18586
18587# Command to use when deplibs_check_method == file_magic.
18588file_magic_cmd=$lt_file_magic_cmd
18589
18590# Flag that allows shared libraries with undefined symbols to be built.
18591allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18592
18593# Flag that forces no undefined symbols.
18594no_undefined_flag=$lt_no_undefined_flag_GCJ
18595
18596# Commands used to finish a libtool library installation in a directory.
18597finish_cmds=$lt_finish_cmds
18598
18599# Same as above, but a single script fragment to be evaled but not shown.
18600finish_eval=$lt_finish_eval
18601
18602# Take the output of nm and produce a listing of raw symbols and C names.
18603global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18604
18605# Transform the output of nm in a proper C declaration
18606global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18607
18608# Transform the output of nm in a C name address pair
18609global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18610
18611# This is the shared library runtime path variable.
18612runpath_var=$runpath_var
18613
18614# This is the shared library path variable.
18615shlibpath_var=$shlibpath_var
18616
18617# Is shlibpath searched before the hard-coded library search path?
18618shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18619
18620# How to hardcode a shared library path into an executable.
18621hardcode_action=$hardcode_action_GCJ
18622
18623# Whether we should hardcode library paths into libraries.
18624hardcode_into_libs=$hardcode_into_libs
18625
18626# Flag to hardcode \$libdir into a binary during linking.
18627# This must work even if \$libdir does not exist.
18628hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18629
18630# If ld is used when linking, flag to hardcode \$libdir into
18631# a binary during linking. This must work even if \$libdir does
18632# not exist.
18633hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18634
18635# Whether we need a single -rpath flag with a separated argument.
18636hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18637
18638# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18639# resulting binary.
18640hardcode_direct=$hardcode_direct_GCJ
18641
18642# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18643# resulting binary.
18644hardcode_minus_L=$hardcode_minus_L_GCJ
18645
18646# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18647# the resulting binary.
18648hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18649
18650# Set to yes if building a shared library automatically hardcodes DIR into the library
18651# and all subsequent libraries and executables linked against it.
18652hardcode_automatic=$hardcode_automatic_GCJ
18653
18654# Variables whose values should be saved in libtool wrapper scripts and
18655# restored at relink time.
18656variables_saved_for_relink="$variables_saved_for_relink"
18657
18658# Whether libtool must link a program against all its dependency libraries.
18659link_all_deplibs=$link_all_deplibs_GCJ
18660
18661# Compile-time system search path for libraries
18662sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18663
18664# Run-time system search path for libraries
18665sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18666
18667# Fix the shell variable \$srcfile for the compiler.
18668fix_srcfile_path=$lt_fix_srcfile_path
18669
18670# Set to yes if exported symbols are required.
18671always_export_symbols=$always_export_symbols_GCJ
18672
18673# The commands to list exported symbols.
18674export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18675
18676# The commands to extract the exported symbol list from a shared archive.
18677extract_expsyms_cmds=$lt_extract_expsyms_cmds
18678
18679# Symbols that should not be listed in the preloaded symbols.
18680exclude_expsyms=$lt_exclude_expsyms_GCJ
18681
18682# Symbols that must always be exported.
18683include_expsyms=$lt_include_expsyms_GCJ
18684
18685# ### END LIBTOOL TAG CONFIG: $tagname
18686
18687__EOF__
18688
18689
18690else
18691  # If there is no Makefile yet, we rely on a make rule to execute
18692  # `config.status --recheck' to rerun these tests and create the
18693  # libtool script then.
18694  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18695  if test -f "$ltmain_in"; then
18696    test -f Makefile && make "$ltmain"
18697  fi
18698fi
18699
18700
18701ac_ext=c
18702ac_cpp='$CPP $CPPFLAGS'
18703ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18704ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18705ac_compiler_gnu=$ac_cv_c_compiler_gnu
18706
18707CC="$lt_save_CC"
18708
18709	else
18710	  tagname=""
18711	fi
18712	;;
18713
18714      RC)
18715
18716
18717
18718# Source file extension for RC test sources.
18719ac_ext=rc
18720
18721# Object file extension for compiled RC test sources.
18722objext=o
18723objext_RC=$objext
18724
18725# Code to be used in simple compile tests
18726lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18727
18728# Code to be used in simple link tests
18729lt_simple_link_test_code="$lt_simple_compile_test_code"
18730
18731# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18732
18733# If no C compiler was specified, use CC.
18734LTCC=${LTCC-"$CC"}
18735
18736# If no C compiler flags were specified, use CFLAGS.
18737LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18738
18739# Allow CC to be a program name with arguments.
18740compiler=$CC
18741
18742
18743# save warnings/boilerplate of simple test code
18744ac_outfile=conftest.$ac_objext
18745echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18746eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18747_lt_compiler_boilerplate=`cat conftest.err`
18748$rm conftest*
18749
18750ac_outfile=conftest.$ac_objext
18751echo "$lt_simple_link_test_code" >conftest.$ac_ext
18752eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18753_lt_linker_boilerplate=`cat conftest.err`
18754$rm -r conftest*
18755
18756
18757# Allow CC to be a program name with arguments.
18758lt_save_CC="$CC"
18759CC=${RC-"windres"}
18760compiler=$CC
18761compiler_RC=$CC
18762for cc_temp in $compiler""; do
18763  case $cc_temp in
18764    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18765    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18766    \-*) ;;
18767    *) break;;
18768  esac
18769done
18770cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18771
18772lt_cv_prog_compiler_c_o_RC=yes
18773
18774# The else clause should only fire when bootstrapping the
18775# libtool distribution, otherwise you forgot to ship ltmain.sh
18776# with your package, and you will get complaints that there are
18777# no rules to generate ltmain.sh.
18778if test -f "$ltmain"; then
18779  # See if we are running on zsh, and set the options which allow our commands through
18780  # without removal of \ escapes.
18781  if test -n "${ZSH_VERSION+set}" ; then
18782    setopt NO_GLOB_SUBST
18783  fi
18784  # Now quote all the things that may contain metacharacters while being
18785  # careful not to overquote the AC_SUBSTed values.  We take copies of the
18786  # variables and quote the copies for generation of the libtool script.
18787  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18788    SED SHELL STRIP \
18789    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18790    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18791    deplibs_check_method reload_flag reload_cmds need_locks \
18792    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18793    lt_cv_sys_global_symbol_to_c_name_address \
18794    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18795    old_postinstall_cmds old_postuninstall_cmds \
18796    compiler_RC \
18797    CC_RC \
18798    LD_RC \
18799    lt_prog_compiler_wl_RC \
18800    lt_prog_compiler_pic_RC \
18801    lt_prog_compiler_static_RC \
18802    lt_prog_compiler_no_builtin_flag_RC \
18803    export_dynamic_flag_spec_RC \
18804    thread_safe_flag_spec_RC \
18805    whole_archive_flag_spec_RC \
18806    enable_shared_with_static_runtimes_RC \
18807    old_archive_cmds_RC \
18808    old_archive_from_new_cmds_RC \
18809    predep_objects_RC \
18810    postdep_objects_RC \
18811    predeps_RC \
18812    postdeps_RC \
18813    compiler_lib_search_path_RC \
18814    compiler_lib_search_dirs_RC \
18815    archive_cmds_RC \
18816    archive_expsym_cmds_RC \
18817    postinstall_cmds_RC \
18818    postuninstall_cmds_RC \
18819    old_archive_from_expsyms_cmds_RC \
18820    allow_undefined_flag_RC \
18821    no_undefined_flag_RC \
18822    export_symbols_cmds_RC \
18823    hardcode_libdir_flag_spec_RC \
18824    hardcode_libdir_flag_spec_ld_RC \
18825    hardcode_libdir_separator_RC \
18826    hardcode_automatic_RC \
18827    module_cmds_RC \
18828    module_expsym_cmds_RC \
18829    lt_cv_prog_compiler_c_o_RC \
18830    fix_srcfile_path_RC \
18831    exclude_expsyms_RC \
18832    include_expsyms_RC; do
18833
18834    case $var in
18835    old_archive_cmds_RC | \
18836    old_archive_from_new_cmds_RC | \
18837    archive_cmds_RC | \
18838    archive_expsym_cmds_RC | \
18839    module_cmds_RC | \
18840    module_expsym_cmds_RC | \
18841    old_archive_from_expsyms_cmds_RC | \
18842    export_symbols_cmds_RC | \
18843    extract_expsyms_cmds | reload_cmds | finish_cmds | \
18844    postinstall_cmds | postuninstall_cmds | \
18845    old_postinstall_cmds | old_postuninstall_cmds | \
18846    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18847      # Double-quote double-evaled strings.
18848      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18849      ;;
18850    *)
18851      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18852      ;;
18853    esac
18854  done
18855
18856  case $lt_echo in
18857  *'\$0 --fallback-echo"')
18858    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18859    ;;
18860  esac
18861
18862cfgfile="$ofile"
18863
18864  cat <<__EOF__ >> "$cfgfile"
18865# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18866
18867# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18868
18869# Shell to use when invoking shell scripts.
18870SHELL=$lt_SHELL
18871
18872# Whether or not to build shared libraries.
18873build_libtool_libs=$enable_shared
18874
18875# Whether or not to build static libraries.
18876build_old_libs=$enable_static
18877
18878# Whether or not to add -lc for building shared libraries.
18879build_libtool_need_lc=$archive_cmds_need_lc_RC
18880
18881# Whether or not to disallow shared libs when runtime libs are static
18882allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18883
18884# Whether or not to optimize for fast installation.
18885fast_install=$enable_fast_install
18886
18887# The host system.
18888host_alias=$host_alias
18889host=$host
18890host_os=$host_os
18891
18892# The build system.
18893build_alias=$build_alias
18894build=$build
18895build_os=$build_os
18896
18897# An echo program that does not interpret backslashes.
18898echo=$lt_echo
18899
18900# The archiver.
18901AR=$lt_AR
18902AR_FLAGS=$lt_AR_FLAGS
18903
18904# A C compiler.
18905LTCC=$lt_LTCC
18906
18907# LTCC compiler flags.
18908LTCFLAGS=$lt_LTCFLAGS
18909
18910# A language-specific compiler.
18911CC=$lt_compiler_RC
18912
18913# Is the compiler the GNU C compiler?
18914with_gcc=$GCC_RC
18915
18916# An ERE matcher.
18917EGREP=$lt_EGREP
18918
18919# The linker used to build libraries.
18920LD=$lt_LD_RC
18921
18922# Whether we need hard or soft links.
18923LN_S=$lt_LN_S
18924
18925# A BSD-compatible nm program.
18926NM=$lt_NM
18927
18928# A symbol stripping program
18929STRIP=$lt_STRIP
18930
18931# Used to examine libraries when file_magic_cmd begins "file"
18932MAGIC_CMD=$MAGIC_CMD
18933
18934# Used on cygwin: DLL creation program.
18935DLLTOOL="$DLLTOOL"
18936
18937# Used on cygwin: object dumper.
18938OBJDUMP="$OBJDUMP"
18939
18940# Used on cygwin: assembler.
18941AS="$AS"
18942
18943# The name of the directory that contains temporary libtool files.
18944objdir=$objdir
18945
18946# How to create reloadable object files.
18947reload_flag=$lt_reload_flag
18948reload_cmds=$lt_reload_cmds
18949
18950# How to pass a linker flag through the compiler.
18951wl=$lt_lt_prog_compiler_wl_RC
18952
18953# Object file suffix (normally "o").
18954objext="$ac_objext"
18955
18956# Old archive suffix (normally "a").
18957libext="$libext"
18958
18959# Shared library suffix (normally ".so").
18960shrext_cmds='$shrext_cmds'
18961
18962# Executable file suffix (normally "").
18963exeext="$exeext"
18964
18965# Additional compiler flags for building library objects.
18966pic_flag=$lt_lt_prog_compiler_pic_RC
18967pic_mode=$pic_mode
18968
18969# What is the maximum length of a command?
18970max_cmd_len=$lt_cv_sys_max_cmd_len
18971
18972# Does compiler simultaneously support -c and -o options?
18973compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18974
18975# Must we lock files when doing compilation?
18976need_locks=$lt_need_locks
18977
18978# Do we need the lib prefix for modules?
18979need_lib_prefix=$need_lib_prefix
18980
18981# Do we need a version for libraries?
18982need_version=$need_version
18983
18984# Whether dlopen is supported.
18985dlopen_support=$enable_dlopen
18986
18987# Whether dlopen of programs is supported.
18988dlopen_self=$enable_dlopen_self
18989
18990# Whether dlopen of statically linked programs is supported.
18991dlopen_self_static=$enable_dlopen_self_static
18992
18993# Compiler flag to prevent dynamic linking.
18994link_static_flag=$lt_lt_prog_compiler_static_RC
18995
18996# Compiler flag to turn off builtin functions.
18997no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18998
18999# Compiler flag to allow reflexive dlopens.
19000export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19001
19002# Compiler flag to generate shared objects directly from archives.
19003whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19004
19005# Compiler flag to generate thread-safe objects.
19006thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19007
19008# Library versioning type.
19009version_type=$version_type
19010
19011# Format of library name prefix.
19012libname_spec=$lt_libname_spec
19013
19014# List of archive names.  First name is the real one, the rest are links.
19015# The last name is the one that the linker finds with -lNAME.
19016library_names_spec=$lt_library_names_spec
19017
19018# The coded name of the library, if different from the real name.
19019soname_spec=$lt_soname_spec
19020
19021# Commands used to build and install an old-style archive.
19022RANLIB=$lt_RANLIB
19023old_archive_cmds=$lt_old_archive_cmds_RC
19024old_postinstall_cmds=$lt_old_postinstall_cmds
19025old_postuninstall_cmds=$lt_old_postuninstall_cmds
19026
19027# Create an old-style archive from a shared archive.
19028old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19029
19030# Create a temporary old-style archive to link instead of a shared archive.
19031old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19032
19033# Commands used to build and install a shared archive.
19034archive_cmds=$lt_archive_cmds_RC
19035archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19036postinstall_cmds=$lt_postinstall_cmds
19037postuninstall_cmds=$lt_postuninstall_cmds
19038
19039# Commands used to build a loadable module (assumed same as above if empty)
19040module_cmds=$lt_module_cmds_RC
19041module_expsym_cmds=$lt_module_expsym_cmds_RC
19042
19043# Commands to strip libraries.
19044old_striplib=$lt_old_striplib
19045striplib=$lt_striplib
19046
19047# Dependencies to place before the objects being linked to create a
19048# shared library.
19049predep_objects=$lt_predep_objects_RC
19050
19051# Dependencies to place after the objects being linked to create a
19052# shared library.
19053postdep_objects=$lt_postdep_objects_RC
19054
19055# Dependencies to place before the objects being linked to create a
19056# shared library.
19057predeps=$lt_predeps_RC
19058
19059# Dependencies to place after the objects being linked to create a
19060# shared library.
19061postdeps=$lt_postdeps_RC
19062
19063# The directories searched by this compiler when creating a shared
19064# library
19065compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19066
19067# The library search path used internally by the compiler when linking
19068# a shared library.
19069compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19070
19071# Method to check whether dependent libraries are shared objects.
19072deplibs_check_method=$lt_deplibs_check_method
19073
19074# Command to use when deplibs_check_method == file_magic.
19075file_magic_cmd=$lt_file_magic_cmd
19076
19077# Flag that allows shared libraries with undefined symbols to be built.
19078allow_undefined_flag=$lt_allow_undefined_flag_RC
19079
19080# Flag that forces no undefined symbols.
19081no_undefined_flag=$lt_no_undefined_flag_RC
19082
19083# Commands used to finish a libtool library installation in a directory.
19084finish_cmds=$lt_finish_cmds
19085
19086# Same as above, but a single script fragment to be evaled but not shown.
19087finish_eval=$lt_finish_eval
19088
19089# Take the output of nm and produce a listing of raw symbols and C names.
19090global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19091
19092# Transform the output of nm in a proper C declaration
19093global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19094
19095# Transform the output of nm in a C name address pair
19096global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19097
19098# This is the shared library runtime path variable.
19099runpath_var=$runpath_var
19100
19101# This is the shared library path variable.
19102shlibpath_var=$shlibpath_var
19103
19104# Is shlibpath searched before the hard-coded library search path?
19105shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19106
19107# How to hardcode a shared library path into an executable.
19108hardcode_action=$hardcode_action_RC
19109
19110# Whether we should hardcode library paths into libraries.
19111hardcode_into_libs=$hardcode_into_libs
19112
19113# Flag to hardcode \$libdir into a binary during linking.
19114# This must work even if \$libdir does not exist.
19115hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19116
19117# If ld is used when linking, flag to hardcode \$libdir into
19118# a binary during linking. This must work even if \$libdir does
19119# not exist.
19120hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19121
19122# Whether we need a single -rpath flag with a separated argument.
19123hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19124
19125# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19126# resulting binary.
19127hardcode_direct=$hardcode_direct_RC
19128
19129# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19130# resulting binary.
19131hardcode_minus_L=$hardcode_minus_L_RC
19132
19133# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19134# the resulting binary.
19135hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19136
19137# Set to yes if building a shared library automatically hardcodes DIR into the library
19138# and all subsequent libraries and executables linked against it.
19139hardcode_automatic=$hardcode_automatic_RC
19140
19141# Variables whose values should be saved in libtool wrapper scripts and
19142# restored at relink time.
19143variables_saved_for_relink="$variables_saved_for_relink"
19144
19145# Whether libtool must link a program against all its dependency libraries.
19146link_all_deplibs=$link_all_deplibs_RC
19147
19148# Compile-time system search path for libraries
19149sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19150
19151# Run-time system search path for libraries
19152sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19153
19154# Fix the shell variable \$srcfile for the compiler.
19155fix_srcfile_path=$lt_fix_srcfile_path
19156
19157# Set to yes if exported symbols are required.
19158always_export_symbols=$always_export_symbols_RC
19159
19160# The commands to list exported symbols.
19161export_symbols_cmds=$lt_export_symbols_cmds_RC
19162
19163# The commands to extract the exported symbol list from a shared archive.
19164extract_expsyms_cmds=$lt_extract_expsyms_cmds
19165
19166# Symbols that should not be listed in the preloaded symbols.
19167exclude_expsyms=$lt_exclude_expsyms_RC
19168
19169# Symbols that must always be exported.
19170include_expsyms=$lt_include_expsyms_RC
19171
19172# ### END LIBTOOL TAG CONFIG: $tagname
19173
19174__EOF__
19175
19176
19177else
19178  # If there is no Makefile yet, we rely on a make rule to execute
19179  # `config.status --recheck' to rerun these tests and create the
19180  # libtool script then.
19181  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19182  if test -f "$ltmain_in"; then
19183    test -f Makefile && make "$ltmain"
19184  fi
19185fi
19186
19187
19188ac_ext=c
19189ac_cpp='$CPP $CPPFLAGS'
19190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192ac_compiler_gnu=$ac_cv_c_compiler_gnu
19193
19194CC="$lt_save_CC"
19195
19196	;;
19197
19198      *)
19199	{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19200echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19201   { (exit 1); exit 1; }; }
19202	;;
19203      esac
19204
19205      # Append the new tag name to the list of available tags.
19206      if test -n "$tagname" ; then
19207      available_tags="$available_tags $tagname"
19208    fi
19209    fi
19210  done
19211  IFS="$lt_save_ifs"
19212
19213  # Now substitute the updated list of available tags.
19214  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19215    mv "${ofile}T" "$ofile"
19216    chmod +x "$ofile"
19217  else
19218    rm -f "${ofile}T"
19219    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19220echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19221   { (exit 1); exit 1; }; }
19222  fi
19223fi
19224
19225
19226
19227# This can be used to rebuild libtool when needed
19228LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19229
19230# Always use our own libtool.
19231LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19232
19233# Prevent multiple expansion
19234
19235
19236
19237
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254ac_ext=c
19255ac_cpp='$CPP $CPPFLAGS'
19256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19258ac_compiler_gnu=$ac_cv_c_compiler_gnu
19259
19260
19261
19262echo "$as_me:$LINENO: checking for C compiler vendor" >&5
19263echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6
19264if test "${ax_cv_c_compiler_vendor+set}" = set; then
19265  echo $ECHO_N "(cached) $ECHO_C" >&6
19266else
19267  ax_cv_c_compiler_vendor=unknown
19268  # note: don't check for gcc first since some other compilers define __GNUC__
19269  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
19270    vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
19271    cat >conftest.$ac_ext <<_ACEOF
19272/* confdefs.h.  */
19273_ACEOF
19274cat confdefs.h >>conftest.$ac_ext
19275cat >>conftest.$ac_ext <<_ACEOF
19276/* end confdefs.h.  */
19277
19278int
19279main ()
19280{
19281
19282#if !($vencpp)
19283      thisisanerror;
19284#endif
19285
19286  ;
19287  return 0;
19288}
19289_ACEOF
19290rm -f conftest.$ac_objext
19291if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19292  (eval $ac_compile) 2>conftest.er1
19293  ac_status=$?
19294  grep -v '^ *+' conftest.er1 >conftest.err
19295  rm -f conftest.er1
19296  cat conftest.err >&5
19297  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19298  (exit $ac_status); } &&
19299	 { ac_try='test -z "$ac_c_werror_flag"
19300			 || test ! -s conftest.err'
19301  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19302  (eval $ac_try) 2>&5
19303  ac_status=$?
19304  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305  (exit $ac_status); }; } &&
19306	 { ac_try='test -s conftest.$ac_objext'
19307  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19308  (eval $ac_try) 2>&5
19309  ac_status=$?
19310  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311  (exit $ac_status); }; }; then
19312  ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
19313else
19314  echo "$as_me: failed program was:" >&5
19315sed 's/^/| /' conftest.$ac_ext >&5
19316
19317fi
19318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19319  done
19320
19321fi
19322echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5
19323echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6
19324
19325
19326if test "${build}" != "${host}"
19327then
19328  # If we are doing a Canadian Cross, in which the host and build systems
19329  # are not the same, we set reasonable default values for the tools.
19330
19331  CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19332  CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
19333  CC=${CC-${host_alias}-gcc}
19334  CFLAGS=${CFLAGS-"-g -O2"}
19335  CXX=${CXX-${host_alias}-c++}
19336  CXXFLAGS=${CXXFLAGS-"-g -O2"}
19337else
19338  # Set reasonable default values for some tools even if not Canadian.
19339  # Of course, these are different reasonable default values, originally
19340  # specified directly in the Makefile.
19341  # We don't export, so that autoconf can do its job.
19342  # Note that all these settings are above the fragment inclusion point
19343  # in Makefile.in, so can still be overridden by fragments.
19344  # This is all going to change when we autoconfiscate...
19345  CC_FOR_BUILD="\$(CC)"
19346  CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
19347  ac_ext=c
19348ac_cpp='$CPP $CPPFLAGS'
19349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19351ac_compiler_gnu=$ac_cv_c_compiler_gnu
19352if test -n "$ac_tool_prefix"; then
19353  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19354set dummy ${ac_tool_prefix}gcc; ac_word=$2
19355echo "$as_me:$LINENO: checking for $ac_word" >&5
19356echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19357if test "${ac_cv_prog_CC+set}" = set; then
19358  echo $ECHO_N "(cached) $ECHO_C" >&6
19359else
19360  if test -n "$CC"; then
19361  ac_cv_prog_CC="$CC" # Let the user override the test.
19362else
19363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19364for as_dir in $PATH
19365do
19366  IFS=$as_save_IFS
19367  test -z "$as_dir" && as_dir=.
19368  for ac_exec_ext in '' $ac_executable_extensions; do
19369  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19370    ac_cv_prog_CC="${ac_tool_prefix}gcc"
19371    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19372    break 2
19373  fi
19374done
19375done
19376
19377fi
19378fi
19379CC=$ac_cv_prog_CC
19380if test -n "$CC"; then
19381  echo "$as_me:$LINENO: result: $CC" >&5
19382echo "${ECHO_T}$CC" >&6
19383else
19384  echo "$as_me:$LINENO: result: no" >&5
19385echo "${ECHO_T}no" >&6
19386fi
19387
19388fi
19389if test -z "$ac_cv_prog_CC"; then
19390  ac_ct_CC=$CC
19391  # Extract the first word of "gcc", so it can be a program name with args.
19392set dummy gcc; ac_word=$2
19393echo "$as_me:$LINENO: checking for $ac_word" >&5
19394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19395if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19396  echo $ECHO_N "(cached) $ECHO_C" >&6
19397else
19398  if test -n "$ac_ct_CC"; then
19399  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19400else
19401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19402for as_dir in $PATH
19403do
19404  IFS=$as_save_IFS
19405  test -z "$as_dir" && as_dir=.
19406  for ac_exec_ext in '' $ac_executable_extensions; do
19407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19408    ac_cv_prog_ac_ct_CC="gcc"
19409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19410    break 2
19411  fi
19412done
19413done
19414
19415fi
19416fi
19417ac_ct_CC=$ac_cv_prog_ac_ct_CC
19418if test -n "$ac_ct_CC"; then
19419  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19420echo "${ECHO_T}$ac_ct_CC" >&6
19421else
19422  echo "$as_me:$LINENO: result: no" >&5
19423echo "${ECHO_T}no" >&6
19424fi
19425
19426  CC=$ac_ct_CC
19427else
19428  CC="$ac_cv_prog_CC"
19429fi
19430
19431if test -z "$CC"; then
19432  if test -n "$ac_tool_prefix"; then
19433  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19434set dummy ${ac_tool_prefix}cc; ac_word=$2
19435echo "$as_me:$LINENO: checking for $ac_word" >&5
19436echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19437if test "${ac_cv_prog_CC+set}" = set; then
19438  echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440  if test -n "$CC"; then
19441  ac_cv_prog_CC="$CC" # Let the user override the test.
19442else
19443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19444for as_dir in $PATH
19445do
19446  IFS=$as_save_IFS
19447  test -z "$as_dir" && as_dir=.
19448  for ac_exec_ext in '' $ac_executable_extensions; do
19449  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19450    ac_cv_prog_CC="${ac_tool_prefix}cc"
19451    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19452    break 2
19453  fi
19454done
19455done
19456
19457fi
19458fi
19459CC=$ac_cv_prog_CC
19460if test -n "$CC"; then
19461  echo "$as_me:$LINENO: result: $CC" >&5
19462echo "${ECHO_T}$CC" >&6
19463else
19464  echo "$as_me:$LINENO: result: no" >&5
19465echo "${ECHO_T}no" >&6
19466fi
19467
19468fi
19469if test -z "$ac_cv_prog_CC"; then
19470  ac_ct_CC=$CC
19471  # Extract the first word of "cc", so it can be a program name with args.
19472set dummy cc; ac_word=$2
19473echo "$as_me:$LINENO: checking for $ac_word" >&5
19474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19475if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19476  echo $ECHO_N "(cached) $ECHO_C" >&6
19477else
19478  if test -n "$ac_ct_CC"; then
19479  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19480else
19481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19482for as_dir in $PATH
19483do
19484  IFS=$as_save_IFS
19485  test -z "$as_dir" && as_dir=.
19486  for ac_exec_ext in '' $ac_executable_extensions; do
19487  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19488    ac_cv_prog_ac_ct_CC="cc"
19489    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19490    break 2
19491  fi
19492done
19493done
19494
19495fi
19496fi
19497ac_ct_CC=$ac_cv_prog_ac_ct_CC
19498if test -n "$ac_ct_CC"; then
19499  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19500echo "${ECHO_T}$ac_ct_CC" >&6
19501else
19502  echo "$as_me:$LINENO: result: no" >&5
19503echo "${ECHO_T}no" >&6
19504fi
19505
19506  CC=$ac_ct_CC
19507else
19508  CC="$ac_cv_prog_CC"
19509fi
19510
19511fi
19512if test -z "$CC"; then
19513  # Extract the first word of "cc", so it can be a program name with args.
19514set dummy cc; ac_word=$2
19515echo "$as_me:$LINENO: checking for $ac_word" >&5
19516echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19517if test "${ac_cv_prog_CC+set}" = set; then
19518  echo $ECHO_N "(cached) $ECHO_C" >&6
19519else
19520  if test -n "$CC"; then
19521  ac_cv_prog_CC="$CC" # Let the user override the test.
19522else
19523  ac_prog_rejected=no
19524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19525for as_dir in $PATH
19526do
19527  IFS=$as_save_IFS
19528  test -z "$as_dir" && as_dir=.
19529  for ac_exec_ext in '' $ac_executable_extensions; do
19530  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19531    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19532       ac_prog_rejected=yes
19533       continue
19534     fi
19535    ac_cv_prog_CC="cc"
19536    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19537    break 2
19538  fi
19539done
19540done
19541
19542if test $ac_prog_rejected = yes; then
19543  # We found a bogon in the path, so make sure we never use it.
19544  set dummy $ac_cv_prog_CC
19545  shift
19546  if test $# != 0; then
19547    # We chose a different compiler from the bogus one.
19548    # However, it has the same basename, so the bogon will be chosen
19549    # first if we set CC to just the basename; use the full file name.
19550    shift
19551    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19552  fi
19553fi
19554fi
19555fi
19556CC=$ac_cv_prog_CC
19557if test -n "$CC"; then
19558  echo "$as_me:$LINENO: result: $CC" >&5
19559echo "${ECHO_T}$CC" >&6
19560else
19561  echo "$as_me:$LINENO: result: no" >&5
19562echo "${ECHO_T}no" >&6
19563fi
19564
19565fi
19566if test -z "$CC"; then
19567  if test -n "$ac_tool_prefix"; then
19568  for ac_prog in cl
19569  do
19570    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19571set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19572echo "$as_me:$LINENO: checking for $ac_word" >&5
19573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19574if test "${ac_cv_prog_CC+set}" = set; then
19575  echo $ECHO_N "(cached) $ECHO_C" >&6
19576else
19577  if test -n "$CC"; then
19578  ac_cv_prog_CC="$CC" # Let the user override the test.
19579else
19580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19581for as_dir in $PATH
19582do
19583  IFS=$as_save_IFS
19584  test -z "$as_dir" && as_dir=.
19585  for ac_exec_ext in '' $ac_executable_extensions; do
19586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19587    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19589    break 2
19590  fi
19591done
19592done
19593
19594fi
19595fi
19596CC=$ac_cv_prog_CC
19597if test -n "$CC"; then
19598  echo "$as_me:$LINENO: result: $CC" >&5
19599echo "${ECHO_T}$CC" >&6
19600else
19601  echo "$as_me:$LINENO: result: no" >&5
19602echo "${ECHO_T}no" >&6
19603fi
19604
19605    test -n "$CC" && break
19606  done
19607fi
19608if test -z "$CC"; then
19609  ac_ct_CC=$CC
19610  for ac_prog in cl
19611do
19612  # Extract the first word of "$ac_prog", so it can be a program name with args.
19613set dummy $ac_prog; ac_word=$2
19614echo "$as_me:$LINENO: checking for $ac_word" >&5
19615echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19616if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19617  echo $ECHO_N "(cached) $ECHO_C" >&6
19618else
19619  if test -n "$ac_ct_CC"; then
19620  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19621else
19622as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19623for as_dir in $PATH
19624do
19625  IFS=$as_save_IFS
19626  test -z "$as_dir" && as_dir=.
19627  for ac_exec_ext in '' $ac_executable_extensions; do
19628  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19629    ac_cv_prog_ac_ct_CC="$ac_prog"
19630    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19631    break 2
19632  fi
19633done
19634done
19635
19636fi
19637fi
19638ac_ct_CC=$ac_cv_prog_ac_ct_CC
19639if test -n "$ac_ct_CC"; then
19640  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19641echo "${ECHO_T}$ac_ct_CC" >&6
19642else
19643  echo "$as_me:$LINENO: result: no" >&5
19644echo "${ECHO_T}no" >&6
19645fi
19646
19647  test -n "$ac_ct_CC" && break
19648done
19649
19650  CC=$ac_ct_CC
19651fi
19652
19653fi
19654
19655
19656test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19657See \`config.log' for more details." >&5
19658echo "$as_me: error: no acceptable C compiler found in \$PATH
19659See \`config.log' for more details." >&2;}
19660   { (exit 1); exit 1; }; }
19661
19662# Provide some information about the compiler.
19663echo "$as_me:$LINENO:" \
19664     "checking for C compiler version" >&5
19665ac_compiler=`set X $ac_compile; echo $2`
19666{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19667  (eval $ac_compiler --version </dev/null >&5) 2>&5
19668  ac_status=$?
19669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670  (exit $ac_status); }
19671{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19672  (eval $ac_compiler -v </dev/null >&5) 2>&5
19673  ac_status=$?
19674  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19675  (exit $ac_status); }
19676{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19677  (eval $ac_compiler -V </dev/null >&5) 2>&5
19678  ac_status=$?
19679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19680  (exit $ac_status); }
19681
19682echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19683echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19684if test "${ac_cv_c_compiler_gnu+set}" = set; then
19685  echo $ECHO_N "(cached) $ECHO_C" >&6
19686else
19687  cat >conftest.$ac_ext <<_ACEOF
19688/* confdefs.h.  */
19689_ACEOF
19690cat confdefs.h >>conftest.$ac_ext
19691cat >>conftest.$ac_ext <<_ACEOF
19692/* end confdefs.h.  */
19693
19694int
19695main ()
19696{
19697#ifndef __GNUC__
19698       choke me
19699#endif
19700
19701  ;
19702  return 0;
19703}
19704_ACEOF
19705rm -f conftest.$ac_objext
19706if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707  (eval $ac_compile) 2>conftest.er1
19708  ac_status=$?
19709  grep -v '^ *+' conftest.er1 >conftest.err
19710  rm -f conftest.er1
19711  cat conftest.err >&5
19712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713  (exit $ac_status); } &&
19714	 { ac_try='test -z "$ac_c_werror_flag"
19715			 || test ! -s conftest.err'
19716  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19717  (eval $ac_try) 2>&5
19718  ac_status=$?
19719  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19720  (exit $ac_status); }; } &&
19721	 { ac_try='test -s conftest.$ac_objext'
19722  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19723  (eval $ac_try) 2>&5
19724  ac_status=$?
19725  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726  (exit $ac_status); }; }; then
19727  ac_compiler_gnu=yes
19728else
19729  echo "$as_me: failed program was:" >&5
19730sed 's/^/| /' conftest.$ac_ext >&5
19731
19732ac_compiler_gnu=no
19733fi
19734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19735ac_cv_c_compiler_gnu=$ac_compiler_gnu
19736
19737fi
19738echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19739echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19740GCC=`test $ac_compiler_gnu = yes && echo yes`
19741ac_test_CFLAGS=${CFLAGS+set}
19742ac_save_CFLAGS=$CFLAGS
19743CFLAGS="-g"
19744echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19745echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19746if test "${ac_cv_prog_cc_g+set}" = set; then
19747  echo $ECHO_N "(cached) $ECHO_C" >&6
19748else
19749  cat >conftest.$ac_ext <<_ACEOF
19750/* confdefs.h.  */
19751_ACEOF
19752cat confdefs.h >>conftest.$ac_ext
19753cat >>conftest.$ac_ext <<_ACEOF
19754/* end confdefs.h.  */
19755
19756int
19757main ()
19758{
19759
19760  ;
19761  return 0;
19762}
19763_ACEOF
19764rm -f conftest.$ac_objext
19765if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19766  (eval $ac_compile) 2>conftest.er1
19767  ac_status=$?
19768  grep -v '^ *+' conftest.er1 >conftest.err
19769  rm -f conftest.er1
19770  cat conftest.err >&5
19771  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19772  (exit $ac_status); } &&
19773	 { ac_try='test -z "$ac_c_werror_flag"
19774			 || test ! -s conftest.err'
19775  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19776  (eval $ac_try) 2>&5
19777  ac_status=$?
19778  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19779  (exit $ac_status); }; } &&
19780	 { ac_try='test -s conftest.$ac_objext'
19781  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19782  (eval $ac_try) 2>&5
19783  ac_status=$?
19784  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785  (exit $ac_status); }; }; then
19786  ac_cv_prog_cc_g=yes
19787else
19788  echo "$as_me: failed program was:" >&5
19789sed 's/^/| /' conftest.$ac_ext >&5
19790
19791ac_cv_prog_cc_g=no
19792fi
19793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19794fi
19795echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19796echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19797if test "$ac_test_CFLAGS" = set; then
19798  CFLAGS=$ac_save_CFLAGS
19799elif test $ac_cv_prog_cc_g = yes; then
19800  if test "$GCC" = yes; then
19801    CFLAGS="-g -O2"
19802  else
19803    CFLAGS="-g"
19804  fi
19805else
19806  if test "$GCC" = yes; then
19807    CFLAGS="-O2"
19808  else
19809    CFLAGS=
19810  fi
19811fi
19812echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19813echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19814if test "${ac_cv_prog_cc_stdc+set}" = set; then
19815  echo $ECHO_N "(cached) $ECHO_C" >&6
19816else
19817  ac_cv_prog_cc_stdc=no
19818ac_save_CC=$CC
19819cat >conftest.$ac_ext <<_ACEOF
19820/* confdefs.h.  */
19821_ACEOF
19822cat confdefs.h >>conftest.$ac_ext
19823cat >>conftest.$ac_ext <<_ACEOF
19824/* end confdefs.h.  */
19825#include <stdarg.h>
19826#include <stdio.h>
19827#include <sys/types.h>
19828#include <sys/stat.h>
19829/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
19830struct buf { int x; };
19831FILE * (*rcsopen) (struct buf *, struct stat *, int);
19832static char *e (p, i)
19833     char **p;
19834     int i;
19835{
19836  return p[i];
19837}
19838static char *f (char * (*g) (char **, int), char **p, ...)
19839{
19840  char *s;
19841  va_list v;
19842  va_start (v,p);
19843  s = g (p, va_arg (v,int));
19844  va_end (v);
19845  return s;
19846}
19847
19848/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
19849   function prototypes and stuff, but not '\xHH' hex character constants.
19850   These don't provoke an error unfortunately, instead are silently treated
19851   as 'x'.  The following induces an error, until -std1 is added to get
19852   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
19853   array size at least.  It's necessary to write '\x00'==0 to get something
19854   that's true only with -std1.  */
19855int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19856
19857int test (int i, double x);
19858struct s1 {int (*f) (int a);};
19859struct s2 {int (*f) (double a);};
19860int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19861int argc;
19862char **argv;
19863int
19864main ()
19865{
19866return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
19867  ;
19868  return 0;
19869}
19870_ACEOF
19871# Don't try gcc -ansi; that turns off useful extensions and
19872# breaks some systems' header files.
19873# AIX			-qlanglvl=ansi
19874# Ultrix and OSF/1	-std1
19875# HP-UX 10.20 and later	-Ae
19876# HP-UX older versions	-Aa -D_HPUX_SOURCE
19877# SVR4			-Xc -D__EXTENSIONS__
19878for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19879do
19880  CC="$ac_save_CC $ac_arg"
19881  rm -f conftest.$ac_objext
19882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19883  (eval $ac_compile) 2>conftest.er1
19884  ac_status=$?
19885  grep -v '^ *+' conftest.er1 >conftest.err
19886  rm -f conftest.er1
19887  cat conftest.err >&5
19888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889  (exit $ac_status); } &&
19890	 { ac_try='test -z "$ac_c_werror_flag"
19891			 || test ! -s conftest.err'
19892  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19893  (eval $ac_try) 2>&5
19894  ac_status=$?
19895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896  (exit $ac_status); }; } &&
19897	 { ac_try='test -s conftest.$ac_objext'
19898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19899  (eval $ac_try) 2>&5
19900  ac_status=$?
19901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19902  (exit $ac_status); }; }; then
19903  ac_cv_prog_cc_stdc=$ac_arg
19904break
19905else
19906  echo "$as_me: failed program was:" >&5
19907sed 's/^/| /' conftest.$ac_ext >&5
19908
19909fi
19910rm -f conftest.err conftest.$ac_objext
19911done
19912rm -f conftest.$ac_ext conftest.$ac_objext
19913CC=$ac_save_CC
19914
19915fi
19916
19917case "x$ac_cv_prog_cc_stdc" in
19918  x|xno)
19919    echo "$as_me:$LINENO: result: none needed" >&5
19920echo "${ECHO_T}none needed" >&6 ;;
19921  *)
19922    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19923echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19924    CC="$CC $ac_cv_prog_cc_stdc" ;;
19925esac
19926
19927# Some people use a C++ compiler to compile C.  Since we use `exit',
19928# in C++ we need to declare it.  In case someone uses the same compiler
19929# for both compiling C and C++ we need to have the C++ compiler decide
19930# the declaration of exit, since it's the most demanding environment.
19931cat >conftest.$ac_ext <<_ACEOF
19932#ifndef __cplusplus
19933  choke me
19934#endif
19935_ACEOF
19936rm -f conftest.$ac_objext
19937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19938  (eval $ac_compile) 2>conftest.er1
19939  ac_status=$?
19940  grep -v '^ *+' conftest.er1 >conftest.err
19941  rm -f conftest.er1
19942  cat conftest.err >&5
19943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944  (exit $ac_status); } &&
19945	 { ac_try='test -z "$ac_c_werror_flag"
19946			 || test ! -s conftest.err'
19947  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19948  (eval $ac_try) 2>&5
19949  ac_status=$?
19950  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19951  (exit $ac_status); }; } &&
19952	 { ac_try='test -s conftest.$ac_objext'
19953  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19954  (eval $ac_try) 2>&5
19955  ac_status=$?
19956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957  (exit $ac_status); }; }; then
19958  for ac_declaration in \
19959   '' \
19960   'extern "C" void std::exit (int) throw (); using std::exit;' \
19961   'extern "C" void std::exit (int); using std::exit;' \
19962   'extern "C" void exit (int) throw ();' \
19963   'extern "C" void exit (int);' \
19964   'void exit (int);'
19965do
19966  cat >conftest.$ac_ext <<_ACEOF
19967/* confdefs.h.  */
19968_ACEOF
19969cat confdefs.h >>conftest.$ac_ext
19970cat >>conftest.$ac_ext <<_ACEOF
19971/* end confdefs.h.  */
19972$ac_declaration
19973#include <stdlib.h>
19974int
19975main ()
19976{
19977exit (42);
19978  ;
19979  return 0;
19980}
19981_ACEOF
19982rm -f conftest.$ac_objext
19983if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19984  (eval $ac_compile) 2>conftest.er1
19985  ac_status=$?
19986  grep -v '^ *+' conftest.er1 >conftest.err
19987  rm -f conftest.er1
19988  cat conftest.err >&5
19989  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990  (exit $ac_status); } &&
19991	 { ac_try='test -z "$ac_c_werror_flag"
19992			 || test ! -s conftest.err'
19993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19994  (eval $ac_try) 2>&5
19995  ac_status=$?
19996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997  (exit $ac_status); }; } &&
19998	 { ac_try='test -s conftest.$ac_objext'
19999  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20000  (eval $ac_try) 2>&5
20001  ac_status=$?
20002  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20003  (exit $ac_status); }; }; then
20004  :
20005else
20006  echo "$as_me: failed program was:" >&5
20007sed 's/^/| /' conftest.$ac_ext >&5
20008
20009continue
20010fi
20011rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20012  cat >conftest.$ac_ext <<_ACEOF
20013/* confdefs.h.  */
20014_ACEOF
20015cat confdefs.h >>conftest.$ac_ext
20016cat >>conftest.$ac_ext <<_ACEOF
20017/* end confdefs.h.  */
20018$ac_declaration
20019int
20020main ()
20021{
20022exit (42);
20023  ;
20024  return 0;
20025}
20026_ACEOF
20027rm -f conftest.$ac_objext
20028if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20029  (eval $ac_compile) 2>conftest.er1
20030  ac_status=$?
20031  grep -v '^ *+' conftest.er1 >conftest.err
20032  rm -f conftest.er1
20033  cat conftest.err >&5
20034  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20035  (exit $ac_status); } &&
20036	 { ac_try='test -z "$ac_c_werror_flag"
20037			 || test ! -s conftest.err'
20038  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039  (eval $ac_try) 2>&5
20040  ac_status=$?
20041  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042  (exit $ac_status); }; } &&
20043	 { ac_try='test -s conftest.$ac_objext'
20044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20045  (eval $ac_try) 2>&5
20046  ac_status=$?
20047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048  (exit $ac_status); }; }; then
20049  break
20050else
20051  echo "$as_me: failed program was:" >&5
20052sed 's/^/| /' conftest.$ac_ext >&5
20053
20054fi
20055rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20056done
20057rm -f conftest*
20058if test -n "$ac_declaration"; then
20059  echo '#ifdef __cplusplus' >>confdefs.h
20060  echo $ac_declaration      >>confdefs.h
20061  echo '#endif'             >>confdefs.h
20062fi
20063
20064else
20065  echo "$as_me: failed program was:" >&5
20066sed 's/^/| /' conftest.$ac_ext >&5
20067
20068fi
20069rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20070ac_ext=c
20071ac_cpp='$CPP $CPPFLAGS'
20072ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20073ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20074ac_compiler_gnu=$ac_cv_c_compiler_gnu
20075
20076depcc="$CC"   am_compiler_list=
20077
20078echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20079echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20080if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20081  echo $ECHO_N "(cached) $ECHO_C" >&6
20082else
20083  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20084  # We make a subdir and do the tests there.  Otherwise we can end up
20085  # making bogus files that we don't know about and never remove.  For
20086  # instance it was reported that on HP-UX the gcc test will end up
20087  # making a dummy file named `D' -- because `-MD' means `put the output
20088  # in D'.
20089  mkdir conftest.dir
20090  # Copy depcomp to subdir because otherwise we won't find it if we're
20091  # using a relative directory.
20092  cp "$am_depcomp" conftest.dir
20093  cd conftest.dir
20094  # We will build objects and dependencies in a subdirectory because
20095  # it helps to detect inapplicable dependency modes.  For instance
20096  # both Tru64's cc and ICC support -MD to output dependencies as a
20097  # side effect of compilation, but ICC will put the dependencies in
20098  # the current directory while Tru64 will put them in the object
20099  # directory.
20100  mkdir sub
20101
20102  am_cv_CC_dependencies_compiler_type=none
20103  if test "$am_compiler_list" = ""; then
20104     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20105  fi
20106  for depmode in $am_compiler_list; do
20107    # Setup a source with many dependencies, because some compilers
20108    # like to wrap large dependency lists on column 80 (with \), and
20109    # we should not choose a depcomp mode which is confused by this.
20110    #
20111    # We need to recreate these files for each test, as the compiler may
20112    # overwrite some of them when testing with obscure command lines.
20113    # This happens at least with the AIX C compiler.
20114    : > sub/conftest.c
20115    for i in 1 2 3 4 5 6; do
20116      echo '#include "conftst'$i'.h"' >> sub/conftest.c
20117      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20118      # Solaris 8's {/usr,}/bin/sh.
20119      touch sub/conftst$i.h
20120    done
20121    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20122
20123    case $depmode in
20124    nosideeffect)
20125      # after this tag, mechanisms are not by side-effect, so they'll
20126      # only be used when explicitly requested
20127      if test "x$enable_dependency_tracking" = xyes; then
20128	continue
20129      else
20130	break
20131      fi
20132      ;;
20133    none) break ;;
20134    esac
20135    # We check with `-c' and `-o' for the sake of the "dashmstdout"
20136    # mode.  It turns out that the SunPro C++ compiler does not properly
20137    # handle `-M -o', and we need to detect this.
20138    if depmode=$depmode \
20139       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20140       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20141       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20142         >/dev/null 2>conftest.err &&
20143       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20144       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20145       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20146      # icc doesn't choke on unknown options, it will just issue warnings
20147      # or remarks (even with -Werror).  So we grep stderr for any message
20148      # that says an option was ignored or not supported.
20149      # When given -MP, icc 7.0 and 7.1 complain thusly:
20150      #   icc: Command line warning: ignoring option '-M'; no argument required
20151      # The diagnosis changed in icc 8.0:
20152      #   icc: Command line remark: option '-MP' not supported
20153      if (grep 'ignoring option' conftest.err ||
20154          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20155        am_cv_CC_dependencies_compiler_type=$depmode
20156        break
20157      fi
20158    fi
20159  done
20160
20161  cd ..
20162  rm -rf conftest.dir
20163else
20164  am_cv_CC_dependencies_compiler_type=none
20165fi
20166
20167fi
20168echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20169echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20170CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20171
20172
20173
20174if
20175  test "x$enable_dependency_tracking" != xno \
20176  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20177  am__fastdepCC_TRUE=
20178  am__fastdepCC_FALSE='#'
20179else
20180  am__fastdepCC_TRUE='#'
20181  am__fastdepCC_FALSE=
20182fi
20183
20184
20185
20186  # We must set the default linker to the linker used by gcc for the correct
20187  # operation of libtool.  If LD is not defined and we are using gcc, try to
20188  # set the LD default to the ld used by gcc.
20189  if test -z "$LD"
20190  then
20191    if test "$GCC" = yes
20192    then
20193      case $build in
20194      *-*-mingw*)
20195        gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
20196      *)
20197        gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
20198      esac
20199      case $gcc_prog_ld in
20200      # Accept absolute paths.
20201      [\\/]* | [A-Za-z]:[\\/]*)
20202        LD="$gcc_prog_ld" ;;
20203      esac
20204    fi
20205  fi
20206
20207  CXX=${CXX-"c++"}
20208  CFLAGS=${CFLAGS-"-g -O2"}
20209  CXXFLAGS=${CXXFLAGS-"-g -O2"}
20210fi
20211
20212echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20213echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20214if test "${ac_cv_c_const+set}" = set; then
20215  echo $ECHO_N "(cached) $ECHO_C" >&6
20216else
20217  cat >conftest.$ac_ext <<_ACEOF
20218/* confdefs.h.  */
20219_ACEOF
20220cat confdefs.h >>conftest.$ac_ext
20221cat >>conftest.$ac_ext <<_ACEOF
20222/* end confdefs.h.  */
20223
20224int
20225main ()
20226{
20227/* FIXME: Include the comments suggested by Paul. */
20228#ifndef __cplusplus
20229  /* Ultrix mips cc rejects this.  */
20230  typedef int charset[2];
20231  const charset x;
20232  /* SunOS 4.1.1 cc rejects this.  */
20233  char const *const *ccp;
20234  char **p;
20235  /* NEC SVR4.0.2 mips cc rejects this.  */
20236  struct point {int x, y;};
20237  static struct point const zero = {0,0};
20238  /* AIX XL C 1.02.0.0 rejects this.
20239     It does not let you subtract one const X* pointer from another in
20240     an arm of an if-expression whose if-part is not a constant
20241     expression */
20242  const char *g = "string";
20243  ccp = &g + (g ? g-g : 0);
20244  /* HPUX 7.0 cc rejects these. */
20245  ++ccp;
20246  p = (char**) ccp;
20247  ccp = (char const *const *) p;
20248  { /* SCO 3.2v4 cc rejects this.  */
20249    char *t;
20250    char const *s = 0 ? (char *) 0 : (char const *) 0;
20251
20252    *t++ = 0;
20253  }
20254  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
20255    int x[] = {25, 17};
20256    const int *foo = &x[0];
20257    ++foo;
20258  }
20259  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20260    typedef const int *iptr;
20261    iptr p = 0;
20262    ++p;
20263  }
20264  { /* AIX XL C 1.02.0.0 rejects this saying
20265       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20266    struct s { int j; const int *ap[3]; };
20267    struct s *b; b->j = 5;
20268  }
20269  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20270    const int foo = 10;
20271  }
20272#endif
20273
20274  ;
20275  return 0;
20276}
20277_ACEOF
20278rm -f conftest.$ac_objext
20279if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20280  (eval $ac_compile) 2>conftest.er1
20281  ac_status=$?
20282  grep -v '^ *+' conftest.er1 >conftest.err
20283  rm -f conftest.er1
20284  cat conftest.err >&5
20285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286  (exit $ac_status); } &&
20287	 { ac_try='test -z "$ac_c_werror_flag"
20288			 || test ! -s conftest.err'
20289  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20290  (eval $ac_try) 2>&5
20291  ac_status=$?
20292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20293  (exit $ac_status); }; } &&
20294	 { ac_try='test -s conftest.$ac_objext'
20295  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20296  (eval $ac_try) 2>&5
20297  ac_status=$?
20298  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299  (exit $ac_status); }; }; then
20300  ac_cv_c_const=yes
20301else
20302  echo "$as_me: failed program was:" >&5
20303sed 's/^/| /' conftest.$ac_ext >&5
20304
20305ac_cv_c_const=no
20306fi
20307rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20308fi
20309echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20310echo "${ECHO_T}$ac_cv_c_const" >&6
20311if test $ac_cv_c_const = no; then
20312
20313cat >>confdefs.h <<\_ACEOF
20314#define const
20315_ACEOF
20316
20317fi
20318
20319echo "$as_me:$LINENO: checking for inline" >&5
20320echo $ECHO_N "checking for inline... $ECHO_C" >&6
20321if test "${ac_cv_c_inline+set}" = set; then
20322  echo $ECHO_N "(cached) $ECHO_C" >&6
20323else
20324  ac_cv_c_inline=no
20325for ac_kw in inline __inline__ __inline; do
20326  cat >conftest.$ac_ext <<_ACEOF
20327/* confdefs.h.  */
20328_ACEOF
20329cat confdefs.h >>conftest.$ac_ext
20330cat >>conftest.$ac_ext <<_ACEOF
20331/* end confdefs.h.  */
20332#ifndef __cplusplus
20333typedef int foo_t;
20334static $ac_kw foo_t static_foo () {return 0; }
20335$ac_kw foo_t foo () {return 0; }
20336#endif
20337
20338_ACEOF
20339rm -f conftest.$ac_objext
20340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20341  (eval $ac_compile) 2>conftest.er1
20342  ac_status=$?
20343  grep -v '^ *+' conftest.er1 >conftest.err
20344  rm -f conftest.er1
20345  cat conftest.err >&5
20346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20347  (exit $ac_status); } &&
20348	 { ac_try='test -z "$ac_c_werror_flag"
20349			 || test ! -s conftest.err'
20350  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20351  (eval $ac_try) 2>&5
20352  ac_status=$?
20353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354  (exit $ac_status); }; } &&
20355	 { ac_try='test -s conftest.$ac_objext'
20356  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357  (eval $ac_try) 2>&5
20358  ac_status=$?
20359  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360  (exit $ac_status); }; }; then
20361  ac_cv_c_inline=$ac_kw; break
20362else
20363  echo "$as_me: failed program was:" >&5
20364sed 's/^/| /' conftest.$ac_ext >&5
20365
20366fi
20367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20368done
20369
20370fi
20371echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20372echo "${ECHO_T}$ac_cv_c_inline" >&6
20373
20374
20375case $ac_cv_c_inline in
20376  inline | yes) ;;
20377  *)
20378    case $ac_cv_c_inline in
20379      no) ac_val=;;
20380      *) ac_val=$ac_cv_c_inline;;
20381    esac
20382    cat >>confdefs.h <<_ACEOF
20383#ifndef __cplusplus
20384#define inline $ac_val
20385#endif
20386_ACEOF
20387    ;;
20388esac
20389
20390echo "$as_me:$LINENO: checking for working volatile" >&5
20391echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
20392if test "${ac_cv_c_volatile+set}" = set; then
20393  echo $ECHO_N "(cached) $ECHO_C" >&6
20394else
20395  cat >conftest.$ac_ext <<_ACEOF
20396/* confdefs.h.  */
20397_ACEOF
20398cat confdefs.h >>conftest.$ac_ext
20399cat >>conftest.$ac_ext <<_ACEOF
20400/* end confdefs.h.  */
20401
20402int
20403main ()
20404{
20405
20406volatile int x;
20407int * volatile y;
20408  ;
20409  return 0;
20410}
20411_ACEOF
20412rm -f conftest.$ac_objext
20413if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20414  (eval $ac_compile) 2>conftest.er1
20415  ac_status=$?
20416  grep -v '^ *+' conftest.er1 >conftest.err
20417  rm -f conftest.er1
20418  cat conftest.err >&5
20419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420  (exit $ac_status); } &&
20421	 { ac_try='test -z "$ac_c_werror_flag"
20422			 || test ! -s conftest.err'
20423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20424  (eval $ac_try) 2>&5
20425  ac_status=$?
20426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427  (exit $ac_status); }; } &&
20428	 { ac_try='test -s conftest.$ac_objext'
20429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20430  (eval $ac_try) 2>&5
20431  ac_status=$?
20432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20433  (exit $ac_status); }; }; then
20434  ac_cv_c_volatile=yes
20435else
20436  echo "$as_me: failed program was:" >&5
20437sed 's/^/| /' conftest.$ac_ext >&5
20438
20439ac_cv_c_volatile=no
20440fi
20441rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20442fi
20443echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20444echo "${ECHO_T}$ac_cv_c_volatile" >&6
20445if test $ac_cv_c_volatile = no; then
20446
20447cat >>confdefs.h <<\_ACEOF
20448#define volatile
20449_ACEOF
20450
20451fi
20452
20453
20454echo "$as_me:$LINENO: checking for long long" >&5
20455echo $ECHO_N "checking for long long... $ECHO_C" >&6
20456if test "${ac_cv_type_long_long+set}" = set; then
20457  echo $ECHO_N "(cached) $ECHO_C" >&6
20458else
20459  cat >conftest.$ac_ext <<_ACEOF
20460/* confdefs.h.  */
20461_ACEOF
20462cat confdefs.h >>conftest.$ac_ext
20463cat >>conftest.$ac_ext <<_ACEOF
20464/* end confdefs.h.  */
20465$ac_includes_default
20466int
20467main ()
20468{
20469if ((long long *) 0)
20470  return 0;
20471if (sizeof (long long))
20472  return 0;
20473  ;
20474  return 0;
20475}
20476_ACEOF
20477rm -f conftest.$ac_objext
20478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20479  (eval $ac_compile) 2>conftest.er1
20480  ac_status=$?
20481  grep -v '^ *+' conftest.er1 >conftest.err
20482  rm -f conftest.er1
20483  cat conftest.err >&5
20484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485  (exit $ac_status); } &&
20486	 { ac_try='test -z "$ac_c_werror_flag"
20487			 || test ! -s conftest.err'
20488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489  (eval $ac_try) 2>&5
20490  ac_status=$?
20491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492  (exit $ac_status); }; } &&
20493	 { ac_try='test -s conftest.$ac_objext'
20494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495  (eval $ac_try) 2>&5
20496  ac_status=$?
20497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498  (exit $ac_status); }; }; then
20499  ac_cv_type_long_long=yes
20500else
20501  echo "$as_me: failed program was:" >&5
20502sed 's/^/| /' conftest.$ac_ext >&5
20503
20504ac_cv_type_long_long=no
20505fi
20506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20507fi
20508echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20509echo "${ECHO_T}$ac_cv_type_long_long" >&6
20510if test $ac_cv_type_long_long = yes; then
20511
20512cat >>confdefs.h <<_ACEOF
20513#define HAVE_LONG_LONG 1
20514_ACEOF
20515
20516
20517fi
20518
20519echo "$as_me:$LINENO: checking for long double" >&5
20520echo $ECHO_N "checking for long double... $ECHO_C" >&6
20521if test "${ac_cv_type_long_double+set}" = set; then
20522  echo $ECHO_N "(cached) $ECHO_C" >&6
20523else
20524  cat >conftest.$ac_ext <<_ACEOF
20525/* confdefs.h.  */
20526_ACEOF
20527cat confdefs.h >>conftest.$ac_ext
20528cat >>conftest.$ac_ext <<_ACEOF
20529/* end confdefs.h.  */
20530$ac_includes_default
20531int
20532main ()
20533{
20534if ((long double *) 0)
20535  return 0;
20536if (sizeof (long double))
20537  return 0;
20538  ;
20539  return 0;
20540}
20541_ACEOF
20542rm -f conftest.$ac_objext
20543if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20544  (eval $ac_compile) 2>conftest.er1
20545  ac_status=$?
20546  grep -v '^ *+' conftest.er1 >conftest.err
20547  rm -f conftest.er1
20548  cat conftest.err >&5
20549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550  (exit $ac_status); } &&
20551	 { ac_try='test -z "$ac_c_werror_flag"
20552			 || test ! -s conftest.err'
20553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20554  (eval $ac_try) 2>&5
20555  ac_status=$?
20556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20557  (exit $ac_status); }; } &&
20558	 { ac_try='test -s conftest.$ac_objext'
20559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20560  (eval $ac_try) 2>&5
20561  ac_status=$?
20562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20563  (exit $ac_status); }; }; then
20564  ac_cv_type_long_double=yes
20565else
20566  echo "$as_me: failed program was:" >&5
20567sed 's/^/| /' conftest.$ac_ext >&5
20568
20569ac_cv_type_long_double=no
20570fi
20571rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20572fi
20573echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20574echo "${ECHO_T}$ac_cv_type_long_double" >&6
20575if test $ac_cv_type_long_double = yes; then
20576
20577cat >>confdefs.h <<_ACEOF
20578#define HAVE_LONG_DOUBLE 1
20579_ACEOF
20580
20581
20582fi
20583
20584
20585echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20586echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20587if test "${ac_cv_type_signal+set}" = set; then
20588  echo $ECHO_N "(cached) $ECHO_C" >&6
20589else
20590  cat >conftest.$ac_ext <<_ACEOF
20591/* confdefs.h.  */
20592_ACEOF
20593cat confdefs.h >>conftest.$ac_ext
20594cat >>conftest.$ac_ext <<_ACEOF
20595/* end confdefs.h.  */
20596#include <sys/types.h>
20597#include <signal.h>
20598#ifdef signal
20599# undef signal
20600#endif
20601#ifdef __cplusplus
20602extern "C" void (*signal (int, void (*)(int)))(int);
20603#else
20604void (*signal ()) ();
20605#endif
20606
20607int
20608main ()
20609{
20610int i;
20611  ;
20612  return 0;
20613}
20614_ACEOF
20615rm -f conftest.$ac_objext
20616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20617  (eval $ac_compile) 2>conftest.er1
20618  ac_status=$?
20619  grep -v '^ *+' conftest.er1 >conftest.err
20620  rm -f conftest.er1
20621  cat conftest.err >&5
20622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20623  (exit $ac_status); } &&
20624	 { ac_try='test -z "$ac_c_werror_flag"
20625			 || test ! -s conftest.err'
20626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627  (eval $ac_try) 2>&5
20628  ac_status=$?
20629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630  (exit $ac_status); }; } &&
20631	 { ac_try='test -s conftest.$ac_objext'
20632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20633  (eval $ac_try) 2>&5
20634  ac_status=$?
20635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20636  (exit $ac_status); }; }; then
20637  ac_cv_type_signal=void
20638else
20639  echo "$as_me: failed program was:" >&5
20640sed 's/^/| /' conftest.$ac_ext >&5
20641
20642ac_cv_type_signal=int
20643fi
20644rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20645fi
20646echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20647echo "${ECHO_T}$ac_cv_type_signal" >&6
20648
20649cat >>confdefs.h <<_ACEOF
20650#define RETSIGTYPE $ac_cv_type_signal
20651_ACEOF
20652
20653
20654
20655# Check whether --enable-doc or --disable-doc was given.
20656if test "${enable_doc+set}" = set; then
20657  enableval="$enable_doc"
20658
20659fi;
20660# Check whether --enable-tests or --disable-tests was given.
20661if test "${enable_tests+set}" = set; then
20662  enableval="$enable_tests"
20663
20664fi;
20665# Check whether --enable-test_data or --disable-test_data was given.
20666if test "${enable_test_data+set}" = set; then
20667  enableval="$enable_test_data"
20668
20669fi;
20670# Check whether --enable-mmx or --disable-mmx was given.
20671if test "${enable_mmx+set}" = set; then
20672  enableval="$enable_mmx"
20673
20674fi;
20675# Check whether --enable-sse or --disable-sse was given.
20676if test "${enable_sse+set}" = set; then
20677  enableval="$enable_sse"
20678
20679fi;
20680# Check whether --enable-fixed_point or --disable-fixed_point was given.
20681if test "${enable_fixed_point+set}" = set; then
20682  enableval="$enable_fixed_point"
20683
20684fi;
20685
20686echo "$as_me:$LINENO: checking for error_at_line" >&5
20687echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
20688if test "${ac_cv_lib_error_at_line+set}" = set; then
20689  echo $ECHO_N "(cached) $ECHO_C" >&6
20690else
20691  cat >conftest.$ac_ext <<_ACEOF
20692/* confdefs.h.  */
20693_ACEOF
20694cat confdefs.h >>conftest.$ac_ext
20695cat >>conftest.$ac_ext <<_ACEOF
20696/* end confdefs.h.  */
20697$ac_includes_default
20698int
20699main ()
20700{
20701error_at_line (0, 0, "", 0, "");
20702  ;
20703  return 0;
20704}
20705_ACEOF
20706rm -f conftest.$ac_objext conftest$ac_exeext
20707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20708  (eval $ac_link) 2>conftest.er1
20709  ac_status=$?
20710  grep -v '^ *+' conftest.er1 >conftest.err
20711  rm -f conftest.er1
20712  cat conftest.err >&5
20713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20714  (exit $ac_status); } &&
20715	 { ac_try='test -z "$ac_c_werror_flag"
20716			 || test ! -s conftest.err'
20717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20718  (eval $ac_try) 2>&5
20719  ac_status=$?
20720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20721  (exit $ac_status); }; } &&
20722	 { ac_try='test -s conftest$ac_exeext'
20723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20724  (eval $ac_try) 2>&5
20725  ac_status=$?
20726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727  (exit $ac_status); }; }; then
20728  ac_cv_lib_error_at_line=yes
20729else
20730  echo "$as_me: failed program was:" >&5
20731sed 's/^/| /' conftest.$ac_ext >&5
20732
20733ac_cv_lib_error_at_line=no
20734fi
20735rm -f conftest.err conftest.$ac_objext \
20736      conftest$ac_exeext conftest.$ac_ext
20737fi
20738echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20739echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
20740if test $ac_cv_lib_error_at_line = no; then
20741  case $LIBOBJS in
20742    "error.$ac_objext"   | \
20743  *" error.$ac_objext"   | \
20744    "error.$ac_objext "* | \
20745  *" error.$ac_objext "* ) ;;
20746  *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
20747esac
20748
20749fi
20750
20751
20752for ac_func in vprintf
20753do
20754as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20755echo "$as_me:$LINENO: checking for $ac_func" >&5
20756echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20757if eval "test \"\${$as_ac_var+set}\" = set"; then
20758  echo $ECHO_N "(cached) $ECHO_C" >&6
20759else
20760  cat >conftest.$ac_ext <<_ACEOF
20761/* confdefs.h.  */
20762_ACEOF
20763cat confdefs.h >>conftest.$ac_ext
20764cat >>conftest.$ac_ext <<_ACEOF
20765/* end confdefs.h.  */
20766/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20767   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20768#define $ac_func innocuous_$ac_func
20769
20770/* System header to define __stub macros and hopefully few prototypes,
20771    which can conflict with char $ac_func (); below.
20772    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20773    <limits.h> exists even on freestanding compilers.  */
20774
20775#ifdef __STDC__
20776# include <limits.h>
20777#else
20778# include <assert.h>
20779#endif
20780
20781#undef $ac_func
20782
20783/* Override any gcc2 internal prototype to avoid an error.  */
20784#ifdef __cplusplus
20785extern "C"
20786{
20787#endif
20788/* We use char because int might match the return type of a gcc2
20789   builtin and then its argument prototype would still apply.  */
20790char $ac_func ();
20791/* The GNU C library defines this for functions which it implements
20792    to always fail with ENOSYS.  Some functions are actually named
20793    something starting with __ and the normal name is an alias.  */
20794#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20795choke me
20796#else
20797char (*f) () = $ac_func;
20798#endif
20799#ifdef __cplusplus
20800}
20801#endif
20802
20803int
20804main ()
20805{
20806return f != $ac_func;
20807  ;
20808  return 0;
20809}
20810_ACEOF
20811rm -f conftest.$ac_objext conftest$ac_exeext
20812if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20813  (eval $ac_link) 2>conftest.er1
20814  ac_status=$?
20815  grep -v '^ *+' conftest.er1 >conftest.err
20816  rm -f conftest.er1
20817  cat conftest.err >&5
20818  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819  (exit $ac_status); } &&
20820	 { ac_try='test -z "$ac_c_werror_flag"
20821			 || test ! -s conftest.err'
20822  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20823  (eval $ac_try) 2>&5
20824  ac_status=$?
20825  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826  (exit $ac_status); }; } &&
20827	 { ac_try='test -s conftest$ac_exeext'
20828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20829  (eval $ac_try) 2>&5
20830  ac_status=$?
20831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832  (exit $ac_status); }; }; then
20833  eval "$as_ac_var=yes"
20834else
20835  echo "$as_me: failed program was:" >&5
20836sed 's/^/| /' conftest.$ac_ext >&5
20837
20838eval "$as_ac_var=no"
20839fi
20840rm -f conftest.err conftest.$ac_objext \
20841      conftest$ac_exeext conftest.$ac_ext
20842fi
20843echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20844echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20845if test `eval echo '${'$as_ac_var'}'` = yes; then
20846  cat >>confdefs.h <<_ACEOF
20847#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20848_ACEOF
20849
20850echo "$as_me:$LINENO: checking for _doprnt" >&5
20851echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20852if test "${ac_cv_func__doprnt+set}" = set; then
20853  echo $ECHO_N "(cached) $ECHO_C" >&6
20854else
20855  cat >conftest.$ac_ext <<_ACEOF
20856/* confdefs.h.  */
20857_ACEOF
20858cat confdefs.h >>conftest.$ac_ext
20859cat >>conftest.$ac_ext <<_ACEOF
20860/* end confdefs.h.  */
20861/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20862   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20863#define _doprnt innocuous__doprnt
20864
20865/* System header to define __stub macros and hopefully few prototypes,
20866    which can conflict with char _doprnt (); below.
20867    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20868    <limits.h> exists even on freestanding compilers.  */
20869
20870#ifdef __STDC__
20871# include <limits.h>
20872#else
20873# include <assert.h>
20874#endif
20875
20876#undef _doprnt
20877
20878/* Override any gcc2 internal prototype to avoid an error.  */
20879#ifdef __cplusplus
20880extern "C"
20881{
20882#endif
20883/* We use char because int might match the return type of a gcc2
20884   builtin and then its argument prototype would still apply.  */
20885char _doprnt ();
20886/* The GNU C library defines this for functions which it implements
20887    to always fail with ENOSYS.  Some functions are actually named
20888    something starting with __ and the normal name is an alias.  */
20889#if defined (__stub__doprnt) || defined (__stub____doprnt)
20890choke me
20891#else
20892char (*f) () = _doprnt;
20893#endif
20894#ifdef __cplusplus
20895}
20896#endif
20897
20898int
20899main ()
20900{
20901return f != _doprnt;
20902  ;
20903  return 0;
20904}
20905_ACEOF
20906rm -f conftest.$ac_objext conftest$ac_exeext
20907if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20908  (eval $ac_link) 2>conftest.er1
20909  ac_status=$?
20910  grep -v '^ *+' conftest.er1 >conftest.err
20911  rm -f conftest.er1
20912  cat conftest.err >&5
20913  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914  (exit $ac_status); } &&
20915	 { ac_try='test -z "$ac_c_werror_flag"
20916			 || test ! -s conftest.err'
20917  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918  (eval $ac_try) 2>&5
20919  ac_status=$?
20920  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921  (exit $ac_status); }; } &&
20922	 { ac_try='test -s conftest$ac_exeext'
20923  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924  (eval $ac_try) 2>&5
20925  ac_status=$?
20926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927  (exit $ac_status); }; }; then
20928  ac_cv_func__doprnt=yes
20929else
20930  echo "$as_me: failed program was:" >&5
20931sed 's/^/| /' conftest.$ac_ext >&5
20932
20933ac_cv_func__doprnt=no
20934fi
20935rm -f conftest.err conftest.$ac_objext \
20936      conftest$ac_exeext conftest.$ac_ext
20937fi
20938echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
20939echo "${ECHO_T}$ac_cv_func__doprnt" >&6
20940if test $ac_cv_func__doprnt = yes; then
20941
20942cat >>confdefs.h <<\_ACEOF
20943#define HAVE_DOPRNT 1
20944_ACEOF
20945
20946fi
20947
20948fi
20949done
20950
20951
20952
20953for ac_header in stdlib.h
20954do
20955as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20956if eval "test \"\${$as_ac_Header+set}\" = set"; then
20957  echo "$as_me:$LINENO: checking for $ac_header" >&5
20958echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20959if eval "test \"\${$as_ac_Header+set}\" = set"; then
20960  echo $ECHO_N "(cached) $ECHO_C" >&6
20961fi
20962echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20963echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20964else
20965  # Is the header compilable?
20966echo "$as_me:$LINENO: checking $ac_header usability" >&5
20967echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20968cat >conftest.$ac_ext <<_ACEOF
20969/* confdefs.h.  */
20970_ACEOF
20971cat confdefs.h >>conftest.$ac_ext
20972cat >>conftest.$ac_ext <<_ACEOF
20973/* end confdefs.h.  */
20974$ac_includes_default
20975#include <$ac_header>
20976_ACEOF
20977rm -f conftest.$ac_objext
20978if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20979  (eval $ac_compile) 2>conftest.er1
20980  ac_status=$?
20981  grep -v '^ *+' conftest.er1 >conftest.err
20982  rm -f conftest.er1
20983  cat conftest.err >&5
20984  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20985  (exit $ac_status); } &&
20986	 { ac_try='test -z "$ac_c_werror_flag"
20987			 || test ! -s conftest.err'
20988  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20989  (eval $ac_try) 2>&5
20990  ac_status=$?
20991  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20992  (exit $ac_status); }; } &&
20993	 { ac_try='test -s conftest.$ac_objext'
20994  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20995  (eval $ac_try) 2>&5
20996  ac_status=$?
20997  echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998  (exit $ac_status); }; }; then
20999  ac_header_compiler=yes
21000else
21001  echo "$as_me: failed program was:" >&5
21002sed 's/^/| /' conftest.$ac_ext >&5
21003
21004ac_header_compiler=no
21005fi
21006rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21007echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21008echo "${ECHO_T}$ac_header_compiler" >&6
21009
21010# Is the header present?
21011echo "$as_me:$LINENO: checking $ac_header presence" >&5
21012echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21013cat >conftest.$ac_ext <<_ACEOF
21014/* confdefs.h.  */
21015_ACEOF
21016cat confdefs.h >>conftest.$ac_ext
21017cat >>conftest.$ac_ext <<_ACEOF
21018/* end confdefs.h.  */
21019#include <$ac_header>
21020_ACEOF
21021if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21022  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21023  ac_status=$?
21024  grep -v '^ *+' conftest.er1 >conftest.err
21025  rm -f conftest.er1
21026  cat conftest.err >&5
21027  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21028  (exit $ac_status); } >/dev/null; then
21029  if test -s conftest.err; then
21030    ac_cpp_err=$ac_c_preproc_warn_flag
21031    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21032  else
21033    ac_cpp_err=
21034  fi
21035else
21036  ac_cpp_err=yes
21037fi
21038if test -z "$ac_cpp_err"; then
21039  ac_header_preproc=yes
21040else
21041  echo "$as_me: failed program was:" >&5
21042sed 's/^/| /' conftest.$ac_ext >&5
21043
21044  ac_header_preproc=no
21045fi
21046rm -f conftest.err conftest.$ac_ext
21047echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21048echo "${ECHO_T}$ac_header_preproc" >&6
21049
21050# So?  What about this header?
21051case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21052  yes:no: )
21053    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21054echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21055    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21056echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21057    ac_header_preproc=yes
21058    ;;
21059  no:yes:* )
21060    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21061echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21062    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21063echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21064    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21065echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21066    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21067echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21068    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21069echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21070    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21071echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21072    (
21073      cat <<\_ASBOX
21074## ------------------------------------------ ##
21075## Report this to the AC_PACKAGE_NAME lists.  ##
21076## ------------------------------------------ ##
21077_ASBOX
21078    ) |
21079      sed "s/^/$as_me: WARNING:     /" >&2
21080    ;;
21081esac
21082echo "$as_me:$LINENO: checking for $ac_header" >&5
21083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21084if eval "test \"\${$as_ac_Header+set}\" = set"; then
21085  echo $ECHO_N "(cached) $ECHO_C" >&6
21086else
21087  eval "$as_ac_Header=\$ac_header_preproc"
21088fi
21089echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21090echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21091
21092fi
21093if test `eval echo '${'$as_ac_Header'}'` = yes; then
21094  cat >>confdefs.h <<_ACEOF
21095#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21096_ACEOF
21097
21098fi
21099
21100done
21101
21102echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21103echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21104if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21105  echo $ECHO_N "(cached) $ECHO_C" >&6
21106else
21107  if test "$cross_compiling" = yes; then
21108  ac_cv_func_malloc_0_nonnull=no
21109else
21110  cat >conftest.$ac_ext <<_ACEOF
21111/* confdefs.h.  */
21112_ACEOF
21113cat confdefs.h >>conftest.$ac_ext
21114cat >>conftest.$ac_ext <<_ACEOF
21115/* end confdefs.h.  */
21116#if STDC_HEADERS || HAVE_STDLIB_H
21117# include <stdlib.h>
21118#else
21119char *malloc ();
21120#endif
21121
21122int
21123main ()
21124{
21125exit (malloc (0) ? 0 : 1);
21126  ;
21127  return 0;
21128}
21129_ACEOF
21130rm -f conftest$ac_exeext
21131if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21132  (eval $ac_link) 2>&5
21133  ac_status=$?
21134  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21135  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21136  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21137  (eval $ac_try) 2>&5
21138  ac_status=$?
21139  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21140  (exit $ac_status); }; }; then
21141  ac_cv_func_malloc_0_nonnull=yes
21142else
21143  echo "$as_me: program exited with status $ac_status" >&5
21144echo "$as_me: failed program was:" >&5
21145sed 's/^/| /' conftest.$ac_ext >&5
21146
21147( exit $ac_status )
21148ac_cv_func_malloc_0_nonnull=no
21149fi
21150rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21151fi
21152fi
21153echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21154echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21155if test $ac_cv_func_malloc_0_nonnull = yes; then
21156
21157cat >>confdefs.h <<\_ACEOF
21158#define HAVE_MALLOC 1
21159_ACEOF
21160
21161else
21162  cat >>confdefs.h <<\_ACEOF
21163#define HAVE_MALLOC 0
21164_ACEOF
21165
21166   case $LIBOBJS in
21167    "malloc.$ac_objext"   | \
21168  *" malloc.$ac_objext"   | \
21169    "malloc.$ac_objext "* | \
21170  *" malloc.$ac_objext "* ) ;;
21171  *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21172esac
21173
21174
21175cat >>confdefs.h <<\_ACEOF
21176#define malloc rpl_malloc
21177_ACEOF
21178
21179fi
21180
21181
21182
21183echo "$as_me:$LINENO: checking for working memcmp" >&5
21184echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21185if test "${ac_cv_func_memcmp_working+set}" = set; then
21186  echo $ECHO_N "(cached) $ECHO_C" >&6
21187else
21188  if test "$cross_compiling" = yes; then
21189  ac_cv_func_memcmp_working=no
21190else
21191  cat >conftest.$ac_ext <<_ACEOF
21192/* confdefs.h.  */
21193_ACEOF
21194cat confdefs.h >>conftest.$ac_ext
21195cat >>conftest.$ac_ext <<_ACEOF
21196/* end confdefs.h.  */
21197$ac_includes_default
21198int
21199main ()
21200{
21201
21202  /* Some versions of memcmp are not 8-bit clean.  */
21203  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21204  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21205    exit (1);
21206
21207  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21208     or more and with at least one buffer not starting on a 4-byte boundary.
21209     William Lewis provided this test program.   */
21210  {
21211    char foo[21];
21212    char bar[21];
21213    int i;
21214    for (i = 0; i < 4; i++)
21215      {
21216	char *a = foo + i;
21217	char *b = bar + i;
21218	strcpy (a, "--------01111111");
21219	strcpy (b, "--------10000000");
21220	if (memcmp (a, b, 16) >= 0)
21221	  exit (1);
21222      }
21223    exit (0);
21224  }
21225
21226  ;
21227  return 0;
21228}
21229_ACEOF
21230rm -f conftest$ac_exeext
21231if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21232  (eval $ac_link) 2>&5
21233  ac_status=$?
21234  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21235  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21236  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21237  (eval $ac_try) 2>&5
21238  ac_status=$?
21239  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240  (exit $ac_status); }; }; then
21241  ac_cv_func_memcmp_working=yes
21242else
21243  echo "$as_me: program exited with status $ac_status" >&5
21244echo "$as_me: failed program was:" >&5
21245sed 's/^/| /' conftest.$ac_ext >&5
21246
21247( exit $ac_status )
21248ac_cv_func_memcmp_working=no
21249fi
21250rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21251fi
21252fi
21253echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21254echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21255test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21256    "memcmp.$ac_objext"   | \
21257  *" memcmp.$ac_objext"   | \
21258    "memcmp.$ac_objext "* | \
21259  *" memcmp.$ac_objext "* ) ;;
21260  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21261esac
21262
21263
21264
21265for ac_header in stdlib.h
21266do
21267as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21268if eval "test \"\${$as_ac_Header+set}\" = set"; then
21269  echo "$as_me:$LINENO: checking for $ac_header" >&5
21270echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21271if eval "test \"\${$as_ac_Header+set}\" = set"; then
21272  echo $ECHO_N "(cached) $ECHO_C" >&6
21273fi
21274echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21275echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21276else
21277  # Is the header compilable?
21278echo "$as_me:$LINENO: checking $ac_header usability" >&5
21279echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21280cat >conftest.$ac_ext <<_ACEOF
21281/* confdefs.h.  */
21282_ACEOF
21283cat confdefs.h >>conftest.$ac_ext
21284cat >>conftest.$ac_ext <<_ACEOF
21285/* end confdefs.h.  */
21286$ac_includes_default
21287#include <$ac_header>
21288_ACEOF
21289rm -f conftest.$ac_objext
21290if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21291  (eval $ac_compile) 2>conftest.er1
21292  ac_status=$?
21293  grep -v '^ *+' conftest.er1 >conftest.err
21294  rm -f conftest.er1
21295  cat conftest.err >&5
21296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21297  (exit $ac_status); } &&
21298	 { ac_try='test -z "$ac_c_werror_flag"
21299			 || test ! -s conftest.err'
21300  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21301  (eval $ac_try) 2>&5
21302  ac_status=$?
21303  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21304  (exit $ac_status); }; } &&
21305	 { ac_try='test -s conftest.$ac_objext'
21306  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21307  (eval $ac_try) 2>&5
21308  ac_status=$?
21309  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21310  (exit $ac_status); }; }; then
21311  ac_header_compiler=yes
21312else
21313  echo "$as_me: failed program was:" >&5
21314sed 's/^/| /' conftest.$ac_ext >&5
21315
21316ac_header_compiler=no
21317fi
21318rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21319echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21320echo "${ECHO_T}$ac_header_compiler" >&6
21321
21322# Is the header present?
21323echo "$as_me:$LINENO: checking $ac_header presence" >&5
21324echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21325cat >conftest.$ac_ext <<_ACEOF
21326/* confdefs.h.  */
21327_ACEOF
21328cat confdefs.h >>conftest.$ac_ext
21329cat >>conftest.$ac_ext <<_ACEOF
21330/* end confdefs.h.  */
21331#include <$ac_header>
21332_ACEOF
21333if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21334  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21335  ac_status=$?
21336  grep -v '^ *+' conftest.er1 >conftest.err
21337  rm -f conftest.er1
21338  cat conftest.err >&5
21339  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340  (exit $ac_status); } >/dev/null; then
21341  if test -s conftest.err; then
21342    ac_cpp_err=$ac_c_preproc_warn_flag
21343    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21344  else
21345    ac_cpp_err=
21346  fi
21347else
21348  ac_cpp_err=yes
21349fi
21350if test -z "$ac_cpp_err"; then
21351  ac_header_preproc=yes
21352else
21353  echo "$as_me: failed program was:" >&5
21354sed 's/^/| /' conftest.$ac_ext >&5
21355
21356  ac_header_preproc=no
21357fi
21358rm -f conftest.err conftest.$ac_ext
21359echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21360echo "${ECHO_T}$ac_header_preproc" >&6
21361
21362# So?  What about this header?
21363case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21364  yes:no: )
21365    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21366echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21368echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21369    ac_header_preproc=yes
21370    ;;
21371  no:yes:* )
21372    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21373echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21374    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21375echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21376    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21377echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21378    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21379echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21380    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21381echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21382    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21383echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21384    (
21385      cat <<\_ASBOX
21386## ------------------------------------------ ##
21387## Report this to the AC_PACKAGE_NAME lists.  ##
21388## ------------------------------------------ ##
21389_ASBOX
21390    ) |
21391      sed "s/^/$as_me: WARNING:     /" >&2
21392    ;;
21393esac
21394echo "$as_me:$LINENO: checking for $ac_header" >&5
21395echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21396if eval "test \"\${$as_ac_Header+set}\" = set"; then
21397  echo $ECHO_N "(cached) $ECHO_C" >&6
21398else
21399  eval "$as_ac_Header=\$ac_header_preproc"
21400fi
21401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21403
21404fi
21405if test `eval echo '${'$as_ac_Header'}'` = yes; then
21406  cat >>confdefs.h <<_ACEOF
21407#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21408_ACEOF
21409
21410fi
21411
21412done
21413
21414echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21415echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21416if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21417  echo $ECHO_N "(cached) $ECHO_C" >&6
21418else
21419  if test "$cross_compiling" = yes; then
21420  ac_cv_func_realloc_0_nonnull=no
21421else
21422  cat >conftest.$ac_ext <<_ACEOF
21423/* confdefs.h.  */
21424_ACEOF
21425cat confdefs.h >>conftest.$ac_ext
21426cat >>conftest.$ac_ext <<_ACEOF
21427/* end confdefs.h.  */
21428#if STDC_HEADERS || HAVE_STDLIB_H
21429# include <stdlib.h>
21430#else
21431char *realloc ();
21432#endif
21433
21434int
21435main ()
21436{
21437exit (realloc (0, 0) ? 0 : 1);
21438  ;
21439  return 0;
21440}
21441_ACEOF
21442rm -f conftest$ac_exeext
21443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21444  (eval $ac_link) 2>&5
21445  ac_status=$?
21446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21448  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21449  (eval $ac_try) 2>&5
21450  ac_status=$?
21451  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21452  (exit $ac_status); }; }; then
21453  ac_cv_func_realloc_0_nonnull=yes
21454else
21455  echo "$as_me: program exited with status $ac_status" >&5
21456echo "$as_me: failed program was:" >&5
21457sed 's/^/| /' conftest.$ac_ext >&5
21458
21459( exit $ac_status )
21460ac_cv_func_realloc_0_nonnull=no
21461fi
21462rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21463fi
21464fi
21465echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21466echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21467if test $ac_cv_func_realloc_0_nonnull = yes; then
21468
21469cat >>confdefs.h <<\_ACEOF
21470#define HAVE_REALLOC 1
21471_ACEOF
21472
21473else
21474  cat >>confdefs.h <<\_ACEOF
21475#define HAVE_REALLOC 0
21476_ACEOF
21477
21478   case $LIBOBJS in
21479    "realloc.$ac_objext"   | \
21480  *" realloc.$ac_objext"   | \
21481    "realloc.$ac_objext "* | \
21482  *" realloc.$ac_objext "* ) ;;
21483  *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21484esac
21485
21486
21487cat >>confdefs.h <<\_ACEOF
21488#define realloc rpl_realloc
21489_ACEOF
21490
21491fi
21492
21493
21494
21495
21496
21497for ac_header in sys/select.h sys/socket.h
21498do
21499as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21500if eval "test \"\${$as_ac_Header+set}\" = set"; then
21501  echo "$as_me:$LINENO: checking for $ac_header" >&5
21502echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21503if eval "test \"\${$as_ac_Header+set}\" = set"; then
21504  echo $ECHO_N "(cached) $ECHO_C" >&6
21505fi
21506echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21507echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21508else
21509  # Is the header compilable?
21510echo "$as_me:$LINENO: checking $ac_header usability" >&5
21511echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21512cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h.  */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h.  */
21518$ac_includes_default
21519#include <$ac_header>
21520_ACEOF
21521rm -f conftest.$ac_objext
21522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21523  (eval $ac_compile) 2>conftest.er1
21524  ac_status=$?
21525  grep -v '^ *+' conftest.er1 >conftest.err
21526  rm -f conftest.er1
21527  cat conftest.err >&5
21528  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529  (exit $ac_status); } &&
21530	 { ac_try='test -z "$ac_c_werror_flag"
21531			 || test ! -s conftest.err'
21532  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21533  (eval $ac_try) 2>&5
21534  ac_status=$?
21535  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21536  (exit $ac_status); }; } &&
21537	 { ac_try='test -s conftest.$ac_objext'
21538  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21539  (eval $ac_try) 2>&5
21540  ac_status=$?
21541  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542  (exit $ac_status); }; }; then
21543  ac_header_compiler=yes
21544else
21545  echo "$as_me: failed program was:" >&5
21546sed 's/^/| /' conftest.$ac_ext >&5
21547
21548ac_header_compiler=no
21549fi
21550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21551echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21552echo "${ECHO_T}$ac_header_compiler" >&6
21553
21554# Is the header present?
21555echo "$as_me:$LINENO: checking $ac_header presence" >&5
21556echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21557cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h.  */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h.  */
21563#include <$ac_header>
21564_ACEOF
21565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21566  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21567  ac_status=$?
21568  grep -v '^ *+' conftest.er1 >conftest.err
21569  rm -f conftest.er1
21570  cat conftest.err >&5
21571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21572  (exit $ac_status); } >/dev/null; then
21573  if test -s conftest.err; then
21574    ac_cpp_err=$ac_c_preproc_warn_flag
21575    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21576  else
21577    ac_cpp_err=
21578  fi
21579else
21580  ac_cpp_err=yes
21581fi
21582if test -z "$ac_cpp_err"; then
21583  ac_header_preproc=yes
21584else
21585  echo "$as_me: failed program was:" >&5
21586sed 's/^/| /' conftest.$ac_ext >&5
21587
21588  ac_header_preproc=no
21589fi
21590rm -f conftest.err conftest.$ac_ext
21591echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21592echo "${ECHO_T}$ac_header_preproc" >&6
21593
21594# So?  What about this header?
21595case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21596  yes:no: )
21597    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21598echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21599    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21600echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21601    ac_header_preproc=yes
21602    ;;
21603  no:yes:* )
21604    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21605echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21606    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21607echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21608    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21609echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21610    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21611echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21612    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21613echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21614    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21615echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21616    (
21617      cat <<\_ASBOX
21618## ------------------------------------------ ##
21619## Report this to the AC_PACKAGE_NAME lists.  ##
21620## ------------------------------------------ ##
21621_ASBOX
21622    ) |
21623      sed "s/^/$as_me: WARNING:     /" >&2
21624    ;;
21625esac
21626echo "$as_me:$LINENO: checking for $ac_header" >&5
21627echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21628if eval "test \"\${$as_ac_Header+set}\" = set"; then
21629  echo $ECHO_N "(cached) $ECHO_C" >&6
21630else
21631  eval "$as_ac_Header=\$ac_header_preproc"
21632fi
21633echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21634echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21635
21636fi
21637if test `eval echo '${'$as_ac_Header'}'` = yes; then
21638  cat >>confdefs.h <<_ACEOF
21639#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21640_ACEOF
21641
21642fi
21643
21644done
21645
21646echo "$as_me:$LINENO: checking types of arguments for select" >&5
21647echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21648if test "${ac_cv_func_select_args+set}" = set; then
21649  echo $ECHO_N "(cached) $ECHO_C" >&6
21650else
21651  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21652 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21653  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21654   cat >conftest.$ac_ext <<_ACEOF
21655/* confdefs.h.  */
21656_ACEOF
21657cat confdefs.h >>conftest.$ac_ext
21658cat >>conftest.$ac_ext <<_ACEOF
21659/* end confdefs.h.  */
21660$ac_includes_default
21661#if HAVE_SYS_SELECT_H
21662# include <sys/select.h>
21663#endif
21664#if HAVE_SYS_SOCKET_H
21665# include <sys/socket.h>
21666#endif
21667
21668int
21669main ()
21670{
21671extern int select ($ac_arg1,
21672					    $ac_arg234, $ac_arg234, $ac_arg234,
21673					    $ac_arg5);
21674  ;
21675  return 0;
21676}
21677_ACEOF
21678rm -f conftest.$ac_objext
21679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21680  (eval $ac_compile) 2>conftest.er1
21681  ac_status=$?
21682  grep -v '^ *+' conftest.er1 >conftest.err
21683  rm -f conftest.er1
21684  cat conftest.err >&5
21685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686  (exit $ac_status); } &&
21687	 { ac_try='test -z "$ac_c_werror_flag"
21688			 || test ! -s conftest.err'
21689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21690  (eval $ac_try) 2>&5
21691  ac_status=$?
21692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21693  (exit $ac_status); }; } &&
21694	 { ac_try='test -s conftest.$ac_objext'
21695  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21696  (eval $ac_try) 2>&5
21697  ac_status=$?
21698  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21699  (exit $ac_status); }; }; then
21700  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21701else
21702  echo "$as_me: failed program was:" >&5
21703sed 's/^/| /' conftest.$ac_ext >&5
21704
21705fi
21706rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21707  done
21708 done
21709done
21710# Provide a safe default value.
21711: ${ac_cv_func_select_args='int,int *,struct timeval *'}
21712
21713fi
21714echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21715echo "${ECHO_T}$ac_cv_func_select_args" >&6
21716ac_save_IFS=$IFS; IFS=','
21717set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21718IFS=$ac_save_IFS
21719shift
21720
21721cat >>confdefs.h <<_ACEOF
21722#define SELECT_TYPE_ARG1 $1
21723_ACEOF
21724
21725
21726cat >>confdefs.h <<_ACEOF
21727#define SELECT_TYPE_ARG234 ($2)
21728_ACEOF
21729
21730
21731cat >>confdefs.h <<_ACEOF
21732#define SELECT_TYPE_ARG5 ($3)
21733_ACEOF
21734
21735rm -f conftest*
21736
21737
21738echo "$as_me:$LINENO: checking for lrint" >&5
21739echo $ECHO_N "checking for lrint... $ECHO_C" >&6
21740if test "${ac_cv_c99_lrint+set}" = set; then
21741  echo $ECHO_N "(cached) $ECHO_C" >&6
21742else
21743
21744lrint_save_CFLAGS=$CFLAGS
21745CFLAGS="-lm"
21746cat >conftest.$ac_ext <<_ACEOF
21747/* confdefs.h.  */
21748_ACEOF
21749cat confdefs.h >>conftest.$ac_ext
21750cat >>conftest.$ac_ext <<_ACEOF
21751/* end confdefs.h.  */
21752
21753#define _ISOC9X_SOURCE  1
21754#define _ISOC99_SOURCE  1
21755#define __USE_ISOC99    1
21756#define __USE_ISOC9X    1
21757
21758#include <math.h>
21759
21760int
21761main ()
21762{
21763if (!lrint(3.14159)) lrint(2.7183);
21764  ;
21765  return 0;
21766}
21767_ACEOF
21768rm -f conftest.$ac_objext conftest$ac_exeext
21769if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21770  (eval $ac_link) 2>conftest.er1
21771  ac_status=$?
21772  grep -v '^ *+' conftest.er1 >conftest.err
21773  rm -f conftest.er1
21774  cat conftest.err >&5
21775  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776  (exit $ac_status); } &&
21777	 { ac_try='test -z "$ac_c_werror_flag"
21778			 || test ! -s conftest.err'
21779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21780  (eval $ac_try) 2>&5
21781  ac_status=$?
21782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783  (exit $ac_status); }; } &&
21784	 { ac_try='test -s conftest$ac_exeext'
21785  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21786  (eval $ac_try) 2>&5
21787  ac_status=$?
21788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789  (exit $ac_status); }; }; then
21790  ac_cv_c99_lrint=yes
21791else
21792  echo "$as_me: failed program was:" >&5
21793sed 's/^/| /' conftest.$ac_ext >&5
21794
21795ac_cv_c99_lrint=no
21796fi
21797rm -f conftest.err conftest.$ac_objext \
21798      conftest$ac_exeext conftest.$ac_ext
21799
21800CFLAGS=$lrint_save_CFLAGS
21801
21802
21803fi
21804echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5
21805echo "${ECHO_T}$ac_cv_c99_lrint" >&6
21806
21807if test "$ac_cv_c99_lrint" = yes; then
21808
21809cat >>confdefs.h <<\_ACEOF
21810#define HAVE_LRINT 1
21811_ACEOF
21812
21813fi
21814
21815echo "$as_me:$LINENO: checking for lrintf" >&5
21816echo $ECHO_N "checking for lrintf... $ECHO_C" >&6
21817if test "${ac_cv_c99_lrintf+set}" = set; then
21818  echo $ECHO_N "(cached) $ECHO_C" >&6
21819else
21820
21821lrintf_save_CFLAGS=$CFLAGS
21822CFLAGS="-lm"
21823cat >conftest.$ac_ext <<_ACEOF
21824/* confdefs.h.  */
21825_ACEOF
21826cat confdefs.h >>conftest.$ac_ext
21827cat >>conftest.$ac_ext <<_ACEOF
21828/* end confdefs.h.  */
21829
21830#define _ISOC9X_SOURCE  1
21831#define _ISOC99_SOURCE  1
21832#define __USE_ISOC99    1
21833#define __USE_ISOC9X    1
21834
21835#include <math.h>
21836
21837int
21838main ()
21839{
21840if (!lrintf(3.14159)) lrintf(2.7183);
21841  ;
21842  return 0;
21843}
21844_ACEOF
21845rm -f conftest.$ac_objext conftest$ac_exeext
21846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21847  (eval $ac_link) 2>conftest.er1
21848  ac_status=$?
21849  grep -v '^ *+' conftest.er1 >conftest.err
21850  rm -f conftest.er1
21851  cat conftest.err >&5
21852  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21853  (exit $ac_status); } &&
21854	 { ac_try='test -z "$ac_c_werror_flag"
21855			 || test ! -s conftest.err'
21856  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21857  (eval $ac_try) 2>&5
21858  ac_status=$?
21859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860  (exit $ac_status); }; } &&
21861	 { ac_try='test -s conftest$ac_exeext'
21862  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863  (eval $ac_try) 2>&5
21864  ac_status=$?
21865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866  (exit $ac_status); }; }; then
21867  ac_cv_c99_lrintf=yes
21868else
21869  echo "$as_me: failed program was:" >&5
21870sed 's/^/| /' conftest.$ac_ext >&5
21871
21872ac_cv_c99_lrintf=no
21873fi
21874rm -f conftest.err conftest.$ac_objext \
21875      conftest$ac_exeext conftest.$ac_ext
21876
21877CFLAGS=$lrintf_save_CFLAGS
21878
21879
21880fi
21881echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
21882echo "${ECHO_T}$ac_cv_c99_lrintf" >&6
21883
21884if test "$ac_cv_c99_lrintf" = yes; then
21885
21886cat >>confdefs.h <<\_ACEOF
21887#define HAVE_LRINTF 1
21888_ACEOF
21889
21890fi
21891
21892echo "$as_me:$LINENO: checking for llrint" >&5
21893echo $ECHO_N "checking for llrint... $ECHO_C" >&6
21894if test "${ac_cv_c99_llrint+set}" = set; then
21895  echo $ECHO_N "(cached) $ECHO_C" >&6
21896else
21897
21898llrint_save_CFLAGS=$CFLAGS
21899CFLAGS="-lm"
21900cat >conftest.$ac_ext <<_ACEOF
21901/* confdefs.h.  */
21902_ACEOF
21903cat confdefs.h >>conftest.$ac_ext
21904cat >>conftest.$ac_ext <<_ACEOF
21905/* end confdefs.h.  */
21906
21907#define ISOC9X_SOURCE   1
21908#define _ISOC99_SOURCE  1
21909#define __USE_ISOC99    1
21910#define __USE_ISOC9X    1
21911
21912#include <math.h>
21913
21914int
21915main ()
21916{
21917long long int x ; x = llrint(3.14159) ;
21918  ;
21919  return 0;
21920}
21921_ACEOF
21922rm -f conftest.$ac_objext conftest$ac_exeext
21923if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21924  (eval $ac_link) 2>conftest.er1
21925  ac_status=$?
21926  grep -v '^ *+' conftest.er1 >conftest.err
21927  rm -f conftest.er1
21928  cat conftest.err >&5
21929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930  (exit $ac_status); } &&
21931	 { ac_try='test -z "$ac_c_werror_flag"
21932			 || test ! -s conftest.err'
21933  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21934  (eval $ac_try) 2>&5
21935  ac_status=$?
21936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21937  (exit $ac_status); }; } &&
21938	 { ac_try='test -s conftest$ac_exeext'
21939  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21940  (eval $ac_try) 2>&5
21941  ac_status=$?
21942  echo "$as_me:$LINENO: \$? = $ac_status" >&5
21943  (exit $ac_status); }; }; then
21944  ac_cv_c99_llrint=yes
21945else
21946  echo "$as_me: failed program was:" >&5
21947sed 's/^/| /' conftest.$ac_ext >&5
21948
21949ac_cv_c99_llrint=no
21950fi
21951rm -f conftest.err conftest.$ac_objext \
21952      conftest$ac_exeext conftest.$ac_ext
21953
21954CFLAGS=$llrint_save_CFLAGS
21955
21956
21957fi
21958echo "$as_me:$LINENO: result: $ac_cv_c99_llrint" >&5
21959echo "${ECHO_T}$ac_cv_c99_llrint" >&6
21960
21961if test "$ac_cv_c99_llrint" = yes; then
21962
21963cat >>confdefs.h <<\_ACEOF
21964#define HAVE_LLRINT 1
21965_ACEOF
21966
21967fi
21968
21969echo "$as_me:$LINENO: checking for llrintf" >&5
21970echo $ECHO_N "checking for llrintf... $ECHO_C" >&6
21971if test "${ac_cv_c99_llrintf+set}" = set; then
21972  echo $ECHO_N "(cached) $ECHO_C" >&6
21973else
21974
21975llrintf_save_CFLAGS=$CFLAGS
21976CFLAGS="-lm"
21977cat >conftest.$ac_ext <<_ACEOF
21978/* confdefs.h.  */
21979_ACEOF
21980cat confdefs.h >>conftest.$ac_ext
21981cat >>conftest.$ac_ext <<_ACEOF
21982/* end confdefs.h.  */
21983
21984#define _ISOC9X_SOURCE  1
21985#define _ISOC99_SOURCE  1
21986#define __USE_ISOC99    1
21987#define __USE_ISOC9X    1
21988
21989#include <math.h>
21990
21991int
21992main ()
21993{
21994long long int x ; x = llrintf(3.14159) ;
21995  ;
21996  return 0;
21997}
21998_ACEOF
21999rm -f conftest.$ac_objext conftest$ac_exeext
22000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22001  (eval $ac_link) 2>conftest.er1
22002  ac_status=$?
22003  grep -v '^ *+' conftest.er1 >conftest.err
22004  rm -f conftest.er1
22005  cat conftest.err >&5
22006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007  (exit $ac_status); } &&
22008	 { ac_try='test -z "$ac_c_werror_flag"
22009			 || test ! -s conftest.err'
22010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22011  (eval $ac_try) 2>&5
22012  ac_status=$?
22013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22014  (exit $ac_status); }; } &&
22015	 { ac_try='test -s conftest$ac_exeext'
22016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22017  (eval $ac_try) 2>&5
22018  ac_status=$?
22019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22020  (exit $ac_status); }; }; then
22021  ac_cv_c99_llrintf=yes
22022else
22023  echo "$as_me: failed program was:" >&5
22024sed 's/^/| /' conftest.$ac_ext >&5
22025
22026ac_cv_c99_llrintf=no
22027fi
22028rm -f conftest.err conftest.$ac_objext \
22029      conftest$ac_exeext conftest.$ac_ext
22030
22031CFLAGS=$llrintf_save_CFLAGS
22032
22033
22034fi
22035echo "$as_me:$LINENO: result: $ac_cv_c99_llrintf" >&5
22036echo "${ECHO_T}$ac_cv_c99_llrintf" >&6
22037
22038if test "$ac_cv_c99_llrintf" = yes; then
22039
22040cat >>confdefs.h <<\_ACEOF
22041#define HAVE_LLRINTF 1
22042_ACEOF
22043
22044fi
22045
22046
22047if test "x$ac_cv_c99_lrint" = "xno" ; then
22048    if test "x$ac_cv_c99_lrintf" = "xno" ; then
22049        { echo "$as_me:$LINENO: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
22050echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
22051        { echo "$as_me:$LINENO: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
22052echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
22053    fi
22054fi
22055
22056echo "$as_me:$LINENO: checking C99 struct flexible array support" >&5
22057echo $ECHO_N "checking C99 struct flexible array support... $ECHO_C" >&6
22058if test "${ac_cv_c99_flexible_array+set}" = set; then
22059  echo $ECHO_N "(cached) $ECHO_C" >&6
22060else
22061  # Initialize to unknown
22062ac_cv_c99_flexible_array=no
22063
22064cat >conftest.$ac_ext <<_ACEOF
22065/* confdefs.h.  */
22066_ACEOF
22067cat confdefs.h >>conftest.$ac_ext
22068cat >>conftest.$ac_ext <<_ACEOF
22069/* end confdefs.h.  */
22070
22071    #include <stdlib.h>
22072
22073    typedef struct {
22074    int k;
22075    char buffer [] ;
22076    } MY_STRUCT ;
22077
22078int
22079main ()
22080{
22081  MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
22082  ;
22083  return 0;
22084}
22085_ACEOF
22086rm -f conftest.$ac_objext conftest$ac_exeext
22087if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22088  (eval $ac_link) 2>conftest.er1
22089  ac_status=$?
22090  grep -v '^ *+' conftest.er1 >conftest.err
22091  rm -f conftest.er1
22092  cat conftest.err >&5
22093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094  (exit $ac_status); } &&
22095	 { ac_try='test -z "$ac_c_werror_flag"
22096			 || test ! -s conftest.err'
22097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22098  (eval $ac_try) 2>&5
22099  ac_status=$?
22100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101  (exit $ac_status); }; } &&
22102	 { ac_try='test -s conftest$ac_exeext'
22103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22104  (eval $ac_try) 2>&5
22105  ac_status=$?
22106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22107  (exit $ac_status); }; }; then
22108  ac_cv_c99_flexible_array=yes
22109else
22110  echo "$as_me: failed program was:" >&5
22111sed 's/^/| /' conftest.$ac_ext >&5
22112
22113ac_cv_c99_flexible_array=no
22114
22115fi
22116rm -f conftest.err conftest.$ac_objext \
22117      conftest$ac_exeext conftest.$ac_ext
22118fi
22119echo "$as_me:$LINENO: result: $ac_cv_c99_flexible_array" >&5
22120echo "${ECHO_T}$ac_cv_c99_flexible_array" >&6
22121
22122
22123
22124for ac_func in memmove
22125do
22126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22127echo "$as_me:$LINENO: checking for $ac_func" >&5
22128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22129if eval "test \"\${$as_ac_var+set}\" = set"; then
22130  echo $ECHO_N "(cached) $ECHO_C" >&6
22131else
22132  cat >conftest.$ac_ext <<_ACEOF
22133/* confdefs.h.  */
22134_ACEOF
22135cat confdefs.h >>conftest.$ac_ext
22136cat >>conftest.$ac_ext <<_ACEOF
22137/* end confdefs.h.  */
22138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22139   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22140#define $ac_func innocuous_$ac_func
22141
22142/* System header to define __stub macros and hopefully few prototypes,
22143    which can conflict with char $ac_func (); below.
22144    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22145    <limits.h> exists even on freestanding compilers.  */
22146
22147#ifdef __STDC__
22148# include <limits.h>
22149#else
22150# include <assert.h>
22151#endif
22152
22153#undef $ac_func
22154
22155/* Override any gcc2 internal prototype to avoid an error.  */
22156#ifdef __cplusplus
22157extern "C"
22158{
22159#endif
22160/* We use char because int might match the return type of a gcc2
22161   builtin and then its argument prototype would still apply.  */
22162char $ac_func ();
22163/* The GNU C library defines this for functions which it implements
22164    to always fail with ENOSYS.  Some functions are actually named
22165    something starting with __ and the normal name is an alias.  */
22166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22167choke me
22168#else
22169char (*f) () = $ac_func;
22170#endif
22171#ifdef __cplusplus
22172}
22173#endif
22174
22175int
22176main ()
22177{
22178return f != $ac_func;
22179  ;
22180  return 0;
22181}
22182_ACEOF
22183rm -f conftest.$ac_objext conftest$ac_exeext
22184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185  (eval $ac_link) 2>conftest.er1
22186  ac_status=$?
22187  grep -v '^ *+' conftest.er1 >conftest.err
22188  rm -f conftest.er1
22189  cat conftest.err >&5
22190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191  (exit $ac_status); } &&
22192	 { ac_try='test -z "$ac_c_werror_flag"
22193			 || test ! -s conftest.err'
22194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22195  (eval $ac_try) 2>&5
22196  ac_status=$?
22197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22198  (exit $ac_status); }; } &&
22199	 { ac_try='test -s conftest$ac_exeext'
22200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22201  (eval $ac_try) 2>&5
22202  ac_status=$?
22203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204  (exit $ac_status); }; }; then
22205  eval "$as_ac_var=yes"
22206else
22207  echo "$as_me: failed program was:" >&5
22208sed 's/^/| /' conftest.$ac_ext >&5
22209
22210eval "$as_ac_var=no"
22211fi
22212rm -f conftest.err conftest.$ac_objext \
22213      conftest$ac_exeext conftest.$ac_ext
22214fi
22215echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22216echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22217if test `eval echo '${'$as_ac_var'}'` = yes; then
22218  cat >>confdefs.h <<_ACEOF
22219#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22220_ACEOF
22221
22222fi
22223done
22224
22225
22226for ac_func in memset
22227do
22228as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22229echo "$as_me:$LINENO: checking for $ac_func" >&5
22230echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22231if eval "test \"\${$as_ac_var+set}\" = set"; then
22232  echo $ECHO_N "(cached) $ECHO_C" >&6
22233else
22234  cat >conftest.$ac_ext <<_ACEOF
22235/* confdefs.h.  */
22236_ACEOF
22237cat confdefs.h >>conftest.$ac_ext
22238cat >>conftest.$ac_ext <<_ACEOF
22239/* end confdefs.h.  */
22240/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22241   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22242#define $ac_func innocuous_$ac_func
22243
22244/* System header to define __stub macros and hopefully few prototypes,
22245    which can conflict with char $ac_func (); below.
22246    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22247    <limits.h> exists even on freestanding compilers.  */
22248
22249#ifdef __STDC__
22250# include <limits.h>
22251#else
22252# include <assert.h>
22253#endif
22254
22255#undef $ac_func
22256
22257/* Override any gcc2 internal prototype to avoid an error.  */
22258#ifdef __cplusplus
22259extern "C"
22260{
22261#endif
22262/* We use char because int might match the return type of a gcc2
22263   builtin and then its argument prototype would still apply.  */
22264char $ac_func ();
22265/* The GNU C library defines this for functions which it implements
22266    to always fail with ENOSYS.  Some functions are actually named
22267    something starting with __ and the normal name is an alias.  */
22268#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22269choke me
22270#else
22271char (*f) () = $ac_func;
22272#endif
22273#ifdef __cplusplus
22274}
22275#endif
22276
22277int
22278main ()
22279{
22280return f != $ac_func;
22281  ;
22282  return 0;
22283}
22284_ACEOF
22285rm -f conftest.$ac_objext conftest$ac_exeext
22286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22287  (eval $ac_link) 2>conftest.er1
22288  ac_status=$?
22289  grep -v '^ *+' conftest.er1 >conftest.err
22290  rm -f conftest.er1
22291  cat conftest.err >&5
22292  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293  (exit $ac_status); } &&
22294	 { ac_try='test -z "$ac_c_werror_flag"
22295			 || test ! -s conftest.err'
22296  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22297  (eval $ac_try) 2>&5
22298  ac_status=$?
22299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22300  (exit $ac_status); }; } &&
22301	 { ac_try='test -s conftest$ac_exeext'
22302  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22303  (eval $ac_try) 2>&5
22304  ac_status=$?
22305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306  (exit $ac_status); }; }; then
22307  eval "$as_ac_var=yes"
22308else
22309  echo "$as_me: failed program was:" >&5
22310sed 's/^/| /' conftest.$ac_ext >&5
22311
22312eval "$as_ac_var=no"
22313fi
22314rm -f conftest.err conftest.$ac_objext \
22315      conftest$ac_exeext conftest.$ac_ext
22316fi
22317echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22318echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22319if test `eval echo '${'$as_ac_var'}'` = yes; then
22320  cat >>confdefs.h <<_ACEOF
22321#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22322_ACEOF
22323
22324fi
22325done
22326
22327
22328for ac_func in select
22329do
22330as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22331echo "$as_me:$LINENO: checking for $ac_func" >&5
22332echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22333if eval "test \"\${$as_ac_var+set}\" = set"; then
22334  echo $ECHO_N "(cached) $ECHO_C" >&6
22335else
22336  cat >conftest.$ac_ext <<_ACEOF
22337/* confdefs.h.  */
22338_ACEOF
22339cat confdefs.h >>conftest.$ac_ext
22340cat >>conftest.$ac_ext <<_ACEOF
22341/* end confdefs.h.  */
22342/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22343   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22344#define $ac_func innocuous_$ac_func
22345
22346/* System header to define __stub macros and hopefully few prototypes,
22347    which can conflict with char $ac_func (); below.
22348    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22349    <limits.h> exists even on freestanding compilers.  */
22350
22351#ifdef __STDC__
22352# include <limits.h>
22353#else
22354# include <assert.h>
22355#endif
22356
22357#undef $ac_func
22358
22359/* Override any gcc2 internal prototype to avoid an error.  */
22360#ifdef __cplusplus
22361extern "C"
22362{
22363#endif
22364/* We use char because int might match the return type of a gcc2
22365   builtin and then its argument prototype would still apply.  */
22366char $ac_func ();
22367/* The GNU C library defines this for functions which it implements
22368    to always fail with ENOSYS.  Some functions are actually named
22369    something starting with __ and the normal name is an alias.  */
22370#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22371choke me
22372#else
22373char (*f) () = $ac_func;
22374#endif
22375#ifdef __cplusplus
22376}
22377#endif
22378
22379int
22380main ()
22381{
22382return f != $ac_func;
22383  ;
22384  return 0;
22385}
22386_ACEOF
22387rm -f conftest.$ac_objext conftest$ac_exeext
22388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22389  (eval $ac_link) 2>conftest.er1
22390  ac_status=$?
22391  grep -v '^ *+' conftest.er1 >conftest.err
22392  rm -f conftest.er1
22393  cat conftest.err >&5
22394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22395  (exit $ac_status); } &&
22396	 { ac_try='test -z "$ac_c_werror_flag"
22397			 || test ! -s conftest.err'
22398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22399  (eval $ac_try) 2>&5
22400  ac_status=$?
22401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22402  (exit $ac_status); }; } &&
22403	 { ac_try='test -s conftest$ac_exeext'
22404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22405  (eval $ac_try) 2>&5
22406  ac_status=$?
22407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22408  (exit $ac_status); }; }; then
22409  eval "$as_ac_var=yes"
22410else
22411  echo "$as_me: failed program was:" >&5
22412sed 's/^/| /' conftest.$ac_ext >&5
22413
22414eval "$as_ac_var=no"
22415fi
22416rm -f conftest.err conftest.$ac_objext \
22417      conftest$ac_exeext conftest.$ac_ext
22418fi
22419echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22420echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22421if test `eval echo '${'$as_ac_var'}'` = yes; then
22422  cat >>confdefs.h <<_ACEOF
22423#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22424_ACEOF
22425
22426fi
22427done
22428
22429
22430for ac_func in strcasecmp
22431do
22432as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22433echo "$as_me:$LINENO: checking for $ac_func" >&5
22434echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22435if eval "test \"\${$as_ac_var+set}\" = set"; then
22436  echo $ECHO_N "(cached) $ECHO_C" >&6
22437else
22438  cat >conftest.$ac_ext <<_ACEOF
22439/* confdefs.h.  */
22440_ACEOF
22441cat confdefs.h >>conftest.$ac_ext
22442cat >>conftest.$ac_ext <<_ACEOF
22443/* end confdefs.h.  */
22444/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22445   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22446#define $ac_func innocuous_$ac_func
22447
22448/* System header to define __stub macros and hopefully few prototypes,
22449    which can conflict with char $ac_func (); below.
22450    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22451    <limits.h> exists even on freestanding compilers.  */
22452
22453#ifdef __STDC__
22454# include <limits.h>
22455#else
22456# include <assert.h>
22457#endif
22458
22459#undef $ac_func
22460
22461/* Override any gcc2 internal prototype to avoid an error.  */
22462#ifdef __cplusplus
22463extern "C"
22464{
22465#endif
22466/* We use char because int might match the return type of a gcc2
22467   builtin and then its argument prototype would still apply.  */
22468char $ac_func ();
22469/* The GNU C library defines this for functions which it implements
22470    to always fail with ENOSYS.  Some functions are actually named
22471    something starting with __ and the normal name is an alias.  */
22472#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22473choke me
22474#else
22475char (*f) () = $ac_func;
22476#endif
22477#ifdef __cplusplus
22478}
22479#endif
22480
22481int
22482main ()
22483{
22484return f != $ac_func;
22485  ;
22486  return 0;
22487}
22488_ACEOF
22489rm -f conftest.$ac_objext conftest$ac_exeext
22490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22491  (eval $ac_link) 2>conftest.er1
22492  ac_status=$?
22493  grep -v '^ *+' conftest.er1 >conftest.err
22494  rm -f conftest.er1
22495  cat conftest.err >&5
22496  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22497  (exit $ac_status); } &&
22498	 { ac_try='test -z "$ac_c_werror_flag"
22499			 || test ! -s conftest.err'
22500  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22501  (eval $ac_try) 2>&5
22502  ac_status=$?
22503  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504  (exit $ac_status); }; } &&
22505	 { ac_try='test -s conftest$ac_exeext'
22506  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22507  (eval $ac_try) 2>&5
22508  ac_status=$?
22509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22510  (exit $ac_status); }; }; then
22511  eval "$as_ac_var=yes"
22512else
22513  echo "$as_me: failed program was:" >&5
22514sed 's/^/| /' conftest.$ac_ext >&5
22515
22516eval "$as_ac_var=no"
22517fi
22518rm -f conftest.err conftest.$ac_objext \
22519      conftest$ac_exeext conftest.$ac_ext
22520fi
22521echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22522echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22523if test `eval echo '${'$as_ac_var'}'` = yes; then
22524  cat >>confdefs.h <<_ACEOF
22525#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22526_ACEOF
22527
22528fi
22529done
22530
22531
22532for ac_func in strchr
22533do
22534as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22535echo "$as_me:$LINENO: checking for $ac_func" >&5
22536echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22537if eval "test \"\${$as_ac_var+set}\" = set"; then
22538  echo $ECHO_N "(cached) $ECHO_C" >&6
22539else
22540  cat >conftest.$ac_ext <<_ACEOF
22541/* confdefs.h.  */
22542_ACEOF
22543cat confdefs.h >>conftest.$ac_ext
22544cat >>conftest.$ac_ext <<_ACEOF
22545/* end confdefs.h.  */
22546/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22547   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22548#define $ac_func innocuous_$ac_func
22549
22550/* System header to define __stub macros and hopefully few prototypes,
22551    which can conflict with char $ac_func (); below.
22552    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22553    <limits.h> exists even on freestanding compilers.  */
22554
22555#ifdef __STDC__
22556# include <limits.h>
22557#else
22558# include <assert.h>
22559#endif
22560
22561#undef $ac_func
22562
22563/* Override any gcc2 internal prototype to avoid an error.  */
22564#ifdef __cplusplus
22565extern "C"
22566{
22567#endif
22568/* We use char because int might match the return type of a gcc2
22569   builtin and then its argument prototype would still apply.  */
22570char $ac_func ();
22571/* The GNU C library defines this for functions which it implements
22572    to always fail with ENOSYS.  Some functions are actually named
22573    something starting with __ and the normal name is an alias.  */
22574#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22575choke me
22576#else
22577char (*f) () = $ac_func;
22578#endif
22579#ifdef __cplusplus
22580}
22581#endif
22582
22583int
22584main ()
22585{
22586return f != $ac_func;
22587  ;
22588  return 0;
22589}
22590_ACEOF
22591rm -f conftest.$ac_objext conftest$ac_exeext
22592if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22593  (eval $ac_link) 2>conftest.er1
22594  ac_status=$?
22595  grep -v '^ *+' conftest.er1 >conftest.err
22596  rm -f conftest.er1
22597  cat conftest.err >&5
22598  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599  (exit $ac_status); } &&
22600	 { ac_try='test -z "$ac_c_werror_flag"
22601			 || test ! -s conftest.err'
22602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22603  (eval $ac_try) 2>&5
22604  ac_status=$?
22605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606  (exit $ac_status); }; } &&
22607	 { ac_try='test -s conftest$ac_exeext'
22608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22609  (eval $ac_try) 2>&5
22610  ac_status=$?
22611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22612  (exit $ac_status); }; }; then
22613  eval "$as_ac_var=yes"
22614else
22615  echo "$as_me: failed program was:" >&5
22616sed 's/^/| /' conftest.$ac_ext >&5
22617
22618eval "$as_ac_var=no"
22619fi
22620rm -f conftest.err conftest.$ac_objext \
22621      conftest$ac_exeext conftest.$ac_ext
22622fi
22623echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22624echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22625if test `eval echo '${'$as_ac_var'}'` = yes; then
22626  cat >>confdefs.h <<_ACEOF
22627#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22628_ACEOF
22629
22630fi
22631done
22632
22633
22634for ac_func in strdup
22635do
22636as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22637echo "$as_me:$LINENO: checking for $ac_func" >&5
22638echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22639if eval "test \"\${$as_ac_var+set}\" = set"; then
22640  echo $ECHO_N "(cached) $ECHO_C" >&6
22641else
22642  cat >conftest.$ac_ext <<_ACEOF
22643/* confdefs.h.  */
22644_ACEOF
22645cat confdefs.h >>conftest.$ac_ext
22646cat >>conftest.$ac_ext <<_ACEOF
22647/* end confdefs.h.  */
22648/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22649   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22650#define $ac_func innocuous_$ac_func
22651
22652/* System header to define __stub macros and hopefully few prototypes,
22653    which can conflict with char $ac_func (); below.
22654    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22655    <limits.h> exists even on freestanding compilers.  */
22656
22657#ifdef __STDC__
22658# include <limits.h>
22659#else
22660# include <assert.h>
22661#endif
22662
22663#undef $ac_func
22664
22665/* Override any gcc2 internal prototype to avoid an error.  */
22666#ifdef __cplusplus
22667extern "C"
22668{
22669#endif
22670/* We use char because int might match the return type of a gcc2
22671   builtin and then its argument prototype would still apply.  */
22672char $ac_func ();
22673/* The GNU C library defines this for functions which it implements
22674    to always fail with ENOSYS.  Some functions are actually named
22675    something starting with __ and the normal name is an alias.  */
22676#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22677choke me
22678#else
22679char (*f) () = $ac_func;
22680#endif
22681#ifdef __cplusplus
22682}
22683#endif
22684
22685int
22686main ()
22687{
22688return f != $ac_func;
22689  ;
22690  return 0;
22691}
22692_ACEOF
22693rm -f conftest.$ac_objext conftest$ac_exeext
22694if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22695  (eval $ac_link) 2>conftest.er1
22696  ac_status=$?
22697  grep -v '^ *+' conftest.er1 >conftest.err
22698  rm -f conftest.er1
22699  cat conftest.err >&5
22700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701  (exit $ac_status); } &&
22702	 { ac_try='test -z "$ac_c_werror_flag"
22703			 || test ! -s conftest.err'
22704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705  (eval $ac_try) 2>&5
22706  ac_status=$?
22707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708  (exit $ac_status); }; } &&
22709	 { ac_try='test -s conftest$ac_exeext'
22710  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22711  (eval $ac_try) 2>&5
22712  ac_status=$?
22713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714  (exit $ac_status); }; }; then
22715  eval "$as_ac_var=yes"
22716else
22717  echo "$as_me: failed program was:" >&5
22718sed 's/^/| /' conftest.$ac_ext >&5
22719
22720eval "$as_ac_var=no"
22721fi
22722rm -f conftest.err conftest.$ac_objext \
22723      conftest$ac_exeext conftest.$ac_ext
22724fi
22725echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22726echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22727if test `eval echo '${'$as_ac_var'}'` = yes; then
22728  cat >>confdefs.h <<_ACEOF
22729#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22730_ACEOF
22731
22732fi
22733done
22734
22735
22736for ac_func in strerror
22737do
22738as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22739echo "$as_me:$LINENO: checking for $ac_func" >&5
22740echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22741if eval "test \"\${$as_ac_var+set}\" = set"; then
22742  echo $ECHO_N "(cached) $ECHO_C" >&6
22743else
22744  cat >conftest.$ac_ext <<_ACEOF
22745/* confdefs.h.  */
22746_ACEOF
22747cat confdefs.h >>conftest.$ac_ext
22748cat >>conftest.$ac_ext <<_ACEOF
22749/* end confdefs.h.  */
22750/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22751   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22752#define $ac_func innocuous_$ac_func
22753
22754/* System header to define __stub macros and hopefully few prototypes,
22755    which can conflict with char $ac_func (); below.
22756    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22757    <limits.h> exists even on freestanding compilers.  */
22758
22759#ifdef __STDC__
22760# include <limits.h>
22761#else
22762# include <assert.h>
22763#endif
22764
22765#undef $ac_func
22766
22767/* Override any gcc2 internal prototype to avoid an error.  */
22768#ifdef __cplusplus
22769extern "C"
22770{
22771#endif
22772/* We use char because int might match the return type of a gcc2
22773   builtin and then its argument prototype would still apply.  */
22774char $ac_func ();
22775/* The GNU C library defines this for functions which it implements
22776    to always fail with ENOSYS.  Some functions are actually named
22777    something starting with __ and the normal name is an alias.  */
22778#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22779choke me
22780#else
22781char (*f) () = $ac_func;
22782#endif
22783#ifdef __cplusplus
22784}
22785#endif
22786
22787int
22788main ()
22789{
22790return f != $ac_func;
22791  ;
22792  return 0;
22793}
22794_ACEOF
22795rm -f conftest.$ac_objext conftest$ac_exeext
22796if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22797  (eval $ac_link) 2>conftest.er1
22798  ac_status=$?
22799  grep -v '^ *+' conftest.er1 >conftest.err
22800  rm -f conftest.er1
22801  cat conftest.err >&5
22802  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803  (exit $ac_status); } &&
22804	 { ac_try='test -z "$ac_c_werror_flag"
22805			 || test ! -s conftest.err'
22806  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22807  (eval $ac_try) 2>&5
22808  ac_status=$?
22809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810  (exit $ac_status); }; } &&
22811	 { ac_try='test -s conftest$ac_exeext'
22812  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813  (eval $ac_try) 2>&5
22814  ac_status=$?
22815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816  (exit $ac_status); }; }; then
22817  eval "$as_ac_var=yes"
22818else
22819  echo "$as_me: failed program was:" >&5
22820sed 's/^/| /' conftest.$ac_ext >&5
22821
22822eval "$as_ac_var=no"
22823fi
22824rm -f conftest.err conftest.$ac_objext \
22825      conftest$ac_exeext conftest.$ac_ext
22826fi
22827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22828echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22829if test `eval echo '${'$as_ac_var'}'` = yes; then
22830  cat >>confdefs.h <<_ACEOF
22831#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22832_ACEOF
22833
22834fi
22835done
22836
22837
22838for ac_func in strstr
22839do
22840as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22841echo "$as_me:$LINENO: checking for $ac_func" >&5
22842echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22843if eval "test \"\${$as_ac_var+set}\" = set"; then
22844  echo $ECHO_N "(cached) $ECHO_C" >&6
22845else
22846  cat >conftest.$ac_ext <<_ACEOF
22847/* confdefs.h.  */
22848_ACEOF
22849cat confdefs.h >>conftest.$ac_ext
22850cat >>conftest.$ac_ext <<_ACEOF
22851/* end confdefs.h.  */
22852/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22853   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22854#define $ac_func innocuous_$ac_func
22855
22856/* System header to define __stub macros and hopefully few prototypes,
22857    which can conflict with char $ac_func (); below.
22858    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22859    <limits.h> exists even on freestanding compilers.  */
22860
22861#ifdef __STDC__
22862# include <limits.h>
22863#else
22864# include <assert.h>
22865#endif
22866
22867#undef $ac_func
22868
22869/* Override any gcc2 internal prototype to avoid an error.  */
22870#ifdef __cplusplus
22871extern "C"
22872{
22873#endif
22874/* We use char because int might match the return type of a gcc2
22875   builtin and then its argument prototype would still apply.  */
22876char $ac_func ();
22877/* The GNU C library defines this for functions which it implements
22878    to always fail with ENOSYS.  Some functions are actually named
22879    something starting with __ and the normal name is an alias.  */
22880#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22881choke me
22882#else
22883char (*f) () = $ac_func;
22884#endif
22885#ifdef __cplusplus
22886}
22887#endif
22888
22889int
22890main ()
22891{
22892return f != $ac_func;
22893  ;
22894  return 0;
22895}
22896_ACEOF
22897rm -f conftest.$ac_objext conftest$ac_exeext
22898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22899  (eval $ac_link) 2>conftest.er1
22900  ac_status=$?
22901  grep -v '^ *+' conftest.er1 >conftest.err
22902  rm -f conftest.er1
22903  cat conftest.err >&5
22904  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905  (exit $ac_status); } &&
22906	 { ac_try='test -z "$ac_c_werror_flag"
22907			 || test ! -s conftest.err'
22908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22909  (eval $ac_try) 2>&5
22910  ac_status=$?
22911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22912  (exit $ac_status); }; } &&
22913	 { ac_try='test -s conftest$ac_exeext'
22914  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915  (eval $ac_try) 2>&5
22916  ac_status=$?
22917  echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918  (exit $ac_status); }; }; then
22919  eval "$as_ac_var=yes"
22920else
22921  echo "$as_me: failed program was:" >&5
22922sed 's/^/| /' conftest.$ac_ext >&5
22923
22924eval "$as_ac_var=no"
22925fi
22926rm -f conftest.err conftest.$ac_objext \
22927      conftest$ac_exeext conftest.$ac_ext
22928fi
22929echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22930echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22931if test `eval echo '${'$as_ac_var'}'` = yes; then
22932  cat >>confdefs.h <<_ACEOF
22933#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22934_ACEOF
22935
22936fi
22937done
22938
22939
22940for ac_func in strtol
22941do
22942as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22943echo "$as_me:$LINENO: checking for $ac_func" >&5
22944echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22945if eval "test \"\${$as_ac_var+set}\" = set"; then
22946  echo $ECHO_N "(cached) $ECHO_C" >&6
22947else
22948  cat >conftest.$ac_ext <<_ACEOF
22949/* confdefs.h.  */
22950_ACEOF
22951cat confdefs.h >>conftest.$ac_ext
22952cat >>conftest.$ac_ext <<_ACEOF
22953/* end confdefs.h.  */
22954/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22955   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22956#define $ac_func innocuous_$ac_func
22957
22958/* System header to define __stub macros and hopefully few prototypes,
22959    which can conflict with char $ac_func (); below.
22960    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22961    <limits.h> exists even on freestanding compilers.  */
22962
22963#ifdef __STDC__
22964# include <limits.h>
22965#else
22966# include <assert.h>
22967#endif
22968
22969#undef $ac_func
22970
22971/* Override any gcc2 internal prototype to avoid an error.  */
22972#ifdef __cplusplus
22973extern "C"
22974{
22975#endif
22976/* We use char because int might match the return type of a gcc2
22977   builtin and then its argument prototype would still apply.  */
22978char $ac_func ();
22979/* The GNU C library defines this for functions which it implements
22980    to always fail with ENOSYS.  Some functions are actually named
22981    something starting with __ and the normal name is an alias.  */
22982#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22983choke me
22984#else
22985char (*f) () = $ac_func;
22986#endif
22987#ifdef __cplusplus
22988}
22989#endif
22990
22991int
22992main ()
22993{
22994return f != $ac_func;
22995  ;
22996  return 0;
22997}
22998_ACEOF
22999rm -f conftest.$ac_objext conftest$ac_exeext
23000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001  (eval $ac_link) 2>conftest.er1
23002  ac_status=$?
23003  grep -v '^ *+' conftest.er1 >conftest.err
23004  rm -f conftest.er1
23005  cat conftest.err >&5
23006  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007  (exit $ac_status); } &&
23008	 { ac_try='test -z "$ac_c_werror_flag"
23009			 || test ! -s conftest.err'
23010  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23011  (eval $ac_try) 2>&5
23012  ac_status=$?
23013  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014  (exit $ac_status); }; } &&
23015	 { ac_try='test -s conftest$ac_exeext'
23016  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23017  (eval $ac_try) 2>&5
23018  ac_status=$?
23019  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23020  (exit $ac_status); }; }; then
23021  eval "$as_ac_var=yes"
23022else
23023  echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
23026eval "$as_ac_var=no"
23027fi
23028rm -f conftest.err conftest.$ac_objext \
23029      conftest$ac_exeext conftest.$ac_ext
23030fi
23031echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23032echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23033if test `eval echo '${'$as_ac_var'}'` = yes; then
23034  cat >>confdefs.h <<_ACEOF
23035#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23036_ACEOF
23037
23038fi
23039done
23040
23041
23042for ac_func in gettimeofday
23043do
23044as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23045echo "$as_me:$LINENO: checking for $ac_func" >&5
23046echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23047if eval "test \"\${$as_ac_var+set}\" = set"; then
23048  echo $ECHO_N "(cached) $ECHO_C" >&6
23049else
23050  cat >conftest.$ac_ext <<_ACEOF
23051/* confdefs.h.  */
23052_ACEOF
23053cat confdefs.h >>conftest.$ac_ext
23054cat >>conftest.$ac_ext <<_ACEOF
23055/* end confdefs.h.  */
23056/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23057   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23058#define $ac_func innocuous_$ac_func
23059
23060/* System header to define __stub macros and hopefully few prototypes,
23061    which can conflict with char $ac_func (); below.
23062    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23063    <limits.h> exists even on freestanding compilers.  */
23064
23065#ifdef __STDC__
23066# include <limits.h>
23067#else
23068# include <assert.h>
23069#endif
23070
23071#undef $ac_func
23072
23073/* Override any gcc2 internal prototype to avoid an error.  */
23074#ifdef __cplusplus
23075extern "C"
23076{
23077#endif
23078/* We use char because int might match the return type of a gcc2
23079   builtin and then its argument prototype would still apply.  */
23080char $ac_func ();
23081/* The GNU C library defines this for functions which it implements
23082    to always fail with ENOSYS.  Some functions are actually named
23083    something starting with __ and the normal name is an alias.  */
23084#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23085choke me
23086#else
23087char (*f) () = $ac_func;
23088#endif
23089#ifdef __cplusplus
23090}
23091#endif
23092
23093int
23094main ()
23095{
23096return f != $ac_func;
23097  ;
23098  return 0;
23099}
23100_ACEOF
23101rm -f conftest.$ac_objext conftest$ac_exeext
23102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23103  (eval $ac_link) 2>conftest.er1
23104  ac_status=$?
23105  grep -v '^ *+' conftest.er1 >conftest.err
23106  rm -f conftest.er1
23107  cat conftest.err >&5
23108  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23109  (exit $ac_status); } &&
23110	 { ac_try='test -z "$ac_c_werror_flag"
23111			 || test ! -s conftest.err'
23112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23113  (eval $ac_try) 2>&5
23114  ac_status=$?
23115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23116  (exit $ac_status); }; } &&
23117	 { ac_try='test -s conftest$ac_exeext'
23118  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23119  (eval $ac_try) 2>&5
23120  ac_status=$?
23121  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23122  (exit $ac_status); }; }; then
23123  eval "$as_ac_var=yes"
23124else
23125  echo "$as_me: failed program was:" >&5
23126sed 's/^/| /' conftest.$ac_ext >&5
23127
23128eval "$as_ac_var=no"
23129fi
23130rm -f conftest.err conftest.$ac_objext \
23131      conftest$ac_exeext conftest.$ac_ext
23132fi
23133echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23134echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23135if test `eval echo '${'$as_ac_var'}'` = yes; then
23136  cat >>confdefs.h <<_ACEOF
23137#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23138_ACEOF
23139
23140fi
23141done
23142
23143
23144echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23145echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23146if test "${ac_cv_header_stdc+set}" = set; then
23147  echo $ECHO_N "(cached) $ECHO_C" >&6
23148else
23149  cat >conftest.$ac_ext <<_ACEOF
23150/* confdefs.h.  */
23151_ACEOF
23152cat confdefs.h >>conftest.$ac_ext
23153cat >>conftest.$ac_ext <<_ACEOF
23154/* end confdefs.h.  */
23155#include <stdlib.h>
23156#include <stdarg.h>
23157#include <string.h>
23158#include <float.h>
23159
23160int
23161main ()
23162{
23163
23164  ;
23165  return 0;
23166}
23167_ACEOF
23168rm -f conftest.$ac_objext
23169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23170  (eval $ac_compile) 2>conftest.er1
23171  ac_status=$?
23172  grep -v '^ *+' conftest.er1 >conftest.err
23173  rm -f conftest.er1
23174  cat conftest.err >&5
23175  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23176  (exit $ac_status); } &&
23177	 { ac_try='test -z "$ac_c_werror_flag"
23178			 || test ! -s conftest.err'
23179  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180  (eval $ac_try) 2>&5
23181  ac_status=$?
23182  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183  (exit $ac_status); }; } &&
23184	 { ac_try='test -s conftest.$ac_objext'
23185  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23186  (eval $ac_try) 2>&5
23187  ac_status=$?
23188  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23189  (exit $ac_status); }; }; then
23190  ac_cv_header_stdc=yes
23191else
23192  echo "$as_me: failed program was:" >&5
23193sed 's/^/| /' conftest.$ac_ext >&5
23194
23195ac_cv_header_stdc=no
23196fi
23197rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23198
23199if test $ac_cv_header_stdc = yes; then
23200  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23201  cat >conftest.$ac_ext <<_ACEOF
23202/* confdefs.h.  */
23203_ACEOF
23204cat confdefs.h >>conftest.$ac_ext
23205cat >>conftest.$ac_ext <<_ACEOF
23206/* end confdefs.h.  */
23207#include <string.h>
23208
23209_ACEOF
23210if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23211  $EGREP "memchr" >/dev/null 2>&1; then
23212  :
23213else
23214  ac_cv_header_stdc=no
23215fi
23216rm -f conftest*
23217
23218fi
23219
23220if test $ac_cv_header_stdc = yes; then
23221  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23222  cat >conftest.$ac_ext <<_ACEOF
23223/* confdefs.h.  */
23224_ACEOF
23225cat confdefs.h >>conftest.$ac_ext
23226cat >>conftest.$ac_ext <<_ACEOF
23227/* end confdefs.h.  */
23228#include <stdlib.h>
23229
23230_ACEOF
23231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23232  $EGREP "free" >/dev/null 2>&1; then
23233  :
23234else
23235  ac_cv_header_stdc=no
23236fi
23237rm -f conftest*
23238
23239fi
23240
23241if test $ac_cv_header_stdc = yes; then
23242  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23243  if test "$cross_compiling" = yes; then
23244  :
23245else
23246  cat >conftest.$ac_ext <<_ACEOF
23247/* confdefs.h.  */
23248_ACEOF
23249cat confdefs.h >>conftest.$ac_ext
23250cat >>conftest.$ac_ext <<_ACEOF
23251/* end confdefs.h.  */
23252#include <ctype.h>
23253#if ((' ' & 0x0FF) == 0x020)
23254# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23255# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23256#else
23257# define ISLOWER(c) \
23258		   (('a' <= (c) && (c) <= 'i') \
23259		     || ('j' <= (c) && (c) <= 'r') \
23260		     || ('s' <= (c) && (c) <= 'z'))
23261# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23262#endif
23263
23264#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23265int
23266main ()
23267{
23268  int i;
23269  for (i = 0; i < 256; i++)
23270    if (XOR (islower (i), ISLOWER (i))
23271	|| toupper (i) != TOUPPER (i))
23272      exit(2);
23273  exit (0);
23274}
23275_ACEOF
23276rm -f conftest$ac_exeext
23277if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23278  (eval $ac_link) 2>&5
23279  ac_status=$?
23280  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23282  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23283  (eval $ac_try) 2>&5
23284  ac_status=$?
23285  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286  (exit $ac_status); }; }; then
23287  :
23288else
23289  echo "$as_me: program exited with status $ac_status" >&5
23290echo "$as_me: failed program was:" >&5
23291sed 's/^/| /' conftest.$ac_ext >&5
23292
23293( exit $ac_status )
23294ac_cv_header_stdc=no
23295fi
23296rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23297fi
23298fi
23299fi
23300echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23301echo "${ECHO_T}$ac_cv_header_stdc" >&6
23302if test $ac_cv_header_stdc = yes; then
23303
23304cat >>confdefs.h <<\_ACEOF
23305#define STDC_HEADERS 1
23306_ACEOF
23307
23308fi
23309
23310echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23311echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23312if test "${ac_cv_header_sys_wait_h+set}" = set; then
23313  echo $ECHO_N "(cached) $ECHO_C" >&6
23314else
23315  cat >conftest.$ac_ext <<_ACEOF
23316/* confdefs.h.  */
23317_ACEOF
23318cat confdefs.h >>conftest.$ac_ext
23319cat >>conftest.$ac_ext <<_ACEOF
23320/* end confdefs.h.  */
23321#include <sys/types.h>
23322#include <sys/wait.h>
23323#ifndef WEXITSTATUS
23324# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23325#endif
23326#ifndef WIFEXITED
23327# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23328#endif
23329
23330int
23331main ()
23332{
23333  int s;
23334  wait (&s);
23335  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23336  ;
23337  return 0;
23338}
23339_ACEOF
23340rm -f conftest.$ac_objext
23341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23342  (eval $ac_compile) 2>conftest.er1
23343  ac_status=$?
23344  grep -v '^ *+' conftest.er1 >conftest.err
23345  rm -f conftest.er1
23346  cat conftest.err >&5
23347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348  (exit $ac_status); } &&
23349	 { ac_try='test -z "$ac_c_werror_flag"
23350			 || test ! -s conftest.err'
23351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23352  (eval $ac_try) 2>&5
23353  ac_status=$?
23354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23355  (exit $ac_status); }; } &&
23356	 { ac_try='test -s conftest.$ac_objext'
23357  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23358  (eval $ac_try) 2>&5
23359  ac_status=$?
23360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23361  (exit $ac_status); }; }; then
23362  ac_cv_header_sys_wait_h=yes
23363else
23364  echo "$as_me: failed program was:" >&5
23365sed 's/^/| /' conftest.$ac_ext >&5
23366
23367ac_cv_header_sys_wait_h=no
23368fi
23369rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23370fi
23371echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23372echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23373if test $ac_cv_header_sys_wait_h = yes; then
23374
23375cat >>confdefs.h <<\_ACEOF
23376#define HAVE_SYS_WAIT_H 1
23377_ACEOF
23378
23379fi
23380
23381echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23382echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23383if test "${ac_cv_header_time+set}" = set; then
23384  echo $ECHO_N "(cached) $ECHO_C" >&6
23385else
23386  cat >conftest.$ac_ext <<_ACEOF
23387/* confdefs.h.  */
23388_ACEOF
23389cat confdefs.h >>conftest.$ac_ext
23390cat >>conftest.$ac_ext <<_ACEOF
23391/* end confdefs.h.  */
23392#include <sys/types.h>
23393#include <sys/time.h>
23394#include <time.h>
23395
23396int
23397main ()
23398{
23399if ((struct tm *) 0)
23400return 0;
23401  ;
23402  return 0;
23403}
23404_ACEOF
23405rm -f conftest.$ac_objext
23406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23407  (eval $ac_compile) 2>conftest.er1
23408  ac_status=$?
23409  grep -v '^ *+' conftest.er1 >conftest.err
23410  rm -f conftest.er1
23411  cat conftest.err >&5
23412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413  (exit $ac_status); } &&
23414	 { ac_try='test -z "$ac_c_werror_flag"
23415			 || test ! -s conftest.err'
23416  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417  (eval $ac_try) 2>&5
23418  ac_status=$?
23419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420  (exit $ac_status); }; } &&
23421	 { ac_try='test -s conftest.$ac_objext'
23422  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423  (eval $ac_try) 2>&5
23424  ac_status=$?
23425  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426  (exit $ac_status); }; }; then
23427  ac_cv_header_time=yes
23428else
23429  echo "$as_me: failed program was:" >&5
23430sed 's/^/| /' conftest.$ac_ext >&5
23431
23432ac_cv_header_time=no
23433fi
23434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23435fi
23436echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23437echo "${ECHO_T}$ac_cv_header_time" >&6
23438if test $ac_cv_header_time = yes; then
23439
23440cat >>confdefs.h <<\_ACEOF
23441#define TIME_WITH_SYS_TIME 1
23442_ACEOF
23443
23444fi
23445
23446
23447# Check for header files.
23448
23449for ac_header in socket.h
23450do
23451as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23452if eval "test \"\${$as_ac_Header+set}\" = set"; then
23453  echo "$as_me:$LINENO: checking for $ac_header" >&5
23454echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23455if eval "test \"\${$as_ac_Header+set}\" = set"; then
23456  echo $ECHO_N "(cached) $ECHO_C" >&6
23457fi
23458echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23459echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23460else
23461  # Is the header compilable?
23462echo "$as_me:$LINENO: checking $ac_header usability" >&5
23463echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23464cat >conftest.$ac_ext <<_ACEOF
23465/* confdefs.h.  */
23466_ACEOF
23467cat confdefs.h >>conftest.$ac_ext
23468cat >>conftest.$ac_ext <<_ACEOF
23469/* end confdefs.h.  */
23470$ac_includes_default
23471#include <$ac_header>
23472_ACEOF
23473rm -f conftest.$ac_objext
23474if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23475  (eval $ac_compile) 2>conftest.er1
23476  ac_status=$?
23477  grep -v '^ *+' conftest.er1 >conftest.err
23478  rm -f conftest.er1
23479  cat conftest.err >&5
23480  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481  (exit $ac_status); } &&
23482	 { ac_try='test -z "$ac_c_werror_flag"
23483			 || test ! -s conftest.err'
23484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23485  (eval $ac_try) 2>&5
23486  ac_status=$?
23487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23488  (exit $ac_status); }; } &&
23489	 { ac_try='test -s conftest.$ac_objext'
23490  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23491  (eval $ac_try) 2>&5
23492  ac_status=$?
23493  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23494  (exit $ac_status); }; }; then
23495  ac_header_compiler=yes
23496else
23497  echo "$as_me: failed program was:" >&5
23498sed 's/^/| /' conftest.$ac_ext >&5
23499
23500ac_header_compiler=no
23501fi
23502rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23503echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23504echo "${ECHO_T}$ac_header_compiler" >&6
23505
23506# Is the header present?
23507echo "$as_me:$LINENO: checking $ac_header presence" >&5
23508echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23509cat >conftest.$ac_ext <<_ACEOF
23510/* confdefs.h.  */
23511_ACEOF
23512cat confdefs.h >>conftest.$ac_ext
23513cat >>conftest.$ac_ext <<_ACEOF
23514/* end confdefs.h.  */
23515#include <$ac_header>
23516_ACEOF
23517if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23518  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23519  ac_status=$?
23520  grep -v '^ *+' conftest.er1 >conftest.err
23521  rm -f conftest.er1
23522  cat conftest.err >&5
23523  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524  (exit $ac_status); } >/dev/null; then
23525  if test -s conftest.err; then
23526    ac_cpp_err=$ac_c_preproc_warn_flag
23527    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23528  else
23529    ac_cpp_err=
23530  fi
23531else
23532  ac_cpp_err=yes
23533fi
23534if test -z "$ac_cpp_err"; then
23535  ac_header_preproc=yes
23536else
23537  echo "$as_me: failed program was:" >&5
23538sed 's/^/| /' conftest.$ac_ext >&5
23539
23540  ac_header_preproc=no
23541fi
23542rm -f conftest.err conftest.$ac_ext
23543echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23544echo "${ECHO_T}$ac_header_preproc" >&6
23545
23546# So?  What about this header?
23547case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23548  yes:no: )
23549    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23550echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23551    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23552echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23553    ac_header_preproc=yes
23554    ;;
23555  no:yes:* )
23556    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23557echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23558    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23559echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23560    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23561echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23562    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23563echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23564    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23565echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23566    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23567echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23568    (
23569      cat <<\_ASBOX
23570## ------------------------------------------ ##
23571## Report this to the AC_PACKAGE_NAME lists.  ##
23572## ------------------------------------------ ##
23573_ASBOX
23574    ) |
23575      sed "s/^/$as_me: WARNING:     /" >&2
23576    ;;
23577esac
23578echo "$as_me:$LINENO: checking for $ac_header" >&5
23579echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23580if eval "test \"\${$as_ac_Header+set}\" = set"; then
23581  echo $ECHO_N "(cached) $ECHO_C" >&6
23582else
23583  eval "$as_ac_Header=\$ac_header_preproc"
23584fi
23585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23587
23588fi
23589if test `eval echo '${'$as_ac_Header'}'` = yes; then
23590  cat >>confdefs.h <<_ACEOF
23591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23592_ACEOF
23593
23594fi
23595
23596done
23597
23598
23599for ac_header in inttypes.h
23600do
23601as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23602if eval "test \"\${$as_ac_Header+set}\" = set"; then
23603  echo "$as_me:$LINENO: checking for $ac_header" >&5
23604echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23605if eval "test \"\${$as_ac_Header+set}\" = set"; then
23606  echo $ECHO_N "(cached) $ECHO_C" >&6
23607fi
23608echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23609echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23610else
23611  # Is the header compilable?
23612echo "$as_me:$LINENO: checking $ac_header usability" >&5
23613echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23614cat >conftest.$ac_ext <<_ACEOF
23615/* confdefs.h.  */
23616_ACEOF
23617cat confdefs.h >>conftest.$ac_ext
23618cat >>conftest.$ac_ext <<_ACEOF
23619/* end confdefs.h.  */
23620$ac_includes_default
23621#include <$ac_header>
23622_ACEOF
23623rm -f conftest.$ac_objext
23624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23625  (eval $ac_compile) 2>conftest.er1
23626  ac_status=$?
23627  grep -v '^ *+' conftest.er1 >conftest.err
23628  rm -f conftest.er1
23629  cat conftest.err >&5
23630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631  (exit $ac_status); } &&
23632	 { ac_try='test -z "$ac_c_werror_flag"
23633			 || test ! -s conftest.err'
23634  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23635  (eval $ac_try) 2>&5
23636  ac_status=$?
23637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638  (exit $ac_status); }; } &&
23639	 { ac_try='test -s conftest.$ac_objext'
23640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23641  (eval $ac_try) 2>&5
23642  ac_status=$?
23643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23644  (exit $ac_status); }; }; then
23645  ac_header_compiler=yes
23646else
23647  echo "$as_me: failed program was:" >&5
23648sed 's/^/| /' conftest.$ac_ext >&5
23649
23650ac_header_compiler=no
23651fi
23652rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23653echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23654echo "${ECHO_T}$ac_header_compiler" >&6
23655
23656# Is the header present?
23657echo "$as_me:$LINENO: checking $ac_header presence" >&5
23658echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23659cat >conftest.$ac_ext <<_ACEOF
23660/* confdefs.h.  */
23661_ACEOF
23662cat confdefs.h >>conftest.$ac_ext
23663cat >>conftest.$ac_ext <<_ACEOF
23664/* end confdefs.h.  */
23665#include <$ac_header>
23666_ACEOF
23667if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23668  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23669  ac_status=$?
23670  grep -v '^ *+' conftest.er1 >conftest.err
23671  rm -f conftest.er1
23672  cat conftest.err >&5
23673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674  (exit $ac_status); } >/dev/null; then
23675  if test -s conftest.err; then
23676    ac_cpp_err=$ac_c_preproc_warn_flag
23677    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23678  else
23679    ac_cpp_err=
23680  fi
23681else
23682  ac_cpp_err=yes
23683fi
23684if test -z "$ac_cpp_err"; then
23685  ac_header_preproc=yes
23686else
23687  echo "$as_me: failed program was:" >&5
23688sed 's/^/| /' conftest.$ac_ext >&5
23689
23690  ac_header_preproc=no
23691fi
23692rm -f conftest.err conftest.$ac_ext
23693echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23694echo "${ECHO_T}$ac_header_preproc" >&6
23695
23696# So?  What about this header?
23697case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23698  yes:no: )
23699    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23700echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23701    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23702echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23703    ac_header_preproc=yes
23704    ;;
23705  no:yes:* )
23706    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23707echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23708    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23709echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23710    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23711echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23712    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23713echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23714    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23715echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23716    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23717echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23718    (
23719      cat <<\_ASBOX
23720## ------------------------------------------ ##
23721## Report this to the AC_PACKAGE_NAME lists.  ##
23722## ------------------------------------------ ##
23723_ASBOX
23724    ) |
23725      sed "s/^/$as_me: WARNING:     /" >&2
23726    ;;
23727esac
23728echo "$as_me:$LINENO: checking for $ac_header" >&5
23729echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23730if eval "test \"\${$as_ac_Header+set}\" = set"; then
23731  echo $ECHO_N "(cached) $ECHO_C" >&6
23732else
23733  eval "$as_ac_Header=\$ac_header_preproc"
23734fi
23735echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23736echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23737
23738fi
23739if test `eval echo '${'$as_ac_Header'}'` = yes; then
23740  cat >>confdefs.h <<_ACEOF
23741#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23742_ACEOF
23743 INSERT_INTTYPES_HEADER="#include <inttypes.h>"
23744fi
23745
23746done
23747
23748
23749for ac_header in stdint.h
23750do
23751as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23752if eval "test \"\${$as_ac_Header+set}\" = set"; then
23753  echo "$as_me:$LINENO: checking for $ac_header" >&5
23754echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23755if eval "test \"\${$as_ac_Header+set}\" = set"; then
23756  echo $ECHO_N "(cached) $ECHO_C" >&6
23757fi
23758echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23759echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23760else
23761  # Is the header compilable?
23762echo "$as_me:$LINENO: checking $ac_header usability" >&5
23763echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23764cat >conftest.$ac_ext <<_ACEOF
23765/* confdefs.h.  */
23766_ACEOF
23767cat confdefs.h >>conftest.$ac_ext
23768cat >>conftest.$ac_ext <<_ACEOF
23769/* end confdefs.h.  */
23770$ac_includes_default
23771#include <$ac_header>
23772_ACEOF
23773rm -f conftest.$ac_objext
23774if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23775  (eval $ac_compile) 2>conftest.er1
23776  ac_status=$?
23777  grep -v '^ *+' conftest.er1 >conftest.err
23778  rm -f conftest.er1
23779  cat conftest.err >&5
23780  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23781  (exit $ac_status); } &&
23782	 { ac_try='test -z "$ac_c_werror_flag"
23783			 || test ! -s conftest.err'
23784  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785  (eval $ac_try) 2>&5
23786  ac_status=$?
23787  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788  (exit $ac_status); }; } &&
23789	 { ac_try='test -s conftest.$ac_objext'
23790  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791  (eval $ac_try) 2>&5
23792  ac_status=$?
23793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794  (exit $ac_status); }; }; then
23795  ac_header_compiler=yes
23796else
23797  echo "$as_me: failed program was:" >&5
23798sed 's/^/| /' conftest.$ac_ext >&5
23799
23800ac_header_compiler=no
23801fi
23802rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23803echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23804echo "${ECHO_T}$ac_header_compiler" >&6
23805
23806# Is the header present?
23807echo "$as_me:$LINENO: checking $ac_header presence" >&5
23808echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23809cat >conftest.$ac_ext <<_ACEOF
23810/* confdefs.h.  */
23811_ACEOF
23812cat confdefs.h >>conftest.$ac_ext
23813cat >>conftest.$ac_ext <<_ACEOF
23814/* end confdefs.h.  */
23815#include <$ac_header>
23816_ACEOF
23817if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23818  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23819  ac_status=$?
23820  grep -v '^ *+' conftest.er1 >conftest.err
23821  rm -f conftest.er1
23822  cat conftest.err >&5
23823  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824  (exit $ac_status); } >/dev/null; then
23825  if test -s conftest.err; then
23826    ac_cpp_err=$ac_c_preproc_warn_flag
23827    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23828  else
23829    ac_cpp_err=
23830  fi
23831else
23832  ac_cpp_err=yes
23833fi
23834if test -z "$ac_cpp_err"; then
23835  ac_header_preproc=yes
23836else
23837  echo "$as_me: failed program was:" >&5
23838sed 's/^/| /' conftest.$ac_ext >&5
23839
23840  ac_header_preproc=no
23841fi
23842rm -f conftest.err conftest.$ac_ext
23843echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23844echo "${ECHO_T}$ac_header_preproc" >&6
23845
23846# So?  What about this header?
23847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23848  yes:no: )
23849    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23850echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23851    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23852echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23853    ac_header_preproc=yes
23854    ;;
23855  no:yes:* )
23856    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23857echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23858    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23859echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23860    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23861echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23862    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23863echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23864    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23865echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23866    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23867echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23868    (
23869      cat <<\_ASBOX
23870## ------------------------------------------ ##
23871## Report this to the AC_PACKAGE_NAME lists.  ##
23872## ------------------------------------------ ##
23873_ASBOX
23874    ) |
23875      sed "s/^/$as_me: WARNING:     /" >&2
23876    ;;
23877esac
23878echo "$as_me:$LINENO: checking for $ac_header" >&5
23879echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23880if eval "test \"\${$as_ac_Header+set}\" = set"; then
23881  echo $ECHO_N "(cached) $ECHO_C" >&6
23882else
23883  eval "$as_ac_Header=\$ac_header_preproc"
23884fi
23885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23887
23888fi
23889if test `eval echo '${'$as_ac_Header'}'` = yes; then
23890  cat >>confdefs.h <<_ACEOF
23891#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23892_ACEOF
23893 INSERT_STDINT_HEADER="#include <stdint.h>"
23894fi
23895
23896done
23897
23898
23899for ac_header in unistd.h
23900do
23901as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23902if eval "test \"\${$as_ac_Header+set}\" = set"; then
23903  echo "$as_me:$LINENO: checking for $ac_header" >&5
23904echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23905if eval "test \"\${$as_ac_Header+set}\" = set"; then
23906  echo $ECHO_N "(cached) $ECHO_C" >&6
23907fi
23908echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23909echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23910else
23911  # Is the header compilable?
23912echo "$as_me:$LINENO: checking $ac_header usability" >&5
23913echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23914cat >conftest.$ac_ext <<_ACEOF
23915/* confdefs.h.  */
23916_ACEOF
23917cat confdefs.h >>conftest.$ac_ext
23918cat >>conftest.$ac_ext <<_ACEOF
23919/* end confdefs.h.  */
23920$ac_includes_default
23921#include <$ac_header>
23922_ACEOF
23923rm -f conftest.$ac_objext
23924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23925  (eval $ac_compile) 2>conftest.er1
23926  ac_status=$?
23927  grep -v '^ *+' conftest.er1 >conftest.err
23928  rm -f conftest.er1
23929  cat conftest.err >&5
23930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931  (exit $ac_status); } &&
23932	 { ac_try='test -z "$ac_c_werror_flag"
23933			 || test ! -s conftest.err'
23934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23935  (eval $ac_try) 2>&5
23936  ac_status=$?
23937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938  (exit $ac_status); }; } &&
23939	 { ac_try='test -s conftest.$ac_objext'
23940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23941  (eval $ac_try) 2>&5
23942  ac_status=$?
23943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944  (exit $ac_status); }; }; then
23945  ac_header_compiler=yes
23946else
23947  echo "$as_me: failed program was:" >&5
23948sed 's/^/| /' conftest.$ac_ext >&5
23949
23950ac_header_compiler=no
23951fi
23952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23953echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23954echo "${ECHO_T}$ac_header_compiler" >&6
23955
23956# Is the header present?
23957echo "$as_me:$LINENO: checking $ac_header presence" >&5
23958echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23959cat >conftest.$ac_ext <<_ACEOF
23960/* confdefs.h.  */
23961_ACEOF
23962cat confdefs.h >>conftest.$ac_ext
23963cat >>conftest.$ac_ext <<_ACEOF
23964/* end confdefs.h.  */
23965#include <$ac_header>
23966_ACEOF
23967if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23968  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23969  ac_status=$?
23970  grep -v '^ *+' conftest.er1 >conftest.err
23971  rm -f conftest.er1
23972  cat conftest.err >&5
23973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974  (exit $ac_status); } >/dev/null; then
23975  if test -s conftest.err; then
23976    ac_cpp_err=$ac_c_preproc_warn_flag
23977    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23978  else
23979    ac_cpp_err=
23980  fi
23981else
23982  ac_cpp_err=yes
23983fi
23984if test -z "$ac_cpp_err"; then
23985  ac_header_preproc=yes
23986else
23987  echo "$as_me: failed program was:" >&5
23988sed 's/^/| /' conftest.$ac_ext >&5
23989
23990  ac_header_preproc=no
23991fi
23992rm -f conftest.err conftest.$ac_ext
23993echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23994echo "${ECHO_T}$ac_header_preproc" >&6
23995
23996# So?  What about this header?
23997case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23998  yes:no: )
23999    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24000echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24001    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24002echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24003    ac_header_preproc=yes
24004    ;;
24005  no:yes:* )
24006    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24007echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24008    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24009echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24010    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24011echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24012    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24013echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24014    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24015echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24016    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24017echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24018    (
24019      cat <<\_ASBOX
24020## ------------------------------------------ ##
24021## Report this to the AC_PACKAGE_NAME lists.  ##
24022## ------------------------------------------ ##
24023_ASBOX
24024    ) |
24025      sed "s/^/$as_me: WARNING:     /" >&2
24026    ;;
24027esac
24028echo "$as_me:$LINENO: checking for $ac_header" >&5
24029echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24030if eval "test \"\${$as_ac_Header+set}\" = set"; then
24031  echo $ECHO_N "(cached) $ECHO_C" >&6
24032else
24033  eval "$as_ac_Header=\$ac_header_preproc"
24034fi
24035echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24036echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24037
24038fi
24039if test `eval echo '${'$as_ac_Header'}'` = yes; then
24040  cat >>confdefs.h <<_ACEOF
24041#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24042_ACEOF
24043
24044fi
24045
24046done
24047
24048
24049for ac_header in stdlib.h
24050do
24051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24052if eval "test \"\${$as_ac_Header+set}\" = set"; then
24053  echo "$as_me:$LINENO: checking for $ac_header" >&5
24054echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24055if eval "test \"\${$as_ac_Header+set}\" = set"; then
24056  echo $ECHO_N "(cached) $ECHO_C" >&6
24057fi
24058echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24059echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24060else
24061  # Is the header compilable?
24062echo "$as_me:$LINENO: checking $ac_header usability" >&5
24063echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24064cat >conftest.$ac_ext <<_ACEOF
24065/* confdefs.h.  */
24066_ACEOF
24067cat confdefs.h >>conftest.$ac_ext
24068cat >>conftest.$ac_ext <<_ACEOF
24069/* end confdefs.h.  */
24070$ac_includes_default
24071#include <$ac_header>
24072_ACEOF
24073rm -f conftest.$ac_objext
24074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24075  (eval $ac_compile) 2>conftest.er1
24076  ac_status=$?
24077  grep -v '^ *+' conftest.er1 >conftest.err
24078  rm -f conftest.er1
24079  cat conftest.err >&5
24080  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081  (exit $ac_status); } &&
24082	 { ac_try='test -z "$ac_c_werror_flag"
24083			 || test ! -s conftest.err'
24084  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24085  (eval $ac_try) 2>&5
24086  ac_status=$?
24087  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088  (exit $ac_status); }; } &&
24089	 { ac_try='test -s conftest.$ac_objext'
24090  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24091  (eval $ac_try) 2>&5
24092  ac_status=$?
24093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094  (exit $ac_status); }; }; then
24095  ac_header_compiler=yes
24096else
24097  echo "$as_me: failed program was:" >&5
24098sed 's/^/| /' conftest.$ac_ext >&5
24099
24100ac_header_compiler=no
24101fi
24102rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24103echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24104echo "${ECHO_T}$ac_header_compiler" >&6
24105
24106# Is the header present?
24107echo "$as_me:$LINENO: checking $ac_header presence" >&5
24108echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24109cat >conftest.$ac_ext <<_ACEOF
24110/* confdefs.h.  */
24111_ACEOF
24112cat confdefs.h >>conftest.$ac_ext
24113cat >>conftest.$ac_ext <<_ACEOF
24114/* end confdefs.h.  */
24115#include <$ac_header>
24116_ACEOF
24117if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24118  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24119  ac_status=$?
24120  grep -v '^ *+' conftest.er1 >conftest.err
24121  rm -f conftest.er1
24122  cat conftest.err >&5
24123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24124  (exit $ac_status); } >/dev/null; then
24125  if test -s conftest.err; then
24126    ac_cpp_err=$ac_c_preproc_warn_flag
24127    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24128  else
24129    ac_cpp_err=
24130  fi
24131else
24132  ac_cpp_err=yes
24133fi
24134if test -z "$ac_cpp_err"; then
24135  ac_header_preproc=yes
24136else
24137  echo "$as_me: failed program was:" >&5
24138sed 's/^/| /' conftest.$ac_ext >&5
24139
24140  ac_header_preproc=no
24141fi
24142rm -f conftest.err conftest.$ac_ext
24143echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24144echo "${ECHO_T}$ac_header_preproc" >&6
24145
24146# So?  What about this header?
24147case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24148  yes:no: )
24149    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24150echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24151    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24152echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24153    ac_header_preproc=yes
24154    ;;
24155  no:yes:* )
24156    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24157echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24158    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24159echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24160    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24161echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24162    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24163echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24164    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24165echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24166    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24167echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24168    (
24169      cat <<\_ASBOX
24170## ------------------------------------------ ##
24171## Report this to the AC_PACKAGE_NAME lists.  ##
24172## ------------------------------------------ ##
24173_ASBOX
24174    ) |
24175      sed "s/^/$as_me: WARNING:     /" >&2
24176    ;;
24177esac
24178echo "$as_me:$LINENO: checking for $ac_header" >&5
24179echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24180if eval "test \"\${$as_ac_Header+set}\" = set"; then
24181  echo $ECHO_N "(cached) $ECHO_C" >&6
24182else
24183  eval "$as_ac_Header=\$ac_header_preproc"
24184fi
24185echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24186echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24187
24188fi
24189if test `eval echo '${'$as_ac_Header'}'` = yes; then
24190  cat >>confdefs.h <<_ACEOF
24191#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24192_ACEOF
24193
24194fi
24195
24196done
24197
24198
24199for ac_header in string.h
24200do
24201as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24202if eval "test \"\${$as_ac_Header+set}\" = set"; then
24203  echo "$as_me:$LINENO: checking for $ac_header" >&5
24204echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24205if eval "test \"\${$as_ac_Header+set}\" = set"; then
24206  echo $ECHO_N "(cached) $ECHO_C" >&6
24207fi
24208echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24209echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24210else
24211  # Is the header compilable?
24212echo "$as_me:$LINENO: checking $ac_header usability" >&5
24213echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24214cat >conftest.$ac_ext <<_ACEOF
24215/* confdefs.h.  */
24216_ACEOF
24217cat confdefs.h >>conftest.$ac_ext
24218cat >>conftest.$ac_ext <<_ACEOF
24219/* end confdefs.h.  */
24220$ac_includes_default
24221#include <$ac_header>
24222_ACEOF
24223rm -f conftest.$ac_objext
24224if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24225  (eval $ac_compile) 2>conftest.er1
24226  ac_status=$?
24227  grep -v '^ *+' conftest.er1 >conftest.err
24228  rm -f conftest.er1
24229  cat conftest.err >&5
24230  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24231  (exit $ac_status); } &&
24232	 { ac_try='test -z "$ac_c_werror_flag"
24233			 || test ! -s conftest.err'
24234  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24235  (eval $ac_try) 2>&5
24236  ac_status=$?
24237  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24238  (exit $ac_status); }; } &&
24239	 { ac_try='test -s conftest.$ac_objext'
24240  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24241  (eval $ac_try) 2>&5
24242  ac_status=$?
24243  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244  (exit $ac_status); }; }; then
24245  ac_header_compiler=yes
24246else
24247  echo "$as_me: failed program was:" >&5
24248sed 's/^/| /' conftest.$ac_ext >&5
24249
24250ac_header_compiler=no
24251fi
24252rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24254echo "${ECHO_T}$ac_header_compiler" >&6
24255
24256# Is the header present?
24257echo "$as_me:$LINENO: checking $ac_header presence" >&5
24258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24259cat >conftest.$ac_ext <<_ACEOF
24260/* confdefs.h.  */
24261_ACEOF
24262cat confdefs.h >>conftest.$ac_ext
24263cat >>conftest.$ac_ext <<_ACEOF
24264/* end confdefs.h.  */
24265#include <$ac_header>
24266_ACEOF
24267if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24268  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24269  ac_status=$?
24270  grep -v '^ *+' conftest.er1 >conftest.err
24271  rm -f conftest.er1
24272  cat conftest.err >&5
24273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24274  (exit $ac_status); } >/dev/null; then
24275  if test -s conftest.err; then
24276    ac_cpp_err=$ac_c_preproc_warn_flag
24277    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24278  else
24279    ac_cpp_err=
24280  fi
24281else
24282  ac_cpp_err=yes
24283fi
24284if test -z "$ac_cpp_err"; then
24285  ac_header_preproc=yes
24286else
24287  echo "$as_me: failed program was:" >&5
24288sed 's/^/| /' conftest.$ac_ext >&5
24289
24290  ac_header_preproc=no
24291fi
24292rm -f conftest.err conftest.$ac_ext
24293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24294echo "${ECHO_T}$ac_header_preproc" >&6
24295
24296# So?  What about this header?
24297case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24298  yes:no: )
24299    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24301    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24302echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24303    ac_header_preproc=yes
24304    ;;
24305  no:yes:* )
24306    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24307echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24308    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24309echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24310    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24311echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24312    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24313echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24314    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24315echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24316    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24317echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24318    (
24319      cat <<\_ASBOX
24320## ------------------------------------------ ##
24321## Report this to the AC_PACKAGE_NAME lists.  ##
24322## ------------------------------------------ ##
24323_ASBOX
24324    ) |
24325      sed "s/^/$as_me: WARNING:     /" >&2
24326    ;;
24327esac
24328echo "$as_me:$LINENO: checking for $ac_header" >&5
24329echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24330if eval "test \"\${$as_ac_Header+set}\" = set"; then
24331  echo $ECHO_N "(cached) $ECHO_C" >&6
24332else
24333  eval "$as_ac_Header=\$ac_header_preproc"
24334fi
24335echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24336echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24337
24338fi
24339if test `eval echo '${'$as_ac_Header'}'` = yes; then
24340  cat >>confdefs.h <<_ACEOF
24341#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24342_ACEOF
24343
24344fi
24345
24346done
24347
24348
24349for ac_header in strings.h
24350do
24351as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24352if eval "test \"\${$as_ac_Header+set}\" = set"; then
24353  echo "$as_me:$LINENO: checking for $ac_header" >&5
24354echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24355if eval "test \"\${$as_ac_Header+set}\" = set"; then
24356  echo $ECHO_N "(cached) $ECHO_C" >&6
24357fi
24358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24360else
24361  # Is the header compilable?
24362echo "$as_me:$LINENO: checking $ac_header usability" >&5
24363echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24364cat >conftest.$ac_ext <<_ACEOF
24365/* confdefs.h.  */
24366_ACEOF
24367cat confdefs.h >>conftest.$ac_ext
24368cat >>conftest.$ac_ext <<_ACEOF
24369/* end confdefs.h.  */
24370$ac_includes_default
24371#include <$ac_header>
24372_ACEOF
24373rm -f conftest.$ac_objext
24374if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24375  (eval $ac_compile) 2>conftest.er1
24376  ac_status=$?
24377  grep -v '^ *+' conftest.er1 >conftest.err
24378  rm -f conftest.er1
24379  cat conftest.err >&5
24380  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381  (exit $ac_status); } &&
24382	 { ac_try='test -z "$ac_c_werror_flag"
24383			 || test ! -s conftest.err'
24384  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24385  (eval $ac_try) 2>&5
24386  ac_status=$?
24387  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388  (exit $ac_status); }; } &&
24389	 { ac_try='test -s conftest.$ac_objext'
24390  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24391  (eval $ac_try) 2>&5
24392  ac_status=$?
24393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24394  (exit $ac_status); }; }; then
24395  ac_header_compiler=yes
24396else
24397  echo "$as_me: failed program was:" >&5
24398sed 's/^/| /' conftest.$ac_ext >&5
24399
24400ac_header_compiler=no
24401fi
24402rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24403echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24404echo "${ECHO_T}$ac_header_compiler" >&6
24405
24406# Is the header present?
24407echo "$as_me:$LINENO: checking $ac_header presence" >&5
24408echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24409cat >conftest.$ac_ext <<_ACEOF
24410/* confdefs.h.  */
24411_ACEOF
24412cat confdefs.h >>conftest.$ac_ext
24413cat >>conftest.$ac_ext <<_ACEOF
24414/* end confdefs.h.  */
24415#include <$ac_header>
24416_ACEOF
24417if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24418  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24419  ac_status=$?
24420  grep -v '^ *+' conftest.er1 >conftest.err
24421  rm -f conftest.er1
24422  cat conftest.err >&5
24423  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424  (exit $ac_status); } >/dev/null; then
24425  if test -s conftest.err; then
24426    ac_cpp_err=$ac_c_preproc_warn_flag
24427    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24428  else
24429    ac_cpp_err=
24430  fi
24431else
24432  ac_cpp_err=yes
24433fi
24434if test -z "$ac_cpp_err"; then
24435  ac_header_preproc=yes
24436else
24437  echo "$as_me: failed program was:" >&5
24438sed 's/^/| /' conftest.$ac_ext >&5
24439
24440  ac_header_preproc=no
24441fi
24442rm -f conftest.err conftest.$ac_ext
24443echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24444echo "${ECHO_T}$ac_header_preproc" >&6
24445
24446# So?  What about this header?
24447case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24448  yes:no: )
24449    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24450echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24451    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24452echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24453    ac_header_preproc=yes
24454    ;;
24455  no:yes:* )
24456    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24457echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24458    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24459echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24460    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24461echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24462    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24463echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24464    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24465echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24466    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24467echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24468    (
24469      cat <<\_ASBOX
24470## ------------------------------------------ ##
24471## Report this to the AC_PACKAGE_NAME lists.  ##
24472## ------------------------------------------ ##
24473_ASBOX
24474    ) |
24475      sed "s/^/$as_me: WARNING:     /" >&2
24476    ;;
24477esac
24478echo "$as_me:$LINENO: checking for $ac_header" >&5
24479echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24480if eval "test \"\${$as_ac_Header+set}\" = set"; then
24481  echo $ECHO_N "(cached) $ECHO_C" >&6
24482else
24483  eval "$as_ac_Header=\$ac_header_preproc"
24484fi
24485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24487
24488fi
24489if test `eval echo '${'$as_ac_Header'}'` = yes; then
24490  cat >>confdefs.h <<_ACEOF
24491#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24492_ACEOF
24493
24494fi
24495
24496done
24497
24498
24499for ac_header in malloc.h
24500do
24501as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24502if eval "test \"\${$as_ac_Header+set}\" = set"; then
24503  echo "$as_me:$LINENO: checking for $ac_header" >&5
24504echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24505if eval "test \"\${$as_ac_Header+set}\" = set"; then
24506  echo $ECHO_N "(cached) $ECHO_C" >&6
24507fi
24508echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24509echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24510else
24511  # Is the header compilable?
24512echo "$as_me:$LINENO: checking $ac_header usability" >&5
24513echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24514cat >conftest.$ac_ext <<_ACEOF
24515/* confdefs.h.  */
24516_ACEOF
24517cat confdefs.h >>conftest.$ac_ext
24518cat >>conftest.$ac_ext <<_ACEOF
24519/* end confdefs.h.  */
24520$ac_includes_default
24521#include <$ac_header>
24522_ACEOF
24523rm -f conftest.$ac_objext
24524if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24525  (eval $ac_compile) 2>conftest.er1
24526  ac_status=$?
24527  grep -v '^ *+' conftest.er1 >conftest.err
24528  rm -f conftest.er1
24529  cat conftest.err >&5
24530  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24531  (exit $ac_status); } &&
24532	 { ac_try='test -z "$ac_c_werror_flag"
24533			 || test ! -s conftest.err'
24534  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24535  (eval $ac_try) 2>&5
24536  ac_status=$?
24537  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24538  (exit $ac_status); }; } &&
24539	 { ac_try='test -s conftest.$ac_objext'
24540  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24541  (eval $ac_try) 2>&5
24542  ac_status=$?
24543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24544  (exit $ac_status); }; }; then
24545  ac_header_compiler=yes
24546else
24547  echo "$as_me: failed program was:" >&5
24548sed 's/^/| /' conftest.$ac_ext >&5
24549
24550ac_header_compiler=no
24551fi
24552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24553echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24554echo "${ECHO_T}$ac_header_compiler" >&6
24555
24556# Is the header present?
24557echo "$as_me:$LINENO: checking $ac_header presence" >&5
24558echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24559cat >conftest.$ac_ext <<_ACEOF
24560/* confdefs.h.  */
24561_ACEOF
24562cat confdefs.h >>conftest.$ac_ext
24563cat >>conftest.$ac_ext <<_ACEOF
24564/* end confdefs.h.  */
24565#include <$ac_header>
24566_ACEOF
24567if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24568  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24569  ac_status=$?
24570  grep -v '^ *+' conftest.er1 >conftest.err
24571  rm -f conftest.er1
24572  cat conftest.err >&5
24573  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24574  (exit $ac_status); } >/dev/null; then
24575  if test -s conftest.err; then
24576    ac_cpp_err=$ac_c_preproc_warn_flag
24577    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24578  else
24579    ac_cpp_err=
24580  fi
24581else
24582  ac_cpp_err=yes
24583fi
24584if test -z "$ac_cpp_err"; then
24585  ac_header_preproc=yes
24586else
24587  echo "$as_me: failed program was:" >&5
24588sed 's/^/| /' conftest.$ac_ext >&5
24589
24590  ac_header_preproc=no
24591fi
24592rm -f conftest.err conftest.$ac_ext
24593echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24594echo "${ECHO_T}$ac_header_preproc" >&6
24595
24596# So?  What about this header?
24597case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24598  yes:no: )
24599    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24600echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24601    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24602echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24603    ac_header_preproc=yes
24604    ;;
24605  no:yes:* )
24606    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24607echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24608    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24609echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24610    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24611echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24612    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24613echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24614    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24615echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24616    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24617echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24618    (
24619      cat <<\_ASBOX
24620## ------------------------------------------ ##
24621## Report this to the AC_PACKAGE_NAME lists.  ##
24622## ------------------------------------------ ##
24623_ASBOX
24624    ) |
24625      sed "s/^/$as_me: WARNING:     /" >&2
24626    ;;
24627esac
24628echo "$as_me:$LINENO: checking for $ac_header" >&5
24629echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24630if eval "test \"\${$as_ac_Header+set}\" = set"; then
24631  echo $ECHO_N "(cached) $ECHO_C" >&6
24632else
24633  eval "$as_ac_Header=\$ac_header_preproc"
24634fi
24635echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24636echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24637
24638fi
24639if test `eval echo '${'$as_ac_Header'}'` = yes; then
24640  cat >>confdefs.h <<_ACEOF
24641#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24642_ACEOF
24643
24644fi
24645
24646done
24647
24648
24649
24650
24651
24652for ac_header in math.h
24653do
24654as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24655if eval "test \"\${$as_ac_Header+set}\" = set"; then
24656  echo "$as_me:$LINENO: checking for $ac_header" >&5
24657echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24658if eval "test \"\${$as_ac_Header+set}\" = set"; then
24659  echo $ECHO_N "(cached) $ECHO_C" >&6
24660fi
24661echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24662echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24663else
24664  # Is the header compilable?
24665echo "$as_me:$LINENO: checking $ac_header usability" >&5
24666echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24667cat >conftest.$ac_ext <<_ACEOF
24668/* confdefs.h.  */
24669_ACEOF
24670cat confdefs.h >>conftest.$ac_ext
24671cat >>conftest.$ac_ext <<_ACEOF
24672/* end confdefs.h.  */
24673$ac_includes_default
24674#include <$ac_header>
24675_ACEOF
24676rm -f conftest.$ac_objext
24677if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24678  (eval $ac_compile) 2>conftest.er1
24679  ac_status=$?
24680  grep -v '^ *+' conftest.er1 >conftest.err
24681  rm -f conftest.er1
24682  cat conftest.err >&5
24683  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684  (exit $ac_status); } &&
24685	 { ac_try='test -z "$ac_c_werror_flag"
24686			 || test ! -s conftest.err'
24687  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24688  (eval $ac_try) 2>&5
24689  ac_status=$?
24690  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24691  (exit $ac_status); }; } &&
24692	 { ac_try='test -s conftest.$ac_objext'
24693  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24694  (eval $ac_try) 2>&5
24695  ac_status=$?
24696  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24697  (exit $ac_status); }; }; then
24698  ac_header_compiler=yes
24699else
24700  echo "$as_me: failed program was:" >&5
24701sed 's/^/| /' conftest.$ac_ext >&5
24702
24703ac_header_compiler=no
24704fi
24705rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24706echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24707echo "${ECHO_T}$ac_header_compiler" >&6
24708
24709# Is the header present?
24710echo "$as_me:$LINENO: checking $ac_header presence" >&5
24711echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24712cat >conftest.$ac_ext <<_ACEOF
24713/* confdefs.h.  */
24714_ACEOF
24715cat confdefs.h >>conftest.$ac_ext
24716cat >>conftest.$ac_ext <<_ACEOF
24717/* end confdefs.h.  */
24718#include <$ac_header>
24719_ACEOF
24720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24721  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24722  ac_status=$?
24723  grep -v '^ *+' conftest.er1 >conftest.err
24724  rm -f conftest.er1
24725  cat conftest.err >&5
24726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727  (exit $ac_status); } >/dev/null; then
24728  if test -s conftest.err; then
24729    ac_cpp_err=$ac_c_preproc_warn_flag
24730    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24731  else
24732    ac_cpp_err=
24733  fi
24734else
24735  ac_cpp_err=yes
24736fi
24737if test -z "$ac_cpp_err"; then
24738  ac_header_preproc=yes
24739else
24740  echo "$as_me: failed program was:" >&5
24741sed 's/^/| /' conftest.$ac_ext >&5
24742
24743  ac_header_preproc=no
24744fi
24745rm -f conftest.err conftest.$ac_ext
24746echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24747echo "${ECHO_T}$ac_header_preproc" >&6
24748
24749# So?  What about this header?
24750case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24751  yes:no: )
24752    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24753echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24754    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24755echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24756    ac_header_preproc=yes
24757    ;;
24758  no:yes:* )
24759    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24760echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24761    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24762echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24763    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24764echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24765    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24766echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24767    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24768echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24769    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24770echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24771    (
24772      cat <<\_ASBOX
24773## ------------------------------------------ ##
24774## Report this to the AC_PACKAGE_NAME lists.  ##
24775## ------------------------------------------ ##
24776_ASBOX
24777    ) |
24778      sed "s/^/$as_me: WARNING:     /" >&2
24779    ;;
24780esac
24781echo "$as_me:$LINENO: checking for $ac_header" >&5
24782echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24783if eval "test \"\${$as_ac_Header+set}\" = set"; then
24784  echo $ECHO_N "(cached) $ECHO_C" >&6
24785else
24786  eval "$as_ac_Header=\$ac_header_preproc"
24787fi
24788echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24789echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24790
24791fi
24792if test `eval echo '${'$as_ac_Header'}'` = yes; then
24793  cat >>confdefs.h <<_ACEOF
24794#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24795_ACEOF
24796 INSERT_MATH_HEADER="#include <math.h>"
24797fi
24798
24799done
24800
24801
24802for ac_header in float.h
24803do
24804as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24805if eval "test \"\${$as_ac_Header+set}\" = set"; then
24806  echo "$as_me:$LINENO: checking for $ac_header" >&5
24807echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24808if eval "test \"\${$as_ac_Header+set}\" = set"; then
24809  echo $ECHO_N "(cached) $ECHO_C" >&6
24810fi
24811echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24812echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24813else
24814  # Is the header compilable?
24815echo "$as_me:$LINENO: checking $ac_header usability" >&5
24816echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24817cat >conftest.$ac_ext <<_ACEOF
24818/* confdefs.h.  */
24819_ACEOF
24820cat confdefs.h >>conftest.$ac_ext
24821cat >>conftest.$ac_ext <<_ACEOF
24822/* end confdefs.h.  */
24823$ac_includes_default
24824#include <$ac_header>
24825_ACEOF
24826rm -f conftest.$ac_objext
24827if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24828  (eval $ac_compile) 2>conftest.er1
24829  ac_status=$?
24830  grep -v '^ *+' conftest.er1 >conftest.err
24831  rm -f conftest.er1
24832  cat conftest.err >&5
24833  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834  (exit $ac_status); } &&
24835	 { ac_try='test -z "$ac_c_werror_flag"
24836			 || test ! -s conftest.err'
24837  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838  (eval $ac_try) 2>&5
24839  ac_status=$?
24840  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841  (exit $ac_status); }; } &&
24842	 { ac_try='test -s conftest.$ac_objext'
24843  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844  (eval $ac_try) 2>&5
24845  ac_status=$?
24846  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847  (exit $ac_status); }; }; then
24848  ac_header_compiler=yes
24849else
24850  echo "$as_me: failed program was:" >&5
24851sed 's/^/| /' conftest.$ac_ext >&5
24852
24853ac_header_compiler=no
24854fi
24855rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24856echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24857echo "${ECHO_T}$ac_header_compiler" >&6
24858
24859# Is the header present?
24860echo "$as_me:$LINENO: checking $ac_header presence" >&5
24861echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24862cat >conftest.$ac_ext <<_ACEOF
24863/* confdefs.h.  */
24864_ACEOF
24865cat confdefs.h >>conftest.$ac_ext
24866cat >>conftest.$ac_ext <<_ACEOF
24867/* end confdefs.h.  */
24868#include <$ac_header>
24869_ACEOF
24870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24871  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24872  ac_status=$?
24873  grep -v '^ *+' conftest.er1 >conftest.err
24874  rm -f conftest.er1
24875  cat conftest.err >&5
24876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877  (exit $ac_status); } >/dev/null; then
24878  if test -s conftest.err; then
24879    ac_cpp_err=$ac_c_preproc_warn_flag
24880    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24881  else
24882    ac_cpp_err=
24883  fi
24884else
24885  ac_cpp_err=yes
24886fi
24887if test -z "$ac_cpp_err"; then
24888  ac_header_preproc=yes
24889else
24890  echo "$as_me: failed program was:" >&5
24891sed 's/^/| /' conftest.$ac_ext >&5
24892
24893  ac_header_preproc=no
24894fi
24895rm -f conftest.err conftest.$ac_ext
24896echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897echo "${ECHO_T}$ac_header_preproc" >&6
24898
24899# So?  What about this header?
24900case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24901  yes:no: )
24902    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24903echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24904    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24905echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24906    ac_header_preproc=yes
24907    ;;
24908  no:yes:* )
24909    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24910echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24911    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
24912echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
24913    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24914echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24915    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
24916echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
24917    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24918echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24919    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24920echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24921    (
24922      cat <<\_ASBOX
24923## ------------------------------------------ ##
24924## Report this to the AC_PACKAGE_NAME lists.  ##
24925## ------------------------------------------ ##
24926_ASBOX
24927    ) |
24928      sed "s/^/$as_me: WARNING:     /" >&2
24929    ;;
24930esac
24931echo "$as_me:$LINENO: checking for $ac_header" >&5
24932echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934  echo $ECHO_N "(cached) $ECHO_C" >&6
24935else
24936  eval "$as_ac_Header=\$ac_header_preproc"
24937fi
24938echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24939echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24940
24941fi
24942if test `eval echo '${'$as_ac_Header'}'` = yes; then
24943  cat >>confdefs.h <<_ACEOF
24944#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24945_ACEOF
24946
24947fi
24948
24949done
24950
24951
24952for ac_header in fcntl.h
24953do
24954as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24955if eval "test \"\${$as_ac_Header+set}\" = set"; then
24956  echo "$as_me:$LINENO: checking for $ac_header" >&5
24957echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24958if eval "test \"\${$as_ac_Header+set}\" = set"; then
24959  echo $ECHO_N "(cached) $ECHO_C" >&6
24960fi
24961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24962echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24963else
24964  # Is the header compilable?
24965echo "$as_me:$LINENO: checking $ac_header usability" >&5
24966echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24967cat >conftest.$ac_ext <<_ACEOF
24968/* confdefs.h.  */
24969_ACEOF
24970cat confdefs.h >>conftest.$ac_ext
24971cat >>conftest.$ac_ext <<_ACEOF
24972/* end confdefs.h.  */
24973$ac_includes_default
24974#include <$ac_header>
24975_ACEOF
24976rm -f conftest.$ac_objext
24977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24978  (eval $ac_compile) 2>conftest.er1
24979  ac_status=$?
24980  grep -v '^ *+' conftest.er1 >conftest.err
24981  rm -f conftest.er1
24982  cat conftest.err >&5
24983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984  (exit $ac_status); } &&
24985	 { ac_try='test -z "$ac_c_werror_flag"
24986			 || test ! -s conftest.err'
24987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24988  (eval $ac_try) 2>&5
24989  ac_status=$?
24990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24991  (exit $ac_status); }; } &&
24992	 { ac_try='test -s conftest.$ac_objext'
24993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24994  (eval $ac_try) 2>&5
24995  ac_status=$?
24996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997  (exit $ac_status); }; }; then
24998  ac_header_compiler=yes
24999else
25000  echo "$as_me: failed program was:" >&5
25001sed 's/^/| /' conftest.$ac_ext >&5
25002
25003ac_header_compiler=no
25004fi
25005rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25006echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25007echo "${ECHO_T}$ac_header_compiler" >&6
25008
25009# Is the header present?
25010echo "$as_me:$LINENO: checking $ac_header presence" >&5
25011echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25012cat >conftest.$ac_ext <<_ACEOF
25013/* confdefs.h.  */
25014_ACEOF
25015cat confdefs.h >>conftest.$ac_ext
25016cat >>conftest.$ac_ext <<_ACEOF
25017/* end confdefs.h.  */
25018#include <$ac_header>
25019_ACEOF
25020if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25021  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25022  ac_status=$?
25023  grep -v '^ *+' conftest.er1 >conftest.err
25024  rm -f conftest.er1
25025  cat conftest.err >&5
25026  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25027  (exit $ac_status); } >/dev/null; then
25028  if test -s conftest.err; then
25029    ac_cpp_err=$ac_c_preproc_warn_flag
25030    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25031  else
25032    ac_cpp_err=
25033  fi
25034else
25035  ac_cpp_err=yes
25036fi
25037if test -z "$ac_cpp_err"; then
25038  ac_header_preproc=yes
25039else
25040  echo "$as_me: failed program was:" >&5
25041sed 's/^/| /' conftest.$ac_ext >&5
25042
25043  ac_header_preproc=no
25044fi
25045rm -f conftest.err conftest.$ac_ext
25046echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25047echo "${ECHO_T}$ac_header_preproc" >&6
25048
25049# So?  What about this header?
25050case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25051  yes:no: )
25052    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25053echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25054    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25055echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25056    ac_header_preproc=yes
25057    ;;
25058  no:yes:* )
25059    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25060echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25061    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25062echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25063    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25064echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25065    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25066echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25067    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25068echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25069    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25070echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25071    (
25072      cat <<\_ASBOX
25073## ------------------------------------------ ##
25074## Report this to the AC_PACKAGE_NAME lists.  ##
25075## ------------------------------------------ ##
25076_ASBOX
25077    ) |
25078      sed "s/^/$as_me: WARNING:     /" >&2
25079    ;;
25080esac
25081echo "$as_me:$LINENO: checking for $ac_header" >&5
25082echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25083if eval "test \"\${$as_ac_Header+set}\" = set"; then
25084  echo $ECHO_N "(cached) $ECHO_C" >&6
25085else
25086  eval "$as_ac_Header=\$ac_header_preproc"
25087fi
25088echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25089echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25090
25091fi
25092if test `eval echo '${'$as_ac_Header'}'` = yes; then
25093  cat >>confdefs.h <<_ACEOF
25094#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25095_ACEOF
25096
25097fi
25098
25099done
25100
25101
25102for ac_header in sys/time.h
25103do
25104as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25105if eval "test \"\${$as_ac_Header+set}\" = set"; then
25106  echo "$as_me:$LINENO: checking for $ac_header" >&5
25107echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25108if eval "test \"\${$as_ac_Header+set}\" = set"; then
25109  echo $ECHO_N "(cached) $ECHO_C" >&6
25110fi
25111echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25112echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25113else
25114  # Is the header compilable?
25115echo "$as_me:$LINENO: checking $ac_header usability" >&5
25116echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25117cat >conftest.$ac_ext <<_ACEOF
25118/* confdefs.h.  */
25119_ACEOF
25120cat confdefs.h >>conftest.$ac_ext
25121cat >>conftest.$ac_ext <<_ACEOF
25122/* end confdefs.h.  */
25123$ac_includes_default
25124#include <$ac_header>
25125_ACEOF
25126rm -f conftest.$ac_objext
25127if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25128  (eval $ac_compile) 2>conftest.er1
25129  ac_status=$?
25130  grep -v '^ *+' conftest.er1 >conftest.err
25131  rm -f conftest.er1
25132  cat conftest.err >&5
25133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25134  (exit $ac_status); } &&
25135	 { ac_try='test -z "$ac_c_werror_flag"
25136			 || test ! -s conftest.err'
25137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25138  (eval $ac_try) 2>&5
25139  ac_status=$?
25140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141  (exit $ac_status); }; } &&
25142	 { ac_try='test -s conftest.$ac_objext'
25143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25144  (eval $ac_try) 2>&5
25145  ac_status=$?
25146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25147  (exit $ac_status); }; }; then
25148  ac_header_compiler=yes
25149else
25150  echo "$as_me: failed program was:" >&5
25151sed 's/^/| /' conftest.$ac_ext >&5
25152
25153ac_header_compiler=no
25154fi
25155rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25156echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25157echo "${ECHO_T}$ac_header_compiler" >&6
25158
25159# Is the header present?
25160echo "$as_me:$LINENO: checking $ac_header presence" >&5
25161echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25162cat >conftest.$ac_ext <<_ACEOF
25163/* confdefs.h.  */
25164_ACEOF
25165cat confdefs.h >>conftest.$ac_ext
25166cat >>conftest.$ac_ext <<_ACEOF
25167/* end confdefs.h.  */
25168#include <$ac_header>
25169_ACEOF
25170if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25171  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25172  ac_status=$?
25173  grep -v '^ *+' conftest.er1 >conftest.err
25174  rm -f conftest.er1
25175  cat conftest.err >&5
25176  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25177  (exit $ac_status); } >/dev/null; then
25178  if test -s conftest.err; then
25179    ac_cpp_err=$ac_c_preproc_warn_flag
25180    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25181  else
25182    ac_cpp_err=
25183  fi
25184else
25185  ac_cpp_err=yes
25186fi
25187if test -z "$ac_cpp_err"; then
25188  ac_header_preproc=yes
25189else
25190  echo "$as_me: failed program was:" >&5
25191sed 's/^/| /' conftest.$ac_ext >&5
25192
25193  ac_header_preproc=no
25194fi
25195rm -f conftest.err conftest.$ac_ext
25196echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25197echo "${ECHO_T}$ac_header_preproc" >&6
25198
25199# So?  What about this header?
25200case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25201  yes:no: )
25202    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25203echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25204    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25205echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25206    ac_header_preproc=yes
25207    ;;
25208  no:yes:* )
25209    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25210echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25211    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25212echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25213    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25214echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25215    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25216echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25217    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25218echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25219    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25220echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25221    (
25222      cat <<\_ASBOX
25223## ------------------------------------------ ##
25224## Report this to the AC_PACKAGE_NAME lists.  ##
25225## ------------------------------------------ ##
25226_ASBOX
25227    ) |
25228      sed "s/^/$as_me: WARNING:     /" >&2
25229    ;;
25230esac
25231echo "$as_me:$LINENO: checking for $ac_header" >&5
25232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25233if eval "test \"\${$as_ac_Header+set}\" = set"; then
25234  echo $ECHO_N "(cached) $ECHO_C" >&6
25235else
25236  eval "$as_ac_Header=\$ac_header_preproc"
25237fi
25238echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25239echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25240
25241fi
25242if test `eval echo '${'$as_ac_Header'}'` = yes; then
25243  cat >>confdefs.h <<_ACEOF
25244#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25245_ACEOF
25246
25247fi
25248
25249done
25250
25251
25252for ac_header in sys/select.h
25253do
25254as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25255if eval "test \"\${$as_ac_Header+set}\" = set"; then
25256  echo "$as_me:$LINENO: checking for $ac_header" >&5
25257echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25258if eval "test \"\${$as_ac_Header+set}\" = set"; then
25259  echo $ECHO_N "(cached) $ECHO_C" >&6
25260fi
25261echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25262echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25263else
25264  # Is the header compilable?
25265echo "$as_me:$LINENO: checking $ac_header usability" >&5
25266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25267cat >conftest.$ac_ext <<_ACEOF
25268/* confdefs.h.  */
25269_ACEOF
25270cat confdefs.h >>conftest.$ac_ext
25271cat >>conftest.$ac_ext <<_ACEOF
25272/* end confdefs.h.  */
25273$ac_includes_default
25274#include <$ac_header>
25275_ACEOF
25276rm -f conftest.$ac_objext
25277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25278  (eval $ac_compile) 2>conftest.er1
25279  ac_status=$?
25280  grep -v '^ *+' conftest.er1 >conftest.err
25281  rm -f conftest.er1
25282  cat conftest.err >&5
25283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25284  (exit $ac_status); } &&
25285	 { ac_try='test -z "$ac_c_werror_flag"
25286			 || test ! -s conftest.err'
25287  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288  (eval $ac_try) 2>&5
25289  ac_status=$?
25290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291  (exit $ac_status); }; } &&
25292	 { ac_try='test -s conftest.$ac_objext'
25293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25294  (eval $ac_try) 2>&5
25295  ac_status=$?
25296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25297  (exit $ac_status); }; }; then
25298  ac_header_compiler=yes
25299else
25300  echo "$as_me: failed program was:" >&5
25301sed 's/^/| /' conftest.$ac_ext >&5
25302
25303ac_header_compiler=no
25304fi
25305rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25306echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25307echo "${ECHO_T}$ac_header_compiler" >&6
25308
25309# Is the header present?
25310echo "$as_me:$LINENO: checking $ac_header presence" >&5
25311echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25312cat >conftest.$ac_ext <<_ACEOF
25313/* confdefs.h.  */
25314_ACEOF
25315cat confdefs.h >>conftest.$ac_ext
25316cat >>conftest.$ac_ext <<_ACEOF
25317/* end confdefs.h.  */
25318#include <$ac_header>
25319_ACEOF
25320if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25321  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25322  ac_status=$?
25323  grep -v '^ *+' conftest.er1 >conftest.err
25324  rm -f conftest.er1
25325  cat conftest.err >&5
25326  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327  (exit $ac_status); } >/dev/null; then
25328  if test -s conftest.err; then
25329    ac_cpp_err=$ac_c_preproc_warn_flag
25330    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25331  else
25332    ac_cpp_err=
25333  fi
25334else
25335  ac_cpp_err=yes
25336fi
25337if test -z "$ac_cpp_err"; then
25338  ac_header_preproc=yes
25339else
25340  echo "$as_me: failed program was:" >&5
25341sed 's/^/| /' conftest.$ac_ext >&5
25342
25343  ac_header_preproc=no
25344fi
25345rm -f conftest.err conftest.$ac_ext
25346echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25347echo "${ECHO_T}$ac_header_preproc" >&6
25348
25349# So?  What about this header?
25350case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25351  yes:no: )
25352    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25353echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25354    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25355echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25356    ac_header_preproc=yes
25357    ;;
25358  no:yes:* )
25359    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25360echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25361    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25362echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25363    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25364echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25365    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25366echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25367    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25368echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25369    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25370echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25371    (
25372      cat <<\_ASBOX
25373## ------------------------------------------ ##
25374## Report this to the AC_PACKAGE_NAME lists.  ##
25375## ------------------------------------------ ##
25376_ASBOX
25377    ) |
25378      sed "s/^/$as_me: WARNING:     /" >&2
25379    ;;
25380esac
25381echo "$as_me:$LINENO: checking for $ac_header" >&5
25382echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25383if eval "test \"\${$as_ac_Header+set}\" = set"; then
25384  echo $ECHO_N "(cached) $ECHO_C" >&6
25385else
25386  eval "$as_ac_Header=\$ac_header_preproc"
25387fi
25388echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25389echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25390
25391fi
25392if test `eval echo '${'$as_ac_Header'}'` = yes; then
25393  cat >>confdefs.h <<_ACEOF
25394#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25395_ACEOF
25396
25397fi
25398
25399done
25400
25401
25402for ac_header in sys/ioctl.h
25403do
25404as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25405if eval "test \"\${$as_ac_Header+set}\" = set"; then
25406  echo "$as_me:$LINENO: checking for $ac_header" >&5
25407echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25408if eval "test \"\${$as_ac_Header+set}\" = set"; then
25409  echo $ECHO_N "(cached) $ECHO_C" >&6
25410fi
25411echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25412echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25413else
25414  # Is the header compilable?
25415echo "$as_me:$LINENO: checking $ac_header usability" >&5
25416echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25417cat >conftest.$ac_ext <<_ACEOF
25418/* confdefs.h.  */
25419_ACEOF
25420cat confdefs.h >>conftest.$ac_ext
25421cat >>conftest.$ac_ext <<_ACEOF
25422/* end confdefs.h.  */
25423$ac_includes_default
25424#include <$ac_header>
25425_ACEOF
25426rm -f conftest.$ac_objext
25427if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25428  (eval $ac_compile) 2>conftest.er1
25429  ac_status=$?
25430  grep -v '^ *+' conftest.er1 >conftest.err
25431  rm -f conftest.er1
25432  cat conftest.err >&5
25433  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25434  (exit $ac_status); } &&
25435	 { ac_try='test -z "$ac_c_werror_flag"
25436			 || test ! -s conftest.err'
25437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25438  (eval $ac_try) 2>&5
25439  ac_status=$?
25440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25441  (exit $ac_status); }; } &&
25442	 { ac_try='test -s conftest.$ac_objext'
25443  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25444  (eval $ac_try) 2>&5
25445  ac_status=$?
25446  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447  (exit $ac_status); }; }; then
25448  ac_header_compiler=yes
25449else
25450  echo "$as_me: failed program was:" >&5
25451sed 's/^/| /' conftest.$ac_ext >&5
25452
25453ac_header_compiler=no
25454fi
25455rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25456echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25457echo "${ECHO_T}$ac_header_compiler" >&6
25458
25459# Is the header present?
25460echo "$as_me:$LINENO: checking $ac_header presence" >&5
25461echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25462cat >conftest.$ac_ext <<_ACEOF
25463/* confdefs.h.  */
25464_ACEOF
25465cat confdefs.h >>conftest.$ac_ext
25466cat >>conftest.$ac_ext <<_ACEOF
25467/* end confdefs.h.  */
25468#include <$ac_header>
25469_ACEOF
25470if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25471  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25472  ac_status=$?
25473  grep -v '^ *+' conftest.er1 >conftest.err
25474  rm -f conftest.er1
25475  cat conftest.err >&5
25476  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25477  (exit $ac_status); } >/dev/null; then
25478  if test -s conftest.err; then
25479    ac_cpp_err=$ac_c_preproc_warn_flag
25480    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25481  else
25482    ac_cpp_err=
25483  fi
25484else
25485  ac_cpp_err=yes
25486fi
25487if test -z "$ac_cpp_err"; then
25488  ac_header_preproc=yes
25489else
25490  echo "$as_me: failed program was:" >&5
25491sed 's/^/| /' conftest.$ac_ext >&5
25492
25493  ac_header_preproc=no
25494fi
25495rm -f conftest.err conftest.$ac_ext
25496echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25497echo "${ECHO_T}$ac_header_preproc" >&6
25498
25499# So?  What about this header?
25500case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25501  yes:no: )
25502    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25503echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25504    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25505echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25506    ac_header_preproc=yes
25507    ;;
25508  no:yes:* )
25509    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25510echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25511    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25512echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25513    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25514echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25515    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25516echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25517    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25518echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25519    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25520echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25521    (
25522      cat <<\_ASBOX
25523## ------------------------------------------ ##
25524## Report this to the AC_PACKAGE_NAME lists.  ##
25525## ------------------------------------------ ##
25526_ASBOX
25527    ) |
25528      sed "s/^/$as_me: WARNING:     /" >&2
25529    ;;
25530esac
25531echo "$as_me:$LINENO: checking for $ac_header" >&5
25532echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25533if eval "test \"\${$as_ac_Header+set}\" = set"; then
25534  echo $ECHO_N "(cached) $ECHO_C" >&6
25535else
25536  eval "$as_ac_Header=\$ac_header_preproc"
25537fi
25538echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25539echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25540
25541fi
25542if test `eval echo '${'$as_ac_Header'}'` = yes; then
25543  cat >>confdefs.h <<_ACEOF
25544#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25545_ACEOF
25546
25547fi
25548
25549done
25550
25551
25552for ac_header in sys/fcntl.h
25553do
25554as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25555if eval "test \"\${$as_ac_Header+set}\" = set"; then
25556  echo "$as_me:$LINENO: checking for $ac_header" >&5
25557echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25558if eval "test \"\${$as_ac_Header+set}\" = set"; then
25559  echo $ECHO_N "(cached) $ECHO_C" >&6
25560fi
25561echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25562echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25563else
25564  # Is the header compilable?
25565echo "$as_me:$LINENO: checking $ac_header usability" >&5
25566echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25567cat >conftest.$ac_ext <<_ACEOF
25568/* confdefs.h.  */
25569_ACEOF
25570cat confdefs.h >>conftest.$ac_ext
25571cat >>conftest.$ac_ext <<_ACEOF
25572/* end confdefs.h.  */
25573$ac_includes_default
25574#include <$ac_header>
25575_ACEOF
25576rm -f conftest.$ac_objext
25577if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25578  (eval $ac_compile) 2>conftest.er1
25579  ac_status=$?
25580  grep -v '^ *+' conftest.er1 >conftest.err
25581  rm -f conftest.er1
25582  cat conftest.err >&5
25583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584  (exit $ac_status); } &&
25585	 { ac_try='test -z "$ac_c_werror_flag"
25586			 || test ! -s conftest.err'
25587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25588  (eval $ac_try) 2>&5
25589  ac_status=$?
25590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591  (exit $ac_status); }; } &&
25592	 { ac_try='test -s conftest.$ac_objext'
25593  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25594  (eval $ac_try) 2>&5
25595  ac_status=$?
25596  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25597  (exit $ac_status); }; }; then
25598  ac_header_compiler=yes
25599else
25600  echo "$as_me: failed program was:" >&5
25601sed 's/^/| /' conftest.$ac_ext >&5
25602
25603ac_header_compiler=no
25604fi
25605rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25606echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25607echo "${ECHO_T}$ac_header_compiler" >&6
25608
25609# Is the header present?
25610echo "$as_me:$LINENO: checking $ac_header presence" >&5
25611echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25612cat >conftest.$ac_ext <<_ACEOF
25613/* confdefs.h.  */
25614_ACEOF
25615cat confdefs.h >>conftest.$ac_ext
25616cat >>conftest.$ac_ext <<_ACEOF
25617/* end confdefs.h.  */
25618#include <$ac_header>
25619_ACEOF
25620if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25621  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25622  ac_status=$?
25623  grep -v '^ *+' conftest.er1 >conftest.err
25624  rm -f conftest.er1
25625  cat conftest.err >&5
25626  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25627  (exit $ac_status); } >/dev/null; then
25628  if test -s conftest.err; then
25629    ac_cpp_err=$ac_c_preproc_warn_flag
25630    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25631  else
25632    ac_cpp_err=
25633  fi
25634else
25635  ac_cpp_err=yes
25636fi
25637if test -z "$ac_cpp_err"; then
25638  ac_header_preproc=yes
25639else
25640  echo "$as_me: failed program was:" >&5
25641sed 's/^/| /' conftest.$ac_ext >&5
25642
25643  ac_header_preproc=no
25644fi
25645rm -f conftest.err conftest.$ac_ext
25646echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25647echo "${ECHO_T}$ac_header_preproc" >&6
25648
25649# So?  What about this header?
25650case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25651  yes:no: )
25652    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25653echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25654    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25655echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25656    ac_header_preproc=yes
25657    ;;
25658  no:yes:* )
25659    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25660echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25661    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25662echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25663    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25664echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25665    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25666echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25667    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25668echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25669    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25670echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25671    (
25672      cat <<\_ASBOX
25673## ------------------------------------------ ##
25674## Report this to the AC_PACKAGE_NAME lists.  ##
25675## ------------------------------------------ ##
25676_ASBOX
25677    ) |
25678      sed "s/^/$as_me: WARNING:     /" >&2
25679    ;;
25680esac
25681echo "$as_me:$LINENO: checking for $ac_header" >&5
25682echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25683if eval "test \"\${$as_ac_Header+set}\" = set"; then
25684  echo $ECHO_N "(cached) $ECHO_C" >&6
25685else
25686  eval "$as_ac_Header=\$ac_header_preproc"
25687fi
25688echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25689echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25690
25691fi
25692if test `eval echo '${'$as_ac_Header'}'` = yes; then
25693  cat >>confdefs.h <<_ACEOF
25694#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25695_ACEOF
25696
25697fi
25698
25699done
25700
25701
25702for ac_header in audiofile.h
25703do
25704as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25705if eval "test \"\${$as_ac_Header+set}\" = set"; then
25706  echo "$as_me:$LINENO: checking for $ac_header" >&5
25707echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25708if eval "test \"\${$as_ac_Header+set}\" = set"; then
25709  echo $ECHO_N "(cached) $ECHO_C" >&6
25710fi
25711echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25712echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25713else
25714  # Is the header compilable?
25715echo "$as_me:$LINENO: checking $ac_header usability" >&5
25716echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25717cat >conftest.$ac_ext <<_ACEOF
25718/* confdefs.h.  */
25719_ACEOF
25720cat confdefs.h >>conftest.$ac_ext
25721cat >>conftest.$ac_ext <<_ACEOF
25722/* end confdefs.h.  */
25723$ac_includes_default
25724#include <$ac_header>
25725_ACEOF
25726rm -f conftest.$ac_objext
25727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25728  (eval $ac_compile) 2>conftest.er1
25729  ac_status=$?
25730  grep -v '^ *+' conftest.er1 >conftest.err
25731  rm -f conftest.er1
25732  cat conftest.err >&5
25733  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25734  (exit $ac_status); } &&
25735	 { ac_try='test -z "$ac_c_werror_flag"
25736			 || test ! -s conftest.err'
25737  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25738  (eval $ac_try) 2>&5
25739  ac_status=$?
25740  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25741  (exit $ac_status); }; } &&
25742	 { ac_try='test -s conftest.$ac_objext'
25743  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25744  (eval $ac_try) 2>&5
25745  ac_status=$?
25746  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25747  (exit $ac_status); }; }; then
25748  ac_header_compiler=yes
25749else
25750  echo "$as_me: failed program was:" >&5
25751sed 's/^/| /' conftest.$ac_ext >&5
25752
25753ac_header_compiler=no
25754fi
25755rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25756echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25757echo "${ECHO_T}$ac_header_compiler" >&6
25758
25759# Is the header present?
25760echo "$as_me:$LINENO: checking $ac_header presence" >&5
25761echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25762cat >conftest.$ac_ext <<_ACEOF
25763/* confdefs.h.  */
25764_ACEOF
25765cat confdefs.h >>conftest.$ac_ext
25766cat >>conftest.$ac_ext <<_ACEOF
25767/* end confdefs.h.  */
25768#include <$ac_header>
25769_ACEOF
25770if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25771  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25772  ac_status=$?
25773  grep -v '^ *+' conftest.er1 >conftest.err
25774  rm -f conftest.er1
25775  cat conftest.err >&5
25776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25777  (exit $ac_status); } >/dev/null; then
25778  if test -s conftest.err; then
25779    ac_cpp_err=$ac_c_preproc_warn_flag
25780    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25781  else
25782    ac_cpp_err=
25783  fi
25784else
25785  ac_cpp_err=yes
25786fi
25787if test -z "$ac_cpp_err"; then
25788  ac_header_preproc=yes
25789else
25790  echo "$as_me: failed program was:" >&5
25791sed 's/^/| /' conftest.$ac_ext >&5
25792
25793  ac_header_preproc=no
25794fi
25795rm -f conftest.err conftest.$ac_ext
25796echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25797echo "${ECHO_T}$ac_header_preproc" >&6
25798
25799# So?  What about this header?
25800case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25801  yes:no: )
25802    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25803echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25804    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25805echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25806    ac_header_preproc=yes
25807    ;;
25808  no:yes:* )
25809    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25810echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25811    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25812echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25813    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25814echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25815    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25816echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25817    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25818echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25819    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25820echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25821    (
25822      cat <<\_ASBOX
25823## ------------------------------------------ ##
25824## Report this to the AC_PACKAGE_NAME lists.  ##
25825## ------------------------------------------ ##
25826_ASBOX
25827    ) |
25828      sed "s/^/$as_me: WARNING:     /" >&2
25829    ;;
25830esac
25831echo "$as_me:$LINENO: checking for $ac_header" >&5
25832echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25833if eval "test \"\${$as_ac_Header+set}\" = set"; then
25834  echo $ECHO_N "(cached) $ECHO_C" >&6
25835else
25836  eval "$as_ac_Header=\$ac_header_preproc"
25837fi
25838echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25839echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25840
25841fi
25842if test `eval echo '${'$as_ac_Header'}'` = yes; then
25843  cat >>confdefs.h <<_ACEOF
25844#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25845_ACEOF
25846
25847fi
25848
25849done
25850
25851
25852for ac_header in fftw3.h
25853do
25854as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25855if eval "test \"\${$as_ac_Header+set}\" = set"; then
25856  echo "$as_me:$LINENO: checking for $ac_header" >&5
25857echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25858if eval "test \"\${$as_ac_Header+set}\" = set"; then
25859  echo $ECHO_N "(cached) $ECHO_C" >&6
25860fi
25861echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25862echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25863else
25864  # Is the header compilable?
25865echo "$as_me:$LINENO: checking $ac_header usability" >&5
25866echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25867cat >conftest.$ac_ext <<_ACEOF
25868/* confdefs.h.  */
25869_ACEOF
25870cat confdefs.h >>conftest.$ac_ext
25871cat >>conftest.$ac_ext <<_ACEOF
25872/* end confdefs.h.  */
25873$ac_includes_default
25874#include <$ac_header>
25875_ACEOF
25876rm -f conftest.$ac_objext
25877if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25878  (eval $ac_compile) 2>conftest.er1
25879  ac_status=$?
25880  grep -v '^ *+' conftest.er1 >conftest.err
25881  rm -f conftest.er1
25882  cat conftest.err >&5
25883  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25884  (exit $ac_status); } &&
25885	 { ac_try='test -z "$ac_c_werror_flag"
25886			 || test ! -s conftest.err'
25887  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25888  (eval $ac_try) 2>&5
25889  ac_status=$?
25890  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25891  (exit $ac_status); }; } &&
25892	 { ac_try='test -s conftest.$ac_objext'
25893  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25894  (eval $ac_try) 2>&5
25895  ac_status=$?
25896  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25897  (exit $ac_status); }; }; then
25898  ac_header_compiler=yes
25899else
25900  echo "$as_me: failed program was:" >&5
25901sed 's/^/| /' conftest.$ac_ext >&5
25902
25903ac_header_compiler=no
25904fi
25905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25906echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25907echo "${ECHO_T}$ac_header_compiler" >&6
25908
25909# Is the header present?
25910echo "$as_me:$LINENO: checking $ac_header presence" >&5
25911echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25912cat >conftest.$ac_ext <<_ACEOF
25913/* confdefs.h.  */
25914_ACEOF
25915cat confdefs.h >>conftest.$ac_ext
25916cat >>conftest.$ac_ext <<_ACEOF
25917/* end confdefs.h.  */
25918#include <$ac_header>
25919_ACEOF
25920if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25921  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25922  ac_status=$?
25923  grep -v '^ *+' conftest.er1 >conftest.err
25924  rm -f conftest.er1
25925  cat conftest.err >&5
25926  echo "$as_me:$LINENO: \$? = $ac_status" >&5
25927  (exit $ac_status); } >/dev/null; then
25928  if test -s conftest.err; then
25929    ac_cpp_err=$ac_c_preproc_warn_flag
25930    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25931  else
25932    ac_cpp_err=
25933  fi
25934else
25935  ac_cpp_err=yes
25936fi
25937if test -z "$ac_cpp_err"; then
25938  ac_header_preproc=yes
25939else
25940  echo "$as_me: failed program was:" >&5
25941sed 's/^/| /' conftest.$ac_ext >&5
25942
25943  ac_header_preproc=no
25944fi
25945rm -f conftest.err conftest.$ac_ext
25946echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25947echo "${ECHO_T}$ac_header_preproc" >&6
25948
25949# So?  What about this header?
25950case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25951  yes:no: )
25952    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25953echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25954    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25955echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25956    ac_header_preproc=yes
25957    ;;
25958  no:yes:* )
25959    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25960echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25961    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25962echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25963    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25964echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25965    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25966echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25967    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25968echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25969    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25970echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25971    (
25972      cat <<\_ASBOX
25973## ------------------------------------------ ##
25974## Report this to the AC_PACKAGE_NAME lists.  ##
25975## ------------------------------------------ ##
25976_ASBOX
25977    ) |
25978      sed "s/^/$as_me: WARNING:     /" >&2
25979    ;;
25980esac
25981echo "$as_me:$LINENO: checking for $ac_header" >&5
25982echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25983if eval "test \"\${$as_ac_Header+set}\" = set"; then
25984  echo $ECHO_N "(cached) $ECHO_C" >&6
25985else
25986  eval "$as_ac_Header=\$ac_header_preproc"
25987fi
25988echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25989echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25990
25991fi
25992if test `eval echo '${'$as_ac_Header'}'` = yes; then
25993  cat >>confdefs.h <<_ACEOF
25994#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25995_ACEOF
25996
25997else
25998
25999for ac_header in fftw.h
26000do
26001as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26002if eval "test \"\${$as_ac_Header+set}\" = set"; then
26003  echo "$as_me:$LINENO: checking for $ac_header" >&5
26004echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26005if eval "test \"\${$as_ac_Header+set}\" = set"; then
26006  echo $ECHO_N "(cached) $ECHO_C" >&6
26007fi
26008echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26009echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26010else
26011  # Is the header compilable?
26012echo "$as_me:$LINENO: checking $ac_header usability" >&5
26013echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26014cat >conftest.$ac_ext <<_ACEOF
26015/* confdefs.h.  */
26016_ACEOF
26017cat confdefs.h >>conftest.$ac_ext
26018cat >>conftest.$ac_ext <<_ACEOF
26019/* end confdefs.h.  */
26020$ac_includes_default
26021#include <$ac_header>
26022_ACEOF
26023rm -f conftest.$ac_objext
26024if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025  (eval $ac_compile) 2>conftest.er1
26026  ac_status=$?
26027  grep -v '^ *+' conftest.er1 >conftest.err
26028  rm -f conftest.er1
26029  cat conftest.err >&5
26030  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031  (exit $ac_status); } &&
26032	 { ac_try='test -z "$ac_c_werror_flag"
26033			 || test ! -s conftest.err'
26034  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035  (eval $ac_try) 2>&5
26036  ac_status=$?
26037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038  (exit $ac_status); }; } &&
26039	 { ac_try='test -s conftest.$ac_objext'
26040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041  (eval $ac_try) 2>&5
26042  ac_status=$?
26043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044  (exit $ac_status); }; }; then
26045  ac_header_compiler=yes
26046else
26047  echo "$as_me: failed program was:" >&5
26048sed 's/^/| /' conftest.$ac_ext >&5
26049
26050ac_header_compiler=no
26051fi
26052rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26053echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26054echo "${ECHO_T}$ac_header_compiler" >&6
26055
26056# Is the header present?
26057echo "$as_me:$LINENO: checking $ac_header presence" >&5
26058echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26059cat >conftest.$ac_ext <<_ACEOF
26060/* confdefs.h.  */
26061_ACEOF
26062cat confdefs.h >>conftest.$ac_ext
26063cat >>conftest.$ac_ext <<_ACEOF
26064/* end confdefs.h.  */
26065#include <$ac_header>
26066_ACEOF
26067if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26068  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26069  ac_status=$?
26070  grep -v '^ *+' conftest.er1 >conftest.err
26071  rm -f conftest.er1
26072  cat conftest.err >&5
26073  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26074  (exit $ac_status); } >/dev/null; then
26075  if test -s conftest.err; then
26076    ac_cpp_err=$ac_c_preproc_warn_flag
26077    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26078  else
26079    ac_cpp_err=
26080  fi
26081else
26082  ac_cpp_err=yes
26083fi
26084if test -z "$ac_cpp_err"; then
26085  ac_header_preproc=yes
26086else
26087  echo "$as_me: failed program was:" >&5
26088sed 's/^/| /' conftest.$ac_ext >&5
26089
26090  ac_header_preproc=no
26091fi
26092rm -f conftest.err conftest.$ac_ext
26093echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26094echo "${ECHO_T}$ac_header_preproc" >&6
26095
26096# So?  What about this header?
26097case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26098  yes:no: )
26099    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26100echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26101    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26102echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26103    ac_header_preproc=yes
26104    ;;
26105  no:yes:* )
26106    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26107echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26108    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26109echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26110    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26111echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26112    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26113echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26114    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26115echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26116    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26117echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26118    (
26119      cat <<\_ASBOX
26120## ------------------------------------------ ##
26121## Report this to the AC_PACKAGE_NAME lists.  ##
26122## ------------------------------------------ ##
26123_ASBOX
26124    ) |
26125      sed "s/^/$as_me: WARNING:     /" >&2
26126    ;;
26127esac
26128echo "$as_me:$LINENO: checking for $ac_header" >&5
26129echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26130if eval "test \"\${$as_ac_Header+set}\" = set"; then
26131  echo $ECHO_N "(cached) $ECHO_C" >&6
26132else
26133  eval "$as_ac_Header=\$ac_header_preproc"
26134fi
26135echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26136echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26137
26138fi
26139if test `eval echo '${'$as_ac_Header'}'` = yes; then
26140  cat >>confdefs.h <<_ACEOF
26141#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26142_ACEOF
26143
26144fi
26145
26146done
26147
26148fi
26149
26150done
26151
26152
26153for ac_header in tiffio.h
26154do
26155as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26156if eval "test \"\${$as_ac_Header+set}\" = set"; then
26157  echo "$as_me:$LINENO: checking for $ac_header" >&5
26158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26159if eval "test \"\${$as_ac_Header+set}\" = set"; then
26160  echo $ECHO_N "(cached) $ECHO_C" >&6
26161fi
26162echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26163echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26164else
26165  # Is the header compilable?
26166echo "$as_me:$LINENO: checking $ac_header usability" >&5
26167echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26168cat >conftest.$ac_ext <<_ACEOF
26169/* confdefs.h.  */
26170_ACEOF
26171cat confdefs.h >>conftest.$ac_ext
26172cat >>conftest.$ac_ext <<_ACEOF
26173/* end confdefs.h.  */
26174$ac_includes_default
26175#include <$ac_header>
26176_ACEOF
26177rm -f conftest.$ac_objext
26178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26179  (eval $ac_compile) 2>conftest.er1
26180  ac_status=$?
26181  grep -v '^ *+' conftest.er1 >conftest.err
26182  rm -f conftest.er1
26183  cat conftest.err >&5
26184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26185  (exit $ac_status); } &&
26186	 { ac_try='test -z "$ac_c_werror_flag"
26187			 || test ! -s conftest.err'
26188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26189  (eval $ac_try) 2>&5
26190  ac_status=$?
26191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26192  (exit $ac_status); }; } &&
26193	 { ac_try='test -s conftest.$ac_objext'
26194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26195  (eval $ac_try) 2>&5
26196  ac_status=$?
26197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198  (exit $ac_status); }; }; then
26199  ac_header_compiler=yes
26200else
26201  echo "$as_me: failed program was:" >&5
26202sed 's/^/| /' conftest.$ac_ext >&5
26203
26204ac_header_compiler=no
26205fi
26206rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26207echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26208echo "${ECHO_T}$ac_header_compiler" >&6
26209
26210# Is the header present?
26211echo "$as_me:$LINENO: checking $ac_header presence" >&5
26212echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26213cat >conftest.$ac_ext <<_ACEOF
26214/* confdefs.h.  */
26215_ACEOF
26216cat confdefs.h >>conftest.$ac_ext
26217cat >>conftest.$ac_ext <<_ACEOF
26218/* end confdefs.h.  */
26219#include <$ac_header>
26220_ACEOF
26221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26222  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26223  ac_status=$?
26224  grep -v '^ *+' conftest.er1 >conftest.err
26225  rm -f conftest.er1
26226  cat conftest.err >&5
26227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26228  (exit $ac_status); } >/dev/null; then
26229  if test -s conftest.err; then
26230    ac_cpp_err=$ac_c_preproc_warn_flag
26231    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26232  else
26233    ac_cpp_err=
26234  fi
26235else
26236  ac_cpp_err=yes
26237fi
26238if test -z "$ac_cpp_err"; then
26239  ac_header_preproc=yes
26240else
26241  echo "$as_me: failed program was:" >&5
26242sed 's/^/| /' conftest.$ac_ext >&5
26243
26244  ac_header_preproc=no
26245fi
26246rm -f conftest.err conftest.$ac_ext
26247echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26248echo "${ECHO_T}$ac_header_preproc" >&6
26249
26250# So?  What about this header?
26251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26252  yes:no: )
26253    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26254echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26255    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26256echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26257    ac_header_preproc=yes
26258    ;;
26259  no:yes:* )
26260    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26261echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26262    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26263echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26264    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26265echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26266    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26267echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26268    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26269echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26270    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26271echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26272    (
26273      cat <<\_ASBOX
26274## ------------------------------------------ ##
26275## Report this to the AC_PACKAGE_NAME lists.  ##
26276## ------------------------------------------ ##
26277_ASBOX
26278    ) |
26279      sed "s/^/$as_me: WARNING:     /" >&2
26280    ;;
26281esac
26282echo "$as_me:$LINENO: checking for $ac_header" >&5
26283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26284if eval "test \"\${$as_ac_Header+set}\" = set"; then
26285  echo $ECHO_N "(cached) $ECHO_C" >&6
26286else
26287  eval "$as_ac_Header=\$ac_header_preproc"
26288fi
26289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26291
26292fi
26293if test `eval echo '${'$as_ac_Header'}'` = yes; then
26294  cat >>confdefs.h <<_ACEOF
26295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26296_ACEOF
26297
26298fi
26299
26300done
26301
26302
26303for ac_header in pthread.h
26304do
26305as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26306if eval "test \"\${$as_ac_Header+set}\" = set"; then
26307  echo "$as_me:$LINENO: checking for $ac_header" >&5
26308echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26309if eval "test \"\${$as_ac_Header+set}\" = set"; then
26310  echo $ECHO_N "(cached) $ECHO_C" >&6
26311fi
26312echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26313echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26314else
26315  # Is the header compilable?
26316echo "$as_me:$LINENO: checking $ac_header usability" >&5
26317echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26318cat >conftest.$ac_ext <<_ACEOF
26319/* confdefs.h.  */
26320_ACEOF
26321cat confdefs.h >>conftest.$ac_ext
26322cat >>conftest.$ac_ext <<_ACEOF
26323/* end confdefs.h.  */
26324$ac_includes_default
26325#include <$ac_header>
26326_ACEOF
26327rm -f conftest.$ac_objext
26328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26329  (eval $ac_compile) 2>conftest.er1
26330  ac_status=$?
26331  grep -v '^ *+' conftest.er1 >conftest.err
26332  rm -f conftest.er1
26333  cat conftest.err >&5
26334  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26335  (exit $ac_status); } &&
26336	 { ac_try='test -z "$ac_c_werror_flag"
26337			 || test ! -s conftest.err'
26338  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26339  (eval $ac_try) 2>&5
26340  ac_status=$?
26341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26342  (exit $ac_status); }; } &&
26343	 { ac_try='test -s conftest.$ac_objext'
26344  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26345  (eval $ac_try) 2>&5
26346  ac_status=$?
26347  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348  (exit $ac_status); }; }; then
26349  ac_header_compiler=yes
26350else
26351  echo "$as_me: failed program was:" >&5
26352sed 's/^/| /' conftest.$ac_ext >&5
26353
26354ac_header_compiler=no
26355fi
26356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26357echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26358echo "${ECHO_T}$ac_header_compiler" >&6
26359
26360# Is the header present?
26361echo "$as_me:$LINENO: checking $ac_header presence" >&5
26362echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26363cat >conftest.$ac_ext <<_ACEOF
26364/* confdefs.h.  */
26365_ACEOF
26366cat confdefs.h >>conftest.$ac_ext
26367cat >>conftest.$ac_ext <<_ACEOF
26368/* end confdefs.h.  */
26369#include <$ac_header>
26370_ACEOF
26371if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26372  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26373  ac_status=$?
26374  grep -v '^ *+' conftest.er1 >conftest.err
26375  rm -f conftest.er1
26376  cat conftest.err >&5
26377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26378  (exit $ac_status); } >/dev/null; then
26379  if test -s conftest.err; then
26380    ac_cpp_err=$ac_c_preproc_warn_flag
26381    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26382  else
26383    ac_cpp_err=
26384  fi
26385else
26386  ac_cpp_err=yes
26387fi
26388if test -z "$ac_cpp_err"; then
26389  ac_header_preproc=yes
26390else
26391  echo "$as_me: failed program was:" >&5
26392sed 's/^/| /' conftest.$ac_ext >&5
26393
26394  ac_header_preproc=no
26395fi
26396rm -f conftest.err conftest.$ac_ext
26397echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26398echo "${ECHO_T}$ac_header_preproc" >&6
26399
26400# So?  What about this header?
26401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26402  yes:no: )
26403    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26404echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26405    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26406echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26407    ac_header_preproc=yes
26408    ;;
26409  no:yes:* )
26410    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26411echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26412    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26413echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26414    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26415echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26416    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26417echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26418    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26419echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26420    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26421echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26422    (
26423      cat <<\_ASBOX
26424## ------------------------------------------ ##
26425## Report this to the AC_PACKAGE_NAME lists.  ##
26426## ------------------------------------------ ##
26427_ASBOX
26428    ) |
26429      sed "s/^/$as_me: WARNING:     /" >&2
26430    ;;
26431esac
26432echo "$as_me:$LINENO: checking for $ac_header" >&5
26433echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26434if eval "test \"\${$as_ac_Header+set}\" = set"; then
26435  echo $ECHO_N "(cached) $ECHO_C" >&6
26436else
26437  eval "$as_ac_Header=\$ac_header_preproc"
26438fi
26439echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26440echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26441
26442fi
26443if test `eval echo '${'$as_ac_Header'}'` = yes; then
26444  cat >>confdefs.h <<_ACEOF
26445#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26446_ACEOF
26447
26448fi
26449
26450done
26451
26452
26453for ac_header in unicall.h
26454do
26455as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26456if eval "test \"\${$as_ac_Header+set}\" = set"; then
26457  echo "$as_me:$LINENO: checking for $ac_header" >&5
26458echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26459if eval "test \"\${$as_ac_Header+set}\" = set"; then
26460  echo $ECHO_N "(cached) $ECHO_C" >&6
26461fi
26462echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26463echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26464else
26465  # Is the header compilable?
26466echo "$as_me:$LINENO: checking $ac_header usability" >&5
26467echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26468cat >conftest.$ac_ext <<_ACEOF
26469/* confdefs.h.  */
26470_ACEOF
26471cat confdefs.h >>conftest.$ac_ext
26472cat >>conftest.$ac_ext <<_ACEOF
26473/* end confdefs.h.  */
26474$ac_includes_default
26475#include <$ac_header>
26476_ACEOF
26477rm -f conftest.$ac_objext
26478if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26479  (eval $ac_compile) 2>conftest.er1
26480  ac_status=$?
26481  grep -v '^ *+' conftest.er1 >conftest.err
26482  rm -f conftest.er1
26483  cat conftest.err >&5
26484  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26485  (exit $ac_status); } &&
26486	 { ac_try='test -z "$ac_c_werror_flag"
26487			 || test ! -s conftest.err'
26488  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26489  (eval $ac_try) 2>&5
26490  ac_status=$?
26491  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492  (exit $ac_status); }; } &&
26493	 { ac_try='test -s conftest.$ac_objext'
26494  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26495  (eval $ac_try) 2>&5
26496  ac_status=$?
26497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26498  (exit $ac_status); }; }; then
26499  ac_header_compiler=yes
26500else
26501  echo "$as_me: failed program was:" >&5
26502sed 's/^/| /' conftest.$ac_ext >&5
26503
26504ac_header_compiler=no
26505fi
26506rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26507echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26508echo "${ECHO_T}$ac_header_compiler" >&6
26509
26510# Is the header present?
26511echo "$as_me:$LINENO: checking $ac_header presence" >&5
26512echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26513cat >conftest.$ac_ext <<_ACEOF
26514/* confdefs.h.  */
26515_ACEOF
26516cat confdefs.h >>conftest.$ac_ext
26517cat >>conftest.$ac_ext <<_ACEOF
26518/* end confdefs.h.  */
26519#include <$ac_header>
26520_ACEOF
26521if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26522  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26523  ac_status=$?
26524  grep -v '^ *+' conftest.er1 >conftest.err
26525  rm -f conftest.er1
26526  cat conftest.err >&5
26527  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26528  (exit $ac_status); } >/dev/null; then
26529  if test -s conftest.err; then
26530    ac_cpp_err=$ac_c_preproc_warn_flag
26531    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26532  else
26533    ac_cpp_err=
26534  fi
26535else
26536  ac_cpp_err=yes
26537fi
26538if test -z "$ac_cpp_err"; then
26539  ac_header_preproc=yes
26540else
26541  echo "$as_me: failed program was:" >&5
26542sed 's/^/| /' conftest.$ac_ext >&5
26543
26544  ac_header_preproc=no
26545fi
26546rm -f conftest.err conftest.$ac_ext
26547echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26548echo "${ECHO_T}$ac_header_preproc" >&6
26549
26550# So?  What about this header?
26551case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26552  yes:no: )
26553    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26554echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26555    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26556echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26557    ac_header_preproc=yes
26558    ;;
26559  no:yes:* )
26560    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26561echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26562    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26563echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26564    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26565echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26566    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26567echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26568    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26569echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26570    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26571echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26572    (
26573      cat <<\_ASBOX
26574## ------------------------------------------ ##
26575## Report this to the AC_PACKAGE_NAME lists.  ##
26576## ------------------------------------------ ##
26577_ASBOX
26578    ) |
26579      sed "s/^/$as_me: WARNING:     /" >&2
26580    ;;
26581esac
26582echo "$as_me:$LINENO: checking for $ac_header" >&5
26583echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26584if eval "test \"\${$as_ac_Header+set}\" = set"; then
26585  echo $ECHO_N "(cached) $ECHO_C" >&6
26586else
26587  eval "$as_ac_Header=\$ac_header_preproc"
26588fi
26589echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26590echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26591
26592fi
26593if test `eval echo '${'$as_ac_Header'}'` = yes; then
26594  cat >>confdefs.h <<_ACEOF
26595#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26596_ACEOF
26597
26598fi
26599
26600done
26601
26602if test "${build}" == "${host}"
26603then
26604
26605for ac_header in X11/X.h
26606do
26607as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26608if eval "test \"\${$as_ac_Header+set}\" = set"; then
26609  echo "$as_me:$LINENO: checking for $ac_header" >&5
26610echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26611if eval "test \"\${$as_ac_Header+set}\" = set"; then
26612  echo $ECHO_N "(cached) $ECHO_C" >&6
26613fi
26614echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26615echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26616else
26617  # Is the header compilable?
26618echo "$as_me:$LINENO: checking $ac_header usability" >&5
26619echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26620cat >conftest.$ac_ext <<_ACEOF
26621/* confdefs.h.  */
26622_ACEOF
26623cat confdefs.h >>conftest.$ac_ext
26624cat >>conftest.$ac_ext <<_ACEOF
26625/* end confdefs.h.  */
26626$ac_includes_default
26627#include <$ac_header>
26628_ACEOF
26629rm -f conftest.$ac_objext
26630if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26631  (eval $ac_compile) 2>conftest.er1
26632  ac_status=$?
26633  grep -v '^ *+' conftest.er1 >conftest.err
26634  rm -f conftest.er1
26635  cat conftest.err >&5
26636  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26637  (exit $ac_status); } &&
26638	 { ac_try='test -z "$ac_c_werror_flag"
26639			 || test ! -s conftest.err'
26640  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26641  (eval $ac_try) 2>&5
26642  ac_status=$?
26643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26644  (exit $ac_status); }; } &&
26645	 { ac_try='test -s conftest.$ac_objext'
26646  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26647  (eval $ac_try) 2>&5
26648  ac_status=$?
26649  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26650  (exit $ac_status); }; }; then
26651  ac_header_compiler=yes
26652else
26653  echo "$as_me: failed program was:" >&5
26654sed 's/^/| /' conftest.$ac_ext >&5
26655
26656ac_header_compiler=no
26657fi
26658rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26659echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26660echo "${ECHO_T}$ac_header_compiler" >&6
26661
26662# Is the header present?
26663echo "$as_me:$LINENO: checking $ac_header presence" >&5
26664echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26665cat >conftest.$ac_ext <<_ACEOF
26666/* confdefs.h.  */
26667_ACEOF
26668cat confdefs.h >>conftest.$ac_ext
26669cat >>conftest.$ac_ext <<_ACEOF
26670/* end confdefs.h.  */
26671#include <$ac_header>
26672_ACEOF
26673if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26674  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26675  ac_status=$?
26676  grep -v '^ *+' conftest.er1 >conftest.err
26677  rm -f conftest.er1
26678  cat conftest.err >&5
26679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26680  (exit $ac_status); } >/dev/null; then
26681  if test -s conftest.err; then
26682    ac_cpp_err=$ac_c_preproc_warn_flag
26683    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26684  else
26685    ac_cpp_err=
26686  fi
26687else
26688  ac_cpp_err=yes
26689fi
26690if test -z "$ac_cpp_err"; then
26691  ac_header_preproc=yes
26692else
26693  echo "$as_me: failed program was:" >&5
26694sed 's/^/| /' conftest.$ac_ext >&5
26695
26696  ac_header_preproc=no
26697fi
26698rm -f conftest.err conftest.$ac_ext
26699echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26700echo "${ECHO_T}$ac_header_preproc" >&6
26701
26702# So?  What about this header?
26703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26704  yes:no: )
26705    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26706echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26707    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26708echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26709    ac_header_preproc=yes
26710    ;;
26711  no:yes:* )
26712    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26713echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26714    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26715echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26716    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26717echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26718    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26719echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26720    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26721echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26722    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26723echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26724    (
26725      cat <<\_ASBOX
26726## ------------------------------------------ ##
26727## Report this to the AC_PACKAGE_NAME lists.  ##
26728## ------------------------------------------ ##
26729_ASBOX
26730    ) |
26731      sed "s/^/$as_me: WARNING:     /" >&2
26732    ;;
26733esac
26734echo "$as_me:$LINENO: checking for $ac_header" >&5
26735echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26736if eval "test \"\${$as_ac_Header+set}\" = set"; then
26737  echo $ECHO_N "(cached) $ECHO_C" >&6
26738else
26739  eval "$as_ac_Header=\$ac_header_preproc"
26740fi
26741echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26742echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26743
26744fi
26745if test `eval echo '${'$as_ac_Header'}'` = yes; then
26746  cat >>confdefs.h <<_ACEOF
26747#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26748_ACEOF
26749
26750fi
26751
26752done
26753
26754fi
26755
26756# Determine XML2 include path
26757echo "$as_me:$LINENO: checking for libxml/xmlmemory.h" >&5
26758echo $ECHO_N "checking for libxml/xmlmemory.h... $ECHO_C" >&6
26759
26760# Can we include headers using system include dirs?
26761cat >conftest.$ac_ext <<_ACEOF
26762/* confdefs.h.  */
26763_ACEOF
26764cat confdefs.h >>conftest.$ac_ext
26765cat >>conftest.$ac_ext <<_ACEOF
26766/* end confdefs.h.  */
26767#include <libxml/xmlmemory.h>
26768int
26769main ()
26770{
26771int a = 1;
26772  ;
26773  return 0;
26774}
26775_ACEOF
26776rm -f conftest.$ac_objext
26777if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26778  (eval $ac_compile) 2>conftest.er1
26779  ac_status=$?
26780  grep -v '^ *+' conftest.er1 >conftest.err
26781  rm -f conftest.er1
26782  cat conftest.err >&5
26783  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26784  (exit $ac_status); } &&
26785	 { ac_try='test -z "$ac_c_werror_flag"
26786			 || test ! -s conftest.err'
26787  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26788  (eval $ac_try) 2>&5
26789  ac_status=$?
26790  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26791  (exit $ac_status); }; } &&
26792	 { ac_try='test -s conftest.$ac_objext'
26793  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26794  (eval $ac_try) 2>&5
26795  ac_status=$?
26796  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797  (exit $ac_status); }; }; then
26798  XML2_INCLUDE=" "
26799else
26800  echo "$as_me: failed program was:" >&5
26801sed 's/^/| /' conftest.$ac_ext >&5
26802
26803XML2_INCLUDE=
26804
26805fi
26806rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26807
26808# Hunt through several possible directories to find the includes for libxml2
26809if test "x$XML2_INCLUDE" = "x"; then
26810    old_CPPFLAGS="$CPPFLAGS"
26811    for i in $xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2 ; do
26812        CPPFLAGS="$old_CPPFLAGS -I$i"
26813        cat >conftest.$ac_ext <<_ACEOF
26814/* confdefs.h.  */
26815_ACEOF
26816cat confdefs.h >>conftest.$ac_ext
26817cat >>conftest.$ac_ext <<_ACEOF
26818/* end confdefs.h.  */
26819#include <libxml/xmlmemory.h>
26820int
26821main ()
26822{
26823int a = 1;
26824  ;
26825  return 0;
26826}
26827_ACEOF
26828rm -f conftest.$ac_objext
26829if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26830  (eval $ac_compile) 2>conftest.er1
26831  ac_status=$?
26832  grep -v '^ *+' conftest.er1 >conftest.err
26833  rm -f conftest.er1
26834  cat conftest.err >&5
26835  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26836  (exit $ac_status); } &&
26837	 { ac_try='test -z "$ac_c_werror_flag"
26838			 || test ! -s conftest.err'
26839  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26840  (eval $ac_try) 2>&5
26841  ac_status=$?
26842  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843  (exit $ac_status); }; } &&
26844	 { ac_try='test -s conftest.$ac_objext'
26845  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26846  (eval $ac_try) 2>&5
26847  ac_status=$?
26848  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26849  (exit $ac_status); }; }; then
26850  XML2_INCLUDE="-I$i"
26851else
26852  echo "$as_me: failed program was:" >&5
26853sed 's/^/| /' conftest.$ac_ext >&5
26854
26855XML2_INCLUDE=
26856
26857fi
26858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26859        if test "x$XML2_INCLUDE" != "x"; then
26860            break;
26861        fi
26862    done
26863    CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
26864fi
26865
26866
26867for ac_header in libxml/xmlmemory.h
26868do
26869as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26870if eval "test \"\${$as_ac_Header+set}\" = set"; then
26871  echo "$as_me:$LINENO: checking for $ac_header" >&5
26872echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26873if eval "test \"\${$as_ac_Header+set}\" = set"; then
26874  echo $ECHO_N "(cached) $ECHO_C" >&6
26875fi
26876echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26877echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26878else
26879  # Is the header compilable?
26880echo "$as_me:$LINENO: checking $ac_header usability" >&5
26881echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26882cat >conftest.$ac_ext <<_ACEOF
26883/* confdefs.h.  */
26884_ACEOF
26885cat confdefs.h >>conftest.$ac_ext
26886cat >>conftest.$ac_ext <<_ACEOF
26887/* end confdefs.h.  */
26888$ac_includes_default
26889#include <$ac_header>
26890_ACEOF
26891rm -f conftest.$ac_objext
26892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26893  (eval $ac_compile) 2>conftest.er1
26894  ac_status=$?
26895  grep -v '^ *+' conftest.er1 >conftest.err
26896  rm -f conftest.er1
26897  cat conftest.err >&5
26898  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26899  (exit $ac_status); } &&
26900	 { ac_try='test -z "$ac_c_werror_flag"
26901			 || test ! -s conftest.err'
26902  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26903  (eval $ac_try) 2>&5
26904  ac_status=$?
26905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906  (exit $ac_status); }; } &&
26907	 { ac_try='test -s conftest.$ac_objext'
26908  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26909  (eval $ac_try) 2>&5
26910  ac_status=$?
26911  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26912  (exit $ac_status); }; }; then
26913  ac_header_compiler=yes
26914else
26915  echo "$as_me: failed program was:" >&5
26916sed 's/^/| /' conftest.$ac_ext >&5
26917
26918ac_header_compiler=no
26919fi
26920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26921echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26922echo "${ECHO_T}$ac_header_compiler" >&6
26923
26924# Is the header present?
26925echo "$as_me:$LINENO: checking $ac_header presence" >&5
26926echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26927cat >conftest.$ac_ext <<_ACEOF
26928/* confdefs.h.  */
26929_ACEOF
26930cat confdefs.h >>conftest.$ac_ext
26931cat >>conftest.$ac_ext <<_ACEOF
26932/* end confdefs.h.  */
26933#include <$ac_header>
26934_ACEOF
26935if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26936  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26937  ac_status=$?
26938  grep -v '^ *+' conftest.er1 >conftest.err
26939  rm -f conftest.er1
26940  cat conftest.err >&5
26941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
26942  (exit $ac_status); } >/dev/null; then
26943  if test -s conftest.err; then
26944    ac_cpp_err=$ac_c_preproc_warn_flag
26945    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26946  else
26947    ac_cpp_err=
26948  fi
26949else
26950  ac_cpp_err=yes
26951fi
26952if test -z "$ac_cpp_err"; then
26953  ac_header_preproc=yes
26954else
26955  echo "$as_me: failed program was:" >&5
26956sed 's/^/| /' conftest.$ac_ext >&5
26957
26958  ac_header_preproc=no
26959fi
26960rm -f conftest.err conftest.$ac_ext
26961echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26962echo "${ECHO_T}$ac_header_preproc" >&6
26963
26964# So?  What about this header?
26965case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26966  yes:no: )
26967    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26968echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26969    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26970echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26971    ac_header_preproc=yes
26972    ;;
26973  no:yes:* )
26974    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26975echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26976    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26977echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26978    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26979echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26980    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26981echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26982    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26983echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26984    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26985echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26986    (
26987      cat <<\_ASBOX
26988## ------------------------------------------ ##
26989## Report this to the AC_PACKAGE_NAME lists.  ##
26990## ------------------------------------------ ##
26991_ASBOX
26992    ) |
26993      sed "s/^/$as_me: WARNING:     /" >&2
26994    ;;
26995esac
26996echo "$as_me:$LINENO: checking for $ac_header" >&5
26997echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26998if eval "test \"\${$as_ac_Header+set}\" = set"; then
26999  echo $ECHO_N "(cached) $ECHO_C" >&6
27000else
27001  eval "$as_ac_Header=\$ac_header_preproc"
27002fi
27003echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27004echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27005
27006fi
27007if test `eval echo '${'$as_ac_Header'}'` = yes; then
27008  cat >>confdefs.h <<_ACEOF
27009#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27010_ACEOF
27011
27012fi
27013
27014done
27015
27016
27017for ac_header in libxml/parser.h
27018do
27019as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27020if eval "test \"\${$as_ac_Header+set}\" = set"; then
27021  echo "$as_me:$LINENO: checking for $ac_header" >&5
27022echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27023if eval "test \"\${$as_ac_Header+set}\" = set"; then
27024  echo $ECHO_N "(cached) $ECHO_C" >&6
27025fi
27026echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27027echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27028else
27029  # Is the header compilable?
27030echo "$as_me:$LINENO: checking $ac_header usability" >&5
27031echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27032cat >conftest.$ac_ext <<_ACEOF
27033/* confdefs.h.  */
27034_ACEOF
27035cat confdefs.h >>conftest.$ac_ext
27036cat >>conftest.$ac_ext <<_ACEOF
27037/* end confdefs.h.  */
27038$ac_includes_default
27039#include <$ac_header>
27040_ACEOF
27041rm -f conftest.$ac_objext
27042if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27043  (eval $ac_compile) 2>conftest.er1
27044  ac_status=$?
27045  grep -v '^ *+' conftest.er1 >conftest.err
27046  rm -f conftest.er1
27047  cat conftest.err >&5
27048  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27049  (exit $ac_status); } &&
27050	 { ac_try='test -z "$ac_c_werror_flag"
27051			 || test ! -s conftest.err'
27052  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27053  (eval $ac_try) 2>&5
27054  ac_status=$?
27055  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27056  (exit $ac_status); }; } &&
27057	 { ac_try='test -s conftest.$ac_objext'
27058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27059  (eval $ac_try) 2>&5
27060  ac_status=$?
27061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27062  (exit $ac_status); }; }; then
27063  ac_header_compiler=yes
27064else
27065  echo "$as_me: failed program was:" >&5
27066sed 's/^/| /' conftest.$ac_ext >&5
27067
27068ac_header_compiler=no
27069fi
27070rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27071echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27072echo "${ECHO_T}$ac_header_compiler" >&6
27073
27074# Is the header present?
27075echo "$as_me:$LINENO: checking $ac_header presence" >&5
27076echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27077cat >conftest.$ac_ext <<_ACEOF
27078/* confdefs.h.  */
27079_ACEOF
27080cat confdefs.h >>conftest.$ac_ext
27081cat >>conftest.$ac_ext <<_ACEOF
27082/* end confdefs.h.  */
27083#include <$ac_header>
27084_ACEOF
27085if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27086  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27087  ac_status=$?
27088  grep -v '^ *+' conftest.er1 >conftest.err
27089  rm -f conftest.er1
27090  cat conftest.err >&5
27091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092  (exit $ac_status); } >/dev/null; then
27093  if test -s conftest.err; then
27094    ac_cpp_err=$ac_c_preproc_warn_flag
27095    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27096  else
27097    ac_cpp_err=
27098  fi
27099else
27100  ac_cpp_err=yes
27101fi
27102if test -z "$ac_cpp_err"; then
27103  ac_header_preproc=yes
27104else
27105  echo "$as_me: failed program was:" >&5
27106sed 's/^/| /' conftest.$ac_ext >&5
27107
27108  ac_header_preproc=no
27109fi
27110rm -f conftest.err conftest.$ac_ext
27111echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27112echo "${ECHO_T}$ac_header_preproc" >&6
27113
27114# So?  What about this header?
27115case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27116  yes:no: )
27117    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27118echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27119    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27120echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27121    ac_header_preproc=yes
27122    ;;
27123  no:yes:* )
27124    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27125echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27126    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27127echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27128    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27129echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27130    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27131echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27132    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27133echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27134    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27135echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27136    (
27137      cat <<\_ASBOX
27138## ------------------------------------------ ##
27139## Report this to the AC_PACKAGE_NAME lists.  ##
27140## ------------------------------------------ ##
27141_ASBOX
27142    ) |
27143      sed "s/^/$as_me: WARNING:     /" >&2
27144    ;;
27145esac
27146echo "$as_me:$LINENO: checking for $ac_header" >&5
27147echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27148if eval "test \"\${$as_ac_Header+set}\" = set"; then
27149  echo $ECHO_N "(cached) $ECHO_C" >&6
27150else
27151  eval "$as_ac_Header=\$ac_header_preproc"
27152fi
27153echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27154echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27155
27156fi
27157if test `eval echo '${'$as_ac_Header'}'` = yes; then
27158  cat >>confdefs.h <<_ACEOF
27159#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27160_ACEOF
27161
27162fi
27163
27164done
27165
27166
27167for ac_header in libxml/xinclude.h
27168do
27169as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27170if eval "test \"\${$as_ac_Header+set}\" = set"; then
27171  echo "$as_me:$LINENO: checking for $ac_header" >&5
27172echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27173if eval "test \"\${$as_ac_Header+set}\" = set"; then
27174  echo $ECHO_N "(cached) $ECHO_C" >&6
27175fi
27176echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27177echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27178else
27179  # Is the header compilable?
27180echo "$as_me:$LINENO: checking $ac_header usability" >&5
27181echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27182cat >conftest.$ac_ext <<_ACEOF
27183/* confdefs.h.  */
27184_ACEOF
27185cat confdefs.h >>conftest.$ac_ext
27186cat >>conftest.$ac_ext <<_ACEOF
27187/* end confdefs.h.  */
27188$ac_includes_default
27189#include <$ac_header>
27190_ACEOF
27191rm -f conftest.$ac_objext
27192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27193  (eval $ac_compile) 2>conftest.er1
27194  ac_status=$?
27195  grep -v '^ *+' conftest.er1 >conftest.err
27196  rm -f conftest.er1
27197  cat conftest.err >&5
27198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199  (exit $ac_status); } &&
27200	 { ac_try='test -z "$ac_c_werror_flag"
27201			 || test ! -s conftest.err'
27202  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203  (eval $ac_try) 2>&5
27204  ac_status=$?
27205  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206  (exit $ac_status); }; } &&
27207	 { ac_try='test -s conftest.$ac_objext'
27208  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27209  (eval $ac_try) 2>&5
27210  ac_status=$?
27211  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27212  (exit $ac_status); }; }; then
27213  ac_header_compiler=yes
27214else
27215  echo "$as_me: failed program was:" >&5
27216sed 's/^/| /' conftest.$ac_ext >&5
27217
27218ac_header_compiler=no
27219fi
27220rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27221echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27222echo "${ECHO_T}$ac_header_compiler" >&6
27223
27224# Is the header present?
27225echo "$as_me:$LINENO: checking $ac_header presence" >&5
27226echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27227cat >conftest.$ac_ext <<_ACEOF
27228/* confdefs.h.  */
27229_ACEOF
27230cat confdefs.h >>conftest.$ac_ext
27231cat >>conftest.$ac_ext <<_ACEOF
27232/* end confdefs.h.  */
27233#include <$ac_header>
27234_ACEOF
27235if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27236  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27237  ac_status=$?
27238  grep -v '^ *+' conftest.er1 >conftest.err
27239  rm -f conftest.er1
27240  cat conftest.err >&5
27241  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27242  (exit $ac_status); } >/dev/null; then
27243  if test -s conftest.err; then
27244    ac_cpp_err=$ac_c_preproc_warn_flag
27245    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27246  else
27247    ac_cpp_err=
27248  fi
27249else
27250  ac_cpp_err=yes
27251fi
27252if test -z "$ac_cpp_err"; then
27253  ac_header_preproc=yes
27254else
27255  echo "$as_me: failed program was:" >&5
27256sed 's/^/| /' conftest.$ac_ext >&5
27257
27258  ac_header_preproc=no
27259fi
27260rm -f conftest.err conftest.$ac_ext
27261echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27262echo "${ECHO_T}$ac_header_preproc" >&6
27263
27264# So?  What about this header?
27265case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27266  yes:no: )
27267    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27268echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27269    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27270echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27271    ac_header_preproc=yes
27272    ;;
27273  no:yes:* )
27274    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27275echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27276    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27277echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27278    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27279echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27280    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27281echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27282    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27283echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27284    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27285echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27286    (
27287      cat <<\_ASBOX
27288## ------------------------------------------ ##
27289## Report this to the AC_PACKAGE_NAME lists.  ##
27290## ------------------------------------------ ##
27291_ASBOX
27292    ) |
27293      sed "s/^/$as_me: WARNING:     /" >&2
27294    ;;
27295esac
27296echo "$as_me:$LINENO: checking for $ac_header" >&5
27297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27298if eval "test \"\${$as_ac_Header+set}\" = set"; then
27299  echo $ECHO_N "(cached) $ECHO_C" >&6
27300else
27301  eval "$as_ac_Header=\$ac_header_preproc"
27302fi
27303echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27304echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27305
27306fi
27307if test `eval echo '${'$as_ac_Header'}'` = yes; then
27308  cat >>confdefs.h <<_ACEOF
27309#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27310_ACEOF
27311
27312fi
27313
27314done
27315
27316
27317ac_ext=cc
27318ac_cpp='$CXXCPP $CPPFLAGS'
27319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27322
27323
27324
27325for ac_header in FL/Fl.H
27326do
27327as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27328if eval "test \"\${$as_ac_Header+set}\" = set"; then
27329  echo "$as_me:$LINENO: checking for $ac_header" >&5
27330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27331if eval "test \"\${$as_ac_Header+set}\" = set"; then
27332  echo $ECHO_N "(cached) $ECHO_C" >&6
27333fi
27334echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27335echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27336else
27337  # Is the header compilable?
27338echo "$as_me:$LINENO: checking $ac_header usability" >&5
27339echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27340cat >conftest.$ac_ext <<_ACEOF
27341/* confdefs.h.  */
27342_ACEOF
27343cat confdefs.h >>conftest.$ac_ext
27344cat >>conftest.$ac_ext <<_ACEOF
27345/* end confdefs.h.  */
27346$ac_includes_default
27347#include <$ac_header>
27348_ACEOF
27349rm -f conftest.$ac_objext
27350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27351  (eval $ac_compile) 2>conftest.er1
27352  ac_status=$?
27353  grep -v '^ *+' conftest.er1 >conftest.err
27354  rm -f conftest.er1
27355  cat conftest.err >&5
27356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27357  (exit $ac_status); } &&
27358	 { ac_try='test -z "$ac_cxx_werror_flag"
27359			 || test ! -s conftest.err'
27360  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27361  (eval $ac_try) 2>&5
27362  ac_status=$?
27363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27364  (exit $ac_status); }; } &&
27365	 { ac_try='test -s conftest.$ac_objext'
27366  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27367  (eval $ac_try) 2>&5
27368  ac_status=$?
27369  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27370  (exit $ac_status); }; }; then
27371  ac_header_compiler=yes
27372else
27373  echo "$as_me: failed program was:" >&5
27374sed 's/^/| /' conftest.$ac_ext >&5
27375
27376ac_header_compiler=no
27377fi
27378rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27379echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27380echo "${ECHO_T}$ac_header_compiler" >&6
27381
27382# Is the header present?
27383echo "$as_me:$LINENO: checking $ac_header presence" >&5
27384echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27385cat >conftest.$ac_ext <<_ACEOF
27386/* confdefs.h.  */
27387_ACEOF
27388cat confdefs.h >>conftest.$ac_ext
27389cat >>conftest.$ac_ext <<_ACEOF
27390/* end confdefs.h.  */
27391#include <$ac_header>
27392_ACEOF
27393if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27394  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27395  ac_status=$?
27396  grep -v '^ *+' conftest.er1 >conftest.err
27397  rm -f conftest.er1
27398  cat conftest.err >&5
27399  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27400  (exit $ac_status); } >/dev/null; then
27401  if test -s conftest.err; then
27402    ac_cpp_err=$ac_cxx_preproc_warn_flag
27403    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27404  else
27405    ac_cpp_err=
27406  fi
27407else
27408  ac_cpp_err=yes
27409fi
27410if test -z "$ac_cpp_err"; then
27411  ac_header_preproc=yes
27412else
27413  echo "$as_me: failed program was:" >&5
27414sed 's/^/| /' conftest.$ac_ext >&5
27415
27416  ac_header_preproc=no
27417fi
27418rm -f conftest.err conftest.$ac_ext
27419echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27420echo "${ECHO_T}$ac_header_preproc" >&6
27421
27422# So?  What about this header?
27423case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27424  yes:no: )
27425    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27426echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27427    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27428echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27429    ac_header_preproc=yes
27430    ;;
27431  no:yes:* )
27432    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27433echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27434    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27435echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27436    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27437echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27438    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27439echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27440    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27441echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27442    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27443echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27444    (
27445      cat <<\_ASBOX
27446## ------------------------------------------ ##
27447## Report this to the AC_PACKAGE_NAME lists.  ##
27448## ------------------------------------------ ##
27449_ASBOX
27450    ) |
27451      sed "s/^/$as_me: WARNING:     /" >&2
27452    ;;
27453esac
27454echo "$as_me:$LINENO: checking for $ac_header" >&5
27455echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27456if eval "test \"\${$as_ac_Header+set}\" = set"; then
27457  echo $ECHO_N "(cached) $ECHO_C" >&6
27458else
27459  eval "$as_ac_Header=\$ac_header_preproc"
27460fi
27461echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27462echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27463
27464fi
27465if test `eval echo '${'$as_ac_Header'}'` = yes; then
27466  cat >>confdefs.h <<_ACEOF
27467#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27468_ACEOF
27469
27470fi
27471
27472done
27473
27474
27475for ac_header in FL/Fl_Overlay_Window.H
27476do
27477as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27478if eval "test \"\${$as_ac_Header+set}\" = set"; then
27479  echo "$as_me:$LINENO: checking for $ac_header" >&5
27480echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27481if eval "test \"\${$as_ac_Header+set}\" = set"; then
27482  echo $ECHO_N "(cached) $ECHO_C" >&6
27483fi
27484echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27485echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27486else
27487  # Is the header compilable?
27488echo "$as_me:$LINENO: checking $ac_header usability" >&5
27489echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27490cat >conftest.$ac_ext <<_ACEOF
27491/* confdefs.h.  */
27492_ACEOF
27493cat confdefs.h >>conftest.$ac_ext
27494cat >>conftest.$ac_ext <<_ACEOF
27495/* end confdefs.h.  */
27496$ac_includes_default
27497#include <$ac_header>
27498_ACEOF
27499rm -f conftest.$ac_objext
27500if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27501  (eval $ac_compile) 2>conftest.er1
27502  ac_status=$?
27503  grep -v '^ *+' conftest.er1 >conftest.err
27504  rm -f conftest.er1
27505  cat conftest.err >&5
27506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27507  (exit $ac_status); } &&
27508	 { ac_try='test -z "$ac_cxx_werror_flag"
27509			 || test ! -s conftest.err'
27510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27511  (eval $ac_try) 2>&5
27512  ac_status=$?
27513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27514  (exit $ac_status); }; } &&
27515	 { ac_try='test -s conftest.$ac_objext'
27516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27517  (eval $ac_try) 2>&5
27518  ac_status=$?
27519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27520  (exit $ac_status); }; }; then
27521  ac_header_compiler=yes
27522else
27523  echo "$as_me: failed program was:" >&5
27524sed 's/^/| /' conftest.$ac_ext >&5
27525
27526ac_header_compiler=no
27527fi
27528rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27529echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27530echo "${ECHO_T}$ac_header_compiler" >&6
27531
27532# Is the header present?
27533echo "$as_me:$LINENO: checking $ac_header presence" >&5
27534echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27535cat >conftest.$ac_ext <<_ACEOF
27536/* confdefs.h.  */
27537_ACEOF
27538cat confdefs.h >>conftest.$ac_ext
27539cat >>conftest.$ac_ext <<_ACEOF
27540/* end confdefs.h.  */
27541#include <$ac_header>
27542_ACEOF
27543if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27544  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27545  ac_status=$?
27546  grep -v '^ *+' conftest.er1 >conftest.err
27547  rm -f conftest.er1
27548  cat conftest.err >&5
27549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27550  (exit $ac_status); } >/dev/null; then
27551  if test -s conftest.err; then
27552    ac_cpp_err=$ac_cxx_preproc_warn_flag
27553    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27554  else
27555    ac_cpp_err=
27556  fi
27557else
27558  ac_cpp_err=yes
27559fi
27560if test -z "$ac_cpp_err"; then
27561  ac_header_preproc=yes
27562else
27563  echo "$as_me: failed program was:" >&5
27564sed 's/^/| /' conftest.$ac_ext >&5
27565
27566  ac_header_preproc=no
27567fi
27568rm -f conftest.err conftest.$ac_ext
27569echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27570echo "${ECHO_T}$ac_header_preproc" >&6
27571
27572# So?  What about this header?
27573case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27574  yes:no: )
27575    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27576echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27577    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27578echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27579    ac_header_preproc=yes
27580    ;;
27581  no:yes:* )
27582    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27583echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27584    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27585echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27586    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27587echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27588    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27589echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27590    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27591echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27592    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27593echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27594    (
27595      cat <<\_ASBOX
27596## ------------------------------------------ ##
27597## Report this to the AC_PACKAGE_NAME lists.  ##
27598## ------------------------------------------ ##
27599_ASBOX
27600    ) |
27601      sed "s/^/$as_me: WARNING:     /" >&2
27602    ;;
27603esac
27604echo "$as_me:$LINENO: checking for $ac_header" >&5
27605echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27606if eval "test \"\${$as_ac_Header+set}\" = set"; then
27607  echo $ECHO_N "(cached) $ECHO_C" >&6
27608else
27609  eval "$as_ac_Header=\$ac_header_preproc"
27610fi
27611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27613
27614fi
27615if test `eval echo '${'$as_ac_Header'}'` = yes; then
27616  cat >>confdefs.h <<_ACEOF
27617#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27618_ACEOF
27619
27620fi
27621
27622done
27623
27624
27625for ac_header in FL/Fl_Light_Button.H
27626do
27627as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27628if eval "test \"\${$as_ac_Header+set}\" = set"; then
27629  echo "$as_me:$LINENO: checking for $ac_header" >&5
27630echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27631if eval "test \"\${$as_ac_Header+set}\" = set"; then
27632  echo $ECHO_N "(cached) $ECHO_C" >&6
27633fi
27634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27636else
27637  # Is the header compilable?
27638echo "$as_me:$LINENO: checking $ac_header usability" >&5
27639echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27640cat >conftest.$ac_ext <<_ACEOF
27641/* confdefs.h.  */
27642_ACEOF
27643cat confdefs.h >>conftest.$ac_ext
27644cat >>conftest.$ac_ext <<_ACEOF
27645/* end confdefs.h.  */
27646$ac_includes_default
27647#include <$ac_header>
27648_ACEOF
27649rm -f conftest.$ac_objext
27650if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27651  (eval $ac_compile) 2>conftest.er1
27652  ac_status=$?
27653  grep -v '^ *+' conftest.er1 >conftest.err
27654  rm -f conftest.er1
27655  cat conftest.err >&5
27656  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27657  (exit $ac_status); } &&
27658	 { ac_try='test -z "$ac_cxx_werror_flag"
27659			 || test ! -s conftest.err'
27660  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27661  (eval $ac_try) 2>&5
27662  ac_status=$?
27663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27664  (exit $ac_status); }; } &&
27665	 { ac_try='test -s conftest.$ac_objext'
27666  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27667  (eval $ac_try) 2>&5
27668  ac_status=$?
27669  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27670  (exit $ac_status); }; }; then
27671  ac_header_compiler=yes
27672else
27673  echo "$as_me: failed program was:" >&5
27674sed 's/^/| /' conftest.$ac_ext >&5
27675
27676ac_header_compiler=no
27677fi
27678rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27679echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27680echo "${ECHO_T}$ac_header_compiler" >&6
27681
27682# Is the header present?
27683echo "$as_me:$LINENO: checking $ac_header presence" >&5
27684echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27685cat >conftest.$ac_ext <<_ACEOF
27686/* confdefs.h.  */
27687_ACEOF
27688cat confdefs.h >>conftest.$ac_ext
27689cat >>conftest.$ac_ext <<_ACEOF
27690/* end confdefs.h.  */
27691#include <$ac_header>
27692_ACEOF
27693if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27694  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27695  ac_status=$?
27696  grep -v '^ *+' conftest.er1 >conftest.err
27697  rm -f conftest.er1
27698  cat conftest.err >&5
27699  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27700  (exit $ac_status); } >/dev/null; then
27701  if test -s conftest.err; then
27702    ac_cpp_err=$ac_cxx_preproc_warn_flag
27703    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27704  else
27705    ac_cpp_err=
27706  fi
27707else
27708  ac_cpp_err=yes
27709fi
27710if test -z "$ac_cpp_err"; then
27711  ac_header_preproc=yes
27712else
27713  echo "$as_me: failed program was:" >&5
27714sed 's/^/| /' conftest.$ac_ext >&5
27715
27716  ac_header_preproc=no
27717fi
27718rm -f conftest.err conftest.$ac_ext
27719echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27720echo "${ECHO_T}$ac_header_preproc" >&6
27721
27722# So?  What about this header?
27723case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27724  yes:no: )
27725    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27726echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27727    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27728echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27729    ac_header_preproc=yes
27730    ;;
27731  no:yes:* )
27732    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27733echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27734    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27735echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27736    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27737echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27738    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27739echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27740    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27741echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27742    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27743echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27744    (
27745      cat <<\_ASBOX
27746## ------------------------------------------ ##
27747## Report this to the AC_PACKAGE_NAME lists.  ##
27748## ------------------------------------------ ##
27749_ASBOX
27750    ) |
27751      sed "s/^/$as_me: WARNING:     /" >&2
27752    ;;
27753esac
27754echo "$as_me:$LINENO: checking for $ac_header" >&5
27755echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27756if eval "test \"\${$as_ac_Header+set}\" = set"; then
27757  echo $ECHO_N "(cached) $ECHO_C" >&6
27758else
27759  eval "$as_ac_Header=\$ac_header_preproc"
27760fi
27761echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27762echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27763
27764fi
27765if test `eval echo '${'$as_ac_Header'}'` = yes; then
27766  cat >>confdefs.h <<_ACEOF
27767#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27768_ACEOF
27769
27770fi
27771
27772done
27773
27774
27775for ac_header in FL/fl_draw.H
27776do
27777as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27778if eval "test \"\${$as_ac_Header+set}\" = set"; then
27779  echo "$as_me:$LINENO: checking for $ac_header" >&5
27780echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27781if eval "test \"\${$as_ac_Header+set}\" = set"; then
27782  echo $ECHO_N "(cached) $ECHO_C" >&6
27783fi
27784echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27785echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27786else
27787  # Is the header compilable?
27788echo "$as_me:$LINENO: checking $ac_header usability" >&5
27789echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27790cat >conftest.$ac_ext <<_ACEOF
27791/* confdefs.h.  */
27792_ACEOF
27793cat confdefs.h >>conftest.$ac_ext
27794cat >>conftest.$ac_ext <<_ACEOF
27795/* end confdefs.h.  */
27796$ac_includes_default
27797#include <$ac_header>
27798_ACEOF
27799rm -f conftest.$ac_objext
27800if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27801  (eval $ac_compile) 2>conftest.er1
27802  ac_status=$?
27803  grep -v '^ *+' conftest.er1 >conftest.err
27804  rm -f conftest.er1
27805  cat conftest.err >&5
27806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27807  (exit $ac_status); } &&
27808	 { ac_try='test -z "$ac_cxx_werror_flag"
27809			 || test ! -s conftest.err'
27810  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27811  (eval $ac_try) 2>&5
27812  ac_status=$?
27813  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27814  (exit $ac_status); }; } &&
27815	 { ac_try='test -s conftest.$ac_objext'
27816  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27817  (eval $ac_try) 2>&5
27818  ac_status=$?
27819  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27820  (exit $ac_status); }; }; then
27821  ac_header_compiler=yes
27822else
27823  echo "$as_me: failed program was:" >&5
27824sed 's/^/| /' conftest.$ac_ext >&5
27825
27826ac_header_compiler=no
27827fi
27828rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27829echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27830echo "${ECHO_T}$ac_header_compiler" >&6
27831
27832# Is the header present?
27833echo "$as_me:$LINENO: checking $ac_header presence" >&5
27834echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27835cat >conftest.$ac_ext <<_ACEOF
27836/* confdefs.h.  */
27837_ACEOF
27838cat confdefs.h >>conftest.$ac_ext
27839cat >>conftest.$ac_ext <<_ACEOF
27840/* end confdefs.h.  */
27841#include <$ac_header>
27842_ACEOF
27843if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27844  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27845  ac_status=$?
27846  grep -v '^ *+' conftest.er1 >conftest.err
27847  rm -f conftest.er1
27848  cat conftest.err >&5
27849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27850  (exit $ac_status); } >/dev/null; then
27851  if test -s conftest.err; then
27852    ac_cpp_err=$ac_cxx_preproc_warn_flag
27853    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27854  else
27855    ac_cpp_err=
27856  fi
27857else
27858  ac_cpp_err=yes
27859fi
27860if test -z "$ac_cpp_err"; then
27861  ac_header_preproc=yes
27862else
27863  echo "$as_me: failed program was:" >&5
27864sed 's/^/| /' conftest.$ac_ext >&5
27865
27866  ac_header_preproc=no
27867fi
27868rm -f conftest.err conftest.$ac_ext
27869echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27870echo "${ECHO_T}$ac_header_preproc" >&6
27871
27872# So?  What about this header?
27873case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27874  yes:no: )
27875    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27876echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27877    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27878echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27879    ac_header_preproc=yes
27880    ;;
27881  no:yes:* )
27882    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27883echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27884    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27885echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27886    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27887echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27888    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27889echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27890    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27891echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27892    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27893echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27894    (
27895      cat <<\_ASBOX
27896## ------------------------------------------ ##
27897## Report this to the AC_PACKAGE_NAME lists.  ##
27898## ------------------------------------------ ##
27899_ASBOX
27900    ) |
27901      sed "s/^/$as_me: WARNING:     /" >&2
27902    ;;
27903esac
27904echo "$as_me:$LINENO: checking for $ac_header" >&5
27905echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27906if eval "test \"\${$as_ac_Header+set}\" = set"; then
27907  echo $ECHO_N "(cached) $ECHO_C" >&6
27908else
27909  eval "$as_ac_Header=\$ac_header_preproc"
27910fi
27911echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27912echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27913
27914fi
27915if test `eval echo '${'$as_ac_Header'}'` = yes; then
27916  cat >>confdefs.h <<_ACEOF
27917#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27918_ACEOF
27919
27920fi
27921
27922done
27923
27924
27925for ac_header in FL/Fl_Cartesian.H
27926do
27927as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27928if eval "test \"\${$as_ac_Header+set}\" = set"; then
27929  echo "$as_me:$LINENO: checking for $ac_header" >&5
27930echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27931if eval "test \"\${$as_ac_Header+set}\" = set"; then
27932  echo $ECHO_N "(cached) $ECHO_C" >&6
27933fi
27934echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27935echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27936else
27937  # Is the header compilable?
27938echo "$as_me:$LINENO: checking $ac_header usability" >&5
27939echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27940cat >conftest.$ac_ext <<_ACEOF
27941/* confdefs.h.  */
27942_ACEOF
27943cat confdefs.h >>conftest.$ac_ext
27944cat >>conftest.$ac_ext <<_ACEOF
27945/* end confdefs.h.  */
27946$ac_includes_default
27947#include <$ac_header>
27948_ACEOF
27949rm -f conftest.$ac_objext
27950if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27951  (eval $ac_compile) 2>conftest.er1
27952  ac_status=$?
27953  grep -v '^ *+' conftest.er1 >conftest.err
27954  rm -f conftest.er1
27955  cat conftest.err >&5
27956  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27957  (exit $ac_status); } &&
27958	 { ac_try='test -z "$ac_cxx_werror_flag"
27959			 || test ! -s conftest.err'
27960  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961  (eval $ac_try) 2>&5
27962  ac_status=$?
27963  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964  (exit $ac_status); }; } &&
27965	 { ac_try='test -s conftest.$ac_objext'
27966  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27967  (eval $ac_try) 2>&5
27968  ac_status=$?
27969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
27970  (exit $ac_status); }; }; then
27971  ac_header_compiler=yes
27972else
27973  echo "$as_me: failed program was:" >&5
27974sed 's/^/| /' conftest.$ac_ext >&5
27975
27976ac_header_compiler=no
27977fi
27978rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27979echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27980echo "${ECHO_T}$ac_header_compiler" >&6
27981
27982# Is the header present?
27983echo "$as_me:$LINENO: checking $ac_header presence" >&5
27984echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27985cat >conftest.$ac_ext <<_ACEOF
27986/* confdefs.h.  */
27987_ACEOF
27988cat confdefs.h >>conftest.$ac_ext
27989cat >>conftest.$ac_ext <<_ACEOF
27990/* end confdefs.h.  */
27991#include <$ac_header>
27992_ACEOF
27993if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27994  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27995  ac_status=$?
27996  grep -v '^ *+' conftest.er1 >conftest.err
27997  rm -f conftest.er1
27998  cat conftest.err >&5
27999  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000  (exit $ac_status); } >/dev/null; then
28001  if test -s conftest.err; then
28002    ac_cpp_err=$ac_cxx_preproc_warn_flag
28003    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28004  else
28005    ac_cpp_err=
28006  fi
28007else
28008  ac_cpp_err=yes
28009fi
28010if test -z "$ac_cpp_err"; then
28011  ac_header_preproc=yes
28012else
28013  echo "$as_me: failed program was:" >&5
28014sed 's/^/| /' conftest.$ac_ext >&5
28015
28016  ac_header_preproc=no
28017fi
28018rm -f conftest.err conftest.$ac_ext
28019echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28020echo "${ECHO_T}$ac_header_preproc" >&6
28021
28022# So?  What about this header?
28023case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28024  yes:no: )
28025    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28026echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28027    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28028echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28029    ac_header_preproc=yes
28030    ;;
28031  no:yes:* )
28032    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28033echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28034    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28035echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28036    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28037echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28038    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28039echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28040    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28041echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28042    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28043echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28044    (
28045      cat <<\_ASBOX
28046## ------------------------------------------ ##
28047## Report this to the AC_PACKAGE_NAME lists.  ##
28048## ------------------------------------------ ##
28049_ASBOX
28050    ) |
28051      sed "s/^/$as_me: WARNING:     /" >&2
28052    ;;
28053esac
28054echo "$as_me:$LINENO: checking for $ac_header" >&5
28055echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28056if eval "test \"\${$as_ac_Header+set}\" = set"; then
28057  echo $ECHO_N "(cached) $ECHO_C" >&6
28058else
28059  eval "$as_ac_Header=\$ac_header_preproc"
28060fi
28061echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28062echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28063
28064fi
28065if test `eval echo '${'$as_ac_Header'}'` = yes; then
28066  cat >>confdefs.h <<_ACEOF
28067#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28068_ACEOF
28069
28070fi
28071
28072done
28073
28074
28075for ac_header in FL/Fl_Audio_Meter.H
28076do
28077as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28078if eval "test \"\${$as_ac_Header+set}\" = set"; then
28079  echo "$as_me:$LINENO: checking for $ac_header" >&5
28080echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28081if eval "test \"\${$as_ac_Header+set}\" = set"; then
28082  echo $ECHO_N "(cached) $ECHO_C" >&6
28083fi
28084echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28085echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28086else
28087  # Is the header compilable?
28088echo "$as_me:$LINENO: checking $ac_header usability" >&5
28089echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28090cat >conftest.$ac_ext <<_ACEOF
28091/* confdefs.h.  */
28092_ACEOF
28093cat confdefs.h >>conftest.$ac_ext
28094cat >>conftest.$ac_ext <<_ACEOF
28095/* end confdefs.h.  */
28096$ac_includes_default
28097#include <$ac_header>
28098_ACEOF
28099rm -f conftest.$ac_objext
28100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28101  (eval $ac_compile) 2>conftest.er1
28102  ac_status=$?
28103  grep -v '^ *+' conftest.er1 >conftest.err
28104  rm -f conftest.er1
28105  cat conftest.err >&5
28106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28107  (exit $ac_status); } &&
28108	 { ac_try='test -z "$ac_cxx_werror_flag"
28109			 || test ! -s conftest.err'
28110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28111  (eval $ac_try) 2>&5
28112  ac_status=$?
28113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28114  (exit $ac_status); }; } &&
28115	 { ac_try='test -s conftest.$ac_objext'
28116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28117  (eval $ac_try) 2>&5
28118  ac_status=$?
28119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120  (exit $ac_status); }; }; then
28121  ac_header_compiler=yes
28122else
28123  echo "$as_me: failed program was:" >&5
28124sed 's/^/| /' conftest.$ac_ext >&5
28125
28126ac_header_compiler=no
28127fi
28128rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28129echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28130echo "${ECHO_T}$ac_header_compiler" >&6
28131
28132# Is the header present?
28133echo "$as_me:$LINENO: checking $ac_header presence" >&5
28134echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28135cat >conftest.$ac_ext <<_ACEOF
28136/* confdefs.h.  */
28137_ACEOF
28138cat confdefs.h >>conftest.$ac_ext
28139cat >>conftest.$ac_ext <<_ACEOF
28140/* end confdefs.h.  */
28141#include <$ac_header>
28142_ACEOF
28143if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28144  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28145  ac_status=$?
28146  grep -v '^ *+' conftest.er1 >conftest.err
28147  rm -f conftest.er1
28148  cat conftest.err >&5
28149  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150  (exit $ac_status); } >/dev/null; then
28151  if test -s conftest.err; then
28152    ac_cpp_err=$ac_cxx_preproc_warn_flag
28153    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28154  else
28155    ac_cpp_err=
28156  fi
28157else
28158  ac_cpp_err=yes
28159fi
28160if test -z "$ac_cpp_err"; then
28161  ac_header_preproc=yes
28162else
28163  echo "$as_me: failed program was:" >&5
28164sed 's/^/| /' conftest.$ac_ext >&5
28165
28166  ac_header_preproc=no
28167fi
28168rm -f conftest.err conftest.$ac_ext
28169echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28170echo "${ECHO_T}$ac_header_preproc" >&6
28171
28172# So?  What about this header?
28173case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28174  yes:no: )
28175    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28176echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28177    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28178echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28179    ac_header_preproc=yes
28180    ;;
28181  no:yes:* )
28182    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28183echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28184    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28185echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28186    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28187echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28188    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28189echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28190    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28191echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28192    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28193echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28194    (
28195      cat <<\_ASBOX
28196## ------------------------------------------ ##
28197## Report this to the AC_PACKAGE_NAME lists.  ##
28198## ------------------------------------------ ##
28199_ASBOX
28200    ) |
28201      sed "s/^/$as_me: WARNING:     /" >&2
28202    ;;
28203esac
28204echo "$as_me:$LINENO: checking for $ac_header" >&5
28205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28206if eval "test \"\${$as_ac_Header+set}\" = set"; then
28207  echo $ECHO_N "(cached) $ECHO_C" >&6
28208else
28209  eval "$as_ac_Header=\$ac_header_preproc"
28210fi
28211echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28212echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28213
28214fi
28215if test `eval echo '${'$as_ac_Header'}'` = yes; then
28216  cat >>confdefs.h <<_ACEOF
28217#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28218_ACEOF
28219
28220fi
28221
28222done
28223
28224
28225ac_ext=c
28226ac_cpp='$CPP $CPPFLAGS'
28227ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28228ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28229ac_compiler_gnu=$ac_cv_c_compiler_gnu
28230
28231
28232if test "${build}" == "${host}"
28233then
28234    case "${host}" in
28235    x86_64-*)
28236        as_ac_RealFile=`echo "ac_cv_real_file_${prefix}/lib64" | $as_tr_sh`
28237echo "$as_me:$LINENO: checking for ${prefix}/lib64" >&5
28238echo $ECHO_N "checking for ${prefix}/lib64... $ECHO_C" >&6
28239if eval "test \"\${$as_ac_RealFile+set}\" = set"; then
28240  echo $ECHO_N "(cached) $ECHO_C" >&6
28241else
28242  test "$cross_compiling" = yes &&
28243  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28244echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28245   { (exit 1); exit 1; }; }
28246if test -r "${prefix}/lib64"
28247then
28248  if test -h "${prefix}/lib64"
28249  then
28250    eval "$as_ac_RealFile=no"
28251  else
28252    eval "$as_ac_RealFile=yes"
28253  fi
28254else
28255  eval "$as_ac_RealFile=no"
28256fi
28257fi
28258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_RealFile'}'`" >&5
28259echo "${ECHO_T}`eval echo '${'$as_ac_RealFile'}'`" >&6
28260if test `eval echo '${'$as_ac_RealFile'}'` = yes; then
28261  libdir='$(exec_prefix)/lib64'
28262fi
28263
28264        ;;
28265    esac
28266fi
28267
28268
28269echo "$as_me:$LINENO: checking for cos in -lm" >&5
28270echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
28271if test "${ac_cv_lib_m_cos+set}" = set; then
28272  echo $ECHO_N "(cached) $ECHO_C" >&6
28273else
28274  ac_check_lib_save_LIBS=$LIBS
28275LIBS="-lm  $LIBS"
28276cat >conftest.$ac_ext <<_ACEOF
28277/* confdefs.h.  */
28278_ACEOF
28279cat confdefs.h >>conftest.$ac_ext
28280cat >>conftest.$ac_ext <<_ACEOF
28281/* end confdefs.h.  */
28282
28283/* Override any gcc2 internal prototype to avoid an error.  */
28284#ifdef __cplusplus
28285extern "C"
28286#endif
28287/* We use char because int might match the return type of a gcc2
28288   builtin and then its argument prototype would still apply.  */
28289char cos ();
28290int
28291main ()
28292{
28293cos ();
28294  ;
28295  return 0;
28296}
28297_ACEOF
28298rm -f conftest.$ac_objext conftest$ac_exeext
28299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28300  (eval $ac_link) 2>conftest.er1
28301  ac_status=$?
28302  grep -v '^ *+' conftest.er1 >conftest.err
28303  rm -f conftest.er1
28304  cat conftest.err >&5
28305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306  (exit $ac_status); } &&
28307	 { ac_try='test -z "$ac_c_werror_flag"
28308			 || test ! -s conftest.err'
28309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28310  (eval $ac_try) 2>&5
28311  ac_status=$?
28312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28313  (exit $ac_status); }; } &&
28314	 { ac_try='test -s conftest$ac_exeext'
28315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28316  (eval $ac_try) 2>&5
28317  ac_status=$?
28318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28319  (exit $ac_status); }; }; then
28320  ac_cv_lib_m_cos=yes
28321else
28322  echo "$as_me: failed program was:" >&5
28323sed 's/^/| /' conftest.$ac_ext >&5
28324
28325ac_cv_lib_m_cos=no
28326fi
28327rm -f conftest.err conftest.$ac_objext \
28328      conftest$ac_exeext conftest.$ac_ext
28329LIBS=$ac_check_lib_save_LIBS
28330fi
28331echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
28332echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
28333if test $ac_cv_lib_m_cos = yes; then
28334  cat >>confdefs.h <<_ACEOF
28335#define HAVE_LIBM 1
28336_ACEOF
28337
28338  LIBS="-lm $LIBS"
28339
28340fi
28341
28342# Some platforms still seem to lack the basic single precision trig and power related function.
28343echo "$as_me:$LINENO: checking for library containing sinf" >&5
28344echo $ECHO_N "checking for library containing sinf... $ECHO_C" >&6
28345if test "${ac_cv_search_sinf+set}" = set; then
28346  echo $ECHO_N "(cached) $ECHO_C" >&6
28347else
28348  ac_func_search_save_LIBS=$LIBS
28349ac_cv_search_sinf=no
28350cat >conftest.$ac_ext <<_ACEOF
28351/* confdefs.h.  */
28352_ACEOF
28353cat confdefs.h >>conftest.$ac_ext
28354cat >>conftest.$ac_ext <<_ACEOF
28355/* end confdefs.h.  */
28356
28357/* Override any gcc2 internal prototype to avoid an error.  */
28358#ifdef __cplusplus
28359extern "C"
28360#endif
28361/* We use char because int might match the return type of a gcc2
28362   builtin and then its argument prototype would still apply.  */
28363char sinf ();
28364int
28365main ()
28366{
28367sinf ();
28368  ;
28369  return 0;
28370}
28371_ACEOF
28372rm -f conftest.$ac_objext conftest$ac_exeext
28373if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28374  (eval $ac_link) 2>conftest.er1
28375  ac_status=$?
28376  grep -v '^ *+' conftest.er1 >conftest.err
28377  rm -f conftest.er1
28378  cat conftest.err >&5
28379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380  (exit $ac_status); } &&
28381	 { ac_try='test -z "$ac_c_werror_flag"
28382			 || test ! -s conftest.err'
28383  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28384  (eval $ac_try) 2>&5
28385  ac_status=$?
28386  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28387  (exit $ac_status); }; } &&
28388	 { ac_try='test -s conftest$ac_exeext'
28389  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28390  (eval $ac_try) 2>&5
28391  ac_status=$?
28392  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28393  (exit $ac_status); }; }; then
28394  ac_cv_search_sinf="none required"
28395else
28396  echo "$as_me: failed program was:" >&5
28397sed 's/^/| /' conftest.$ac_ext >&5
28398
28399fi
28400rm -f conftest.err conftest.$ac_objext \
28401      conftest$ac_exeext conftest.$ac_ext
28402if test "$ac_cv_search_sinf" = no; then
28403  for ac_lib in m; do
28404    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28405    cat >conftest.$ac_ext <<_ACEOF
28406/* confdefs.h.  */
28407_ACEOF
28408cat confdefs.h >>conftest.$ac_ext
28409cat >>conftest.$ac_ext <<_ACEOF
28410/* end confdefs.h.  */
28411
28412/* Override any gcc2 internal prototype to avoid an error.  */
28413#ifdef __cplusplus
28414extern "C"
28415#endif
28416/* We use char because int might match the return type of a gcc2
28417   builtin and then its argument prototype would still apply.  */
28418char sinf ();
28419int
28420main ()
28421{
28422sinf ();
28423  ;
28424  return 0;
28425}
28426_ACEOF
28427rm -f conftest.$ac_objext conftest$ac_exeext
28428if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28429  (eval $ac_link) 2>conftest.er1
28430  ac_status=$?
28431  grep -v '^ *+' conftest.er1 >conftest.err
28432  rm -f conftest.er1
28433  cat conftest.err >&5
28434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28435  (exit $ac_status); } &&
28436	 { ac_try='test -z "$ac_c_werror_flag"
28437			 || test ! -s conftest.err'
28438  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28439  (eval $ac_try) 2>&5
28440  ac_status=$?
28441  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28442  (exit $ac_status); }; } &&
28443	 { ac_try='test -s conftest$ac_exeext'
28444  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28445  (eval $ac_try) 2>&5
28446  ac_status=$?
28447  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28448  (exit $ac_status); }; }; then
28449  ac_cv_search_sinf="-l$ac_lib"
28450break
28451else
28452  echo "$as_me: failed program was:" >&5
28453sed 's/^/| /' conftest.$ac_ext >&5
28454
28455fi
28456rm -f conftest.err conftest.$ac_objext \
28457      conftest$ac_exeext conftest.$ac_ext
28458  done
28459fi
28460LIBS=$ac_func_search_save_LIBS
28461fi
28462echo "$as_me:$LINENO: result: $ac_cv_search_sinf" >&5
28463echo "${ECHO_T}$ac_cv_search_sinf" >&6
28464if test "$ac_cv_search_sinf" != no; then
28465  test "$ac_cv_search_sinf" = "none required" || LIBS="$ac_cv_search_sinf $LIBS"
28466
28467cat >>confdefs.h <<\_ACEOF
28468#define HAVE_SINF 1
28469_ACEOF
28470
28471fi
28472
28473echo "$as_me:$LINENO: checking for library containing cosf" >&5
28474echo $ECHO_N "checking for library containing cosf... $ECHO_C" >&6
28475if test "${ac_cv_search_cosf+set}" = set; then
28476  echo $ECHO_N "(cached) $ECHO_C" >&6
28477else
28478  ac_func_search_save_LIBS=$LIBS
28479ac_cv_search_cosf=no
28480cat >conftest.$ac_ext <<_ACEOF
28481/* confdefs.h.  */
28482_ACEOF
28483cat confdefs.h >>conftest.$ac_ext
28484cat >>conftest.$ac_ext <<_ACEOF
28485/* end confdefs.h.  */
28486
28487/* Override any gcc2 internal prototype to avoid an error.  */
28488#ifdef __cplusplus
28489extern "C"
28490#endif
28491/* We use char because int might match the return type of a gcc2
28492   builtin and then its argument prototype would still apply.  */
28493char cosf ();
28494int
28495main ()
28496{
28497cosf ();
28498  ;
28499  return 0;
28500}
28501_ACEOF
28502rm -f conftest.$ac_objext conftest$ac_exeext
28503if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28504  (eval $ac_link) 2>conftest.er1
28505  ac_status=$?
28506  grep -v '^ *+' conftest.er1 >conftest.err
28507  rm -f conftest.er1
28508  cat conftest.err >&5
28509  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28510  (exit $ac_status); } &&
28511	 { ac_try='test -z "$ac_c_werror_flag"
28512			 || test ! -s conftest.err'
28513  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28514  (eval $ac_try) 2>&5
28515  ac_status=$?
28516  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517  (exit $ac_status); }; } &&
28518	 { ac_try='test -s conftest$ac_exeext'
28519  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28520  (eval $ac_try) 2>&5
28521  ac_status=$?
28522  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28523  (exit $ac_status); }; }; then
28524  ac_cv_search_cosf="none required"
28525else
28526  echo "$as_me: failed program was:" >&5
28527sed 's/^/| /' conftest.$ac_ext >&5
28528
28529fi
28530rm -f conftest.err conftest.$ac_objext \
28531      conftest$ac_exeext conftest.$ac_ext
28532if test "$ac_cv_search_cosf" = no; then
28533  for ac_lib in m; do
28534    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28535    cat >conftest.$ac_ext <<_ACEOF
28536/* confdefs.h.  */
28537_ACEOF
28538cat confdefs.h >>conftest.$ac_ext
28539cat >>conftest.$ac_ext <<_ACEOF
28540/* end confdefs.h.  */
28541
28542/* Override any gcc2 internal prototype to avoid an error.  */
28543#ifdef __cplusplus
28544extern "C"
28545#endif
28546/* We use char because int might match the return type of a gcc2
28547   builtin and then its argument prototype would still apply.  */
28548char cosf ();
28549int
28550main ()
28551{
28552cosf ();
28553  ;
28554  return 0;
28555}
28556_ACEOF
28557rm -f conftest.$ac_objext conftest$ac_exeext
28558if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28559  (eval $ac_link) 2>conftest.er1
28560  ac_status=$?
28561  grep -v '^ *+' conftest.er1 >conftest.err
28562  rm -f conftest.er1
28563  cat conftest.err >&5
28564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28565  (exit $ac_status); } &&
28566	 { ac_try='test -z "$ac_c_werror_flag"
28567			 || test ! -s conftest.err'
28568  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28569  (eval $ac_try) 2>&5
28570  ac_status=$?
28571  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572  (exit $ac_status); }; } &&
28573	 { ac_try='test -s conftest$ac_exeext'
28574  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28575  (eval $ac_try) 2>&5
28576  ac_status=$?
28577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28578  (exit $ac_status); }; }; then
28579  ac_cv_search_cosf="-l$ac_lib"
28580break
28581else
28582  echo "$as_me: failed program was:" >&5
28583sed 's/^/| /' conftest.$ac_ext >&5
28584
28585fi
28586rm -f conftest.err conftest.$ac_objext \
28587      conftest$ac_exeext conftest.$ac_ext
28588  done
28589fi
28590LIBS=$ac_func_search_save_LIBS
28591fi
28592echo "$as_me:$LINENO: result: $ac_cv_search_cosf" >&5
28593echo "${ECHO_T}$ac_cv_search_cosf" >&6
28594if test "$ac_cv_search_cosf" != no; then
28595  test "$ac_cv_search_cosf" = "none required" || LIBS="$ac_cv_search_cosf $LIBS"
28596
28597cat >>confdefs.h <<\_ACEOF
28598#define HAVE_COSF 1
28599_ACEOF
28600
28601fi
28602
28603echo "$as_me:$LINENO: checking for library containing tanf" >&5
28604echo $ECHO_N "checking for library containing tanf... $ECHO_C" >&6
28605if test "${ac_cv_search_tanf+set}" = set; then
28606  echo $ECHO_N "(cached) $ECHO_C" >&6
28607else
28608  ac_func_search_save_LIBS=$LIBS
28609ac_cv_search_tanf=no
28610cat >conftest.$ac_ext <<_ACEOF
28611/* confdefs.h.  */
28612_ACEOF
28613cat confdefs.h >>conftest.$ac_ext
28614cat >>conftest.$ac_ext <<_ACEOF
28615/* end confdefs.h.  */
28616
28617/* Override any gcc2 internal prototype to avoid an error.  */
28618#ifdef __cplusplus
28619extern "C"
28620#endif
28621/* We use char because int might match the return type of a gcc2
28622   builtin and then its argument prototype would still apply.  */
28623char tanf ();
28624int
28625main ()
28626{
28627tanf ();
28628  ;
28629  return 0;
28630}
28631_ACEOF
28632rm -f conftest.$ac_objext conftest$ac_exeext
28633if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28634  (eval $ac_link) 2>conftest.er1
28635  ac_status=$?
28636  grep -v '^ *+' conftest.er1 >conftest.err
28637  rm -f conftest.er1
28638  cat conftest.err >&5
28639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28640  (exit $ac_status); } &&
28641	 { ac_try='test -z "$ac_c_werror_flag"
28642			 || test ! -s conftest.err'
28643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28644  (eval $ac_try) 2>&5
28645  ac_status=$?
28646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28647  (exit $ac_status); }; } &&
28648	 { ac_try='test -s conftest$ac_exeext'
28649  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28650  (eval $ac_try) 2>&5
28651  ac_status=$?
28652  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28653  (exit $ac_status); }; }; then
28654  ac_cv_search_tanf="none required"
28655else
28656  echo "$as_me: failed program was:" >&5
28657sed 's/^/| /' conftest.$ac_ext >&5
28658
28659fi
28660rm -f conftest.err conftest.$ac_objext \
28661      conftest$ac_exeext conftest.$ac_ext
28662if test "$ac_cv_search_tanf" = no; then
28663  for ac_lib in m; do
28664    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28665    cat >conftest.$ac_ext <<_ACEOF
28666/* confdefs.h.  */
28667_ACEOF
28668cat confdefs.h >>conftest.$ac_ext
28669cat >>conftest.$ac_ext <<_ACEOF
28670/* end confdefs.h.  */
28671
28672/* Override any gcc2 internal prototype to avoid an error.  */
28673#ifdef __cplusplus
28674extern "C"
28675#endif
28676/* We use char because int might match the return type of a gcc2
28677   builtin and then its argument prototype would still apply.  */
28678char tanf ();
28679int
28680main ()
28681{
28682tanf ();
28683  ;
28684  return 0;
28685}
28686_ACEOF
28687rm -f conftest.$ac_objext conftest$ac_exeext
28688if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28689  (eval $ac_link) 2>conftest.er1
28690  ac_status=$?
28691  grep -v '^ *+' conftest.er1 >conftest.err
28692  rm -f conftest.er1
28693  cat conftest.err >&5
28694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695  (exit $ac_status); } &&
28696	 { ac_try='test -z "$ac_c_werror_flag"
28697			 || test ! -s conftest.err'
28698  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28699  (eval $ac_try) 2>&5
28700  ac_status=$?
28701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28702  (exit $ac_status); }; } &&
28703	 { ac_try='test -s conftest$ac_exeext'
28704  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28705  (eval $ac_try) 2>&5
28706  ac_status=$?
28707  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28708  (exit $ac_status); }; }; then
28709  ac_cv_search_tanf="-l$ac_lib"
28710break
28711else
28712  echo "$as_me: failed program was:" >&5
28713sed 's/^/| /' conftest.$ac_ext >&5
28714
28715fi
28716rm -f conftest.err conftest.$ac_objext \
28717      conftest$ac_exeext conftest.$ac_ext
28718  done
28719fi
28720LIBS=$ac_func_search_save_LIBS
28721fi
28722echo "$as_me:$LINENO: result: $ac_cv_search_tanf" >&5
28723echo "${ECHO_T}$ac_cv_search_tanf" >&6
28724if test "$ac_cv_search_tanf" != no; then
28725  test "$ac_cv_search_tanf" = "none required" || LIBS="$ac_cv_search_tanf $LIBS"
28726
28727cat >>confdefs.h <<\_ACEOF
28728#define HAVE_TANF 1
28729_ACEOF
28730
28731fi
28732
28733echo "$as_me:$LINENO: checking for library containing asinf" >&5
28734echo $ECHO_N "checking for library containing asinf... $ECHO_C" >&6
28735if test "${ac_cv_search_asinf+set}" = set; then
28736  echo $ECHO_N "(cached) $ECHO_C" >&6
28737else
28738  ac_func_search_save_LIBS=$LIBS
28739ac_cv_search_asinf=no
28740cat >conftest.$ac_ext <<_ACEOF
28741/* confdefs.h.  */
28742_ACEOF
28743cat confdefs.h >>conftest.$ac_ext
28744cat >>conftest.$ac_ext <<_ACEOF
28745/* end confdefs.h.  */
28746
28747/* Override any gcc2 internal prototype to avoid an error.  */
28748#ifdef __cplusplus
28749extern "C"
28750#endif
28751/* We use char because int might match the return type of a gcc2
28752   builtin and then its argument prototype would still apply.  */
28753char asinf ();
28754int
28755main ()
28756{
28757asinf ();
28758  ;
28759  return 0;
28760}
28761_ACEOF
28762rm -f conftest.$ac_objext conftest$ac_exeext
28763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28764  (eval $ac_link) 2>conftest.er1
28765  ac_status=$?
28766  grep -v '^ *+' conftest.er1 >conftest.err
28767  rm -f conftest.er1
28768  cat conftest.err >&5
28769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28770  (exit $ac_status); } &&
28771	 { ac_try='test -z "$ac_c_werror_flag"
28772			 || test ! -s conftest.err'
28773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28774  (eval $ac_try) 2>&5
28775  ac_status=$?
28776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28777  (exit $ac_status); }; } &&
28778	 { ac_try='test -s conftest$ac_exeext'
28779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28780  (eval $ac_try) 2>&5
28781  ac_status=$?
28782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28783  (exit $ac_status); }; }; then
28784  ac_cv_search_asinf="none required"
28785else
28786  echo "$as_me: failed program was:" >&5
28787sed 's/^/| /' conftest.$ac_ext >&5
28788
28789fi
28790rm -f conftest.err conftest.$ac_objext \
28791      conftest$ac_exeext conftest.$ac_ext
28792if test "$ac_cv_search_asinf" = no; then
28793  for ac_lib in m; do
28794    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28795    cat >conftest.$ac_ext <<_ACEOF
28796/* confdefs.h.  */
28797_ACEOF
28798cat confdefs.h >>conftest.$ac_ext
28799cat >>conftest.$ac_ext <<_ACEOF
28800/* end confdefs.h.  */
28801
28802/* Override any gcc2 internal prototype to avoid an error.  */
28803#ifdef __cplusplus
28804extern "C"
28805#endif
28806/* We use char because int might match the return type of a gcc2
28807   builtin and then its argument prototype would still apply.  */
28808char asinf ();
28809int
28810main ()
28811{
28812asinf ();
28813  ;
28814  return 0;
28815}
28816_ACEOF
28817rm -f conftest.$ac_objext conftest$ac_exeext
28818if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28819  (eval $ac_link) 2>conftest.er1
28820  ac_status=$?
28821  grep -v '^ *+' conftest.er1 >conftest.err
28822  rm -f conftest.er1
28823  cat conftest.err >&5
28824  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825  (exit $ac_status); } &&
28826	 { ac_try='test -z "$ac_c_werror_flag"
28827			 || test ! -s conftest.err'
28828  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28829  (eval $ac_try) 2>&5
28830  ac_status=$?
28831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28832  (exit $ac_status); }; } &&
28833	 { ac_try='test -s conftest$ac_exeext'
28834  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28835  (eval $ac_try) 2>&5
28836  ac_status=$?
28837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28838  (exit $ac_status); }; }; then
28839  ac_cv_search_asinf="-l$ac_lib"
28840break
28841else
28842  echo "$as_me: failed program was:" >&5
28843sed 's/^/| /' conftest.$ac_ext >&5
28844
28845fi
28846rm -f conftest.err conftest.$ac_objext \
28847      conftest$ac_exeext conftest.$ac_ext
28848  done
28849fi
28850LIBS=$ac_func_search_save_LIBS
28851fi
28852echo "$as_me:$LINENO: result: $ac_cv_search_asinf" >&5
28853echo "${ECHO_T}$ac_cv_search_asinf" >&6
28854if test "$ac_cv_search_asinf" != no; then
28855  test "$ac_cv_search_asinf" = "none required" || LIBS="$ac_cv_search_asinf $LIBS"
28856
28857cat >>confdefs.h <<\_ACEOF
28858#define HAVE_ASINF 1
28859_ACEOF
28860
28861fi
28862
28863echo "$as_me:$LINENO: checking for library containing acosf" >&5
28864echo $ECHO_N "checking for library containing acosf... $ECHO_C" >&6
28865if test "${ac_cv_search_acosf+set}" = set; then
28866  echo $ECHO_N "(cached) $ECHO_C" >&6
28867else
28868  ac_func_search_save_LIBS=$LIBS
28869ac_cv_search_acosf=no
28870cat >conftest.$ac_ext <<_ACEOF
28871/* confdefs.h.  */
28872_ACEOF
28873cat confdefs.h >>conftest.$ac_ext
28874cat >>conftest.$ac_ext <<_ACEOF
28875/* end confdefs.h.  */
28876
28877/* Override any gcc2 internal prototype to avoid an error.  */
28878#ifdef __cplusplus
28879extern "C"
28880#endif
28881/* We use char because int might match the return type of a gcc2
28882   builtin and then its argument prototype would still apply.  */
28883char acosf ();
28884int
28885main ()
28886{
28887acosf ();
28888  ;
28889  return 0;
28890}
28891_ACEOF
28892rm -f conftest.$ac_objext conftest$ac_exeext
28893if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28894  (eval $ac_link) 2>conftest.er1
28895  ac_status=$?
28896  grep -v '^ *+' conftest.er1 >conftest.err
28897  rm -f conftest.er1
28898  cat conftest.err >&5
28899  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900  (exit $ac_status); } &&
28901	 { ac_try='test -z "$ac_c_werror_flag"
28902			 || test ! -s conftest.err'
28903  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28904  (eval $ac_try) 2>&5
28905  ac_status=$?
28906  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28907  (exit $ac_status); }; } &&
28908	 { ac_try='test -s conftest$ac_exeext'
28909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28910  (eval $ac_try) 2>&5
28911  ac_status=$?
28912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913  (exit $ac_status); }; }; then
28914  ac_cv_search_acosf="none required"
28915else
28916  echo "$as_me: failed program was:" >&5
28917sed 's/^/| /' conftest.$ac_ext >&5
28918
28919fi
28920rm -f conftest.err conftest.$ac_objext \
28921      conftest$ac_exeext conftest.$ac_ext
28922if test "$ac_cv_search_acosf" = no; then
28923  for ac_lib in m; do
28924    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28925    cat >conftest.$ac_ext <<_ACEOF
28926/* confdefs.h.  */
28927_ACEOF
28928cat confdefs.h >>conftest.$ac_ext
28929cat >>conftest.$ac_ext <<_ACEOF
28930/* end confdefs.h.  */
28931
28932/* Override any gcc2 internal prototype to avoid an error.  */
28933#ifdef __cplusplus
28934extern "C"
28935#endif
28936/* We use char because int might match the return type of a gcc2
28937   builtin and then its argument prototype would still apply.  */
28938char acosf ();
28939int
28940main ()
28941{
28942acosf ();
28943  ;
28944  return 0;
28945}
28946_ACEOF
28947rm -f conftest.$ac_objext conftest$ac_exeext
28948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28949  (eval $ac_link) 2>conftest.er1
28950  ac_status=$?
28951  grep -v '^ *+' conftest.er1 >conftest.err
28952  rm -f conftest.er1
28953  cat conftest.err >&5
28954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28955  (exit $ac_status); } &&
28956	 { ac_try='test -z "$ac_c_werror_flag"
28957			 || test ! -s conftest.err'
28958  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28959  (eval $ac_try) 2>&5
28960  ac_status=$?
28961  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28962  (exit $ac_status); }; } &&
28963	 { ac_try='test -s conftest$ac_exeext'
28964  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28965  (eval $ac_try) 2>&5
28966  ac_status=$?
28967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
28968  (exit $ac_status); }; }; then
28969  ac_cv_search_acosf="-l$ac_lib"
28970break
28971else
28972  echo "$as_me: failed program was:" >&5
28973sed 's/^/| /' conftest.$ac_ext >&5
28974
28975fi
28976rm -f conftest.err conftest.$ac_objext \
28977      conftest$ac_exeext conftest.$ac_ext
28978  done
28979fi
28980LIBS=$ac_func_search_save_LIBS
28981fi
28982echo "$as_me:$LINENO: result: $ac_cv_search_acosf" >&5
28983echo "${ECHO_T}$ac_cv_search_acosf" >&6
28984if test "$ac_cv_search_acosf" != no; then
28985  test "$ac_cv_search_acosf" = "none required" || LIBS="$ac_cv_search_acosf $LIBS"
28986
28987cat >>confdefs.h <<\_ACEOF
28988#define HAVE_ACOSF 1
28989_ACEOF
28990
28991fi
28992
28993echo "$as_me:$LINENO: checking for library containing atanf" >&5
28994echo $ECHO_N "checking for library containing atanf... $ECHO_C" >&6
28995if test "${ac_cv_search_atanf+set}" = set; then
28996  echo $ECHO_N "(cached) $ECHO_C" >&6
28997else
28998  ac_func_search_save_LIBS=$LIBS
28999ac_cv_search_atanf=no
29000cat >conftest.$ac_ext <<_ACEOF
29001/* confdefs.h.  */
29002_ACEOF
29003cat confdefs.h >>conftest.$ac_ext
29004cat >>conftest.$ac_ext <<_ACEOF
29005/* end confdefs.h.  */
29006
29007/* Override any gcc2 internal prototype to avoid an error.  */
29008#ifdef __cplusplus
29009extern "C"
29010#endif
29011/* We use char because int might match the return type of a gcc2
29012   builtin and then its argument prototype would still apply.  */
29013char atanf ();
29014int
29015main ()
29016{
29017atanf ();
29018  ;
29019  return 0;
29020}
29021_ACEOF
29022rm -f conftest.$ac_objext conftest$ac_exeext
29023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29024  (eval $ac_link) 2>conftest.er1
29025  ac_status=$?
29026  grep -v '^ *+' conftest.er1 >conftest.err
29027  rm -f conftest.er1
29028  cat conftest.err >&5
29029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030  (exit $ac_status); } &&
29031	 { ac_try='test -z "$ac_c_werror_flag"
29032			 || test ! -s conftest.err'
29033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034  (eval $ac_try) 2>&5
29035  ac_status=$?
29036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037  (exit $ac_status); }; } &&
29038	 { ac_try='test -s conftest$ac_exeext'
29039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040  (eval $ac_try) 2>&5
29041  ac_status=$?
29042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043  (exit $ac_status); }; }; then
29044  ac_cv_search_atanf="none required"
29045else
29046  echo "$as_me: failed program was:" >&5
29047sed 's/^/| /' conftest.$ac_ext >&5
29048
29049fi
29050rm -f conftest.err conftest.$ac_objext \
29051      conftest$ac_exeext conftest.$ac_ext
29052if test "$ac_cv_search_atanf" = no; then
29053  for ac_lib in m; do
29054    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29055    cat >conftest.$ac_ext <<_ACEOF
29056/* confdefs.h.  */
29057_ACEOF
29058cat confdefs.h >>conftest.$ac_ext
29059cat >>conftest.$ac_ext <<_ACEOF
29060/* end confdefs.h.  */
29061
29062/* Override any gcc2 internal prototype to avoid an error.  */
29063#ifdef __cplusplus
29064extern "C"
29065#endif
29066/* We use char because int might match the return type of a gcc2
29067   builtin and then its argument prototype would still apply.  */
29068char atanf ();
29069int
29070main ()
29071{
29072atanf ();
29073  ;
29074  return 0;
29075}
29076_ACEOF
29077rm -f conftest.$ac_objext conftest$ac_exeext
29078if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29079  (eval $ac_link) 2>conftest.er1
29080  ac_status=$?
29081  grep -v '^ *+' conftest.er1 >conftest.err
29082  rm -f conftest.er1
29083  cat conftest.err >&5
29084  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29085  (exit $ac_status); } &&
29086	 { ac_try='test -z "$ac_c_werror_flag"
29087			 || test ! -s conftest.err'
29088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29089  (eval $ac_try) 2>&5
29090  ac_status=$?
29091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29092  (exit $ac_status); }; } &&
29093	 { ac_try='test -s conftest$ac_exeext'
29094  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29095  (eval $ac_try) 2>&5
29096  ac_status=$?
29097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29098  (exit $ac_status); }; }; then
29099  ac_cv_search_atanf="-l$ac_lib"
29100break
29101else
29102  echo "$as_me: failed program was:" >&5
29103sed 's/^/| /' conftest.$ac_ext >&5
29104
29105fi
29106rm -f conftest.err conftest.$ac_objext \
29107      conftest$ac_exeext conftest.$ac_ext
29108  done
29109fi
29110LIBS=$ac_func_search_save_LIBS
29111fi
29112echo "$as_me:$LINENO: result: $ac_cv_search_atanf" >&5
29113echo "${ECHO_T}$ac_cv_search_atanf" >&6
29114if test "$ac_cv_search_atanf" != no; then
29115  test "$ac_cv_search_atanf" = "none required" || LIBS="$ac_cv_search_atanf $LIBS"
29116
29117cat >>confdefs.h <<\_ACEOF
29118#define HAVE_ATANF 1
29119_ACEOF
29120
29121fi
29122
29123echo "$as_me:$LINENO: checking for library containing atan2f" >&5
29124echo $ECHO_N "checking for library containing atan2f... $ECHO_C" >&6
29125if test "${ac_cv_search_atan2f+set}" = set; then
29126  echo $ECHO_N "(cached) $ECHO_C" >&6
29127else
29128  ac_func_search_save_LIBS=$LIBS
29129ac_cv_search_atan2f=no
29130cat >conftest.$ac_ext <<_ACEOF
29131/* confdefs.h.  */
29132_ACEOF
29133cat confdefs.h >>conftest.$ac_ext
29134cat >>conftest.$ac_ext <<_ACEOF
29135/* end confdefs.h.  */
29136
29137/* Override any gcc2 internal prototype to avoid an error.  */
29138#ifdef __cplusplus
29139extern "C"
29140#endif
29141/* We use char because int might match the return type of a gcc2
29142   builtin and then its argument prototype would still apply.  */
29143char atan2f ();
29144int
29145main ()
29146{
29147atan2f ();
29148  ;
29149  return 0;
29150}
29151_ACEOF
29152rm -f conftest.$ac_objext conftest$ac_exeext
29153if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29154  (eval $ac_link) 2>conftest.er1
29155  ac_status=$?
29156  grep -v '^ *+' conftest.er1 >conftest.err
29157  rm -f conftest.er1
29158  cat conftest.err >&5
29159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29160  (exit $ac_status); } &&
29161	 { ac_try='test -z "$ac_c_werror_flag"
29162			 || test ! -s conftest.err'
29163  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29164  (eval $ac_try) 2>&5
29165  ac_status=$?
29166  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167  (exit $ac_status); }; } &&
29168	 { ac_try='test -s conftest$ac_exeext'
29169  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29170  (eval $ac_try) 2>&5
29171  ac_status=$?
29172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29173  (exit $ac_status); }; }; then
29174  ac_cv_search_atan2f="none required"
29175else
29176  echo "$as_me: failed program was:" >&5
29177sed 's/^/| /' conftest.$ac_ext >&5
29178
29179fi
29180rm -f conftest.err conftest.$ac_objext \
29181      conftest$ac_exeext conftest.$ac_ext
29182if test "$ac_cv_search_atan2f" = no; then
29183  for ac_lib in m; do
29184    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29185    cat >conftest.$ac_ext <<_ACEOF
29186/* confdefs.h.  */
29187_ACEOF
29188cat confdefs.h >>conftest.$ac_ext
29189cat >>conftest.$ac_ext <<_ACEOF
29190/* end confdefs.h.  */
29191
29192/* Override any gcc2 internal prototype to avoid an error.  */
29193#ifdef __cplusplus
29194extern "C"
29195#endif
29196/* We use char because int might match the return type of a gcc2
29197   builtin and then its argument prototype would still apply.  */
29198char atan2f ();
29199int
29200main ()
29201{
29202atan2f ();
29203  ;
29204  return 0;
29205}
29206_ACEOF
29207rm -f conftest.$ac_objext conftest$ac_exeext
29208if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29209  (eval $ac_link) 2>conftest.er1
29210  ac_status=$?
29211  grep -v '^ *+' conftest.er1 >conftest.err
29212  rm -f conftest.er1
29213  cat conftest.err >&5
29214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29215  (exit $ac_status); } &&
29216	 { ac_try='test -z "$ac_c_werror_flag"
29217			 || test ! -s conftest.err'
29218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29219  (eval $ac_try) 2>&5
29220  ac_status=$?
29221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222  (exit $ac_status); }; } &&
29223	 { ac_try='test -s conftest$ac_exeext'
29224  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29225  (eval $ac_try) 2>&5
29226  ac_status=$?
29227  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29228  (exit $ac_status); }; }; then
29229  ac_cv_search_atan2f="-l$ac_lib"
29230break
29231else
29232  echo "$as_me: failed program was:" >&5
29233sed 's/^/| /' conftest.$ac_ext >&5
29234
29235fi
29236rm -f conftest.err conftest.$ac_objext \
29237      conftest$ac_exeext conftest.$ac_ext
29238  done
29239fi
29240LIBS=$ac_func_search_save_LIBS
29241fi
29242echo "$as_me:$LINENO: result: $ac_cv_search_atan2f" >&5
29243echo "${ECHO_T}$ac_cv_search_atan2f" >&6
29244if test "$ac_cv_search_atan2f" != no; then
29245  test "$ac_cv_search_atan2f" = "none required" || LIBS="$ac_cv_search_atan2f $LIBS"
29246
29247cat >>confdefs.h <<\_ACEOF
29248#define HAVE_ATAN2F 1
29249_ACEOF
29250
29251fi
29252
29253echo "$as_me:$LINENO: checking for library containing ceilf" >&5
29254echo $ECHO_N "checking for library containing ceilf... $ECHO_C" >&6
29255if test "${ac_cv_search_ceilf+set}" = set; then
29256  echo $ECHO_N "(cached) $ECHO_C" >&6
29257else
29258  ac_func_search_save_LIBS=$LIBS
29259ac_cv_search_ceilf=no
29260cat >conftest.$ac_ext <<_ACEOF
29261/* confdefs.h.  */
29262_ACEOF
29263cat confdefs.h >>conftest.$ac_ext
29264cat >>conftest.$ac_ext <<_ACEOF
29265/* end confdefs.h.  */
29266
29267/* Override any gcc2 internal prototype to avoid an error.  */
29268#ifdef __cplusplus
29269extern "C"
29270#endif
29271/* We use char because int might match the return type of a gcc2
29272   builtin and then its argument prototype would still apply.  */
29273char ceilf ();
29274int
29275main ()
29276{
29277ceilf ();
29278  ;
29279  return 0;
29280}
29281_ACEOF
29282rm -f conftest.$ac_objext conftest$ac_exeext
29283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29284  (eval $ac_link) 2>conftest.er1
29285  ac_status=$?
29286  grep -v '^ *+' conftest.er1 >conftest.err
29287  rm -f conftest.er1
29288  cat conftest.err >&5
29289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29290  (exit $ac_status); } &&
29291	 { ac_try='test -z "$ac_c_werror_flag"
29292			 || test ! -s conftest.err'
29293  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29294  (eval $ac_try) 2>&5
29295  ac_status=$?
29296  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29297  (exit $ac_status); }; } &&
29298	 { ac_try='test -s conftest$ac_exeext'
29299  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29300  (eval $ac_try) 2>&5
29301  ac_status=$?
29302  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303  (exit $ac_status); }; }; then
29304  ac_cv_search_ceilf="none required"
29305else
29306  echo "$as_me: failed program was:" >&5
29307sed 's/^/| /' conftest.$ac_ext >&5
29308
29309fi
29310rm -f conftest.err conftest.$ac_objext \
29311      conftest$ac_exeext conftest.$ac_ext
29312if test "$ac_cv_search_ceilf" = no; then
29313  for ac_lib in m; do
29314    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29315    cat >conftest.$ac_ext <<_ACEOF
29316/* confdefs.h.  */
29317_ACEOF
29318cat confdefs.h >>conftest.$ac_ext
29319cat >>conftest.$ac_ext <<_ACEOF
29320/* end confdefs.h.  */
29321
29322/* Override any gcc2 internal prototype to avoid an error.  */
29323#ifdef __cplusplus
29324extern "C"
29325#endif
29326/* We use char because int might match the return type of a gcc2
29327   builtin and then its argument prototype would still apply.  */
29328char ceilf ();
29329int
29330main ()
29331{
29332ceilf ();
29333  ;
29334  return 0;
29335}
29336_ACEOF
29337rm -f conftest.$ac_objext conftest$ac_exeext
29338if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29339  (eval $ac_link) 2>conftest.er1
29340  ac_status=$?
29341  grep -v '^ *+' conftest.er1 >conftest.err
29342  rm -f conftest.er1
29343  cat conftest.err >&5
29344  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345  (exit $ac_status); } &&
29346	 { ac_try='test -z "$ac_c_werror_flag"
29347			 || test ! -s conftest.err'
29348  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29349  (eval $ac_try) 2>&5
29350  ac_status=$?
29351  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29352  (exit $ac_status); }; } &&
29353	 { ac_try='test -s conftest$ac_exeext'
29354  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29355  (eval $ac_try) 2>&5
29356  ac_status=$?
29357  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29358  (exit $ac_status); }; }; then
29359  ac_cv_search_ceilf="-l$ac_lib"
29360break
29361else
29362  echo "$as_me: failed program was:" >&5
29363sed 's/^/| /' conftest.$ac_ext >&5
29364
29365fi
29366rm -f conftest.err conftest.$ac_objext \
29367      conftest$ac_exeext conftest.$ac_ext
29368  done
29369fi
29370LIBS=$ac_func_search_save_LIBS
29371fi
29372echo "$as_me:$LINENO: result: $ac_cv_search_ceilf" >&5
29373echo "${ECHO_T}$ac_cv_search_ceilf" >&6
29374if test "$ac_cv_search_ceilf" != no; then
29375  test "$ac_cv_search_ceilf" = "none required" || LIBS="$ac_cv_search_ceilf $LIBS"
29376
29377cat >>confdefs.h <<\_ACEOF
29378#define HAVE_CEILF 1
29379_ACEOF
29380
29381fi
29382
29383echo "$as_me:$LINENO: checking for library containing floorf" >&5
29384echo $ECHO_N "checking for library containing floorf... $ECHO_C" >&6
29385if test "${ac_cv_search_floorf+set}" = set; then
29386  echo $ECHO_N "(cached) $ECHO_C" >&6
29387else
29388  ac_func_search_save_LIBS=$LIBS
29389ac_cv_search_floorf=no
29390cat >conftest.$ac_ext <<_ACEOF
29391/* confdefs.h.  */
29392_ACEOF
29393cat confdefs.h >>conftest.$ac_ext
29394cat >>conftest.$ac_ext <<_ACEOF
29395/* end confdefs.h.  */
29396
29397/* Override any gcc2 internal prototype to avoid an error.  */
29398#ifdef __cplusplus
29399extern "C"
29400#endif
29401/* We use char because int might match the return type of a gcc2
29402   builtin and then its argument prototype would still apply.  */
29403char floorf ();
29404int
29405main ()
29406{
29407floorf ();
29408  ;
29409  return 0;
29410}
29411_ACEOF
29412rm -f conftest.$ac_objext conftest$ac_exeext
29413if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29414  (eval $ac_link) 2>conftest.er1
29415  ac_status=$?
29416  grep -v '^ *+' conftest.er1 >conftest.err
29417  rm -f conftest.er1
29418  cat conftest.err >&5
29419  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420  (exit $ac_status); } &&
29421	 { ac_try='test -z "$ac_c_werror_flag"
29422			 || test ! -s conftest.err'
29423  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29424  (eval $ac_try) 2>&5
29425  ac_status=$?
29426  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29427  (exit $ac_status); }; } &&
29428	 { ac_try='test -s conftest$ac_exeext'
29429  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29430  (eval $ac_try) 2>&5
29431  ac_status=$?
29432  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29433  (exit $ac_status); }; }; then
29434  ac_cv_search_floorf="none required"
29435else
29436  echo "$as_me: failed program was:" >&5
29437sed 's/^/| /' conftest.$ac_ext >&5
29438
29439fi
29440rm -f conftest.err conftest.$ac_objext \
29441      conftest$ac_exeext conftest.$ac_ext
29442if test "$ac_cv_search_floorf" = no; then
29443  for ac_lib in m; do
29444    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29445    cat >conftest.$ac_ext <<_ACEOF
29446/* confdefs.h.  */
29447_ACEOF
29448cat confdefs.h >>conftest.$ac_ext
29449cat >>conftest.$ac_ext <<_ACEOF
29450/* end confdefs.h.  */
29451
29452/* Override any gcc2 internal prototype to avoid an error.  */
29453#ifdef __cplusplus
29454extern "C"
29455#endif
29456/* We use char because int might match the return type of a gcc2
29457   builtin and then its argument prototype would still apply.  */
29458char floorf ();
29459int
29460main ()
29461{
29462floorf ();
29463  ;
29464  return 0;
29465}
29466_ACEOF
29467rm -f conftest.$ac_objext conftest$ac_exeext
29468if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29469  (eval $ac_link) 2>conftest.er1
29470  ac_status=$?
29471  grep -v '^ *+' conftest.er1 >conftest.err
29472  rm -f conftest.er1
29473  cat conftest.err >&5
29474  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29475  (exit $ac_status); } &&
29476	 { ac_try='test -z "$ac_c_werror_flag"
29477			 || test ! -s conftest.err'
29478  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29479  (eval $ac_try) 2>&5
29480  ac_status=$?
29481  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29482  (exit $ac_status); }; } &&
29483	 { ac_try='test -s conftest$ac_exeext'
29484  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29485  (eval $ac_try) 2>&5
29486  ac_status=$?
29487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29488  (exit $ac_status); }; }; then
29489  ac_cv_search_floorf="-l$ac_lib"
29490break
29491else
29492  echo "$as_me: failed program was:" >&5
29493sed 's/^/| /' conftest.$ac_ext >&5
29494
29495fi
29496rm -f conftest.err conftest.$ac_objext \
29497      conftest$ac_exeext conftest.$ac_ext
29498  done
29499fi
29500LIBS=$ac_func_search_save_LIBS
29501fi
29502echo "$as_me:$LINENO: result: $ac_cv_search_floorf" >&5
29503echo "${ECHO_T}$ac_cv_search_floorf" >&6
29504if test "$ac_cv_search_floorf" != no; then
29505  test "$ac_cv_search_floorf" = "none required" || LIBS="$ac_cv_search_floorf $LIBS"
29506
29507cat >>confdefs.h <<\_ACEOF
29508#define HAVE_FLOORF 1
29509_ACEOF
29510
29511fi
29512
29513echo "$as_me:$LINENO: checking for library containing powf" >&5
29514echo $ECHO_N "checking for library containing powf... $ECHO_C" >&6
29515if test "${ac_cv_search_powf+set}" = set; then
29516  echo $ECHO_N "(cached) $ECHO_C" >&6
29517else
29518  ac_func_search_save_LIBS=$LIBS
29519ac_cv_search_powf=no
29520cat >conftest.$ac_ext <<_ACEOF
29521/* confdefs.h.  */
29522_ACEOF
29523cat confdefs.h >>conftest.$ac_ext
29524cat >>conftest.$ac_ext <<_ACEOF
29525/* end confdefs.h.  */
29526
29527/* Override any gcc2 internal prototype to avoid an error.  */
29528#ifdef __cplusplus
29529extern "C"
29530#endif
29531/* We use char because int might match the return type of a gcc2
29532   builtin and then its argument prototype would still apply.  */
29533char powf ();
29534int
29535main ()
29536{
29537powf ();
29538  ;
29539  return 0;
29540}
29541_ACEOF
29542rm -f conftest.$ac_objext conftest$ac_exeext
29543if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29544  (eval $ac_link) 2>conftest.er1
29545  ac_status=$?
29546  grep -v '^ *+' conftest.er1 >conftest.err
29547  rm -f conftest.er1
29548  cat conftest.err >&5
29549  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29550  (exit $ac_status); } &&
29551	 { ac_try='test -z "$ac_c_werror_flag"
29552			 || test ! -s conftest.err'
29553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29554  (eval $ac_try) 2>&5
29555  ac_status=$?
29556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29557  (exit $ac_status); }; } &&
29558	 { ac_try='test -s conftest$ac_exeext'
29559  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29560  (eval $ac_try) 2>&5
29561  ac_status=$?
29562  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29563  (exit $ac_status); }; }; then
29564  ac_cv_search_powf="none required"
29565else
29566  echo "$as_me: failed program was:" >&5
29567sed 's/^/| /' conftest.$ac_ext >&5
29568
29569fi
29570rm -f conftest.err conftest.$ac_objext \
29571      conftest$ac_exeext conftest.$ac_ext
29572if test "$ac_cv_search_powf" = no; then
29573  for ac_lib in m; do
29574    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29575    cat >conftest.$ac_ext <<_ACEOF
29576/* confdefs.h.  */
29577_ACEOF
29578cat confdefs.h >>conftest.$ac_ext
29579cat >>conftest.$ac_ext <<_ACEOF
29580/* end confdefs.h.  */
29581
29582/* Override any gcc2 internal prototype to avoid an error.  */
29583#ifdef __cplusplus
29584extern "C"
29585#endif
29586/* We use char because int might match the return type of a gcc2
29587   builtin and then its argument prototype would still apply.  */
29588char powf ();
29589int
29590main ()
29591{
29592powf ();
29593  ;
29594  return 0;
29595}
29596_ACEOF
29597rm -f conftest.$ac_objext conftest$ac_exeext
29598if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29599  (eval $ac_link) 2>conftest.er1
29600  ac_status=$?
29601  grep -v '^ *+' conftest.er1 >conftest.err
29602  rm -f conftest.er1
29603  cat conftest.err >&5
29604  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29605  (exit $ac_status); } &&
29606	 { ac_try='test -z "$ac_c_werror_flag"
29607			 || test ! -s conftest.err'
29608  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609  (eval $ac_try) 2>&5
29610  ac_status=$?
29611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612  (exit $ac_status); }; } &&
29613	 { ac_try='test -s conftest$ac_exeext'
29614  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29615  (eval $ac_try) 2>&5
29616  ac_status=$?
29617  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29618  (exit $ac_status); }; }; then
29619  ac_cv_search_powf="-l$ac_lib"
29620break
29621else
29622  echo "$as_me: failed program was:" >&5
29623sed 's/^/| /' conftest.$ac_ext >&5
29624
29625fi
29626rm -f conftest.err conftest.$ac_objext \
29627      conftest$ac_exeext conftest.$ac_ext
29628  done
29629fi
29630LIBS=$ac_func_search_save_LIBS
29631fi
29632echo "$as_me:$LINENO: result: $ac_cv_search_powf" >&5
29633echo "${ECHO_T}$ac_cv_search_powf" >&6
29634if test "$ac_cv_search_powf" != no; then
29635  test "$ac_cv_search_powf" = "none required" || LIBS="$ac_cv_search_powf $LIBS"
29636
29637cat >>confdefs.h <<\_ACEOF
29638#define HAVE_POWF 1
29639_ACEOF
29640
29641fi
29642
29643echo "$as_me:$LINENO: checking for library containing expf" >&5
29644echo $ECHO_N "checking for library containing expf... $ECHO_C" >&6
29645if test "${ac_cv_search_expf+set}" = set; then
29646  echo $ECHO_N "(cached) $ECHO_C" >&6
29647else
29648  ac_func_search_save_LIBS=$LIBS
29649ac_cv_search_expf=no
29650cat >conftest.$ac_ext <<_ACEOF
29651/* confdefs.h.  */
29652_ACEOF
29653cat confdefs.h >>conftest.$ac_ext
29654cat >>conftest.$ac_ext <<_ACEOF
29655/* end confdefs.h.  */
29656
29657/* Override any gcc2 internal prototype to avoid an error.  */
29658#ifdef __cplusplus
29659extern "C"
29660#endif
29661/* We use char because int might match the return type of a gcc2
29662   builtin and then its argument prototype would still apply.  */
29663char expf ();
29664int
29665main ()
29666{
29667expf ();
29668  ;
29669  return 0;
29670}
29671_ACEOF
29672rm -f conftest.$ac_objext conftest$ac_exeext
29673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29674  (eval $ac_link) 2>conftest.er1
29675  ac_status=$?
29676  grep -v '^ *+' conftest.er1 >conftest.err
29677  rm -f conftest.er1
29678  cat conftest.err >&5
29679  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29680  (exit $ac_status); } &&
29681	 { ac_try='test -z "$ac_c_werror_flag"
29682			 || test ! -s conftest.err'
29683  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29684  (eval $ac_try) 2>&5
29685  ac_status=$?
29686  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29687  (exit $ac_status); }; } &&
29688	 { ac_try='test -s conftest$ac_exeext'
29689  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29690  (eval $ac_try) 2>&5
29691  ac_status=$?
29692  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29693  (exit $ac_status); }; }; then
29694  ac_cv_search_expf="none required"
29695else
29696  echo "$as_me: failed program was:" >&5
29697sed 's/^/| /' conftest.$ac_ext >&5
29698
29699fi
29700rm -f conftest.err conftest.$ac_objext \
29701      conftest$ac_exeext conftest.$ac_ext
29702if test "$ac_cv_search_expf" = no; then
29703  for ac_lib in m; do
29704    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29705    cat >conftest.$ac_ext <<_ACEOF
29706/* confdefs.h.  */
29707_ACEOF
29708cat confdefs.h >>conftest.$ac_ext
29709cat >>conftest.$ac_ext <<_ACEOF
29710/* end confdefs.h.  */
29711
29712/* Override any gcc2 internal prototype to avoid an error.  */
29713#ifdef __cplusplus
29714extern "C"
29715#endif
29716/* We use char because int might match the return type of a gcc2
29717   builtin and then its argument prototype would still apply.  */
29718char expf ();
29719int
29720main ()
29721{
29722expf ();
29723  ;
29724  return 0;
29725}
29726_ACEOF
29727rm -f conftest.$ac_objext conftest$ac_exeext
29728if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29729  (eval $ac_link) 2>conftest.er1
29730  ac_status=$?
29731  grep -v '^ *+' conftest.er1 >conftest.err
29732  rm -f conftest.er1
29733  cat conftest.err >&5
29734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29735  (exit $ac_status); } &&
29736	 { ac_try='test -z "$ac_c_werror_flag"
29737			 || test ! -s conftest.err'
29738  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29739  (eval $ac_try) 2>&5
29740  ac_status=$?
29741  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29742  (exit $ac_status); }; } &&
29743	 { ac_try='test -s conftest$ac_exeext'
29744  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29745  (eval $ac_try) 2>&5
29746  ac_status=$?
29747  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29748  (exit $ac_status); }; }; then
29749  ac_cv_search_expf="-l$ac_lib"
29750break
29751else
29752  echo "$as_me: failed program was:" >&5
29753sed 's/^/| /' conftest.$ac_ext >&5
29754
29755fi
29756rm -f conftest.err conftest.$ac_objext \
29757      conftest$ac_exeext conftest.$ac_ext
29758  done
29759fi
29760LIBS=$ac_func_search_save_LIBS
29761fi
29762echo "$as_me:$LINENO: result: $ac_cv_search_expf" >&5
29763echo "${ECHO_T}$ac_cv_search_expf" >&6
29764if test "$ac_cv_search_expf" != no; then
29765  test "$ac_cv_search_expf" = "none required" || LIBS="$ac_cv_search_expf $LIBS"
29766
29767cat >>confdefs.h <<\_ACEOF
29768#define HAVE_EXPF 1
29769_ACEOF
29770
29771fi
29772
29773echo "$as_me:$LINENO: checking for library containing logf" >&5
29774echo $ECHO_N "checking for library containing logf... $ECHO_C" >&6
29775if test "${ac_cv_search_logf+set}" = set; then
29776  echo $ECHO_N "(cached) $ECHO_C" >&6
29777else
29778  ac_func_search_save_LIBS=$LIBS
29779ac_cv_search_logf=no
29780cat >conftest.$ac_ext <<_ACEOF
29781/* confdefs.h.  */
29782_ACEOF
29783cat confdefs.h >>conftest.$ac_ext
29784cat >>conftest.$ac_ext <<_ACEOF
29785/* end confdefs.h.  */
29786
29787/* Override any gcc2 internal prototype to avoid an error.  */
29788#ifdef __cplusplus
29789extern "C"
29790#endif
29791/* We use char because int might match the return type of a gcc2
29792   builtin and then its argument prototype would still apply.  */
29793char logf ();
29794int
29795main ()
29796{
29797logf ();
29798  ;
29799  return 0;
29800}
29801_ACEOF
29802rm -f conftest.$ac_objext conftest$ac_exeext
29803if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29804  (eval $ac_link) 2>conftest.er1
29805  ac_status=$?
29806  grep -v '^ *+' conftest.er1 >conftest.err
29807  rm -f conftest.er1
29808  cat conftest.err >&5
29809  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29810  (exit $ac_status); } &&
29811	 { ac_try='test -z "$ac_c_werror_flag"
29812			 || test ! -s conftest.err'
29813  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29814  (eval $ac_try) 2>&5
29815  ac_status=$?
29816  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29817  (exit $ac_status); }; } &&
29818	 { ac_try='test -s conftest$ac_exeext'
29819  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29820  (eval $ac_try) 2>&5
29821  ac_status=$?
29822  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29823  (exit $ac_status); }; }; then
29824  ac_cv_search_logf="none required"
29825else
29826  echo "$as_me: failed program was:" >&5
29827sed 's/^/| /' conftest.$ac_ext >&5
29828
29829fi
29830rm -f conftest.err conftest.$ac_objext \
29831      conftest$ac_exeext conftest.$ac_ext
29832if test "$ac_cv_search_logf" = no; then
29833  for ac_lib in m; do
29834    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29835    cat >conftest.$ac_ext <<_ACEOF
29836/* confdefs.h.  */
29837_ACEOF
29838cat confdefs.h >>conftest.$ac_ext
29839cat >>conftest.$ac_ext <<_ACEOF
29840/* end confdefs.h.  */
29841
29842/* Override any gcc2 internal prototype to avoid an error.  */
29843#ifdef __cplusplus
29844extern "C"
29845#endif
29846/* We use char because int might match the return type of a gcc2
29847   builtin and then its argument prototype would still apply.  */
29848char logf ();
29849int
29850main ()
29851{
29852logf ();
29853  ;
29854  return 0;
29855}
29856_ACEOF
29857rm -f conftest.$ac_objext conftest$ac_exeext
29858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29859  (eval $ac_link) 2>conftest.er1
29860  ac_status=$?
29861  grep -v '^ *+' conftest.er1 >conftest.err
29862  rm -f conftest.er1
29863  cat conftest.err >&5
29864  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29865  (exit $ac_status); } &&
29866	 { ac_try='test -z "$ac_c_werror_flag"
29867			 || test ! -s conftest.err'
29868  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29869  (eval $ac_try) 2>&5
29870  ac_status=$?
29871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29872  (exit $ac_status); }; } &&
29873	 { ac_try='test -s conftest$ac_exeext'
29874  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29875  (eval $ac_try) 2>&5
29876  ac_status=$?
29877  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29878  (exit $ac_status); }; }; then
29879  ac_cv_search_logf="-l$ac_lib"
29880break
29881else
29882  echo "$as_me: failed program was:" >&5
29883sed 's/^/| /' conftest.$ac_ext >&5
29884
29885fi
29886rm -f conftest.err conftest.$ac_objext \
29887      conftest$ac_exeext conftest.$ac_ext
29888  done
29889fi
29890LIBS=$ac_func_search_save_LIBS
29891fi
29892echo "$as_me:$LINENO: result: $ac_cv_search_logf" >&5
29893echo "${ECHO_T}$ac_cv_search_logf" >&6
29894if test "$ac_cv_search_logf" != no; then
29895  test "$ac_cv_search_logf" = "none required" || LIBS="$ac_cv_search_logf $LIBS"
29896
29897cat >>confdefs.h <<\_ACEOF
29898#define HAVE_LOGF 1
29899_ACEOF
29900
29901fi
29902
29903echo "$as_me:$LINENO: checking for library containing log10f" >&5
29904echo $ECHO_N "checking for library containing log10f... $ECHO_C" >&6
29905if test "${ac_cv_search_log10f+set}" = set; then
29906  echo $ECHO_N "(cached) $ECHO_C" >&6
29907else
29908  ac_func_search_save_LIBS=$LIBS
29909ac_cv_search_log10f=no
29910cat >conftest.$ac_ext <<_ACEOF
29911/* confdefs.h.  */
29912_ACEOF
29913cat confdefs.h >>conftest.$ac_ext
29914cat >>conftest.$ac_ext <<_ACEOF
29915/* end confdefs.h.  */
29916
29917/* Override any gcc2 internal prototype to avoid an error.  */
29918#ifdef __cplusplus
29919extern "C"
29920#endif
29921/* We use char because int might match the return type of a gcc2
29922   builtin and then its argument prototype would still apply.  */
29923char log10f ();
29924int
29925main ()
29926{
29927log10f ();
29928  ;
29929  return 0;
29930}
29931_ACEOF
29932rm -f conftest.$ac_objext conftest$ac_exeext
29933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29934  (eval $ac_link) 2>conftest.er1
29935  ac_status=$?
29936  grep -v '^ *+' conftest.er1 >conftest.err
29937  rm -f conftest.er1
29938  cat conftest.err >&5
29939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29940  (exit $ac_status); } &&
29941	 { ac_try='test -z "$ac_c_werror_flag"
29942			 || test ! -s conftest.err'
29943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29944  (eval $ac_try) 2>&5
29945  ac_status=$?
29946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947  (exit $ac_status); }; } &&
29948	 { ac_try='test -s conftest$ac_exeext'
29949  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29950  (eval $ac_try) 2>&5
29951  ac_status=$?
29952  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29953  (exit $ac_status); }; }; then
29954  ac_cv_search_log10f="none required"
29955else
29956  echo "$as_me: failed program was:" >&5
29957sed 's/^/| /' conftest.$ac_ext >&5
29958
29959fi
29960rm -f conftest.err conftest.$ac_objext \
29961      conftest$ac_exeext conftest.$ac_ext
29962if test "$ac_cv_search_log10f" = no; then
29963  for ac_lib in m; do
29964    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29965    cat >conftest.$ac_ext <<_ACEOF
29966/* confdefs.h.  */
29967_ACEOF
29968cat confdefs.h >>conftest.$ac_ext
29969cat >>conftest.$ac_ext <<_ACEOF
29970/* end confdefs.h.  */
29971
29972/* Override any gcc2 internal prototype to avoid an error.  */
29973#ifdef __cplusplus
29974extern "C"
29975#endif
29976/* We use char because int might match the return type of a gcc2
29977   builtin and then its argument prototype would still apply.  */
29978char log10f ();
29979int
29980main ()
29981{
29982log10f ();
29983  ;
29984  return 0;
29985}
29986_ACEOF
29987rm -f conftest.$ac_objext conftest$ac_exeext
29988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29989  (eval $ac_link) 2>conftest.er1
29990  ac_status=$?
29991  grep -v '^ *+' conftest.er1 >conftest.err
29992  rm -f conftest.er1
29993  cat conftest.err >&5
29994  echo "$as_me:$LINENO: \$? = $ac_status" >&5
29995  (exit $ac_status); } &&
29996	 { ac_try='test -z "$ac_c_werror_flag"
29997			 || test ! -s conftest.err'
29998  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29999  (eval $ac_try) 2>&5
30000  ac_status=$?
30001  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30002  (exit $ac_status); }; } &&
30003	 { ac_try='test -s conftest$ac_exeext'
30004  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30005  (eval $ac_try) 2>&5
30006  ac_status=$?
30007  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30008  (exit $ac_status); }; }; then
30009  ac_cv_search_log10f="-l$ac_lib"
30010break
30011else
30012  echo "$as_me: failed program was:" >&5
30013sed 's/^/| /' conftest.$ac_ext >&5
30014
30015fi
30016rm -f conftest.err conftest.$ac_objext \
30017      conftest$ac_exeext conftest.$ac_ext
30018  done
30019fi
30020LIBS=$ac_func_search_save_LIBS
30021fi
30022echo "$as_me:$LINENO: result: $ac_cv_search_log10f" >&5
30023echo "${ECHO_T}$ac_cv_search_log10f" >&6
30024if test "$ac_cv_search_log10f" != no; then
30025  test "$ac_cv_search_log10f" = "none required" || LIBS="$ac_cv_search_log10f $LIBS"
30026
30027cat >>confdefs.h <<\_ACEOF
30028#define HAVE_LOG10F 1
30029_ACEOF
30030
30031fi
30032
30033
30034if test "${build}" == "${host}"
30035then
30036    case "${host}" in
30037    x86_64-*)
30038        # X86_64 Linux machines may have both 64 bit and 32 bit libraries. We need to choose the right set
30039        echo "$as_me:$LINENO: checking for /usr/X11R6/lib64" >&5
30040echo $ECHO_N "checking for /usr/X11R6/lib64... $ECHO_C" >&6
30041if test "${ac_cv_real_file__usr_X11R6_lib64+set}" = set; then
30042  echo $ECHO_N "(cached) $ECHO_C" >&6
30043else
30044  test "$cross_compiling" = yes &&
30045  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30046echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30047   { (exit 1); exit 1; }; }
30048if test -r "/usr/X11R6/lib64"
30049then
30050  if test -h "/usr/X11R6/lib64"
30051  then
30052    ac_cv_real_file__usr_X11R6_lib64=no
30053  else
30054    ac_cv_real_file__usr_X11R6_lib64=yes
30055  fi
30056else
30057  ac_cv_real_file__usr_X11R6_lib64=no
30058fi
30059fi
30060echo "$as_me:$LINENO: result: $ac_cv_real_file__usr_X11R6_lib64" >&5
30061echo "${ECHO_T}$ac_cv_real_file__usr_X11R6_lib64" >&6
30062if test $ac_cv_real_file__usr_X11R6_lib64 = yes; then
30063  TESTLIBS="$TESTLIBS -L/usr/X11R6/lib64"
30064else
30065  echo "$as_me:$LINENO: checking for /usr/X11R6/lib" >&5
30066echo $ECHO_N "checking for /usr/X11R6/lib... $ECHO_C" >&6
30067if test "${ac_cv_file__usr_X11R6_lib+set}" = set; then
30068  echo $ECHO_N "(cached) $ECHO_C" >&6
30069else
30070  test "$cross_compiling" = yes &&
30071  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
30072echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
30073   { (exit 1); exit 1; }; }
30074if test -r "/usr/X11R6/lib"; then
30075  ac_cv_file__usr_X11R6_lib=yes
30076else
30077  ac_cv_file__usr_X11R6_lib=no
30078fi
30079fi
30080echo "$as_me:$LINENO: result: $ac_cv_file__usr_X11R6_lib" >&5
30081echo "${ECHO_T}$ac_cv_file__usr_X11R6_lib" >&6
30082if test $ac_cv_file__usr_X11R6_lib = yes; then
30083  TESTLIBS="$TESTLIBS -L/usr/X11R6/lib"
30084fi
30085
30086fi
30087
30088        ;;
30089    esac
30090fi
30091
30092# Checks for libraries.
30093
30094echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
30095echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
30096if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
30097  echo $ECHO_N "(cached) $ECHO_C" >&6
30098else
30099  ac_check_lib_save_LIBS=$LIBS
30100LIBS="-ltiff -lm $LIBS"
30101cat >conftest.$ac_ext <<_ACEOF
30102/* confdefs.h.  */
30103_ACEOF
30104cat confdefs.h >>conftest.$ac_ext
30105cat >>conftest.$ac_ext <<_ACEOF
30106/* end confdefs.h.  */
30107
30108/* Override any gcc2 internal prototype to avoid an error.  */
30109#ifdef __cplusplus
30110extern "C"
30111#endif
30112/* We use char because int might match the return type of a gcc2
30113   builtin and then its argument prototype would still apply.  */
30114char TIFFOpen ();
30115int
30116main ()
30117{
30118TIFFOpen ();
30119  ;
30120  return 0;
30121}
30122_ACEOF
30123rm -f conftest.$ac_objext conftest$ac_exeext
30124if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30125  (eval $ac_link) 2>conftest.er1
30126  ac_status=$?
30127  grep -v '^ *+' conftest.er1 >conftest.err
30128  rm -f conftest.er1
30129  cat conftest.err >&5
30130  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30131  (exit $ac_status); } &&
30132	 { ac_try='test -z "$ac_c_werror_flag"
30133			 || test ! -s conftest.err'
30134  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30135  (eval $ac_try) 2>&5
30136  ac_status=$?
30137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30138  (exit $ac_status); }; } &&
30139	 { ac_try='test -s conftest$ac_exeext'
30140  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30141  (eval $ac_try) 2>&5
30142  ac_status=$?
30143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30144  (exit $ac_status); }; }; then
30145  ac_cv_lib_tiff_TIFFOpen=yes
30146else
30147  echo "$as_me: failed program was:" >&5
30148sed 's/^/| /' conftest.$ac_ext >&5
30149
30150ac_cv_lib_tiff_TIFFOpen=no
30151fi
30152rm -f conftest.err conftest.$ac_objext \
30153      conftest$ac_exeext conftest.$ac_ext
30154LIBS=$ac_check_lib_save_LIBS
30155fi
30156echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30157echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
30158if test $ac_cv_lib_tiff_TIFFOpen = yes; then
30159  cat >>confdefs.h <<_ACEOF
30160#define HAVE_LIBTIFF 1
30161_ACEOF
30162
30163  LIBS="-ltiff $LIBS"
30164
30165else
30166  { { echo "$as_me:$LINENO: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&5
30167echo "$as_me: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&2;}
30168   { (exit 1); exit 1; }; }
30169fi
30170
30171
30172echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30173echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
30174if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30175  echo $ECHO_N "(cached) $ECHO_C" >&6
30176else
30177  ac_check_lib_save_LIBS=$LIBS
30178LIBS="-lxml2  $LIBS"
30179cat >conftest.$ac_ext <<_ACEOF
30180/* confdefs.h.  */
30181_ACEOF
30182cat confdefs.h >>conftest.$ac_ext
30183cat >>conftest.$ac_ext <<_ACEOF
30184/* end confdefs.h.  */
30185
30186/* Override any gcc2 internal prototype to avoid an error.  */
30187#ifdef __cplusplus
30188extern "C"
30189#endif
30190/* We use char because int might match the return type of a gcc2
30191   builtin and then its argument prototype would still apply.  */
30192char xmlParseFile ();
30193int
30194main ()
30195{
30196xmlParseFile ();
30197  ;
30198  return 0;
30199}
30200_ACEOF
30201rm -f conftest.$ac_objext conftest$ac_exeext
30202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30203  (eval $ac_link) 2>conftest.er1
30204  ac_status=$?
30205  grep -v '^ *+' conftest.er1 >conftest.err
30206  rm -f conftest.er1
30207  cat conftest.err >&5
30208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30209  (exit $ac_status); } &&
30210	 { ac_try='test -z "$ac_c_werror_flag"
30211			 || test ! -s conftest.err'
30212  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30213  (eval $ac_try) 2>&5
30214  ac_status=$?
30215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30216  (exit $ac_status); }; } &&
30217	 { ac_try='test -s conftest$ac_exeext'
30218  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30219  (eval $ac_try) 2>&5
30220  ac_status=$?
30221  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222  (exit $ac_status); }; }; then
30223  ac_cv_lib_xml2_xmlParseFile=yes
30224else
30225  echo "$as_me: failed program was:" >&5
30226sed 's/^/| /' conftest.$ac_ext >&5
30227
30228ac_cv_lib_xml2_xmlParseFile=no
30229fi
30230rm -f conftest.err conftest.$ac_objext \
30231      conftest$ac_exeext conftest.$ac_ext
30232LIBS=$ac_check_lib_save_LIBS
30233fi
30234echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30235echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
30236if test $ac_cv_lib_xml2_xmlParseFile = yes; then
30237
30238cat >>confdefs.h <<\_ACEOF
30239#define HAVE_LIBXML2 1
30240_ACEOF
30241 TESTLIBS="$TESTLIBS -lxml2"
30242fi
30243
30244
30245if test -n "$enable_tests" ; then
30246    ac_ext=c
30247ac_cpp='$CPP $CPPFLAGS'
30248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30250ac_compiler_gnu=$ac_cv_c_compiler_gnu
30251
30252    echo "$as_me:$LINENO: checking for afOpenFile in -laudiofile" >&5
30253echo $ECHO_N "checking for afOpenFile in -laudiofile... $ECHO_C" >&6
30254if test "${ac_cv_lib_audiofile_afOpenFile+set}" = set; then
30255  echo $ECHO_N "(cached) $ECHO_C" >&6
30256else
30257  ac_check_lib_save_LIBS=$LIBS
30258LIBS="-laudiofile  $LIBS"
30259cat >conftest.$ac_ext <<_ACEOF
30260/* confdefs.h.  */
30261_ACEOF
30262cat confdefs.h >>conftest.$ac_ext
30263cat >>conftest.$ac_ext <<_ACEOF
30264/* end confdefs.h.  */
30265
30266/* Override any gcc2 internal prototype to avoid an error.  */
30267#ifdef __cplusplus
30268extern "C"
30269#endif
30270/* We use char because int might match the return type of a gcc2
30271   builtin and then its argument prototype would still apply.  */
30272char afOpenFile ();
30273int
30274main ()
30275{
30276afOpenFile ();
30277  ;
30278  return 0;
30279}
30280_ACEOF
30281rm -f conftest.$ac_objext conftest$ac_exeext
30282if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30283  (eval $ac_link) 2>conftest.er1
30284  ac_status=$?
30285  grep -v '^ *+' conftest.er1 >conftest.err
30286  rm -f conftest.er1
30287  cat conftest.err >&5
30288  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30289  (exit $ac_status); } &&
30290	 { ac_try='test -z "$ac_c_werror_flag"
30291			 || test ! -s conftest.err'
30292  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30293  (eval $ac_try) 2>&5
30294  ac_status=$?
30295  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30296  (exit $ac_status); }; } &&
30297	 { ac_try='test -s conftest$ac_exeext'
30298  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30299  (eval $ac_try) 2>&5
30300  ac_status=$?
30301  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30302  (exit $ac_status); }; }; then
30303  ac_cv_lib_audiofile_afOpenFile=yes
30304else
30305  echo "$as_me: failed program was:" >&5
30306sed 's/^/| /' conftest.$ac_ext >&5
30307
30308ac_cv_lib_audiofile_afOpenFile=no
30309fi
30310rm -f conftest.err conftest.$ac_objext \
30311      conftest$ac_exeext conftest.$ac_ext
30312LIBS=$ac_check_lib_save_LIBS
30313fi
30314echo "$as_me:$LINENO: result: $ac_cv_lib_audiofile_afOpenFile" >&5
30315echo "${ECHO_T}$ac_cv_lib_audiofile_afOpenFile" >&6
30316if test $ac_cv_lib_audiofile_afOpenFile = yes; then
30317  TESTLIBS="$TESTLIBS -laudiofile"
30318else
30319  { { echo "$as_me:$LINENO: error: \"Can't make tests without libaudiofile (does your system require a libaudiofile-devel package?)\"" >&5
30320echo "$as_me: error: \"Can't make tests without libaudiofile (does your system require a libaudiofile-devel package?)\"" >&2;}
30321   { (exit 1); exit 1; }; }
30322fi
30323
30324    echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
30325echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6
30326if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then
30327  echo $ECHO_N "(cached) $ECHO_C" >&6
30328else
30329  ac_check_lib_save_LIBS=$LIBS
30330LIBS="-lfftw3  $LIBS"
30331cat >conftest.$ac_ext <<_ACEOF
30332/* confdefs.h.  */
30333_ACEOF
30334cat confdefs.h >>conftest.$ac_ext
30335cat >>conftest.$ac_ext <<_ACEOF
30336/* end confdefs.h.  */
30337
30338/* Override any gcc2 internal prototype to avoid an error.  */
30339#ifdef __cplusplus
30340extern "C"
30341#endif
30342/* We use char because int might match the return type of a gcc2
30343   builtin and then its argument prototype would still apply.  */
30344char fftw_plan_dft_1d ();
30345int
30346main ()
30347{
30348fftw_plan_dft_1d ();
30349  ;
30350  return 0;
30351}
30352_ACEOF
30353rm -f conftest.$ac_objext conftest$ac_exeext
30354if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30355  (eval $ac_link) 2>conftest.er1
30356  ac_status=$?
30357  grep -v '^ *+' conftest.er1 >conftest.err
30358  rm -f conftest.er1
30359  cat conftest.err >&5
30360  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30361  (exit $ac_status); } &&
30362	 { ac_try='test -z "$ac_c_werror_flag"
30363			 || test ! -s conftest.err'
30364  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30365  (eval $ac_try) 2>&5
30366  ac_status=$?
30367  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30368  (exit $ac_status); }; } &&
30369	 { ac_try='test -s conftest$ac_exeext'
30370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30371  (eval $ac_try) 2>&5
30372  ac_status=$?
30373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30374  (exit $ac_status); }; }; then
30375  ac_cv_lib_fftw3_fftw_plan_dft_1d=yes
30376else
30377  echo "$as_me: failed program was:" >&5
30378sed 's/^/| /' conftest.$ac_ext >&5
30379
30380ac_cv_lib_fftw3_fftw_plan_dft_1d=no
30381fi
30382rm -f conftest.err conftest.$ac_objext \
30383      conftest$ac_exeext conftest.$ac_ext
30384LIBS=$ac_check_lib_save_LIBS
30385fi
30386echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5
30387echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6
30388if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then
30389  TESTLIBS="$TESTLIBS -lfftw3"
30390else
30391  echo "$as_me:$LINENO: checking for fftw_create_plan in -lfftw" >&5
30392echo $ECHO_N "checking for fftw_create_plan in -lfftw... $ECHO_C" >&6
30393if test "${ac_cv_lib_fftw_fftw_create_plan+set}" = set; then
30394  echo $ECHO_N "(cached) $ECHO_C" >&6
30395else
30396  ac_check_lib_save_LIBS=$LIBS
30397LIBS="-lfftw  $LIBS"
30398cat >conftest.$ac_ext <<_ACEOF
30399/* confdefs.h.  */
30400_ACEOF
30401cat confdefs.h >>conftest.$ac_ext
30402cat >>conftest.$ac_ext <<_ACEOF
30403/* end confdefs.h.  */
30404
30405/* Override any gcc2 internal prototype to avoid an error.  */
30406#ifdef __cplusplus
30407extern "C"
30408#endif
30409/* We use char because int might match the return type of a gcc2
30410   builtin and then its argument prototype would still apply.  */
30411char fftw_create_plan ();
30412int
30413main ()
30414{
30415fftw_create_plan ();
30416  ;
30417  return 0;
30418}
30419_ACEOF
30420rm -f conftest.$ac_objext conftest$ac_exeext
30421if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30422  (eval $ac_link) 2>conftest.er1
30423  ac_status=$?
30424  grep -v '^ *+' conftest.er1 >conftest.err
30425  rm -f conftest.er1
30426  cat conftest.err >&5
30427  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30428  (exit $ac_status); } &&
30429	 { ac_try='test -z "$ac_c_werror_flag"
30430			 || test ! -s conftest.err'
30431  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30432  (eval $ac_try) 2>&5
30433  ac_status=$?
30434  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30435  (exit $ac_status); }; } &&
30436	 { ac_try='test -s conftest$ac_exeext'
30437  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30438  (eval $ac_try) 2>&5
30439  ac_status=$?
30440  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30441  (exit $ac_status); }; }; then
30442  ac_cv_lib_fftw_fftw_create_plan=yes
30443else
30444  echo "$as_me: failed program was:" >&5
30445sed 's/^/| /' conftest.$ac_ext >&5
30446
30447ac_cv_lib_fftw_fftw_create_plan=no
30448fi
30449rm -f conftest.err conftest.$ac_objext \
30450      conftest$ac_exeext conftest.$ac_ext
30451LIBS=$ac_check_lib_save_LIBS
30452fi
30453echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_create_plan" >&5
30454echo "${ECHO_T}$ac_cv_lib_fftw_fftw_create_plan" >&6
30455if test $ac_cv_lib_fftw_fftw_create_plan = yes; then
30456  TESTLIBS="$TESTLIBS -lfftw"
30457fi
30458
30459fi
30460
30461    echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
30462echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
30463if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
30464  echo $ECHO_N "(cached) $ECHO_C" >&6
30465else
30466  ac_check_lib_save_LIBS=$LIBS
30467LIBS="-lpthread  $LIBS"
30468cat >conftest.$ac_ext <<_ACEOF
30469/* confdefs.h.  */
30470_ACEOF
30471cat confdefs.h >>conftest.$ac_ext
30472cat >>conftest.$ac_ext <<_ACEOF
30473/* end confdefs.h.  */
30474
30475/* Override any gcc2 internal prototype to avoid an error.  */
30476#ifdef __cplusplus
30477extern "C"
30478#endif
30479/* We use char because int might match the return type of a gcc2
30480   builtin and then its argument prototype would still apply.  */
30481char pthread_attr_init ();
30482int
30483main ()
30484{
30485pthread_attr_init ();
30486  ;
30487  return 0;
30488}
30489_ACEOF
30490rm -f conftest.$ac_objext conftest$ac_exeext
30491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30492  (eval $ac_link) 2>conftest.er1
30493  ac_status=$?
30494  grep -v '^ *+' conftest.er1 >conftest.err
30495  rm -f conftest.er1
30496  cat conftest.err >&5
30497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30498  (exit $ac_status); } &&
30499	 { ac_try='test -z "$ac_c_werror_flag"
30500			 || test ! -s conftest.err'
30501  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30502  (eval $ac_try) 2>&5
30503  ac_status=$?
30504  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505  (exit $ac_status); }; } &&
30506	 { ac_try='test -s conftest$ac_exeext'
30507  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30508  (eval $ac_try) 2>&5
30509  ac_status=$?
30510  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30511  (exit $ac_status); }; }; then
30512  ac_cv_lib_pthread_pthread_attr_init=yes
30513else
30514  echo "$as_me: failed program was:" >&5
30515sed 's/^/| /' conftest.$ac_ext >&5
30516
30517ac_cv_lib_pthread_pthread_attr_init=no
30518fi
30519rm -f conftest.err conftest.$ac_objext \
30520      conftest$ac_exeext conftest.$ac_ext
30521LIBS=$ac_check_lib_save_LIBS
30522fi
30523echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
30524echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
30525if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
30526  TESTLIBS="$TESTLIBS -lpthread"
30527fi
30528
30529    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
30530echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
30531if test "${ac_cv_lib_dl_dlopen+set}" = set; then
30532  echo $ECHO_N "(cached) $ECHO_C" >&6
30533else
30534  ac_check_lib_save_LIBS=$LIBS
30535LIBS="-ldl  $LIBS"
30536cat >conftest.$ac_ext <<_ACEOF
30537/* confdefs.h.  */
30538_ACEOF
30539cat confdefs.h >>conftest.$ac_ext
30540cat >>conftest.$ac_ext <<_ACEOF
30541/* end confdefs.h.  */
30542
30543/* Override any gcc2 internal prototype to avoid an error.  */
30544#ifdef __cplusplus
30545extern "C"
30546#endif
30547/* We use char because int might match the return type of a gcc2
30548   builtin and then its argument prototype would still apply.  */
30549char dlopen ();
30550int
30551main ()
30552{
30553dlopen ();
30554  ;
30555  return 0;
30556}
30557_ACEOF
30558rm -f conftest.$ac_objext conftest$ac_exeext
30559if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30560  (eval $ac_link) 2>conftest.er1
30561  ac_status=$?
30562  grep -v '^ *+' conftest.er1 >conftest.err
30563  rm -f conftest.er1
30564  cat conftest.err >&5
30565  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30566  (exit $ac_status); } &&
30567	 { ac_try='test -z "$ac_c_werror_flag"
30568			 || test ! -s conftest.err'
30569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30570  (eval $ac_try) 2>&5
30571  ac_status=$?
30572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30573  (exit $ac_status); }; } &&
30574	 { ac_try='test -s conftest$ac_exeext'
30575  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30576  (eval $ac_try) 2>&5
30577  ac_status=$?
30578  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30579  (exit $ac_status); }; }; then
30580  ac_cv_lib_dl_dlopen=yes
30581else
30582  echo "$as_me: failed program was:" >&5
30583sed 's/^/| /' conftest.$ac_ext >&5
30584
30585ac_cv_lib_dl_dlopen=no
30586fi
30587rm -f conftest.err conftest.$ac_objext \
30588      conftest$ac_exeext conftest.$ac_ext
30589LIBS=$ac_check_lib_save_LIBS
30590fi
30591echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
30592echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
30593if test $ac_cv_lib_dl_dlopen = yes; then
30594  TESTLIBS="$TESTLIBS -ldl"
30595fi
30596
30597    echo "$as_me:$LINENO: checking for uc_start in -lunicall" >&5
30598echo $ECHO_N "checking for uc_start in -lunicall... $ECHO_C" >&6
30599if test "${ac_cv_lib_unicall_uc_start+set}" = set; then
30600  echo $ECHO_N "(cached) $ECHO_C" >&6
30601else
30602  ac_check_lib_save_LIBS=$LIBS
30603LIBS="-lunicall -ltiff -ldl $LIBS"
30604cat >conftest.$ac_ext <<_ACEOF
30605/* confdefs.h.  */
30606_ACEOF
30607cat confdefs.h >>conftest.$ac_ext
30608cat >>conftest.$ac_ext <<_ACEOF
30609/* end confdefs.h.  */
30610
30611/* Override any gcc2 internal prototype to avoid an error.  */
30612#ifdef __cplusplus
30613extern "C"
30614#endif
30615/* We use char because int might match the return type of a gcc2
30616   builtin and then its argument prototype would still apply.  */
30617char uc_start ();
30618int
30619main ()
30620{
30621uc_start ();
30622  ;
30623  return 0;
30624}
30625_ACEOF
30626rm -f conftest.$ac_objext conftest$ac_exeext
30627if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30628  (eval $ac_link) 2>conftest.er1
30629  ac_status=$?
30630  grep -v '^ *+' conftest.er1 >conftest.err
30631  rm -f conftest.er1
30632  cat conftest.err >&5
30633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30634  (exit $ac_status); } &&
30635	 { ac_try='test -z "$ac_c_werror_flag"
30636			 || test ! -s conftest.err'
30637  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30638  (eval $ac_try) 2>&5
30639  ac_status=$?
30640  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30641  (exit $ac_status); }; } &&
30642	 { ac_try='test -s conftest$ac_exeext'
30643  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30644  (eval $ac_try) 2>&5
30645  ac_status=$?
30646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30647  (exit $ac_status); }; }; then
30648  ac_cv_lib_unicall_uc_start=yes
30649else
30650  echo "$as_me: failed program was:" >&5
30651sed 's/^/| /' conftest.$ac_ext >&5
30652
30653ac_cv_lib_unicall_uc_start=no
30654fi
30655rm -f conftest.err conftest.$ac_objext \
30656      conftest$ac_exeext conftest.$ac_ext
30657LIBS=$ac_check_lib_save_LIBS
30658fi
30659echo "$as_me:$LINENO: result: $ac_cv_lib_unicall_uc_start" >&5
30660echo "${ECHO_T}$ac_cv_lib_unicall_uc_start" >&6
30661if test $ac_cv_lib_unicall_uc_start = yes; then
30662  TESTLIBS="$TESTLIBS -lunicall"
30663fi
30664
30665    echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
30666echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
30667if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
30668  echo $ECHO_N "(cached) $ECHO_C" >&6
30669else
30670  ac_check_lib_save_LIBS=$LIBS
30671LIBS="-lXft $TESTLIBS $LIBS"
30672cat >conftest.$ac_ext <<_ACEOF
30673/* confdefs.h.  */
30674_ACEOF
30675cat confdefs.h >>conftest.$ac_ext
30676cat >>conftest.$ac_ext <<_ACEOF
30677/* end confdefs.h.  */
30678
30679/* Override any gcc2 internal prototype to avoid an error.  */
30680#ifdef __cplusplus
30681extern "C"
30682#endif
30683/* We use char because int might match the return type of a gcc2
30684   builtin and then its argument prototype would still apply.  */
30685char XftFontOpen ();
30686int
30687main ()
30688{
30689XftFontOpen ();
30690  ;
30691  return 0;
30692}
30693_ACEOF
30694rm -f conftest.$ac_objext conftest$ac_exeext
30695if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30696  (eval $ac_link) 2>conftest.er1
30697  ac_status=$?
30698  grep -v '^ *+' conftest.er1 >conftest.err
30699  rm -f conftest.er1
30700  cat conftest.err >&5
30701  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30702  (exit $ac_status); } &&
30703	 { ac_try='test -z "$ac_c_werror_flag"
30704			 || test ! -s conftest.err'
30705  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30706  (eval $ac_try) 2>&5
30707  ac_status=$?
30708  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30709  (exit $ac_status); }; } &&
30710	 { ac_try='test -s conftest$ac_exeext'
30711  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30712  (eval $ac_try) 2>&5
30713  ac_status=$?
30714  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30715  (exit $ac_status); }; }; then
30716  ac_cv_lib_Xft_XftFontOpen=yes
30717else
30718  echo "$as_me: failed program was:" >&5
30719sed 's/^/| /' conftest.$ac_ext >&5
30720
30721ac_cv_lib_Xft_XftFontOpen=no
30722fi
30723rm -f conftest.err conftest.$ac_objext \
30724      conftest$ac_exeext conftest.$ac_ext
30725LIBS=$ac_check_lib_save_LIBS
30726fi
30727echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
30728echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
30729if test $ac_cv_lib_Xft_XftFontOpen = yes; then
30730  TESTLIBS="$TESTLIBS -lXft"
30731fi
30732
30733    echo "$as_me:$LINENO: checking for XextCreateExtension in -lXext" >&5
30734echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
30735if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
30736  echo $ECHO_N "(cached) $ECHO_C" >&6
30737else
30738  ac_check_lib_save_LIBS=$LIBS
30739LIBS="-lXext $TESTLIBS $LIBS"
30740cat >conftest.$ac_ext <<_ACEOF
30741/* confdefs.h.  */
30742_ACEOF
30743cat confdefs.h >>conftest.$ac_ext
30744cat >>conftest.$ac_ext <<_ACEOF
30745/* end confdefs.h.  */
30746
30747/* Override any gcc2 internal prototype to avoid an error.  */
30748#ifdef __cplusplus
30749extern "C"
30750#endif
30751/* We use char because int might match the return type of a gcc2
30752   builtin and then its argument prototype would still apply.  */
30753char XextCreateExtension ();
30754int
30755main ()
30756{
30757XextCreateExtension ();
30758  ;
30759  return 0;
30760}
30761_ACEOF
30762rm -f conftest.$ac_objext conftest$ac_exeext
30763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30764  (eval $ac_link) 2>conftest.er1
30765  ac_status=$?
30766  grep -v '^ *+' conftest.er1 >conftest.err
30767  rm -f conftest.er1
30768  cat conftest.err >&5
30769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30770  (exit $ac_status); } &&
30771	 { ac_try='test -z "$ac_c_werror_flag"
30772			 || test ! -s conftest.err'
30773  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30774  (eval $ac_try) 2>&5
30775  ac_status=$?
30776  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30777  (exit $ac_status); }; } &&
30778	 { ac_try='test -s conftest$ac_exeext'
30779  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30780  (eval $ac_try) 2>&5
30781  ac_status=$?
30782  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30783  (exit $ac_status); }; }; then
30784  ac_cv_lib_Xext_XextCreateExtension=yes
30785else
30786  echo "$as_me: failed program was:" >&5
30787sed 's/^/| /' conftest.$ac_ext >&5
30788
30789ac_cv_lib_Xext_XextCreateExtension=no
30790fi
30791rm -f conftest.err conftest.$ac_objext \
30792      conftest$ac_exeext conftest.$ac_ext
30793LIBS=$ac_check_lib_save_LIBS
30794fi
30795echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
30796echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
30797if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
30798  TESTLIBS="$TESTLIBS -lXext"
30799fi
30800
30801    echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
30802echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
30803if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
30804  echo $ECHO_N "(cached) $ECHO_C" >&6
30805else
30806  ac_check_lib_save_LIBS=$LIBS
30807LIBS="-lX11 $TESTLIBS $LIBS"
30808cat >conftest.$ac_ext <<_ACEOF
30809/* confdefs.h.  */
30810_ACEOF
30811cat confdefs.h >>conftest.$ac_ext
30812cat >>conftest.$ac_ext <<_ACEOF
30813/* end confdefs.h.  */
30814
30815/* Override any gcc2 internal prototype to avoid an error.  */
30816#ifdef __cplusplus
30817extern "C"
30818#endif
30819/* We use char because int might match the return type of a gcc2
30820   builtin and then its argument prototype would still apply.  */
30821char XOpenDisplay ();
30822int
30823main ()
30824{
30825XOpenDisplay ();
30826  ;
30827  return 0;
30828}
30829_ACEOF
30830rm -f conftest.$ac_objext conftest$ac_exeext
30831if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30832  (eval $ac_link) 2>conftest.er1
30833  ac_status=$?
30834  grep -v '^ *+' conftest.er1 >conftest.err
30835  rm -f conftest.er1
30836  cat conftest.err >&5
30837  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30838  (exit $ac_status); } &&
30839	 { ac_try='test -z "$ac_c_werror_flag"
30840			 || test ! -s conftest.err'
30841  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30842  (eval $ac_try) 2>&5
30843  ac_status=$?
30844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30845  (exit $ac_status); }; } &&
30846	 { ac_try='test -s conftest$ac_exeext'
30847  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30848  (eval $ac_try) 2>&5
30849  ac_status=$?
30850  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851  (exit $ac_status); }; }; then
30852  ac_cv_lib_X11_XOpenDisplay=yes
30853else
30854  echo "$as_me: failed program was:" >&5
30855sed 's/^/| /' conftest.$ac_ext >&5
30856
30857ac_cv_lib_X11_XOpenDisplay=no
30858fi
30859rm -f conftest.err conftest.$ac_objext \
30860      conftest$ac_exeext conftest.$ac_ext
30861LIBS=$ac_check_lib_save_LIBS
30862fi
30863echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
30864echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
30865if test $ac_cv_lib_X11_XOpenDisplay = yes; then
30866  TESTLIBS="$TESTLIBS -lX11"
30867fi
30868
30869    ac_ext=cc
30870ac_cpp='$CXXCPP $CPPFLAGS'
30871ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30872ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30873ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30874
30875    echo "$as_me:$LINENO: checking for main in -lfltk" >&5
30876echo $ECHO_N "checking for main in -lfltk... $ECHO_C" >&6
30877if test "${ac_cv_lib_fltk_main+set}" = set; then
30878  echo $ECHO_N "(cached) $ECHO_C" >&6
30879else
30880  ac_check_lib_save_LIBS=$LIBS
30881LIBS="-lfltk $TESTLIBS $LIBS"
30882cat >conftest.$ac_ext <<_ACEOF
30883/* confdefs.h.  */
30884_ACEOF
30885cat confdefs.h >>conftest.$ac_ext
30886cat >>conftest.$ac_ext <<_ACEOF
30887/* end confdefs.h.  */
30888
30889
30890int
30891main ()
30892{
30893main ();
30894  ;
30895  return 0;
30896}
30897_ACEOF
30898rm -f conftest.$ac_objext conftest$ac_exeext
30899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30900  (eval $ac_link) 2>conftest.er1
30901  ac_status=$?
30902  grep -v '^ *+' conftest.er1 >conftest.err
30903  rm -f conftest.er1
30904  cat conftest.err >&5
30905  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30906  (exit $ac_status); } &&
30907	 { ac_try='test -z "$ac_cxx_werror_flag"
30908			 || test ! -s conftest.err'
30909  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30910  (eval $ac_try) 2>&5
30911  ac_status=$?
30912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913  (exit $ac_status); }; } &&
30914	 { ac_try='test -s conftest$ac_exeext'
30915  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30916  (eval $ac_try) 2>&5
30917  ac_status=$?
30918  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919  (exit $ac_status); }; }; then
30920  ac_cv_lib_fltk_main=yes
30921else
30922  echo "$as_me: failed program was:" >&5
30923sed 's/^/| /' conftest.$ac_ext >&5
30924
30925ac_cv_lib_fltk_main=no
30926fi
30927rm -f conftest.err conftest.$ac_objext \
30928      conftest$ac_exeext conftest.$ac_ext
30929LIBS=$ac_check_lib_save_LIBS
30930fi
30931echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_main" >&5
30932echo "${ECHO_T}$ac_cv_lib_fltk_main" >&6
30933if test $ac_cv_lib_fltk_main = yes; then
30934  TESTLIBS="$TESTLIBS -lfltk -lsupc++"
30935fi
30936
30937    echo "$as_me:$LINENO: checking for main in -lfltk_cartesian" >&5
30938echo $ECHO_N "checking for main in -lfltk_cartesian... $ECHO_C" >&6
30939if test "${ac_cv_lib_fltk_cartesian_main+set}" = set; then
30940  echo $ECHO_N "(cached) $ECHO_C" >&6
30941else
30942  ac_check_lib_save_LIBS=$LIBS
30943LIBS="-lfltk_cartesian $TESTLIBS $LIBS"
30944cat >conftest.$ac_ext <<_ACEOF
30945/* confdefs.h.  */
30946_ACEOF
30947cat confdefs.h >>conftest.$ac_ext
30948cat >>conftest.$ac_ext <<_ACEOF
30949/* end confdefs.h.  */
30950
30951
30952int
30953main ()
30954{
30955main ();
30956  ;
30957  return 0;
30958}
30959_ACEOF
30960rm -f conftest.$ac_objext conftest$ac_exeext
30961if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30962  (eval $ac_link) 2>conftest.er1
30963  ac_status=$?
30964  grep -v '^ *+' conftest.er1 >conftest.err
30965  rm -f conftest.er1
30966  cat conftest.err >&5
30967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968  (exit $ac_status); } &&
30969	 { ac_try='test -z "$ac_cxx_werror_flag"
30970			 || test ! -s conftest.err'
30971  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30972  (eval $ac_try) 2>&5
30973  ac_status=$?
30974  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30975  (exit $ac_status); }; } &&
30976	 { ac_try='test -s conftest$ac_exeext'
30977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30978  (eval $ac_try) 2>&5
30979  ac_status=$?
30980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
30981  (exit $ac_status); }; }; then
30982  ac_cv_lib_fltk_cartesian_main=yes
30983else
30984  echo "$as_me: failed program was:" >&5
30985sed 's/^/| /' conftest.$ac_ext >&5
30986
30987ac_cv_lib_fltk_cartesian_main=no
30988fi
30989rm -f conftest.err conftest.$ac_objext \
30990      conftest$ac_exeext conftest.$ac_ext
30991LIBS=$ac_check_lib_save_LIBS
30992fi
30993echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_cartesian_main" >&5
30994echo "${ECHO_T}$ac_cv_lib_fltk_cartesian_main" >&6
30995if test $ac_cv_lib_fltk_cartesian_main = yes; then
30996  TESTLIBS="-lfltk_cartesian $TESTLIBS"
30997fi
30998
30999    echo "$as_me:$LINENO: checking for main in -lfltk_audio_meter" >&5
31000echo $ECHO_N "checking for main in -lfltk_audio_meter... $ECHO_C" >&6
31001if test "${ac_cv_lib_fltk_audio_meter_main+set}" = set; then
31002  echo $ECHO_N "(cached) $ECHO_C" >&6
31003else
31004  ac_check_lib_save_LIBS=$LIBS
31005LIBS="-lfltk_audio_meter $TESTLIBS $LIBS"
31006cat >conftest.$ac_ext <<_ACEOF
31007/* confdefs.h.  */
31008_ACEOF
31009cat confdefs.h >>conftest.$ac_ext
31010cat >>conftest.$ac_ext <<_ACEOF
31011/* end confdefs.h.  */
31012
31013
31014int
31015main ()
31016{
31017main ();
31018  ;
31019  return 0;
31020}
31021_ACEOF
31022rm -f conftest.$ac_objext conftest$ac_exeext
31023if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31024  (eval $ac_link) 2>conftest.er1
31025  ac_status=$?
31026  grep -v '^ *+' conftest.er1 >conftest.err
31027  rm -f conftest.er1
31028  cat conftest.err >&5
31029  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31030  (exit $ac_status); } &&
31031	 { ac_try='test -z "$ac_cxx_werror_flag"
31032			 || test ! -s conftest.err'
31033  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31034  (eval $ac_try) 2>&5
31035  ac_status=$?
31036  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31037  (exit $ac_status); }; } &&
31038	 { ac_try='test -s conftest$ac_exeext'
31039  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31040  (eval $ac_try) 2>&5
31041  ac_status=$?
31042  echo "$as_me:$LINENO: \$? = $ac_status" >&5
31043  (exit $ac_status); }; }; then
31044  ac_cv_lib_fltk_audio_meter_main=yes
31045else
31046  echo "$as_me: failed program was:" >&5
31047sed 's/^/| /' conftest.$ac_ext >&5
31048
31049ac_cv_lib_fltk_audio_meter_main=no
31050fi
31051rm -f conftest.err conftest.$ac_objext \
31052      conftest$ac_exeext conftest.$ac_ext
31053LIBS=$ac_check_lib_save_LIBS
31054fi
31055echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_audio_meter_main" >&5
31056echo "${ECHO_T}$ac_cv_lib_fltk_audio_meter_main" >&6
31057if test $ac_cv_lib_fltk_audio_meter_main = yes; then
31058  TESTLIBS="-lfltk_audio_meter $TESTLIBS"
31059fi
31060
31061    ac_ext=c
31062ac_cpp='$CPP $CPPFLAGS'
31063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31065ac_compiler_gnu=$ac_cv_c_compiler_gnu
31066
31067fi
31068
31069case "${ax_cv_c_compiler_vendor}" in
31070gnu)
31071    COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
31072    if test "$enable_sse" = "yes" ; then
31073        COMP_VENDOR_CFLAGS="-msse $COMP_VENDOR_CFLAGS"
31074    fi
31075    if test "$enable_mmx" = "yes" ; then
31076        COMP_VENDOR_CFLAGS="-mmmx $COMP_VENDOR_CFLAGS"
31077    fi
31078    case $host_os in
31079    mingw* | cygwin*)
31080        COMP_VENDOR_LDFLAGS="-no-undefined"
31081        ;;
31082    *)
31083        COMP_VENDOR_LDFLAGS=
31084        ;;
31085    esac
31086    ;;
31087sun)
31088    COMP_VENDOR_CFLAGS="-xc99=all -mt -xCC -errwarn=%all -xvpara"
31089    if test "$enable_sse" = "yes" ; then
31090        COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31091    fi
31092    if test "$enable_mmx" = "yes" ; then
31093        COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31094    fi
31095    COMP_VENDOR_LDFLAGS=
31096    ;;
31097*)
31098    COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes"
31099    COMP_VENDOR_LDFLAGS=
31100    ;;
31101esac
31102
31103COMP_VENDOR_CFLAGS="-DNDEBUG -DIAXMODEM_STUFF $COMP_VENDOR_CFLAGS"
31104
31105
31106
31107if test "$enable_doc" = yes; then
31108  COND_DOC_TRUE=
31109  COND_DOC_FALSE='#'
31110else
31111  COND_DOC_TRUE='#'
31112  COND_DOC_FALSE=
31113fi
31114
31115
31116
31117if test "$enable_tests" = yes; then
31118  COND_TESTS_TRUE=
31119  COND_TESTS_FALSE='#'
31120else
31121  COND_TESTS_TRUE='#'
31122  COND_TESTS_FALSE=
31123fi
31124
31125
31126
31127if test "$enable_test_data" = yes; then
31128  COND_TESTDATA_TRUE=
31129  COND_TESTDATA_FALSE='#'
31130else
31131  COND_TESTDATA_TRUE='#'
31132  COND_TESTDATA_FALSE=
31133fi
31134
31135
31136
31137if test "$enable_mmx" = yes; then
31138  COND_MMX_TRUE=
31139  COND_MMX_FALSE='#'
31140else
31141  COND_MMX_TRUE='#'
31142  COND_MMX_FALSE=
31143fi
31144
31145
31146
31147if test "$enable_sse" = yes; then
31148  COND_SSE_TRUE=
31149  COND_SSE_FALSE='#'
31150else
31151  COND_SSE_TRUE='#'
31152  COND_SSE_FALSE=
31153fi
31154
31155if test "$enable_fixed_point" = "yes" ; then
31156
31157cat >>confdefs.h <<\_ACEOF
31158#define SPANDSP_USE_FIXED_POINT 1
31159_ACEOF
31160
31161    SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
31162else
31163    as_ac_FixedPoint=`echo "ac_cv_fixed_point_machine_$host" | $as_tr_sh`
31164echo "$as_me:$LINENO: checking if $host is fixed point only" >&5
31165echo $ECHO_N "checking if $host is fixed point only... $ECHO_C" >&6
31166if eval "test \"\${$as_ac_FixedPoint+set}\" = set"; then
31167  echo $ECHO_N "(cached) $ECHO_C" >&6
31168else
31169  case $host in
31170      arc | arm | armble | armelb | armv2345 | armv345lb \
31171    | bfin \
31172    | mips | mipsbe | mipseb | mipsel | mipsle \
31173    | tic54x | c54x* | tic55x | c55x* | tic6x | c6x* \
31174    | xscale | xscaleebl \
31175    | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
31176    | bfin-* \
31177    | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
31178    | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
31179    | xscale-* | xscaleebl-* )
31180        eval "$as_ac_FixedPoint=yes"
31181        ;;
31182    *)
31183        eval "$as_ac_FixedPoint=no"
31184        ;;
31185esac
31186fi
31187echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_FixedPoint'}'`" >&5
31188echo "${ECHO_T}`eval echo '${'$as_ac_FixedPoint'}'`" >&6
31189if test `eval echo '${'$as_ac_FixedPoint'}'` = yes; then
31190
31191cat >>confdefs.h <<\_ACEOF
31192#define SPANDSP_USE_FIXED_POINT 1
31193_ACEOF
31194
31195        SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
31196else
31197  SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"
31198fi
31199
31200fi
31201as_ac_MisalignedAccessFails=`echo "ac_cv_misaligned_access_fails_$host" | $as_tr_sh`
31202echo "$as_me:$LINENO: checking if $host fails on misaligned memory access" >&5
31203echo $ECHO_N "checking if $host fails on misaligned memory access... $ECHO_C" >&6
31204if eval "test \"\${$as_ac_MisalignedAccessFails+set}\" = set"; then
31205  echo $ECHO_N "(cached) $ECHO_C" >&6
31206else
31207  case $host in
31208      arc | arm | armble | armelb | armv2345 | armv345lb \
31209    | bfin \
31210    | sparc \
31211    | xscale | xscaleebl \
31212    | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
31213    | bfin-* \
31214    | sparc-* \
31215    | xscale-* | xscaleebl-* )
31216        eval "$as_ac_MisalignedAccessFails=yes"
31217        ;;
31218    *)
31219        eval "$as_ac_MisalignedAccessFails=no"
31220        ;;
31221esac
31222fi
31223echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_MisalignedAccessFails'}'`" >&5
31224echo "${ECHO_T}`eval echo '${'$as_ac_MisalignedAccessFails'}'`" >&6
31225if test `eval echo '${'$as_ac_MisalignedAccessFails'}'` = yes; then
31226
31227cat >>confdefs.h <<\_ACEOF
31228#define SPANDSP_MISALIGNED_ACCESS_FAILS 1
31229_ACEOF
31230
31231    SPANDSP_MISALIGNED_ACCESS_FAILS="#define SPANDSP_MISALIGNED_ACCESS_FAILS 1"
31232else
31233  SPANDSP_MISALIGNED_ACCESS_FAILS="#undef SPANDSP_MISALIGNED_ACCESS_FAILS"
31234fi
31235
31236
31237
31238
31239
31240
31241
31242
31243
31244
31245
31246
31247
31248
31249                                                                                                                                            ac_config_files="$ac_config_files Makefile doc/Makefile doc/doxygen src/Makefile src/spandsp.h spandsp-sim/Makefile test-data/Makefile test-data/etsi/Makefile test-data/etsi/fax/Makefile test-data/itu/Makefile test-data/itu/fax/Makefile test-data/local/Makefile tests/Makefile spandsp.spec"
31250
31251
31252cat >confcache <<\_ACEOF
31253# This file is a shell script that caches the results of configure
31254# tests run on this system so they can be shared between configure
31255# scripts and configure runs, see configure's option --config-cache.
31256# It is not useful on other systems.  If it contains results you don't
31257# want to keep, you may remove or edit it.
31258#
31259# config.status only pays attention to the cache file if you give it
31260# the --recheck option to rerun configure.
31261#
31262# `ac_cv_env_foo' variables (set or unset) will be overridden when
31263# loading this file, other *unset* `ac_cv_foo' will be assigned the
31264# following values.
31265
31266_ACEOF
31267
31268# The following way of writing the cache mishandles newlines in values,
31269# but we know of no workaround that is simple, portable, and efficient.
31270# So, don't put newlines in cache variables' values.
31271# Ultrix sh set writes to stderr and can't be redirected directly,
31272# and sets the high bit in the cache file unless we assign to the vars.
31273{
31274  (set) 2>&1 |
31275    case `(ac_space=' '; set | grep ac_space) 2>&1` in
31276    *ac_space=\ *)
31277      # `set' does not quote correctly, so add quotes (double-quote
31278      # substitution turns \\\\ into \\, and sed turns \\ into \).
31279      sed -n \
31280	"s/'/'\\\\''/g;
31281	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31282      ;;
31283    *)
31284      # `set' quotes correctly as required by POSIX, so do not add quotes.
31285      sed -n \
31286	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31287      ;;
31288    esac;
31289} |
31290  sed '
31291     t clear
31292     : clear
31293     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31294     t end
31295     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31296     : end' >>confcache
31297if diff $cache_file confcache >/dev/null 2>&1; then :; else
31298  if test -w $cache_file; then
31299    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31300    cat confcache >$cache_file
31301  else
31302    echo "not updating unwritable cache $cache_file"
31303  fi
31304fi
31305rm -f confcache
31306
31307test "x$prefix" = xNONE && prefix=$ac_default_prefix
31308# Let make expand exec_prefix.
31309test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31310
31311# VPATH may cause trouble with some makes, so we remove $(srcdir),
31312# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31313# trailing colons and then remove the whole line if VPATH becomes empty
31314# (actually we leave an empty line to preserve line numbers).
31315if test "x$srcdir" = x.; then
31316  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
31317s/:*\$(srcdir):*/:/;
31318s/:*\${srcdir}:*/:/;
31319s/:*@srcdir@:*/:/;
31320s/^\([^=]*=[	 ]*\):*/\1/;
31321s/:*$//;
31322s/^[^=]*=[	 ]*$//;
31323}'
31324fi
31325
31326DEFS=-DHAVE_CONFIG_H
31327
31328ac_libobjs=
31329ac_ltlibobjs=
31330for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31331  # 1. Remove the extension, and $U if already installed.
31332  ac_i=`echo "$ac_i" |
31333	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31334  # 2. Add them.
31335  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31336  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31337done
31338LIBOBJS=$ac_libobjs
31339
31340LTLIBOBJS=$ac_ltlibobjs
31341
31342
31343if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31344  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31345Usually this means the macro was only invoked conditionally." >&5
31346echo "$as_me: error: conditional \"AMDEP\" was never defined.
31347Usually this means the macro was only invoked conditionally." >&2;}
31348   { (exit 1); exit 1; }; }
31349fi
31350if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31351  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31352Usually this means the macro was only invoked conditionally." >&5
31353echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31354Usually this means the macro was only invoked conditionally." >&2;}
31355   { (exit 1); exit 1; }; }
31356fi
31357if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31358  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31359Usually this means the macro was only invoked conditionally." >&5
31360echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31361Usually this means the macro was only invoked conditionally." >&2;}
31362   { (exit 1); exit 1; }; }
31363fi
31364if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31365  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31366Usually this means the macro was only invoked conditionally." >&5
31367echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31368Usually this means the macro was only invoked conditionally." >&2;}
31369   { (exit 1); exit 1; }; }
31370fi
31371if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
31372  { { echo "$as_me:$LINENO: error: conditional \"COND_DOC\" was never defined.
31373Usually this means the macro was only invoked conditionally." >&5
31374echo "$as_me: error: conditional \"COND_DOC\" was never defined.
31375Usually this means the macro was only invoked conditionally." >&2;}
31376   { (exit 1); exit 1; }; }
31377fi
31378if test -z "${COND_TESTS_TRUE}" && test -z "${COND_TESTS_FALSE}"; then
31379  { { echo "$as_me:$LINENO: error: conditional \"COND_TESTS\" was never defined.
31380Usually this means the macro was only invoked conditionally." >&5
31381echo "$as_me: error: conditional \"COND_TESTS\" was never defined.
31382Usually this means the macro was only invoked conditionally." >&2;}
31383   { (exit 1); exit 1; }; }
31384fi
31385if test -z "${COND_TESTDATA_TRUE}" && test -z "${COND_TESTDATA_FALSE}"; then
31386  { { echo "$as_me:$LINENO: error: conditional \"COND_TESTDATA\" was never defined.
31387Usually this means the macro was only invoked conditionally." >&5
31388echo "$as_me: error: conditional \"COND_TESTDATA\" was never defined.
31389Usually this means the macro was only invoked conditionally." >&2;}
31390   { (exit 1); exit 1; }; }
31391fi
31392if test -z "${COND_MMX_TRUE}" && test -z "${COND_MMX_FALSE}"; then
31393  { { echo "$as_me:$LINENO: error: conditional \"COND_MMX\" was never defined.
31394Usually this means the macro was only invoked conditionally." >&5
31395echo "$as_me: error: conditional \"COND_MMX\" was never defined.
31396Usually this means the macro was only invoked conditionally." >&2;}
31397   { (exit 1); exit 1; }; }
31398fi
31399if test -z "${COND_SSE_TRUE}" && test -z "${COND_SSE_FALSE}"; then
31400  { { echo "$as_me:$LINENO: error: conditional \"COND_SSE\" was never defined.
31401Usually this means the macro was only invoked conditionally." >&5
31402echo "$as_me: error: conditional \"COND_SSE\" was never defined.
31403Usually this means the macro was only invoked conditionally." >&2;}
31404   { (exit 1); exit 1; }; }
31405fi
31406
31407: ${CONFIG_STATUS=./config.status}
31408ac_clean_files_save=$ac_clean_files
31409ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31410{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
31411echo "$as_me: creating $CONFIG_STATUS" >&6;}
31412cat >$CONFIG_STATUS <<_ACEOF
31413#! $SHELL
31414# Generated by $as_me.
31415# Run this file to recreate the current configuration.
31416# Compiler output produced by configure, useful for debugging
31417# configure, is in config.log if it exists.
31418
31419debug=false
31420ac_cs_recheck=false
31421ac_cs_silent=false
31422SHELL=\${CONFIG_SHELL-$SHELL}
31423_ACEOF
31424
31425cat >>$CONFIG_STATUS <<\_ACEOF
31426## --------------------- ##
31427## M4sh Initialization.  ##
31428## --------------------- ##
31429
31430# Be Bourne compatible
31431if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
31432  emulate sh
31433  NULLCMD=:
31434  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
31435  # is contrary to our usage.  Disable this feature.
31436  alias -g '${1+"$@"}'='"$@"'
31437elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
31438  set -o posix
31439fi
31440DUALCASE=1; export DUALCASE # for MKS sh
31441
31442# Support unset when possible.
31443if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31444  as_unset=unset
31445else
31446  as_unset=false
31447fi
31448
31449
31450# Work around bugs in pre-3.0 UWIN ksh.
31451$as_unset ENV MAIL MAILPATH
31452PS1='$ '
31453PS2='> '
31454PS4='+ '
31455
31456# NLS nuisances.
31457for as_var in \
31458  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
31459  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
31460  LC_TELEPHONE LC_TIME
31461do
31462  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
31463    eval $as_var=C; export $as_var
31464  else
31465    $as_unset $as_var
31466  fi
31467done
31468
31469# Required to use basename.
31470if expr a : '\(a\)' >/dev/null 2>&1; then
31471  as_expr=expr
31472else
31473  as_expr=false
31474fi
31475
31476if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
31477  as_basename=basename
31478else
31479  as_basename=false
31480fi
31481
31482
31483# Name of the executable.
31484as_me=`$as_basename "$0" ||
31485$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31486	 X"$0" : 'X\(//\)$' \| \
31487	 X"$0" : 'X\(/\)$' \| \
31488	 .     : '\(.\)' 2>/dev/null ||
31489echo X/"$0" |
31490    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
31491  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
31492  	  /^X\/\(\/\).*/{ s//\1/; q; }
31493  	  s/.*/./; q'`
31494
31495
31496# PATH needs CR, and LINENO needs CR and PATH.
31497# Avoid depending upon Character Ranges.
31498as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31499as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31500as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31501as_cr_digits='0123456789'
31502as_cr_alnum=$as_cr_Letters$as_cr_digits
31503
31504# The user is always right.
31505if test "${PATH_SEPARATOR+set}" != set; then
31506  echo "#! /bin/sh" >conf$$.sh
31507  echo  "exit 0"   >>conf$$.sh
31508  chmod +x conf$$.sh
31509  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
31510    PATH_SEPARATOR=';'
31511  else
31512    PATH_SEPARATOR=:
31513  fi
31514  rm -f conf$$.sh
31515fi
31516
31517
31518  as_lineno_1=$LINENO
31519  as_lineno_2=$LINENO
31520  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31521  test "x$as_lineno_1" != "x$as_lineno_2" &&
31522  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
31523  # Find who we are.  Look in the path if we contain no path at all
31524  # relative or not.
31525  case $0 in
31526    *[\\/]* ) as_myself=$0 ;;
31527    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31528for as_dir in $PATH
31529do
31530  IFS=$as_save_IFS
31531  test -z "$as_dir" && as_dir=.
31532  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31533done
31534
31535       ;;
31536  esac
31537  # We did not find ourselves, most probably we were run as `sh COMMAND'
31538  # in which case we are not to be found in the path.
31539  if test "x$as_myself" = x; then
31540    as_myself=$0
31541  fi
31542  if test ! -f "$as_myself"; then
31543    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
31544echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
31545   { (exit 1); exit 1; }; }
31546  fi
31547  case $CONFIG_SHELL in
31548  '')
31549    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31550for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
31551do
31552  IFS=$as_save_IFS
31553  test -z "$as_dir" && as_dir=.
31554  for as_base in sh bash ksh sh5; do
31555	 case $as_dir in
31556	 /*)
31557	   if ("$as_dir/$as_base" -c '
31558  as_lineno_1=$LINENO
31559  as_lineno_2=$LINENO
31560  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
31561  test "x$as_lineno_1" != "x$as_lineno_2" &&
31562  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
31563	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
31564	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
31565	     CONFIG_SHELL=$as_dir/$as_base
31566	     export CONFIG_SHELL
31567	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
31568	   fi;;
31569	 esac
31570       done
31571done
31572;;
31573  esac
31574
31575  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
31576  # uniformly replaced by the line number.  The first 'sed' inserts a
31577  # line-number line before each line; the second 'sed' does the real
31578  # work.  The second script uses 'N' to pair each line-number line
31579  # with the numbered line, and appends trailing '-' during
31580  # substitution so that $LINENO is not a special case at line end.
31581  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
31582  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
31583  sed '=' <$as_myself |
31584    sed '
31585      N
31586      s,$,-,
31587      : loop
31588      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
31589      t loop
31590      s,-$,,
31591      s,^['$as_cr_digits']*\n,,
31592    ' >$as_me.lineno &&
31593  chmod +x $as_me.lineno ||
31594    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
31595echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
31596   { (exit 1); exit 1; }; }
31597
31598  # Don't try to exec as it changes $[0], causing all sort of problems
31599  # (the dirname of $[0] is not the place where we might find the
31600  # original and so on.  Autoconf is especially sensible to this).
31601  . ./$as_me.lineno
31602  # Exit status is that of the last command.
31603  exit
31604}
31605
31606
31607case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
31608  *c*,-n*) ECHO_N= ECHO_C='
31609' ECHO_T='	' ;;
31610  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
31611  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
31612esac
31613
31614if expr a : '\(a\)' >/dev/null 2>&1; then
31615  as_expr=expr
31616else
31617  as_expr=false
31618fi
31619
31620rm -f conf$$ conf$$.exe conf$$.file
31621echo >conf$$.file
31622if ln -s conf$$.file conf$$ 2>/dev/null; then
31623  # We could just check for DJGPP; but this test a) works b) is more generic
31624  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
31625  if test -f conf$$.exe; then
31626    # Don't use ln at all; we don't have any links
31627    as_ln_s='cp -p'
31628  else
31629    as_ln_s='ln -s'
31630  fi
31631elif ln conf$$.file conf$$ 2>/dev/null; then
31632  as_ln_s=ln
31633else
31634  as_ln_s='cp -p'
31635fi
31636rm -f conf$$ conf$$.exe conf$$.file
31637
31638if mkdir -p . 2>/dev/null; then
31639  as_mkdir_p=:
31640else
31641  test -d ./-p && rmdir ./-p
31642  as_mkdir_p=false
31643fi
31644
31645as_executable_p="test -f"
31646
31647# Sed expression to map a string onto a valid CPP name.
31648as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31649
31650# Sed expression to map a string onto a valid variable name.
31651as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31652
31653
31654# IFS
31655# We need space, tab and new line, in precisely that order.
31656as_nl='
31657'
31658IFS=" 	$as_nl"
31659
31660# CDPATH.
31661$as_unset CDPATH
31662
31663exec 6>&1
31664
31665# Open the log real soon, to keep \$[0] and so on meaningful, and to
31666# report actual input values of CONFIG_FILES etc. instead of their
31667# values after options handling.  Logging --version etc. is OK.
31668exec 5>>config.log
31669{
31670  echo
31671  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31672## Running $as_me. ##
31673_ASBOX
31674} >&5
31675cat >&5 <<_CSEOF
31676
31677This file was extended by $as_me, which was
31678generated by GNU Autoconf 2.59.  Invocation command line was
31679
31680  CONFIG_FILES    = $CONFIG_FILES
31681  CONFIG_HEADERS  = $CONFIG_HEADERS
31682  CONFIG_LINKS    = $CONFIG_LINKS
31683  CONFIG_COMMANDS = $CONFIG_COMMANDS
31684  $ $0 $@
31685
31686_CSEOF
31687echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
31688echo >&5
31689_ACEOF
31690
31691# Files that config.status was made for.
31692if test -n "$ac_config_files"; then
31693  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
31694fi
31695
31696if test -n "$ac_config_headers"; then
31697  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
31698fi
31699
31700if test -n "$ac_config_links"; then
31701  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
31702fi
31703
31704if test -n "$ac_config_commands"; then
31705  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
31706fi
31707
31708cat >>$CONFIG_STATUS <<\_ACEOF
31709
31710ac_cs_usage="\
31711\`$as_me' instantiates files from templates according to the
31712current configuration.
31713
31714Usage: $0 [OPTIONS] [FILE]...
31715
31716  -h, --help       print this help, then exit
31717  -V, --version    print version number, then exit
31718  -q, --quiet      do not print progress messages
31719  -d, --debug      don't remove temporary files
31720      --recheck    update $as_me by reconfiguring in the same conditions
31721  --file=FILE[:TEMPLATE]
31722		   instantiate the configuration file FILE
31723  --header=FILE[:TEMPLATE]
31724		   instantiate the configuration header FILE
31725
31726Configuration files:
31727$config_files
31728
31729Configuration headers:
31730$config_headers
31731
31732Configuration commands:
31733$config_commands
31734
31735Report bugs to <bug-autoconf@gnu.org>."
31736_ACEOF
31737
31738cat >>$CONFIG_STATUS <<_ACEOF
31739ac_cs_version="\\
31740config.status
31741configured by $0, generated by GNU Autoconf 2.59,
31742  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
31743
31744Copyright (C) 2003 Free Software Foundation, Inc.
31745This config.status script is free software; the Free Software Foundation
31746gives unlimited permission to copy, distribute and modify it."
31747srcdir=$srcdir
31748INSTALL="$INSTALL"
31749_ACEOF
31750
31751cat >>$CONFIG_STATUS <<\_ACEOF
31752# If no file are specified by the user, then we need to provide default
31753# value.  By we need to know if files were specified by the user.
31754ac_need_defaults=:
31755while test $# != 0
31756do
31757  case $1 in
31758  --*=*)
31759    ac_option=`expr "x$1" : 'x\([^=]*\)='`
31760    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
31761    ac_shift=:
31762    ;;
31763  -*)
31764    ac_option=$1
31765    ac_optarg=$2
31766    ac_shift=shift
31767    ;;
31768  *) # This is not an option, so the user has probably given explicit
31769     # arguments.
31770     ac_option=$1
31771     ac_need_defaults=false;;
31772  esac
31773
31774  case $ac_option in
31775  # Handling of the options.
31776_ACEOF
31777cat >>$CONFIG_STATUS <<\_ACEOF
31778  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31779    ac_cs_recheck=: ;;
31780  --version | --vers* | -V )
31781    echo "$ac_cs_version"; exit 0 ;;
31782  --he | --h)
31783    # Conflict between --help and --header
31784    { { echo "$as_me:$LINENO: error: ambiguous option: $1
31785Try \`$0 --help' for more information." >&5
31786echo "$as_me: error: ambiguous option: $1
31787Try \`$0 --help' for more information." >&2;}
31788   { (exit 1); exit 1; }; };;
31789  --help | --hel | -h )
31790    echo "$ac_cs_usage"; exit 0 ;;
31791  --debug | --d* | -d )
31792    debug=: ;;
31793  --file | --fil | --fi | --f )
31794    $ac_shift
31795    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
31796    ac_need_defaults=false;;
31797  --header | --heade | --head | --hea )
31798    $ac_shift
31799    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
31800    ac_need_defaults=false;;
31801  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31802  | -silent | --silent | --silen | --sile | --sil | --si | --s)
31803    ac_cs_silent=: ;;
31804
31805  # This is an error.
31806  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
31807Try \`$0 --help' for more information." >&5
31808echo "$as_me: error: unrecognized option: $1
31809Try \`$0 --help' for more information." >&2;}
31810   { (exit 1); exit 1; }; } ;;
31811
31812  *) ac_config_targets="$ac_config_targets $1" ;;
31813
31814  esac
31815  shift
31816done
31817
31818ac_configure_extra_args=
31819
31820if $ac_cs_silent; then
31821  exec 6>/dev/null
31822  ac_configure_extra_args="$ac_configure_extra_args --silent"
31823fi
31824
31825_ACEOF
31826cat >>$CONFIG_STATUS <<_ACEOF
31827if \$ac_cs_recheck; then
31828  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
31829  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31830fi
31831
31832_ACEOF
31833
31834cat >>$CONFIG_STATUS <<_ACEOF
31835#
31836# INIT-COMMANDS section.
31837#
31838
31839AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31840
31841_ACEOF
31842
31843
31844
31845cat >>$CONFIG_STATUS <<\_ACEOF
31846for ac_config_target in $ac_config_targets
31847do
31848  case "$ac_config_target" in
31849  # Handling of arguments.
31850  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31851  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31852  "doc/doxygen" ) CONFIG_FILES="$CONFIG_FILES doc/doxygen" ;;
31853  "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31854  "src/spandsp.h" ) CONFIG_FILES="$CONFIG_FILES src/spandsp.h" ;;
31855  "spandsp-sim/Makefile" ) CONFIG_FILES="$CONFIG_FILES spandsp-sim/Makefile" ;;
31856  "test-data/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/Makefile" ;;
31857  "test-data/etsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/etsi/Makefile" ;;
31858  "test-data/etsi/fax/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/etsi/fax/Makefile" ;;
31859  "test-data/itu/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/itu/Makefile" ;;
31860  "test-data/itu/fax/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/itu/fax/Makefile" ;;
31861  "test-data/local/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/local/Makefile" ;;
31862  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31863  "spandsp.spec" ) CONFIG_FILES="$CONFIG_FILES spandsp.spec" ;;
31864  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31865  "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:config-h.in" ;;
31866  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
31867echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
31868   { (exit 1); exit 1; }; };;
31869  esac
31870done
31871
31872# If the user did not use the arguments to specify the items to instantiate,
31873# then the envvar interface is used.  Set only those that are not.
31874# We use the long form for the default assignment because of an extremely
31875# bizarre bug on SunOS 4.1.3.
31876if $ac_need_defaults; then
31877  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31878  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31879  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31880fi
31881
31882# Have a temporary directory for convenience.  Make it in the build tree
31883# simply because there is no reason to put it here, and in addition,
31884# creating and moving files from /tmp can sometimes cause problems.
31885# Create a temporary directory, and hook for its removal unless debugging.
31886$debug ||
31887{
31888  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
31889  trap '{ (exit 1); exit 1; }' 1 2 13 15
31890}
31891
31892# Create a (secure) tmp directory for tmp files.
31893
31894{
31895  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
31896  test -n "$tmp" && test -d "$tmp"
31897}  ||
31898{
31899  tmp=./confstat$$-$RANDOM
31900  (umask 077 && mkdir $tmp)
31901} ||
31902{
31903   echo "$me: cannot create a temporary directory in ." >&2
31904   { (exit 1); exit 1; }
31905}
31906
31907_ACEOF
31908
31909cat >>$CONFIG_STATUS <<_ACEOF
31910
31911#
31912# CONFIG_FILES section.
31913#
31914
31915# No need to generate the scripts if there are no CONFIG_FILES.
31916# This happens for instance when ./config.status config.h
31917if test -n "\$CONFIG_FILES"; then
31918  # Protect against being on the right side of a sed subst in config.status.
31919  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
31920   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
31921s,@SHELL@,$SHELL,;t t
31922s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
31923s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
31924s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
31925s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
31926s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
31927s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
31928s,@exec_prefix@,$exec_prefix,;t t
31929s,@prefix@,$prefix,;t t
31930s,@program_transform_name@,$program_transform_name,;t t
31931s,@bindir@,$bindir,;t t
31932s,@sbindir@,$sbindir,;t t
31933s,@libexecdir@,$libexecdir,;t t
31934s,@datadir@,$datadir,;t t
31935s,@sysconfdir@,$sysconfdir,;t t
31936s,@sharedstatedir@,$sharedstatedir,;t t
31937s,@localstatedir@,$localstatedir,;t t
31938s,@libdir@,$libdir,;t t
31939s,@includedir@,$includedir,;t t
31940s,@oldincludedir@,$oldincludedir,;t t
31941s,@infodir@,$infodir,;t t
31942s,@mandir@,$mandir,;t t
31943s,@build_alias@,$build_alias,;t t
31944s,@host_alias@,$host_alias,;t t
31945s,@target_alias@,$target_alias,;t t
31946s,@DEFS@,$DEFS,;t t
31947s,@ECHO_C@,$ECHO_C,;t t
31948s,@ECHO_N@,$ECHO_N,;t t
31949s,@ECHO_T@,$ECHO_T,;t t
31950s,@LIBS@,$LIBS,;t t
31951s,@SPANDSP_LT_CURRENT@,$SPANDSP_LT_CURRENT,;t t
31952s,@SPANDSP_LT_REVISION@,$SPANDSP_LT_REVISION,;t t
31953s,@SPANDSP_LT_AGE@,$SPANDSP_LT_AGE,;t t
31954s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
31955s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
31956s,@INSTALL_DATA@,$INSTALL_DATA,;t t
31957s,@CYGPATH_W@,$CYGPATH_W,;t t
31958s,@PACKAGE@,$PACKAGE,;t t
31959s,@VERSION@,$VERSION,;t t
31960s,@ACLOCAL@,$ACLOCAL,;t t
31961s,@AUTOCONF@,$AUTOCONF,;t t
31962s,@AUTOMAKE@,$AUTOMAKE,;t t
31963s,@AUTOHEADER@,$AUTOHEADER,;t t
31964s,@MAKEINFO@,$MAKEINFO,;t t
31965s,@install_sh@,$install_sh,;t t
31966s,@STRIP@,$STRIP,;t t
31967s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
31968s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
31969s,@mkdir_p@,$mkdir_p,;t t
31970s,@AWK@,$AWK,;t t
31971s,@SET_MAKE@,$SET_MAKE,;t t
31972s,@am__leading_dot@,$am__leading_dot,;t t
31973s,@AMTAR@,$AMTAR,;t t
31974s,@am__tar@,$am__tar,;t t
31975s,@am__untar@,$am__untar,;t t
31976s,@build@,$build,;t t
31977s,@build_cpu@,$build_cpu,;t t
31978s,@build_vendor@,$build_vendor,;t t
31979s,@build_os@,$build_os,;t t
31980s,@host@,$host,;t t
31981s,@host_cpu@,$host_cpu,;t t
31982s,@host_vendor@,$host_vendor,;t t
31983s,@host_os@,$host_os,;t t
31984s,@CC@,$CC,;t t
31985s,@CFLAGS@,$CFLAGS,;t t
31986s,@LDFLAGS@,$LDFLAGS,;t t
31987s,@CPPFLAGS@,$CPPFLAGS,;t t
31988s,@ac_ct_CC@,$ac_ct_CC,;t t
31989s,@EXEEXT@,$EXEEXT,;t t
31990s,@OBJEXT@,$OBJEXT,;t t
31991s,@DEPDIR@,$DEPDIR,;t t
31992s,@am__include@,$am__include,;t t
31993s,@am__quote@,$am__quote,;t t
31994s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
31995s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
31996s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
31997s,@CCDEPMODE@,$CCDEPMODE,;t t
31998s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
31999s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32000s,@CXX@,$CXX,;t t
32001s,@CXXFLAGS@,$CXXFLAGS,;t t
32002s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32003s,@CXXDEPMODE@,$CXXDEPMODE,;t t
32004s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
32005s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
32006s,@CPP@,$CPP,;t t
32007s,@EGREP@,$EGREP,;t t
32008s,@SED@,$SED,;t t
32009s,@LN_S@,$LN_S,;t t
32010s,@ECHO@,$ECHO,;t t
32011s,@AR@,$AR,;t t
32012s,@ac_ct_AR@,$ac_ct_AR,;t t
32013s,@RANLIB@,$RANLIB,;t t
32014s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32015s,@DSYMUTIL@,$DSYMUTIL,;t t
32016s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
32017s,@NMEDIT@,$NMEDIT,;t t
32018s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
32019s,@CXXCPP@,$CXXCPP,;t t
32020s,@F77@,$F77,;t t
32021s,@FFLAGS@,$FFLAGS,;t t
32022s,@ac_ct_F77@,$ac_ct_F77,;t t
32023s,@LIBTOOL@,$LIBTOOL,;t t
32024s,@LIBOBJS@,$LIBOBJS,;t t
32025s,@COND_DOC_TRUE@,$COND_DOC_TRUE,;t t
32026s,@COND_DOC_FALSE@,$COND_DOC_FALSE,;t t
32027s,@COND_TESTS_TRUE@,$COND_TESTS_TRUE,;t t
32028s,@COND_TESTS_FALSE@,$COND_TESTS_FALSE,;t t
32029s,@COND_TESTDATA_TRUE@,$COND_TESTDATA_TRUE,;t t
32030s,@COND_TESTDATA_FALSE@,$COND_TESTDATA_FALSE,;t t
32031s,@COND_MMX_TRUE@,$COND_MMX_TRUE,;t t
32032s,@COND_MMX_FALSE@,$COND_MMX_FALSE,;t t
32033s,@COND_SSE_TRUE@,$COND_SSE_TRUE,;t t
32034s,@COND_SSE_FALSE@,$COND_SSE_FALSE,;t t
32035s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
32036s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
32037s,@COMP_VENDOR_CFLAGS@,$COMP_VENDOR_CFLAGS,;t t
32038s,@COMP_VENDOR_LDFLAGS@,$COMP_VENDOR_LDFLAGS,;t t
32039s,@TESTLIBS@,$TESTLIBS,;t t
32040s,@SPANDSP_USE_FIXED_POINT@,$SPANDSP_USE_FIXED_POINT,;t t
32041s,@SPANDSP_MISALIGNED_ACCESS_FAILS@,$SPANDSP_MISALIGNED_ACCESS_FAILS,;t t
32042s,@INSERT_INTTYPES_HEADER@,$INSERT_INTTYPES_HEADER,;t t
32043s,@INSERT_STDINT_HEADER@,$INSERT_STDINT_HEADER,;t t
32044s,@INSERT_TGMATH_HEADER@,$INSERT_TGMATH_HEADER,;t t
32045s,@INSERT_MATH_HEADER@,$INSERT_MATH_HEADER,;t t
32046s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32047CEOF
32048
32049_ACEOF
32050
32051  cat >>$CONFIG_STATUS <<\_ACEOF
32052  # Split the substitutions into bite-sized pieces for seds with
32053  # small command number limits, like on Digital OSF/1 and HP-UX.
32054  ac_max_sed_lines=48
32055  ac_sed_frag=1 # Number of current file.
32056  ac_beg=1 # First line for current file.
32057  ac_end=$ac_max_sed_lines # Line after last line for current file.
32058  ac_more_lines=:
32059  ac_sed_cmds=
32060  while $ac_more_lines; do
32061    if test $ac_beg -gt 1; then
32062      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32063    else
32064      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32065    fi
32066    if test ! -s $tmp/subs.frag; then
32067      ac_more_lines=false
32068    else
32069      # The purpose of the label and of the branching condition is to
32070      # speed up the sed processing (if there are no `@' at all, there
32071      # is no need to browse any of the substitutions).
32072      # These are the two extra sed commands mentioned above.
32073      (echo ':t
32074  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32075      if test -z "$ac_sed_cmds"; then
32076	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32077      else
32078	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32079      fi
32080      ac_sed_frag=`expr $ac_sed_frag + 1`
32081      ac_beg=$ac_end
32082      ac_end=`expr $ac_end + $ac_max_sed_lines`
32083    fi
32084  done
32085  if test -z "$ac_sed_cmds"; then
32086    ac_sed_cmds=cat
32087  fi
32088fi # test -n "$CONFIG_FILES"
32089
32090_ACEOF
32091cat >>$CONFIG_STATUS <<\_ACEOF
32092for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32093  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32094  case $ac_file in
32095  - | *:- | *:-:* ) # input from stdin
32096	cat >$tmp/stdin
32097	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32098	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32099  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32100	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32101  * )   ac_file_in=$ac_file.in ;;
32102  esac
32103
32104  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32105  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32106$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32107	 X"$ac_file" : 'X\(//\)[^/]' \| \
32108	 X"$ac_file" : 'X\(//\)$' \| \
32109	 X"$ac_file" : 'X\(/\)' \| \
32110	 .     : '\(.\)' 2>/dev/null ||
32111echo X"$ac_file" |
32112    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32113  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32114  	  /^X\(\/\/\)$/{ s//\1/; q; }
32115  	  /^X\(\/\).*/{ s//\1/; q; }
32116  	  s/.*/./; q'`
32117  { if $as_mkdir_p; then
32118    mkdir -p "$ac_dir"
32119  else
32120    as_dir="$ac_dir"
32121    as_dirs=
32122    while test ! -d "$as_dir"; do
32123      as_dirs="$as_dir $as_dirs"
32124      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32125$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32126	 X"$as_dir" : 'X\(//\)[^/]' \| \
32127	 X"$as_dir" : 'X\(//\)$' \| \
32128	 X"$as_dir" : 'X\(/\)' \| \
32129	 .     : '\(.\)' 2>/dev/null ||
32130echo X"$as_dir" |
32131    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32132  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32133  	  /^X\(\/\/\)$/{ s//\1/; q; }
32134  	  /^X\(\/\).*/{ s//\1/; q; }
32135  	  s/.*/./; q'`
32136    done
32137    test ! -n "$as_dirs" || mkdir $as_dirs
32138  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32139echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32140   { (exit 1); exit 1; }; }; }
32141
32142  ac_builddir=.
32143
32144if test "$ac_dir" != .; then
32145  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32146  # A "../" for each directory in $ac_dir_suffix.
32147  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32148else
32149  ac_dir_suffix= ac_top_builddir=
32150fi
32151
32152case $srcdir in
32153  .)  # No --srcdir option.  We are building in place.
32154    ac_srcdir=.
32155    if test -z "$ac_top_builddir"; then
32156       ac_top_srcdir=.
32157    else
32158       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32159    fi ;;
32160  [\\/]* | ?:[\\/]* )  # Absolute path.
32161    ac_srcdir=$srcdir$ac_dir_suffix;
32162    ac_top_srcdir=$srcdir ;;
32163  *) # Relative path.
32164    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32165    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32166esac
32167
32168# Do not use `cd foo && pwd` to compute absolute paths, because
32169# the directories may not exist.
32170case `pwd` in
32171.) ac_abs_builddir="$ac_dir";;
32172*)
32173  case "$ac_dir" in
32174  .) ac_abs_builddir=`pwd`;;
32175  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32176  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32177  esac;;
32178esac
32179case $ac_abs_builddir in
32180.) ac_abs_top_builddir=${ac_top_builddir}.;;
32181*)
32182  case ${ac_top_builddir}. in
32183  .) ac_abs_top_builddir=$ac_abs_builddir;;
32184  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32185  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32186  esac;;
32187esac
32188case $ac_abs_builddir in
32189.) ac_abs_srcdir=$ac_srcdir;;
32190*)
32191  case $ac_srcdir in
32192  .) ac_abs_srcdir=$ac_abs_builddir;;
32193  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32194  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32195  esac;;
32196esac
32197case $ac_abs_builddir in
32198.) ac_abs_top_srcdir=$ac_top_srcdir;;
32199*)
32200  case $ac_top_srcdir in
32201  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32202  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32203  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32204  esac;;
32205esac
32206
32207
32208  case $INSTALL in
32209  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32210  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32211  esac
32212
32213  if test x"$ac_file" != x-; then
32214    { echo "$as_me:$LINENO: creating $ac_file" >&5
32215echo "$as_me: creating $ac_file" >&6;}
32216    rm -f "$ac_file"
32217  fi
32218  # Let's still pretend it is `configure' which instantiates (i.e., don't
32219  # use $as_me), people would be surprised to read:
32220  #    /* config.h.  Generated by config.status.  */
32221  if test x"$ac_file" = x-; then
32222    configure_input=
32223  else
32224    configure_input="$ac_file.  "
32225  fi
32226  configure_input=$configure_input"Generated from `echo $ac_file_in |
32227				     sed 's,.*/,,'` by configure."
32228
32229  # First look for the input files in the build tree, otherwise in the
32230  # src tree.
32231  ac_file_inputs=`IFS=:
32232    for f in $ac_file_in; do
32233      case $f in
32234      -) echo $tmp/stdin ;;
32235      [\\/$]*)
32236	 # Absolute (can't be DOS-style, as IFS=:)
32237	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32238echo "$as_me: error: cannot find input file: $f" >&2;}
32239   { (exit 1); exit 1; }; }
32240	 echo "$f";;
32241      *) # Relative
32242	 if test -f "$f"; then
32243	   # Build tree
32244	   echo "$f"
32245	 elif test -f "$srcdir/$f"; then
32246	   # Source tree
32247	   echo "$srcdir/$f"
32248	 else
32249	   # /dev/null tree
32250	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32251echo "$as_me: error: cannot find input file: $f" >&2;}
32252   { (exit 1); exit 1; }; }
32253	 fi;;
32254      esac
32255    done` || { (exit 1); exit 1; }
32256_ACEOF
32257cat >>$CONFIG_STATUS <<_ACEOF
32258  sed "$ac_vpsub
32259$extrasub
32260_ACEOF
32261cat >>$CONFIG_STATUS <<\_ACEOF
32262:t
32263/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32264s,@configure_input@,$configure_input,;t t
32265s,@srcdir@,$ac_srcdir,;t t
32266s,@abs_srcdir@,$ac_abs_srcdir,;t t
32267s,@top_srcdir@,$ac_top_srcdir,;t t
32268s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32269s,@builddir@,$ac_builddir,;t t
32270s,@abs_builddir@,$ac_abs_builddir,;t t
32271s,@top_builddir@,$ac_top_builddir,;t t
32272s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32273s,@INSTALL@,$ac_INSTALL,;t t
32274" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32275  rm -f $tmp/stdin
32276  if test x"$ac_file" != x-; then
32277    mv $tmp/out $ac_file
32278  else
32279    cat $tmp/out
32280    rm -f $tmp/out
32281  fi
32282
32283done
32284_ACEOF
32285cat >>$CONFIG_STATUS <<\_ACEOF
32286
32287#
32288# CONFIG_HEADER section.
32289#
32290
32291# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32292# NAME is the cpp macro being defined and VALUE is the value it is being given.
32293#
32294# ac_d sets the value in "#define NAME VALUE" lines.
32295ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
32296ac_dB='[	 ].*$,\1#\2'
32297ac_dC=' '
32298ac_dD=',;t'
32299# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32300ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
32301ac_uB='$,\1#\2define\3'
32302ac_uC=' '
32303ac_uD=',;t'
32304
32305for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32306  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32307  case $ac_file in
32308  - | *:- | *:-:* ) # input from stdin
32309	cat >$tmp/stdin
32310	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32311	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32312  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32313	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32314  * )   ac_file_in=$ac_file.in ;;
32315  esac
32316
32317  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32318echo "$as_me: creating $ac_file" >&6;}
32319
32320  # First look for the input files in the build tree, otherwise in the
32321  # src tree.
32322  ac_file_inputs=`IFS=:
32323    for f in $ac_file_in; do
32324      case $f in
32325      -) echo $tmp/stdin ;;
32326      [\\/$]*)
32327	 # Absolute (can't be DOS-style, as IFS=:)
32328	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32329echo "$as_me: error: cannot find input file: $f" >&2;}
32330   { (exit 1); exit 1; }; }
32331	 # Do quote $f, to prevent DOS paths from being IFS'd.
32332	 echo "$f";;
32333      *) # Relative
32334	 if test -f "$f"; then
32335	   # Build tree
32336	   echo "$f"
32337	 elif test -f "$srcdir/$f"; then
32338	   # Source tree
32339	   echo "$srcdir/$f"
32340	 else
32341	   # /dev/null tree
32342	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32343echo "$as_me: error: cannot find input file: $f" >&2;}
32344   { (exit 1); exit 1; }; }
32345	 fi;;
32346      esac
32347    done` || { (exit 1); exit 1; }
32348  # Remove the trailing spaces.
32349  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
32350
32351_ACEOF
32352
32353# Transform confdefs.h into two sed scripts, `conftest.defines' and
32354# `conftest.undefs', that substitutes the proper values into
32355# config.h.in to produce config.h.  The first handles `#define'
32356# templates, and the second `#undef' templates.
32357# And first: Protect against being on the right side of a sed subst in
32358# config.status.  Protect against being in an unquoted here document
32359# in config.status.
32360rm -f conftest.defines conftest.undefs
32361# Using a here document instead of a string reduces the quoting nightmare.
32362# Putting comments in sed scripts is not portable.
32363#
32364# `end' is used to avoid that the second main sed command (meant for
32365# 0-ary CPP macros) applies to n-ary macro definitions.
32366# See the Autoconf documentation for `clear'.
32367cat >confdef2sed.sed <<\_ACEOF
32368s/[\\&,]/\\&/g
32369s,[\\$`],\\&,g
32370t clear
32371: clear
32372s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
32373t end
32374s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
32375: end
32376_ACEOF
32377# If some macros were called several times there might be several times
32378# the same #defines, which is useless.  Nevertheless, we may not want to
32379# sort them, since we want the *last* AC-DEFINE to be honored.
32380uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
32381sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
32382rm -f confdef2sed.sed
32383
32384# This sed command replaces #undef with comments.  This is necessary, for
32385# example, in the case of _POSIX_SOURCE, which is predefined and required
32386# on some systems where configure will not decide to define it.
32387cat >>conftest.undefs <<\_ACEOF
32388s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
32389_ACEOF
32390
32391# Break up conftest.defines because some shells have a limit on the size
32392# of here documents, and old seds have small limits too (100 cmds).
32393echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
32394echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
32395echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
32396echo '  :' >>$CONFIG_STATUS
32397rm -f conftest.tail
32398while grep . conftest.defines >/dev/null
32399do
32400  # Write a limited-size here document to $tmp/defines.sed.
32401  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
32402  # Speed up: don't consider the non `#define' lines.
32403  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
32404  # Work around the forget-to-reset-the-flag bug.
32405  echo 't clr' >>$CONFIG_STATUS
32406  echo ': clr' >>$CONFIG_STATUS
32407  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
32408  echo 'CEOF
32409  sed -f $tmp/defines.sed $tmp/in >$tmp/out
32410  rm -f $tmp/in
32411  mv $tmp/out $tmp/in
32412' >>$CONFIG_STATUS
32413  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
32414  rm -f conftest.defines
32415  mv conftest.tail conftest.defines
32416done
32417rm -f conftest.defines
32418echo '  fi # grep' >>$CONFIG_STATUS
32419echo >>$CONFIG_STATUS
32420
32421# Break up conftest.undefs because some shells have a limit on the size
32422# of here documents, and old seds have small limits too (100 cmds).
32423echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
32424rm -f conftest.tail
32425while grep . conftest.undefs >/dev/null
32426do
32427  # Write a limited-size here document to $tmp/undefs.sed.
32428  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
32429  # Speed up: don't consider the non `#undef'
32430  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
32431  # Work around the forget-to-reset-the-flag bug.
32432  echo 't clr' >>$CONFIG_STATUS
32433  echo ': clr' >>$CONFIG_STATUS
32434  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
32435  echo 'CEOF
32436  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
32437  rm -f $tmp/in
32438  mv $tmp/out $tmp/in
32439' >>$CONFIG_STATUS
32440  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
32441  rm -f conftest.undefs
32442  mv conftest.tail conftest.undefs
32443done
32444rm -f conftest.undefs
32445
32446cat >>$CONFIG_STATUS <<\_ACEOF
32447  # Let's still pretend it is `configure' which instantiates (i.e., don't
32448  # use $as_me), people would be surprised to read:
32449  #    /* config.h.  Generated by config.status.  */
32450  if test x"$ac_file" = x-; then
32451    echo "/* Generated by configure.  */" >$tmp/config.h
32452  else
32453    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
32454  fi
32455  cat $tmp/in >>$tmp/config.h
32456  rm -f $tmp/in
32457  if test x"$ac_file" != x-; then
32458    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
32459      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
32460echo "$as_me: $ac_file is unchanged" >&6;}
32461    else
32462      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32463$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32464	 X"$ac_file" : 'X\(//\)[^/]' \| \
32465	 X"$ac_file" : 'X\(//\)$' \| \
32466	 X"$ac_file" : 'X\(/\)' \| \
32467	 .     : '\(.\)' 2>/dev/null ||
32468echo X"$ac_file" |
32469    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32470  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32471  	  /^X\(\/\/\)$/{ s//\1/; q; }
32472  	  /^X\(\/\).*/{ s//\1/; q; }
32473  	  s/.*/./; q'`
32474      { if $as_mkdir_p; then
32475    mkdir -p "$ac_dir"
32476  else
32477    as_dir="$ac_dir"
32478    as_dirs=
32479    while test ! -d "$as_dir"; do
32480      as_dirs="$as_dir $as_dirs"
32481      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32482$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32483	 X"$as_dir" : 'X\(//\)[^/]' \| \
32484	 X"$as_dir" : 'X\(//\)$' \| \
32485	 X"$as_dir" : 'X\(/\)' \| \
32486	 .     : '\(.\)' 2>/dev/null ||
32487echo X"$as_dir" |
32488    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32489  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32490  	  /^X\(\/\/\)$/{ s//\1/; q; }
32491  	  /^X\(\/\).*/{ s//\1/; q; }
32492  	  s/.*/./; q'`
32493    done
32494    test ! -n "$as_dirs" || mkdir $as_dirs
32495  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32496echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32497   { (exit 1); exit 1; }; }; }
32498
32499      rm -f $ac_file
32500      mv $tmp/config.h $ac_file
32501    fi
32502  else
32503    cat $tmp/config.h
32504    rm -f $tmp/config.h
32505  fi
32506# Compute $ac_file's index in $config_headers.
32507_am_stamp_count=1
32508for _am_header in $config_headers :; do
32509  case $_am_header in
32510    $ac_file | $ac_file:* )
32511      break ;;
32512    * )
32513      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32514  esac
32515done
32516echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
32517$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32518	 X$ac_file : 'X\(//\)[^/]' \| \
32519	 X$ac_file : 'X\(//\)$' \| \
32520	 X$ac_file : 'X\(/\)' \| \
32521	 .     : '\(.\)' 2>/dev/null ||
32522echo X$ac_file |
32523    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32524  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32525  	  /^X\(\/\/\)$/{ s//\1/; q; }
32526  	  /^X\(\/\).*/{ s//\1/; q; }
32527  	  s/.*/./; q'`/stamp-h$_am_stamp_count
32528done
32529_ACEOF
32530cat >>$CONFIG_STATUS <<\_ACEOF
32531
32532#
32533# CONFIG_COMMANDS section.
32534#
32535for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
32536  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
32537  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
32538  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
32539$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32540	 X"$ac_dest" : 'X\(//\)[^/]' \| \
32541	 X"$ac_dest" : 'X\(//\)$' \| \
32542	 X"$ac_dest" : 'X\(/\)' \| \
32543	 .     : '\(.\)' 2>/dev/null ||
32544echo X"$ac_dest" |
32545    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32546  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32547  	  /^X\(\/\/\)$/{ s//\1/; q; }
32548  	  /^X\(\/\).*/{ s//\1/; q; }
32549  	  s/.*/./; q'`
32550  { if $as_mkdir_p; then
32551    mkdir -p "$ac_dir"
32552  else
32553    as_dir="$ac_dir"
32554    as_dirs=
32555    while test ! -d "$as_dir"; do
32556      as_dirs="$as_dir $as_dirs"
32557      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32558$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32559	 X"$as_dir" : 'X\(//\)[^/]' \| \
32560	 X"$as_dir" : 'X\(//\)$' \| \
32561	 X"$as_dir" : 'X\(/\)' \| \
32562	 .     : '\(.\)' 2>/dev/null ||
32563echo X"$as_dir" |
32564    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32565  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32566  	  /^X\(\/\/\)$/{ s//\1/; q; }
32567  	  /^X\(\/\).*/{ s//\1/; q; }
32568  	  s/.*/./; q'`
32569    done
32570    test ! -n "$as_dirs" || mkdir $as_dirs
32571  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32572echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32573   { (exit 1); exit 1; }; }; }
32574
32575  ac_builddir=.
32576
32577if test "$ac_dir" != .; then
32578  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32579  # A "../" for each directory in $ac_dir_suffix.
32580  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32581else
32582  ac_dir_suffix= ac_top_builddir=
32583fi
32584
32585case $srcdir in
32586  .)  # No --srcdir option.  We are building in place.
32587    ac_srcdir=.
32588    if test -z "$ac_top_builddir"; then
32589       ac_top_srcdir=.
32590    else
32591       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32592    fi ;;
32593  [\\/]* | ?:[\\/]* )  # Absolute path.
32594    ac_srcdir=$srcdir$ac_dir_suffix;
32595    ac_top_srcdir=$srcdir ;;
32596  *) # Relative path.
32597    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32598    ac_top_srcdir=$ac_top_builddir$srcdir ;;
32599esac
32600
32601# Do not use `cd foo && pwd` to compute absolute paths, because
32602# the directories may not exist.
32603case `pwd` in
32604.) ac_abs_builddir="$ac_dir";;
32605*)
32606  case "$ac_dir" in
32607  .) ac_abs_builddir=`pwd`;;
32608  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32609  *) ac_abs_builddir=`pwd`/"$ac_dir";;
32610  esac;;
32611esac
32612case $ac_abs_builddir in
32613.) ac_abs_top_builddir=${ac_top_builddir}.;;
32614*)
32615  case ${ac_top_builddir}. in
32616  .) ac_abs_top_builddir=$ac_abs_builddir;;
32617  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32618  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32619  esac;;
32620esac
32621case $ac_abs_builddir in
32622.) ac_abs_srcdir=$ac_srcdir;;
32623*)
32624  case $ac_srcdir in
32625  .) ac_abs_srcdir=$ac_abs_builddir;;
32626  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32627  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32628  esac;;
32629esac
32630case $ac_abs_builddir in
32631.) ac_abs_top_srcdir=$ac_top_srcdir;;
32632*)
32633  case $ac_top_srcdir in
32634  .) ac_abs_top_srcdir=$ac_abs_builddir;;
32635  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32636  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32637  esac;;
32638esac
32639
32640
32641  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
32642echo "$as_me: executing $ac_dest commands" >&6;}
32643  case $ac_dest in
32644    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
32645  # Strip MF so we end up with the name of the file.
32646  mf=`echo "$mf" | sed -e 's/:.*$//'`
32647  # Check whether this is an Automake generated Makefile or not.
32648  # We used to match only the files named `Makefile.in', but
32649  # some people rename them; so instead we look at the file content.
32650  # Grep'ing the first line is not enough: some people post-process
32651  # each Makefile.in and add a new line on top of each file to say so.
32652  # So let's grep whole file.
32653  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
32654    dirpart=`(dirname "$mf") 2>/dev/null ||
32655$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32656	 X"$mf" : 'X\(//\)[^/]' \| \
32657	 X"$mf" : 'X\(//\)$' \| \
32658	 X"$mf" : 'X\(/\)' \| \
32659	 .     : '\(.\)' 2>/dev/null ||
32660echo X"$mf" |
32661    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32662  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32663  	  /^X\(\/\/\)$/{ s//\1/; q; }
32664  	  /^X\(\/\).*/{ s//\1/; q; }
32665  	  s/.*/./; q'`
32666  else
32667    continue
32668  fi
32669  # Extract the definition of DEPDIR, am__include, and am__quote
32670  # from the Makefile without running `make'.
32671  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
32672  test -z "$DEPDIR" && continue
32673  am__include=`sed -n 's/^am__include = //p' < "$mf"`
32674  test -z "am__include" && continue
32675  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
32676  # When using ansi2knr, U may be empty or an underscore; expand it
32677  U=`sed -n 's/^U = //p' < "$mf"`
32678  # Find all dependency output files, they are included files with
32679  # $(DEPDIR) in their names.  We invoke sed twice because it is the
32680  # simplest approach to changing $(DEPDIR) to its actual value in the
32681  # expansion.
32682  for file in `sed -n "
32683    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32684       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32685    # Make sure the directory exists.
32686    test -f "$dirpart/$file" && continue
32687    fdir=`(dirname "$file") 2>/dev/null ||
32688$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32689	 X"$file" : 'X\(//\)[^/]' \| \
32690	 X"$file" : 'X\(//\)$' \| \
32691	 X"$file" : 'X\(/\)' \| \
32692	 .     : '\(.\)' 2>/dev/null ||
32693echo X"$file" |
32694    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32695  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32696  	  /^X\(\/\/\)$/{ s//\1/; q; }
32697  	  /^X\(\/\).*/{ s//\1/; q; }
32698  	  s/.*/./; q'`
32699    { if $as_mkdir_p; then
32700    mkdir -p $dirpart/$fdir
32701  else
32702    as_dir=$dirpart/$fdir
32703    as_dirs=
32704    while test ! -d "$as_dir"; do
32705      as_dirs="$as_dir $as_dirs"
32706      as_dir=`(dirname "$as_dir") 2>/dev/null ||
32707$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32708	 X"$as_dir" : 'X\(//\)[^/]' \| \
32709	 X"$as_dir" : 'X\(//\)$' \| \
32710	 X"$as_dir" : 'X\(/\)' \| \
32711	 .     : '\(.\)' 2>/dev/null ||
32712echo X"$as_dir" |
32713    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32714  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32715  	  /^X\(\/\/\)$/{ s//\1/; q; }
32716  	  /^X\(\/\).*/{ s//\1/; q; }
32717  	  s/.*/./; q'`
32718    done
32719    test ! -n "$as_dirs" || mkdir $as_dirs
32720  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
32721echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
32722   { (exit 1); exit 1; }; }; }
32723
32724    # echo "creating $dirpart/$file"
32725    echo '# dummy' > "$dirpart/$file"
32726  done
32727done
32728 ;;
32729  esac
32730done
32731_ACEOF
32732
32733cat >>$CONFIG_STATUS <<\_ACEOF
32734
32735{ (exit 0); exit 0; }
32736_ACEOF
32737chmod +x $CONFIG_STATUS
32738ac_clean_files=$ac_clean_files_save
32739
32740
32741# configure is writing to config.log, and then calls config.status.
32742# config.status does its own redirection, appending to config.log.
32743# Unfortunately, on DOS this fails, as config.log is still kept open
32744# by configure, so config.status won't be able to write to it; its
32745# output is simply discarded.  So we exec the FD to /dev/null,
32746# effectively closing config.log, so it can be properly (re)opened and
32747# appended to by config.status.  When coming back to configure, we
32748# need to make the FD available again.
32749if test "$no_create" != yes; then
32750  ac_cs_success=:
32751  ac_config_status_args=
32752  test "$silent" = yes &&
32753    ac_config_status_args="$ac_config_status_args --quiet"
32754  exec 5>/dev/null
32755  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32756  exec 5>>config.log
32757  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32758  # would make configure fail if this is the last instruction.
32759  $ac_cs_success || { (exit 1); exit 1; }
32760fi
32761
32762
32763# @end 1
32764